/*
Theme Name: sd-b7 墨黑鎏金
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-b7
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--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; }

.b7-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; }

/* ---------- 搜尋表單 ---------- */
.b7-sf { display: flex; gap: 8px; align-items: stretch; }
.b7-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;
}
.b7-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.b7-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 綁定） ---------- */
.b7-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;
}
.b7-search.is-open { opacity: 1; visibility: visible; }
.b7-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);
}
.b7-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.b7-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b7-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;
}
.b7-tags a:hover { border-color: var(--accent); color: var(--accent); }

.b7-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.b7-overlay.is-open { opacity: 1; }
.b7-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;
}
.b7-drawer.is-open { transform: none; visibility: visible; }
.b7-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.b7-drawer__list { list-style: none; margin: 0; padding: 0; }
.b7-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.b7-drawer__list [aria-current="page"], .b7-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 上下堆疊 ---------- */
.b7-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.b7-dgrid__l, .b7-dgrid__r { min-width: 0; }
.b7-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b7-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b7-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.b7-pill { min-height: 44px; }
.b7-pill--accent { border-color: var(--accent); color: var(--accent); }
.b7-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.b7-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;
}
.b7-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b7-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.b7-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.b7-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.b7-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b7-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.b7-prose { max-width: 70ch; }
.b7-prose img { height: auto; }
.b7-faq details { border-bottom: 1px solid var(--line); }
.b7-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.b7-faq details p { color: var(--muted); }
.b7-empty, .b7-notfound { padding: 48px 0; }
.b7-notfound__search { max-width: 520px; margin: 22px 0; }
.b7-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b7-results { display: grid; gap: 0; }
.b7-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.b7-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.b7-result__body { display: grid; gap: 4px; min-width: 0; }
.b7-result__t { font-weight: 700; overflow-wrap: anywhere; }
.b7-result__m, .b7-result__x { font-size: 13px; color: var(--muted); }
.b7-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.b7-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.b7-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b7-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.b7-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b7-filter__list::-webkit-scrollbar { display: none; }
.b7-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 覆寫） ---------- */
.b7-block { margin-top: clamp(40px, 6vw, 72px); }
.b7-pagehead { padding: 26px 0 20px; }
.b7-pagehead h1 { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.b7-pagehead p { margin: 10px 0 0; color: var(--muted); }
.b7-dhead { padding: 8px 0 22px; }
.b7-dhead h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.b7-syn { font-size: 16px; line-height: 1.9; }
.b7-h2 { font-size: 20px; margin: 0 0 14px; }
.b7-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.b7-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.b7-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b7-fact dt { font-size: 12.5px; color: var(--muted); }
.b7-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.b7-fact--wide { grid-column: 1 / -1; }
.b7-article { max-width: 860px; }
.b7-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.b7-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.b7-notfound__desc { max-width: 34em; color: var(--muted); }
.b7-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.b7-result:hover .b7-result__t { color: var(--accent); }
.b7-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b7-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .b7-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .b7-dgrid__l .sd-player, .b7-dgrid__l .b7-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .b7-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-b7 墨黑鎏金：近黑底 / 金色細線分隔 / 衬線大標題 / 置中刊名 / 畫框精選 / 館藏式編號目錄
   ========================================================================== */

:root {
  --bg: #0d0c0a;
  --surface: #16130e;
  --ink: #efe6d0;
  --muted: #9b9078;
  --line: rgba(201, 162, 75, .32);
  --accent: #c9a24b;
  --accent-2: #e6c878;
  --accent-soft: rgba(201, 162, 75, .13);
  --on-accent: #14110b;
  --radius: 0px;
  --wrap: 1180px;
  --gut: 28px;
  --scrim: rgba(5, 4, 3, .8);
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "MingLiU", "Times New Roman", serif;
  --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(900px 480px at 50% -8%, rgba(201, 162, 75, .12), transparent 70%), var(--bg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .06em; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--on-accent); }
.b7-main { overflow-x: clip; }

/* ---------- 頁首 ---------- */
.b7-head { position: relative; z-index: 100; padding-top: 16px; }
.b7-head__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 84px; }
.b7-est { font: 12px var(--mono); letter-spacing: .3em; color: var(--muted); }
.b7-head__side--r { display: flex; justify-content: flex-end; gap: 4px; }
.b7-brand { display: block; text-align: center; padding: 8px 0; font: 700 clamp(30px, 5vw, 54px)/1.15 var(--serif); letter-spacing: .3em; text-indent: .3em; color: var(--accent-2); }
.b7-brand:hover { color: #fff; }
.b7-brand__img { max-height: 56px; width: auto; margin: 0 auto; }
.b7-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: 600 13px var(--serif); letter-spacing: .2em; }
.b7-tool:hover { color: var(--accent-2); }
.b7-tool--menu { display: none; justify-content: center; }
.b7-rule { height: 4px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.b7-rule--thin { height: 0; border-bottom: 0; opacity: .6; }
.b7-nav { padding: 4px 0; }
.b7-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.b7-nav__list li + li::before { content: "◆"; align-self: center; font-size: 7px; color: var(--accent); opacity: .7; }
.b7-nav__list a { display: flex; align-items: center; min-height: 48px; padding: 0 22px; font: 600 14px var(--serif); letter-spacing: .24em; color: var(--ink); }
.b7-nav__list a:hover { color: var(--accent-2); }
.b7-nav__list [aria-current="page"], .b7-nav__list .current-menu-item > a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }

