/*
Theme Name: 狂短劇庫 副刊雙欄
Theme URI: https://example.invalid/
Author: SD Network
Description: 副刊雙欄風短劇主題：灰藍配米色的報紙副刊，襯線標題、報頭期號、左側固定日期欄、雙欄密排條目，選集做成節目表式編號小格。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-b13
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--bg --surface --ink --muted --line --accent --accent-2 --accent-soft
              --on-accent --radius --wrap --gut --font --scrim
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.sd-no-scroll { overflow: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.b13-wrap { width: 100%; max-width: var(--wrap, 1240px); margin: 0 auto; padding: 0 var(--gut, 20px); }
.sr-only, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- 搜尋表單 ---------- */
.b13-sf { display: flex; gap: 8px; align-items: stretch; }
.b13-sf input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.b13-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.b13-sf button {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- 搜尋面板 / 遮罩 / 手機抽屜（app.js 以 id 綁定） ---------- */
.b13-search {
  position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center;
  padding: 12vh 16px 16px; background: var(--scrim, rgba(0, 0, 0, .55));
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.b13-search.is-open { opacity: 1; visibility: visible; }
.b13-search__box {
  width: min(640px, 100%); max-height: 80vh; overflow: auto; padding: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
}
.b13-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.b13-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b13-tags a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px;
}
.b13-tags a:hover { border-color: var(--accent); color: var(--accent); }

.b13-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.b13-overlay.is-open { opacity: 1; }
.b13-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(320px, 86vw);
  padding: 68px 22px 28px; overflow: auto; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
}
.b13-drawer.is-open { transform: none; visibility: visible; }
.b13-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.b13-drawer__list { list-style: none; margin: 0; padding: 0; }
.b13-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.b13-drawer__list [aria-current="page"], .b13-drawer__list .current-menu-item > a { color: var(--accent); font-weight: 700; }

/* ---------- 麵包屑 ---------- */
.sd-crumbs { padding: 14px 0 4px; font-size: 13px; color: var(--muted); }
.sd-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.sd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.sd-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.sd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.sd-crumbs a:hover { color: var(--accent); }
.sd-crumbs [aria-current="page"] { color: var(--ink); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 分頁 ---------- */
.sd-pagination { margin: 36px 0 8px; }
.sd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sd-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600;
}
.sd-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.sd-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .dots { background: none; border-color: transparent; }

/* ---------- 播放器 / 提示框 ---------- */
.sd-player { background: #000; overflow: hidden; }
.sd-player video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: contain; background: #000; }
.sd-embed { aspect-ratio: 9 / 16; max-height: 78vh; background: #000; }
.sd-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.sd-player__fallback { padding: 18px; color: #e5e7eb; font-size: 14px; }
.sd-player__fallback a { text-decoration: underline; }
.sd-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.sd-callout__body { flex: 1 1 200px; }
.sd-callout__title { font-weight: 800; margin-bottom: 4px; }
.sd-callout__desc { color: var(--muted); font-size: 14px; }
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- 版面骨架（詳情 / 分集）：左播放器、右選集；≤900px 上下堆疊 ---------- */
.b13-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.b13-dgrid__l, .b13-dgrid__r { min-width: 0; }
.b13-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b13-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b13-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; }
a.b13-pill { min-height: 44px; }
.b13-pill--accent { border-color: var(--accent); color: var(--accent); }
.b13-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.b13-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); font-weight: 600;
}
.b13-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b13-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.b13-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.b13-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.b13-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b13-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.b13-prose { max-width: 70ch; }
.b13-prose img { height: auto; }
.b13-faq details { border-bottom: 1px solid var(--line); }
.b13-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.b13-faq details p { color: var(--muted); }
.b13-empty, .b13-notfound { padding: 48px 0; }
.b13-notfound__search { max-width: 520px; margin: 22px 0; }
.b13-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b13-results { display: grid; gap: 0; }
.b13-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.b13-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.b13-result__body { display: grid; gap: 4px; min-width: 0; }
.b13-result__t { font-weight: 700; overflow-wrap: anywhere; }
.b13-result__m, .b13-result__x { font-size: 13px; color: var(--muted); }
.b13-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.b13-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.b13-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b13-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.b13-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b13-filter__list::-webkit-scrollbar { display: none; }
.b13-filter__list a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; }

