/*
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-b15
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--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; }

.b15-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; }

/* ---------- 搜尋表單 ---------- */
.b15-sf { display: flex; gap: 8px; align-items: stretch; }
.b15-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;
}
.b15-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.b15-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 綁定） ---------- */
.b15-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;
}
.b15-search.is-open { opacity: 1; visibility: visible; }
.b15-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);
}
.b15-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.b15-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b15-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;
}
.b15-tags a:hover { border-color: var(--accent); color: var(--accent); }

.b15-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.b15-overlay.is-open { opacity: 1; }
.b15-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;
}
.b15-drawer.is-open { transform: none; visibility: visible; }
.b15-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.b15-drawer__list { list-style: none; margin: 0; padding: 0; }
.b15-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.b15-drawer__list [aria-current="page"], .b15-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 上下堆疊 ---------- */
.b15-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.b15-dgrid__l, .b15-dgrid__r { min-width: 0; }
.b15-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b15-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b15-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.b15-pill { min-height: 44px; }
.b15-pill--accent { border-color: var(--accent); color: var(--accent); }
.b15-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.b15-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;
}
.b15-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b15-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.b15-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.b15-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.b15-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b15-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.b15-prose { max-width: 70ch; }
.b15-prose img { height: auto; }
.b15-faq details { border-bottom: 1px solid var(--line); }
.b15-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.b15-faq details p { color: var(--muted); }
.b15-empty, .b15-notfound { padding: 48px 0; }
.b15-notfound__search { max-width: 520px; margin: 22px 0; }
.b15-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b15-results { display: grid; gap: 0; }
.b15-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.b15-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.b15-result__body { display: grid; gap: 4px; min-width: 0; }
.b15-result__t { font-weight: 700; overflow-wrap: anywhere; }
.b15-result__m, .b15-result__x { font-size: 13px; color: var(--muted); }
.b15-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.b15-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.b15-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b15-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.b15-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b15-filter__list::-webkit-scrollbar { display: none; }
.b15-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 覆寫） ---------- */
.b15-block { margin-top: clamp(40px, 6vw, 72px); }
.b15-pagehead { padding: 26px 0 20px; }
.b15-pagehead h1 { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.b15-pagehead p { margin: 10px 0 0; color: var(--muted); }
.b15-dhead { padding: 8px 0 22px; }
.b15-dhead h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.b15-syn { font-size: 16px; line-height: 1.9; }
.b15-h2 { font-size: 20px; margin: 0 0 14px; }
.b15-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.b15-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.b15-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b15-fact dt { font-size: 12.5px; color: var(--muted); }
.b15-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.b15-fact--wide { grid-column: 1 / -1; }
.b15-article { max-width: 860px; }
.b15-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.b15-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.b15-notfound__desc { max-width: 34em; color: var(--muted); }
.b15-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.b15-result:hover .b15-result__t { color: var(--accent); }
.b15-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b15-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .b15-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .b15-dgrid__l .sd-player, .b15-dgrid__l .b15-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .b15-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; }
}


/* ==========================================================================
 * 「極簡黑白」配色與版面
 * 純黑白灰、極大留白、超大無襯線標題，卡片只有 1px 細線、無陰影。
 * ======================================================================== */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --paper: #fafafa;
    --ink: #0f0f0f;
    --muted: #6f6f6f;
    --line: #dcdcdc;
    --line-strong: #0f0f0f;
    --accent: #111111;
    --accent-2: #767676;
    --accent-soft: rgba(17, 17, 17, 0.06);
    --on-accent: #ffffff;
    --radius: 0px;
    --wrap: 1200px;
    --gut: 24px;
    --font: "Inter", "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --scrim: rgba(0, 0, 0, 0.38);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { letter-spacing: -0.02em; }

.b15-main { padding-bottom: 8px; }

/* ---------- 頁首 ---------- */
.b15-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.b15-head__in {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    min-height: 68px;
}

.b15-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}

.b15-brand img { max-height: 34px; width: auto; }

.b15-nav { margin-left: auto; min-width: 0; }

.b15-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.6vw, 22px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.b15-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap;
}

.b15-nav__list a:hover,
.b15-nav__list a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.b15-tools { display: flex; gap: 6px; flex: 0 0 auto; }

.b15-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.b15-tool:hover { border-color: var(--ink); }

/* ---------- 首頁主視覺 ---------- */
.b15-hero {
    padding-top: clamp(44px, 7vw, 96px);
    padding-bottom: clamp(40px, 6vw, 80px);
    border-bottom: 1px solid var(--line-strong);
}