/* ---------- 區塊標題 / 按鈕 ---------- */
.b7-sec { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 32px; }
.b7-sec::before, .b7-sec::after { content: ""; flex: 1 1 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.b7-sec::after { background: linear-gradient(270deg, transparent, var(--accent)); }
.b7-sec h2 { order: 0; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: .3em; text-indent: .3em; color: var(--ink); white-space: nowrap; }
.b7-sec__orn { color: var(--accent); font-size: 10px; }
.b7-sec > :nth-child(1) { order: -1; }
.b7-sec > .b7-sec__orn:nth-child(1) { margin-left: 0; }
.b7-sec__more { position: absolute; right: 0; bottom: -42px; font: 600 13px var(--serif); letter-spacing: .14em; }
.b7-block { margin-top: clamp(56px, 7vw, 96px); }
.b7-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); font: 700 15px var(--serif); letter-spacing: .18em; }
.b7-btn:hover { background: var(--accent-soft); color: var(--accent-2); }
.b7-btn--primary { background: var(--accent); color: var(--on-accent); }
.b7-btn--primary:hover { background: var(--accent-2); color: var(--on-accent); }
.b7-pill { background: transparent; border-color: var(--line); color: var(--muted); border-radius: 0; font-family: var(--serif); letter-spacing: .08em; }
a.b7-pill:hover { border-color: var(--accent); color: var(--accent-2); }
.b7-pill--accent { border-color: var(--accent); color: var(--accent); }
.b7-kicker { margin: 0 0 14px; font: 600 12px var(--serif); letter-spacing: .5em; text-indent: .5em; color: var(--accent); }

/* ---------- 首頁刊名 ---------- */
.b7-title { padding: 64px 0 56px; text-align: center; }
.b7-title h1 { display: grid; justify-items: center; gap: 14px; }
.b7-h1__brand { font-size: clamp(42px, 8vw, 104px); line-height: 1.05; letter-spacing: .24em; text-indent: .24em; color: var(--accent-2); text-shadow: 0 0 40px rgba(201, 162, 75, .25); }
.b7-h1__orn { display: flex; align-items: center; gap: 14px; width: min(360px, 70%); color: var(--accent); }
.b7-h1__orn i { flex: 1; height: 1px; background: var(--accent); }
.b7-h1__orn b { font-size: 10px; }
.b7-h1__tag { font: 400 clamp(16px, 2vw, 22px)/1.6 var(--serif); letter-spacing: .3em; text-indent: .3em; color: var(--ink); }
.b7-title__p { max-width: 34em; margin: 26px auto 0; font: 400 16px/2 var(--serif); color: var(--muted); }
.b7-title__p b { color: var(--accent); font-size: 1.2em; }