/* ---------- 選集容器（app.js 會把目前集捲到可視範圍） ---------- */
[data-eps] { position: relative; }

/* ---------- 共用預設（各主題在 theme.css 覆寫） ---------- */
.b13-block { margin-top: clamp(40px, 6vw, 72px); }
.b13-pagehead { padding: 26px 0 20px; }
.b13-pagehead h1 { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.b13-pagehead p { margin: 10px 0 0; color: var(--muted); }
.b13-dhead { padding: 8px 0 22px; }
.b13-dhead h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.b13-syn { font-size: 16px; line-height: 1.9; }
.b13-h2 { font-size: 20px; margin: 0 0 14px; }
.b13-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.b13-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.b13-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b13-fact dt { font-size: 12.5px; color: var(--muted); }
.b13-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.b13-fact--wide { grid-column: 1 / -1; }
.b13-article { max-width: 860px; }
.b13-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.b13-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.b13-notfound__desc { max-width: 34em; color: var(--muted); }
.b13-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.b13-result:hover .b13-result__t { color: var(--accent); }
.b13-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b13-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .b13-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .b13-dgrid__l .sd-player, .b13-dgrid__l .b13-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .b13-filter__row { gap: 8px; }
  .sd-crumbs [aria-current="page"] { max-width: 48vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
 * 「副刊雙欄」配色與版面
 * 灰藍 × 米色報紙副刊：襯線標題、雙細線、左側固定日期欄、雙欄密排正文。
 * ======================================================================== */

:root {
    --bg: #f4efe4;
    --surface: #fbf8f1;
    --paper: #efe8da;
    --ink: #1e2429;
    --muted: #5d6871;
    --line: #c9c1b0;
    --line-soft: #ddd6c6;
    --accent: #47617a;
    --accent-2: #b99a6a;
    --accent-soft: rgba(71, 97, 122, 0.12);
    --on-accent: #fdfaf3;
    --radius: 0px;
    --wrap: 1140px;
    --gut: 20px;
    --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "思源宋體", "新細明體", "PMingLiU", Georgia, "Times New Roman", serif;
    --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --scrim: rgba(30, 36, 41, 0.5);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .b13-title__brand, .b13-sec__t, .b13-feature__t, .b13-dhead__t, .b13-pagehead__t {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: 0.01em;
}

a { color: inherit; }

/* ---------- 報頭 ---------- */
.b13-head {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding-top: 10px;
}

.b13-mast__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 6px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 8px;
}

.b13-mast__issue { color: var(--accent); font-weight: 700; }
.b13-mast__spacer { flex: 1 1 auto; }
.b13-mast__note { letter-spacing: 0.2em; }
.b13-mast__dot { color: var(--line); }

.b13-mast__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 6px 0 4px;
}

.b13-brand {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    text-decoration: none;
    color: var(--ink);
}

.b13-brand__tx {
    font-family: var(--serif);
    font-size: clamp(26px, 4.4vw, 44px);
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.1;
}

.b13-brand__sub {
    font-size: 12px;
    letter-spacing: 0.32em;
    color: var(--accent);
    border-left: 1px solid var(--line);
    padding-left: 8px;
}

.b13-brand img { max-height: 52px; width: auto; }

.b13-tools {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 6px;
}

.b13-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.b13-tool:hover { border-color: var(--accent); color: var(--accent); }

.b13-mast__rules { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; }
.b13-mast__rules span { display: block; background: var(--ink); height: 1px; }
.b13-mast__rules span:first-child { height: 3px; }

.b13-nav { margin-top: 4px; }

.b13-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: 0.06em;
}

.b13-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.b13-nav__list a:hover,
.b13-nav__list a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

.b13-mast__hair { height: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }

/* ---------- 版面骨架：左日期欄 + 正文 ---------- */
.b13-main { padding: 26px 0 0; }