.b15-hero__eyebrow {
    margin: 0 0 clamp(14px, 2vw, 26px);
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
}

.b15-hero__t {
    margin: 0 0 clamp(26px, 4vw, 56px);
    font-size: clamp(44px, 9vw, 108px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.b15-hero__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: clamp(22px, 4vw, 56px);
    align-items: start;
}

.b15-hero__tag {
    margin: 0 0 10px;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.b15-hero__deck {
    margin: 0;
    max-width: 46ch;
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--muted);
}

.b15-hero__form input[type="search"] {
    min-height: 48px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--bg);
    font-size: 14px;
}

.b15-hero__form button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--on-accent);
    font-size: 12.5px;
    letter-spacing: 0.1em;
}

.b15-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.b15-hero__stats b { font-size: 16px; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }

/* ---------- 區塊標題 ---------- */
.b15-block { margin-top: clamp(60px, 8.5vw, 124px); }
.b15-block--tight { margin-top: clamp(36px, 4.5vw, 56px); }

.b15-sec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-strong);
    margin-bottom: 0;
}

.b15-sec__t {
    margin: 0;
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.b15-sec__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap;
}

.b15-sec__more:hover { color: var(--ink); }

/* ---------- 細線列表 ---------- */
.b15-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 4vw, 56px);
}

.b15-item { border-bottom: 1px solid var(--line); }

.b15-item__link {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0 22px;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.b15-item__fig { display: block; }

.b15-item__img {
    display: block;
    width: 84px;
    height: 126px;
    object-fit: cover;
    border: 1px solid var(--line);
    filter: grayscale(1) contrast(1.02);
    transition: filter 0.3s ease;
}

.b15-item__link:hover .b15-item__img { filter: grayscale(0) contrast(1); }

.b15-item__body { min-width: 0; display: block; }

.b15-item__t {
    display: block;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.35;
    margin-bottom: 6px;
}

.b15-item__link:hover .b15-item__t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.b15-item__m { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }

.b15-item__b {
    display: block;
    margin-top: 8px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a8a8a;
}

/* ---------- 雙欄索引 ---------- */
.b15-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 4vw, 56px);
    margin-top: clamp(60px, 8.5vw, 124px);
}

.b15-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.b15-lines li { border-bottom: 1px solid var(--line); }

.b15-lines a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    text-decoration: none;
    color: inherit;
    font-size: 14.5px;
}

.b15-lines a:hover .b15-lines__t { text-decoration: underline; text-underline-offset: 5px; }

.b15-lines__t { flex: 1 1 auto; min-width: 0; }
.b15-lines__i { flex: 0 0 auto; font-size: 11.5px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.b15-lines__n { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- 劇集頁兩欄 ---------- */
.b15-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: start;
    margin-top: clamp(24px, 4vw, 48px);
}

.b15-detail__l { min-width: 0; }
.b15-detail__r { min-width: 0; }

.b15-detail__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    margin: 0 0 16px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.b15-detail__g {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 2px;
    border-bottom: 1px solid var(--line);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--ink);
    text-transform: none;
}

.b15-detail__g:hover { border-color: var(--ink); }

.b15-detail__t {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 84px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.b15-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.b15-detail__syn {
    margin: 0 0 22px;
    max-width: 52ch;
    font-size: 15.5px;
    line-height: 1.9;
    color: #262626;
}

.b15-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }

.b15-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
}

.b15-btn:hover { background: var(--ink); color: var(--on-accent); }

.b15-btn--fill { background: var(--ink); color: var(--on-accent); }
.b15-btn--fill:hover { background: var(--bg); color: var(--ink); }

.b15-facts {
    display: block;
    grid-template-columns: none;
    margin: clamp(28px, 4vw, 44px) 0 0;
    border-top: 1px solid var(--line-strong);
}

