/*
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-b1
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--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; }

.b1-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; }

/* ---------- 搜尋表單 ---------- */
.b1-sf { display: flex; gap: 8px; align-items: stretch; }
.b1-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;
}
.b1-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.b1-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 綁定） ---------- */
.b1-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;
}
.b1-search.is-open { opacity: 1; visibility: visible; }
.b1-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);
}
.b1-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.b1-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b1-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;
}
.b1-tags a:hover { border-color: var(--accent); color: var(--accent); }

.b1-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.b1-overlay.is-open { opacity: 1; }
.b1-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;
}
.b1-drawer.is-open { transform: none; visibility: visible; }
.b1-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.b1-drawer__list { list-style: none; margin: 0; padding: 0; }
.b1-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.b1-drawer__list [aria-current="page"], .b1-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 上下堆疊 ---------- */
.b1-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.b1-dgrid__l, .b1-dgrid__r { min-width: 0; }
.b1-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b1-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b1-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.b1-pill { min-height: 44px; }
.b1-pill--accent { border-color: var(--accent); color: var(--accent); }
.b1-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.b1-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;
}
.b1-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b1-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.b1-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.b1-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.b1-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b1-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.b1-prose { max-width: 70ch; }
.b1-prose img { height: auto; }
.b1-faq details { border-bottom: 1px solid var(--line); }
.b1-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.b1-faq details p { color: var(--muted); }
.b1-empty, .b1-notfound { padding: 48px 0; }
.b1-notfound__search { max-width: 520px; margin: 22px 0; }
.b1-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b1-results { display: grid; gap: 0; }
.b1-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.b1-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.b1-result__body { display: grid; gap: 4px; min-width: 0; }
.b1-result__t { font-weight: 700; overflow-wrap: anywhere; }
.b1-result__m, .b1-result__x { font-size: 13px; color: var(--muted); }
.b1-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.b1-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.b1-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b1-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.b1-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b1-filter__list::-webkit-scrollbar { display: none; }
.b1-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 覆寫） ---------- */
.b1-block { margin-top: clamp(40px, 6vw, 72px); }
.b1-pagehead { padding: 26px 0 20px; }
.b1-pagehead h1 { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.b1-pagehead p { margin: 10px 0 0; color: var(--muted); }
.b1-dhead { padding: 8px 0 22px; }
.b1-dhead h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.b1-syn { font-size: 16px; line-height: 1.9; }
.b1-h2 { font-size: 20px; margin: 0 0 14px; }
.b1-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.b1-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.b1-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b1-fact dt { font-size: 12.5px; color: var(--muted); }
.b1-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.b1-fact--wide { grid-column: 1 / -1; }
.b1-article { max-width: 860px; }
.b1-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.b1-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.b1-notfound__desc { max-width: 34em; color: var(--muted); }
.b1-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.b1-result:hover .b1-result__t { color: var(--accent); }
.b1-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b1-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .b1-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .b1-dgrid__l .sd-player, .b1-dgrid__l .b1-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .b1-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; }
}

/* ==========================================================================
   sd-b1 深海紀錄：深藍黑底 / 青色強調 / 滿版編輯式開場 / 章節卡 / 竖向時間軸分集
   ========================================================================== */