.b13-shell {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 40px);
    align-items: start;
}

.b13-rail {
    position: sticky;
    top: 16px;
    border-right: 1px solid var(--line);
    padding: 2px 14px 20px 0;
    font-family: var(--serif);
    color: var(--muted);
}

.b13-rail__issue {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.08em;
}

.b13-rail__date { margin: 0; font-size: 13px; letter-spacing: 0.1em; }
.b13-rail__wd { margin: 2px 0 0; font-size: 12px; letter-spacing: 0.2em; }
.b13-rail__rule { height: 0; border-top: 1px solid var(--line-soft); margin: 14px 0 12px; }
.b13-rail__note { margin: 0; font-size: 11.5px; line-height: 1.9; letter-spacing: 0.14em; }
.b13-rail__sig { margin: 12px 0 0; font-size: 11px; letter-spacing: 0.3em; color: var(--accent); }

.b13-body { min-width: 0; }

/* ---------- 頭版標題 ---------- */
.b13-lead {
    border-bottom: 3px double var(--line);
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.b13-lead__kick {
    margin: 0 0 10px;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    color: var(--accent);
}

.b13-title {
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    line-height: 1.08;
}

.b13-title__brand { font-size: clamp(34px, 5.6vw, 62px); letter-spacing: 0.06em; }

.b13-title__tag {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.b13-lead__deck {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 62ch;
}

.b13-lead__stat {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink);
}

/* ---------- 本期主打 ---------- */
.b13-feature {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 28px);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(14px, 2vw, 22px);
    margin-bottom: 8px;
}

.b13-feature__fig { display: block; }
.b13-feature__fig img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}

.b13-feature__kick {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.26em;
    color: var(--accent);
}

.b13-feature__t {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.3;
}

.b13-feature__t a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}
.b13-feature__t a:hover { text-decoration: underline; text-underline-offset: 4px; }

.b13-feature__meta {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 10px;
}

.b13-feature__syn {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 2;
    color: #333b41;
    column-count: 2;
    column-gap: 24px;
    column-rule: 1px solid var(--line-soft);
}

.b13-feature__badge {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.b13-feature__go { margin: 0; }

/* ---------- 欄目名／區塊 ---------- */
.b13-block { margin-top: clamp(32px, 5vw, 52px); }

.b13-sec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 3px double var(--line);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.b13-sec__t {
    margin: 0;
    font-size: clamp(17px, 2.2vw, 21px);
    letter-spacing: 0.1em;
}

.b13-sec__t::before {
    content: "◆";
    font-size: 10px;
    vertical-align: 2px;
    margin-right: 8px;
    color: var(--accent);
}

.b13-sec__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--muted);
}

.b13-sec__more:hover { color: var(--accent); }

/* ---------- 雙欄密排條目 ---------- */
.b13-flow {
    column-count: 2;
    column-gap: clamp(22px, 3vw, 38px);
    column-rule: 1px solid var(--line-soft);
}

.b13-item {
    break-inside: avoid;
    page-break-inside: avoid;
    border-top: 1px solid var(--line-soft);
    padding: 12px 0 14px;
}

.b13-item__link {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    text-decoration: none;
    align-items: start;
}

.b13-item__fig { display: block; }

.b13-item__img {
    display: block;
    width: 70px;
    height: 105px;
    object-fit: cover;
    border: 1px solid var(--line);
    filter: saturate(0.82) contrast(1.04);
}

.b13-item__body { display: block; min-width: 0; }

.b13-item__k {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: 3px;
}

.b13-item__t {
    display: block;
    font-family: var(--serif);
    font-size: 17.5px;
    line-height: 1.45;
    font-weight: 700;
    margin-bottom: 4px;
}

.b13-item__link:hover .b13-item__t { text-decoration: underline; text-underline-offset: 3px; }

.b13-item__x {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 6px;
}

.b13-item__m {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: #4d5760;
    font-variant-numeric: tabular-nums;
}

/* ---------- 本期提要 ---------- */
.b13-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 26px;
}