/* ---------- 精選畫框 ---------- */
.b7-plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.b7-plate { display: grid; gap: 18px; min-width: 0; }
.b7-plate__frame { display: block; padding: 8px; border: 1px solid var(--accent); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line), 0 24px 40px -24px rgba(0, 0, 0, .9); }
.b7-plate__mat { display: block; padding: 14px; background: #1c1812; }
.b7-plate__mat img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: saturate(.92) contrast(1.04); transition: filter .4s; }
.b7-plate:hover .b7-plate__mat img { filter: saturate(1.1); }
.b7-plate__cap { display: grid; gap: 6px; text-align: center; }
.b7-plate__no { font: 600 11.5px var(--serif); letter-spacing: .3em; color: var(--accent); }
.b7-plate__t { font: 700 clamp(18px, 2vw, 24px)/1.35 var(--serif); letter-spacing: .1em; overflow-wrap: anywhere; }
.b7-plate:hover .b7-plate__t { color: var(--accent-2); }
.b7-plate__m { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }

/* ---------- 館藏目錄（編號列表） ---------- */
.b7-catalog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--accent); }
.b7-catalog li { border-bottom: 1px solid var(--line); }
.b7-entry { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(120px, 190px) 76px; align-items: center; gap: 28px; padding: 18px 8px; transition: background .2s; }
.b7-entry:hover { background: var(--accent-soft); color: inherit; }
.b7-entry__no { font: 700 34px/1 var(--serif); letter-spacing: .04em; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.b7-entry__no small { display: block; margin-bottom: 4px; font: 600 11px var(--serif); letter-spacing: .3em; color: var(--muted); }
.b7-entry__main { display: grid; gap: 6px; min-width: 0; }
.b7-entry__t { font: 700 clamp(18px, 2.2vw, 26px)/1.35 var(--serif); letter-spacing: .08em; overflow-wrap: anywhere; }
.b7-entry:hover .b7-entry__t { color: var(--accent-2); }
.b7-entry__m { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.b7-entry__info { display: grid; gap: 4px; justify-items: end; font: 600 12.5px var(--serif); letter-spacing: .1em; color: var(--ink); }
.b7-entry__info span:first-child { color: var(--accent); }
.b7-entry__plate { display: block; padding: 3px; border: 1px solid var(--accent); }
.b7-entry__plate img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* ---------- 部門索引 / 館藏熱度 ---------- */
.b7-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.b7-duo .b7-sec { margin-bottom: 20px; }
.b7-index, .b7-rank { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--accent); }
.b7-index a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.b7-index__n { font: 600 13px var(--serif); letter-spacing: .12em; color: var(--accent); }
.b7-index__t { font: 600 17px var(--serif); letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b7-index em { font: normal 12.5px var(--serif); color: var(--muted); }
.b7-index a:hover .b7-index__t, .b7-rank a:hover .b7-rank__t { color: var(--accent-2); }
.b7-rank a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.b7-rank__no { font: 700 26px var(--serif); color: var(--accent); }
.b7-rank__t { font: 600 16px var(--serif); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b7-rank__m { font: 12px var(--serif); color: var(--muted); white-space: nowrap; }

/* ---------- 列表頁 ---------- */
.b7-pagehead { padding: 40px 0 28px; text-align: center; }
.b7-pagehead h1 { font-size: clamp(30px, 5vw, 56px); letter-spacing: .24em; text-indent: .24em; color: var(--accent-2); }
.b7-pagehead h1::after { content: ""; display: block; width: 120px; height: 1px; margin: 18px auto 0; background: var(--accent); box-shadow: 0 4px 0 -0px transparent; }
.b7-pagehead p { color: var(--muted); letter-spacing: .12em; }
.b7-filter { padding: 8px 0; margin-bottom: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b7-filter__label { min-width: 2.8em; font: 700 13px var(--serif); letter-spacing: .24em; color: var(--accent); }
.b7-filter__list a { font: 500 14px var(--serif); letter-spacing: .12em; color: var(--muted); }
.b7-filter__list a:hover { color: var(--accent-2); }
.b7-filter__list a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
.sd-pagination .page-numbers { background: transparent; border-color: var(--line); color: var(--muted); border-radius: 0; font-family: var(--serif); }
.sd-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-2); }
.sd-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .page-numbers.dots { background: none; border-color: transparent; }
.sd-crumbs { padding-top: 22px; letter-spacing: .06em; }

/* ---------- 詳情 / 分集 ---------- */
.b7-dhead { padding: 28px 0 26px; text-align: center; }
.b7-dhead h1 { font-size: clamp(30px, 5vw, 58px); line-height: 1.2; letter-spacing: .14em; text-indent: .14em; color: var(--accent-2); }
.b7-dhead .b7-meta { justify-content: center; }
.b7-stage { display: grid; justify-items: center; gap: 14px; }
.b7-stage .b7-player, .b7-stage .b7-dposter { width: min(400px, 100%); }
.b7-player, .b7-dposter { padding: 10px; border: 1px solid var(--accent); background: #1c1812; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line), 0 30px 50px -26px #000; }
.b7-player video, .b7-player .sd-embed { background: #000; }
.b7-stage__cap { margin: 8px 0 0; font: 12.5px var(--serif); letter-spacing: .3em; color: var(--muted); }
.b7-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.b7-syn { font: 400 17px/2.1 var(--serif); letter-spacing: .04em; }
.b7-syn::first-letter { float: left; margin: 6px 12px 0 0; font: 700 56px/1 var(--serif); color: var(--accent); }
.b7-note { border-color: var(--line); color: var(--muted); }
.b7-card { padding: 22px 26px; border: 1px solid var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line); }
.b7-card__h { margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: .5em; text-indent: .5em; text-align: center; color: var(--accent); }
.b7-card .b7-facts { grid-template-columns: 1fr; }
.b7-card .b7-fact { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.b7-card .b7-fact:last-child { border-bottom: 0; }
.b7-card .b7-fact dt { font-family: var(--serif); letter-spacing: .14em; }
.b7-card .b7-fact dd { text-align: right; font-family: var(--serif); }
.b7-eps-sec .b7-sec { margin-bottom: 28px; }
.b7-eps { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; }
.b7-dgrid__r .b7-eps { max-height: 440px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.b7-eps a, .b7-eps .is-off { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 64px; border: 1px solid var(--line); background: var(--surface); }
.b7-eps b { font: 700 22px/1 var(--serif); color: var(--accent); letter-spacing: .04em; }
.b7-eps small { font: 11.5px var(--serif); color: var(--muted); letter-spacing: .1em; }
.b7-eps a:hover { border-color: var(--accent); background: var(--accent-soft); }
.b7-eps .is-current { background: var(--accent); border-color: var(--accent); }
.b7-eps .is-current b, .b7-eps .is-current small { color: var(--on-accent); }
.b7-eps .is-off { opacity: .4; }
.b7-eps-sec .b7-h2, .b7-dgrid .b7-h2 { padding-bottom: 8px; border-bottom: 1px solid var(--accent); font-size: 18px; letter-spacing: .3em; color: var(--accent); }
.b7-dgrid { gap: 40px; }
.b7-dgrid__r { padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); }
.b7-pn a { background: transparent; border-color: var(--accent); color: var(--accent); font-family: var(--serif); letter-spacing: .2em; border-radius: 0; }
.b7-pn a.is-next { background: var(--accent); color: var(--on-accent); }
.b7-faq details { border-bottom: 1px solid var(--line); }
.b7-faq summary { font: 600 16px var(--serif); letter-spacing: .06em; }
.b7-faq summary::marker { color: var(--accent); }
.b7-prose { color: #d9cfb6; line-height: 2; font-family: var(--serif); }
.b7-result { border-bottom: 1px solid var(--line); }
.b7-result__img { border: 1px solid var(--accent); padding: 2px; }
.b7-result__t { font-family: var(--serif); letter-spacing: .06em; }
.b7-sf input[type="search"] { background: var(--bg); border-color: var(--accent); }
.b7-sf button { font-family: var(--serif); letter-spacing: .2em; }
.b7-search__box, .b7-drawer { background: var(--surface); border-color: var(--accent); }
.b7-tags a { border-radius: 0; border-color: var(--line); color: var(--muted); font-family: var(--serif); }
.b7-tags a:hover { border-color: var(--accent); color: var(--accent-2); }
.b7-empty, .b7-notfound { text-align: center; }
.b7-notfound__search { margin-inline: auto; }
.b7-notfound__actions { justify-content: center; }
.b7-notfound__code { font-family: var(--serif); color: var(--accent); }

/* ---------- 頁尾 ---------- */
.b7-foot { margin-top: 110px; padding-top: 48px; border-top: 4px double var(--accent); background: #090806; }
.b7-foot__seal { text-align: center; }
.b7-foot__orn { color: var(--accent); letter-spacing: .6em; font-size: 10px; }
.b7-foot__name { margin: 14px 0 6px; font: 700 clamp(24px, 3vw, 34px) var(--serif); letter-spacing: .3em; text-indent: .3em; color: var(--accent-2); }
.b7-foot__desc { max-width: 34em; margin: 0 auto; color: var(--muted); font: 400 14px/1.9 var(--serif); }
.b7-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.b7-foot h2 { margin-bottom: 8px; font: 700 14px var(--serif); letter-spacing: .4em; color: var(--accent); }
.b7-foot ul { list-style: none; margin: 0; padding: 0; }
.b7-foot li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); letter-spacing: .08em; }
.b7-foot li a:hover { color: var(--accent-2); }
.b7-foot__tags { display: flex; flex-wrap: wrap; gap: 0 22px; }
.b7-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 30px 0 0; padding: 18px 0 30px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- 響應式 ---------- */
@media (max-width: 1000px) {
  .b7-entry { grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 18px; }
  .b7-entry__info { display: none; }
  .b7-plates { gap: 22px; }
  .b7-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 960px) {
  .b7-head__row { grid-template-columns: 48px 1fr 96px; }
  .b7-est { display: none; }
  .b7-nav { display: none; }
  .b7-rule--thin { display: none; }
  .b7-tool--menu { display: inline-flex; }
  .b7-tool__tx { display: none; }
  .b7-head__side:first-child { display: block; }
  .b7-duo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .b7-duo > * + * { margin-top: 36px; }
  .b7-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .b7-plates { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 360px; margin-inline: auto; }
  .b7-sec h2 { white-space: normal; letter-spacing: .2em; text-align: center; }
  .b7-sec__more { position: static; }
  .b7-sec { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  :root { --gut: 20px; }
  .b7-brand { letter-spacing: .14em; text-indent: .14em; }
  .b7-title { padding: 44px 0 40px; }
  .b7-entry { grid-template-columns: 62px minmax(0, 1fr) 60px; gap: 12px; padding: 14px 0; }
  .b7-entry__no { font-size: 24px; }
  .b7-entry__no small { font-size: 9.5px; letter-spacing: .15em; }
  .b7-card { padding: 18px; }
  .b7-dgrid__r { padding: 18px; }
}