:root {
  --bg: #05121c;
  --surface: #0b1f2d;
  --surface-2: #0f2a3b;
  --ink: #e6f3f7;
  --muted: #8aa7b4;
  --line: rgba(110, 200, 220, .2);
  --accent: #19c6d8;
  --accent-2: #6ee7f0;
  --accent-soft: rgba(25, 198, 216, .14);
  --on-accent: #03141c;
  --radius: 4px;
  --wrap: 1240px;
  --gut: 24px;
  --scrim: rgba(2, 8, 14, .72);
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: var(--sans);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

body {
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(25, 198, 216, .16), transparent 62%),
    radial-gradient(900px 600px at -10% 40%, rgba(20, 90, 140, .22), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3 { font-weight: 800; letter-spacing: .01em; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- 頁首 ---------- */
.b1-head { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.b1-head.is-stuck { background: rgba(5, 18, 28, .86); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.b1-head__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.b1-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 20px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.b1-brand:hover { color: var(--accent-2); }
.b1-brand__ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), inset 0 0 0 5px var(--bg), inset 0 0 0 7px var(--accent); }
.b1-brand__img { max-height: 40px; width: auto; }
.b1-nav { flex: 1 1 auto; min-width: 0; }
.b1-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.b1-nav__list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.b1-nav__list a:hover { color: var(--ink); }
.b1-nav__list [aria-current="page"], .b1-nav__list .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }
.b1-tools { display: flex; gap: 2px; margin-left: auto; }
.b1-tool { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); border-radius: 50%; }
.b1-tool:hover { background: var(--accent-soft); color: var(--accent); }
.b1-tool--menu { display: none; }

/* ---------- 開場大圖 ---------- */
.b1-hero { position: relative; overflow: hidden; margin-top: -68px; padding: 68px 0 0; min-height: min(88vh, 780px); display: flex; align-items: center; }
.b1-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; display: block; }
.b1-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.85) contrast(1.05); }
.b1-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 2%, rgba(5, 18, 28, .55) 40%, rgba(5, 18, 28, .1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.b1-hero__body { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 72px; }
.b1-kicker { margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.b1-kicker::before { content: ""; display: inline-block; width: 36px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent); }
.b1-hero h1 { display: grid; gap: 14px; max-width: 14em; }
.b1-h1__brand { font-size: clamp(42px, 7.4vw, 96px); line-height: 1.04; font-weight: 900; letter-spacing: .02em; }
.b1-h1__tag { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.5; font-weight: 500; color: var(--muted); }
.b1-lead { max-width: 30em; margin-top: 40px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.b1-lead__k { margin: 0 0 8px; font: 600 12px var(--mono); letter-spacing: .22em; color: var(--accent); }
.b1-lead__t { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 10px; }
.b1-lead__t a { display: inline-flex; align-items: center; min-height: 44px; }
.b1-lead__syn { color: var(--muted); font-size: 15px; line-height: 1.85; }
.b1-lead__act { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

/* ---------- 區塊標題 / 按鈕 / 標籤 ---------- */
.b1-sec { margin: 0 0 22px; padding-top: 14px; border-top: 1px solid var(--line); position: relative; }
.b1-sec::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--accent); }
.b1-sec h2 { font-size: clamp(22px, 2.6vw, 30px); }
.b1-btn { background: transparent; border-color: var(--line); color: var(--ink); }
.b1-btn:hover { border-color: var(--accent); color: var(--accent); }
.b1-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b1-btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.b1-pill { background: rgba(255, 255, 255, .03); color: var(--muted); }
a.b1-pill:hover { border-color: var(--accent); color: var(--accent); }
.b1-pill--accent { color: var(--accent); }

/* ---------- 章節卡 ---------- */
.b1-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 18px; }
.b1-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.b1-card { display: grid; gap: 12px; min-width: 0; }
.b1-card__fig { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.b1-card__fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.9); }
.b1-card:hover .b1-card__fig img { transform: scale(1.05); filter: saturate(1.1); }
.b1-card__badge { position: absolute; left: 0; bottom: 0; padding: 4px 10px; font: 600 12px var(--mono); letter-spacing: .06em; background: var(--accent); color: var(--on-accent); }
.b1-card__cap { display: grid; gap: 3px; min-width: 0; }
.b1-card__ch { font: 600 11.5px var(--mono); letter-spacing: .2em; color: var(--accent); }
.b1-card__t { font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b1-card:hover .b1-card__t { color: var(--accent-2); }
.b1-card__m { font-size: 12.5px; color: var(--muted); }
.b1-card--wide .b1-card__fig img { aspect-ratio: 16 / 10; object-position: center 25%; }
.b1-card--wide .b1-card__t { font-size: 19px; }

/* ---------- 主題航道 / 排行 ---------- */
.b1-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
.b1-depth { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.b1-depth a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid var(--line); }
.b1-depth a:hover { color: var(--accent); border-color: var(--accent); }
.b1-depth__n { font: 600 12px var(--mono); color: var(--accent); }
.b1-depth__t { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b1-depth em { font: normal 12.5px var(--mono); color: var(--muted); }
.b1-rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.b1-rank a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; border-bottom: 1px solid var(--line); }
.b1-rank a:hover .b1-rank__t { color: var(--accent); }
.b1-rank__no { font: 800 26px/1 var(--mono); color: transparent; -webkit-text-stroke: 1px var(--accent); }
.b1-rank li:nth-child(-n+3) .b1-rank__no { color: var(--accent); -webkit-text-stroke: 0; }
.b1-rank__t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b1-rank__m { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 列表頁 ---------- */
.b1-pagehead { padding: 36px 0 22px; }
.b1-pagehead h1 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; }
.b1-filter { padding: 6px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.b1-filter__label { min-width: 2.6em; font: 600 12px var(--mono); letter-spacing: .12em; color: var(--accent); }
.b1-filter__list a { border-radius: 999px; color: var(--muted); font-size: 14px; }
.b1-filter__list a:hover { color: var(--ink); }
.b1-filter__list a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.sd-pagination .page-numbers { background: transparent; border-color: var(--line); border-radius: var(--radius); }
.sd-pagination a.page-numbers:hover { background: var(--accent-soft); }
.sd-crumbs { padding-top: 18px; }

/* ---------- 詳情 / 分集 ---------- */
.b1-dhead { padding: 18px 0 26px; }
.b1-dhead h1 { font-size: clamp(30px, 4.8vw, 58px); font-weight: 900; line-height: 1.15; }
.b1-dhero { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.b1-dhero__m, .b1-dhero__t { min-width: 0; }
.b1-player, .b1-dposter { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 6px var(--accent-soft); }
.b1-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b1-syn { font-size: 17px; line-height: 2; color: #cfe3ea; max-width: 40em; }
.b1-note { border-color: var(--line); }
.b1-dbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; margin-top: 64px; align-items: start; }
.b1-dside { position: sticky; top: 92px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.b1-dside .b1-facts { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.b1-tlsec .b1-h2, .b1-eps-sec .b1-h2 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* 竖向時間軸分集 */
.b1-tl { list-style: none; margin: 8px 0 0; padding: 0 0 0 6px; position: relative; }
.b1-tl::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--line) 30%, var(--line)); }
.b1-tl__i { position: relative; }
.b1-tl__i a, .b1-tl__i .is-off { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px 0 0; border-radius: var(--radius); }
.b1-tl__i a:hover { background: var(--accent-soft); }
.b1-tl__node { position: relative; z-index: 1; width: 12px; height: 12px; margin-left: 0; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.b1-tl__i a:hover .b1-tl__node { background: var(--accent); }
.b1-tl__no { font: 700 13px var(--mono); color: var(--accent); }
.b1-tl__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b1-tl__d { font: 12.5px var(--mono); color: var(--muted); }
.b1-tl__i .is-current { background: var(--accent-soft); outline: 1px solid var(--accent); }
.b1-tl__i .is-current .b1-tl__node { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.b1-tl__i .is-off { opacity: .45; }
.b1-dgrid--watch .b1-tl { max-height: 640px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.b1-pn a { border-color: var(--line); background: transparent; border-radius: var(--radius); }
.b1-pn a:hover { border-color: var(--accent); }
.b1-pn a.is-next { background: var(--accent); color: var(--on-accent); }
.b1-faq summary::marker { color: var(--accent); }
.b1-faq details p { padding-bottom: 6px; }
.b1-prose { color: #cfe3ea; line-height: 1.95; }
.b1-prose a { color: var(--accent); text-decoration: underline; }

/* ---------- 搜尋 / 面板 ---------- */
.b1-sf input[type="search"] { background: var(--bg); border-color: var(--line); }
.b1-search__box { background: var(--surface); border-color: var(--line); }
.b1-tags a { color: var(--muted); }
.b1-drawer { background: var(--surface); }
.b1-result { border-color: var(--line); }
.b1-result__img { border-radius: var(--radius); }

/* ---------- 頁尾 ---------- */
.b1-foot { margin-top: 96px; padding: 30px 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(3, 12, 20, .9)); }
.b1-foot__scale { display: flex; justify-content: space-between; margin-bottom: 36px; padding-bottom: 8px; font: 11px var(--mono); letter-spacing: .2em; color: var(--muted); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px) bottom / 100% 8px no-repeat; }
.b1-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.b1-foot h2 { margin-bottom: 12px; font: 600 12px var(--mono); letter-spacing: .24em; color: var(--accent); }
.b1-foot ul { list-style: none; margin: 0; padding: 0; }
.b1-foot li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.b1-foot li a:hover { color: var(--accent-2); }
.b1-foot__name { font-size: 22px; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.b1-foot__grid p { color: var(--muted); font-size: 14px; max-width: 32em; }
.b1-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.b1-foot__bar span { min-width: 0; }

/* ---------- 響應式 ---------- */
@media (max-width: 1100px) {
  .b1-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b1-dbody { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}
@media (max-width: 960px) {
  .b1-nav { display: none; }
  .b1-tool--menu { display: grid; }
  .b1-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b1-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b1-duo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .b1-hero { min-height: 0; display: block; padding-top: 0; }
  .b1-hero__media { position: relative; width: 100%; height: 56vw; max-height: 460px; }
  .b1-hero__media::after { background: linear-gradient(0deg, var(--bg) 4%, rgba(5, 18, 28, .25) 60%, rgba(5, 18, 28, .5)); }
  .b1-hero__body { margin-top: -80px; padding-bottom: 36px; }
  .b1-dhero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .b1-dhero__m .b1-player, .b1-dhero__m .b1-dposter { max-width: 400px; margin-inline: auto; }
  .b1-dbody { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
  .b1-dside { position: static; order: -1; }
  .b1-foot__grid { grid-template-columns: 1fr 1fr; }
  .b1-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .b1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .b1-grid--wide { grid-template-columns: minmax(0, 1fr); }
  .b1-depth { grid-template-columns: minmax(0, 1fr); }
  .b1-hero__media { height: 72vw; }
  .b1-hero__body { margin-top: -56px; }
  .b1-head__in { gap: 12px; min-height: 60px; }
  .b1-hero { margin-top: -60px; }
  .b1-tl__i a, .b1-tl__i .is-off { grid-template-columns: 24px 36px minmax(0, 1fr) auto; gap: 8px; }
  .b1-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .b1-foot__scale span:nth-child(n+3) { display: none; }
}

/* ==== batch5 variant: sd-d28 editorial-dark #cc2614/#6ff5e8 ==== */
:root{--accent:#cc2614;--accent-2:#6ff5e8;--accent-soft:#cc261422;--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}