.b13-notes__i { border-top: 1px solid var(--line-soft); }

.b13-notes__i a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    min-height: 44px;
}

.b13-notes__t {
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.b13-notes__x {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--muted);
}

.b13-notes__m { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.08em; color: #4d5760; }

/* ---------- 目錄／排行（點線引導） ---------- */
.b13-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 46px);
    margin-top: clamp(32px, 5vw, 52px);
}

.b13-idx, .b13-rank { list-style: none; margin: 0; padding: 0; }

.b13-idx a, .b13-rank a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 44px;
    padding: 2px 0;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.b13-idx__t, .b13-rank__t { flex: 0 1 auto; }
.b13-idx__d { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.b13-idx__n, .b13-rank__no {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    color: var(--muted);
}

.b13-rank__no { min-width: 26px; color: var(--accent); letter-spacing: 0.06em; }
.b13-rank__t { flex: 1 1 auto; }
.b13-rank__b { flex: 0 0 auto; font-family: var(--sans); font-size: 11px; color: var(--muted); }

.b13-idx a:hover, .b13-rank a:hover { color: var(--accent); }

/* ---------- 劇集頁 ---------- */
.b13-article { max-width: none; }

.b13-dhead {
    border-bottom: 3px double var(--line);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.b13-dhead__kick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--accent);
}

.b13-dhead__g {
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.b13-dhead__g:hover { color: var(--ink); border-color: var(--accent); }

.b13-dhead__t {
    margin: 0 0 10px;
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.b13-dhead__byline {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.b13-dhead__sep { color: var(--line); }

.b13-dtop {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 28px);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.b13-dtop__fig { display: block; }

.b13-dtop__fig img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}

.b13-dtop__lead {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: 15.5px;
    line-height: 2;
    color: #333b41;
    column-count: 2;
    column-gap: 24px;
    column-rule: 1px solid var(--line-soft);
}

.b13-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.b13-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
}

.b13-btn:hover { background: var(--ink); color: var(--bg); }

.b13-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b13-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.b13-stage {
    margin-top: 26px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(12px, 2vw, 18px);
}

.b13-stage__t {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 8px;
}

.b13-stage__player { max-width: 440px; margin: 0 auto; }

.b13-stage__note {
    margin: 10px 0 0;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-align: center;
}

.b13-note {
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--accent-2);
    background: var(--surface);
    font-size: 13px;
    color: var(--muted);
}

/* 節目表式選集：編號小格 */
.b13-eps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.b13-ep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 46px;
    min-height: 44px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.b13-ep b { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.1; }
.b13-ep i { font-style: normal; font-size: 9.5px; color: var(--muted); letter-spacing: 0.02em; }

.b13-ep:hover { border-color: var(--accent); color: var(--accent); }

.b13-ep.is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.b13-ep.is-current i { color: rgba(255, 255, 255, 0.78); }

.b13-ep.is-off { opacity: 0.42; }

/* 分欄正文 */
.b13-prose--cols {
    column-count: 2;
    column-gap: clamp(22px, 3vw, 38px);
    column-rule: 1px solid var(--line-soft);
    max-width: none;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 2;
    color: #2c3339;
}

.b13-prose--cols p { margin: 0 0 1em; break-inside: avoid; }

/* 資料表 */
.b13-facts {
    display: block;
    margin: 12px 0 0;
    border-top: 1px solid var(--line);
    grid-template-columns: none;
}