.b15-facts__r {
    display: grid;
    grid-template-columns: 7.2em minmax(0, 1fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.b15-facts dt { font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); }
.b15-facts dd { margin: 0; font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }

.b15-h2 {
    margin: 0 0 14px;
    font-size: clamp(17px, 2.1vw, 23px);
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.b15-h2 small { font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; }

.b15-prose { max-width: 60ch; font-size: 15px; line-height: 1.9; color: #262626; }
.b15-prose p { margin: 0 0 1em; }

.b15-faq details { border-bottom: 1px solid var(--line); }
.b15-faq details:first-of-type { border-top: 1px solid var(--line); }

.b15-faq summary {
    display: flex;
    align-items: center;
    min-height: 54px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.b15-faq summary::-webkit-details-marker { display: none; }
.b15-faq summary::after { content: "+"; margin-left: auto; color: #8a8a8a; font-weight: 400; }
.b15-faq details[open] summary::after { content: "−"; }
.b15-faq details p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

/* 右欄：播放器 + 選集 */
.b15-watch {
    border: 1px solid var(--line-strong);
    padding: clamp(12px, 1.6vw, 20px);
}

.b15-player { max-width: 100%; }

.b15-selects { margin-top: clamp(26px, 3.6vw, 40px); }

.b15-eps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.b15-eps li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.b15-ep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 4px 2px;
    text-decoration: none;
    color: inherit;
    font-variant-numeric: tabular-nums;
}

.b15-ep b { font-size: 14.5px; font-weight: 600; line-height: 1.1; }
.b15-ep i { font-style: normal; font-size: 9.5px; color: #8a8a8a; }

.b15-ep:hover { background: #f4f4f4; }

.b15-ep.is-current { background: var(--ink); color: var(--on-accent); }
.b15-ep.is-current i { color: rgba(255, 255, 255, 0.72); }
.b15-ep.is-off { opacity: 0.38; }

.b15-note {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

/* ---------- 分頁 ---------- */
.b15-pagination { margin-top: clamp(30px, 4.5vw, 52px); }
.b15-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0; }

.b15-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    margin-right: -1px;
    border: 1px solid var(--line);
    background: var(--bg);
    text-decoration: none;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.b15-pagination .page-numbers:hover { border-color: var(--ink); }

.b15-pagination .page-numbers.current {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-accent);
}

.b15-pagination .page-numbers.dots { border-color: transparent; }

/* ---------- 搜尋面板／抽屜 ---------- */
.b15-search__box,
.b15-drawer {
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 0;
}

.b15-search__hint { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

.b15-tags a,
.b15-search .b15-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 12.5px;
}

.b15-drawer__list { border-top: 1px solid var(--line); }
.b15-drawer__list a { min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; }

.b15-crumbs { margin: 18px 0 0; font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- 頁尾 ---------- */
.b15-foot {
    margin-top: clamp(60px, 9vw, 120px);
    border-top: 1px solid var(--line-strong);
    padding: clamp(30px, 4.6vw, 52px) 0 28px;
}

.b15-foot__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 4vw, 56px);
}

.b15-foot__brand {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.b15-foot__desc { margin: 0 0 10px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.b15-foot__stat { margin: 0; font-size: 11px; letter-spacing: 0.16em; color: #8a8a8a; text-transform: uppercase; }

.b15-foot__h {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.b15-foot__list { list-style: none; margin: 0; padding: 0; }

.b15-foot__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-size: 13px;
}

.b15-foot__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.b15-foot__list em { font-style: normal; font-size: 11.5px; color: #8a8a8a; font-variant-numeric: tabular-nums; }

.b15-foot__menu { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 12px; }
.b15-foot__menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.b15-foot__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: clamp(22px, 4vw, 40px) 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: #8a8a8a;
}

/* ---------- 回應式 ---------- */
@media (max-width: 980px) {
    .b15-detail { grid-template-columns: minmax(0, 1fr); }
    .b15-detail__r { order: -1; }
    .b15-hero__foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .b15-nav { display: none; }
    .b15-tools { margin-left: auto; }
    .b15-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .b15-list { grid-template-columns: minmax(0, 1fr); }
    .b15-duo { grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 8vw, 60px); }
    .b15-foot__grid { grid-template-columns: minmax(0, 1fr); }
    .b15-hero__t { font-size: clamp(40px, 13vw, 64px); }
    .b15-item__link { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
    .b15-item__img { width: 76px; height: 114px; }
    .b15-facts__r { grid-template-columns: 5.4em minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .b15-item__img { transition: none; }
}

/* ==== batch5 variant: sd-d13 minimal-line #1287b9/#f46b5c ==== */
:root{--accent:#1287b9;--accent-2:#f46b5c;--accent-soft:#1287b922;--radius:0;--wrap:1080px;--font:"Noto Serif TC","Songti TC","PingFang TC",serif;--font-head:"Noto Serif TC","Songti TC","PingFang TC",serif}
body{font-family:"Noto Serif TC","Songti TC","PingFang TC",serif}
h1,h2,h3,.site-title,.brand,.entry-title{font-family:"Noto Serif TC","Songti TC","PingFang TC",serif}
.wrap,.container,.site-inner{max-width:1080px}