.b13-facts__r {
    display: grid;
    grid-template-columns: 6.5em minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.b13-facts dt {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.b13-facts dd { margin: 0; font-size: 13.5px; line-height: 1.8; }

/* FAQ */
.b13-faq { margin-top: 10px; border-top: 1px solid var(--line); }

.b13-faq__i { border-bottom: 1px solid var(--line-soft); }

.b13-faq__q {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 0;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.b13-faq__q::-webkit-details-marker { display: none; }
.b13-faq__q::before { content: "問"; font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }

.b13-faq__a {
    margin: 0 0 12px;
    padding-left: 26px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
}

/* ---------- 分頁：報紙數字方塊 ---------- */
.b13-pagination { margin-top: 30px; }

.b13-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.b13-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}

.b13-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.b13-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- 空態 ---------- */
.b13-empty {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 34px 20px;
    text-align: center;
    margin-top: 20px;
}

.b13-empty__t { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.b13-empty__x { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 報尾 ---------- */
.b13-foot {
    margin-top: clamp(40px, 6vw, 64px);
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 24px 0 18px;
}

.b13-foot__rules { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.b13-foot__rules span { display: block; height: 1px; background: var(--ink); }
.b13-foot__rules span:first-child { height: 3px; }

.b13-foot__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 40px);
}

.b13-foot__brand {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.b13-foot__desc { margin: 0 0 8px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.b13-foot__stat { margin: 0; font-size: 11.5px; letter-spacing: 0.1em; color: var(--accent); }

.b13-foot__h {
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.b13-foot__list { list-style: none; margin: 0; padding: 0; }

.b13-foot__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--line-soft);
}

.b13-foot__list a:hover { color: var(--accent); }
.b13-foot__list em { font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.b13-foot__menu {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    font-size: 12.5px;
}

.b13-foot__menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.b13-foot__bar {
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.b13-foot__sep { color: var(--line); }

/* ---------- 搜尋面板／抽屜微調 ---------- */
.b13-search__box,
.b13-drawer {
    background: var(--bg);
    border: 1px solid var(--line);
}

.b13-search .b13-search__form input[type="search"] {
    border-radius: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.b13-drawer__list a {
    font-family: var(--serif);
    min-height: 46px;
    border-bottom: 1px solid var(--line-soft);
}

.b13-crumbs { margin-bottom: 14px; font-size: 12px; letter-spacing: 0.08em; }

/* ---------- 回應式 ---------- */
@media (max-width: 1024px) {
    .b13-shell { grid-template-columns: minmax(0, 1fr); }
    .b13-rail {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 10px;
        margin-bottom: 4px;
    }
    .b13-rail__rule, .b13-rail__note, .b13-rail__sig { display: none; }
    .b13-rail__issue, .b13-rail__date, .b13-rail__wd { margin: 0; }
    .b13-rail__wd::before { content: "·"; margin-right: 6px; color: var(--line); }
}

@media (max-width: 880px) {
    .b13-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b13-feature { grid-template-columns: 150px minmax(0, 1fr); }
    .b13-feature__syn, .b13-dtop__lead { column-count: 1; }
    .b13-prose--cols { column-count: 1; }
    .b13-dtop { grid-template-columns: 132px minmax(0, 1fr); }
    .b13-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .b13-flow { column-count: 1; }
    .b13-notes { grid-template-columns: minmax(0, 1fr); }
    .b13-duo { grid-template-columns: minmax(0, 1fr); }
    .b13-feature { grid-template-columns: minmax(0, 1fr); }
    .b13-feature__fig { max-width: 180px; }
    .b13-dtop { grid-template-columns: minmax(0, 1fr); }
    .b13-dtop__fig { max-width: 170px; }
    .b13-foot__grid { grid-template-columns: minmax(0, 1fr); }
    .b13-mast__row { grid-template-columns: 1fr auto; }
    .b13-brand { grid-column: 1; justify-self: start; }
    .b13-tools { grid-column: 2; }
    .b13-tool__tx { display: none; }
    .b13-tool { min-width: 44px; justify-content: center; }
    .b13-nav__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .b13-nav__list li { flex: 0 0 auto; }
    .b13-facts__r { grid-template-columns: 5.5em minmax(0, 1fr); }
}

/* ==== batch4 variant: sd-c14 newsprint #97cf2f/#83eb99 ==== */
:root{--accent:#97cf2f;--accent-2:#83eb99;--accent-soft:#97cf2f22;--radius:12px;--wrap:1180px;--font:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;--font-head:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
body{font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
h1,h2,h3,.site-title,.brand,.entry-title{font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
.wrap,.container,.site-inner{max-width:1180px}
