/*
Theme Name: 星放映 深紫星空
Theme URI: https://example.com/
Author: SD Network
Description: 深紫近黑星空風：純 CSS 星點背景、卡片懸停泛光、全站橫向滾動軌道。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-b10
*/

/* ==========================================================================
   sd-b10 深紫星空 · 深紫近黑 / 純 CSS 星點 / 懸停泛光 / 橫向滾動軌道
   tokens → base → starfield → header → hero → rails → cards → detail → footer
   ========================================================================== */

:root {
  --bg: #0b0720;
  --card: #150f33;
  --line: rgba(167, 139, 250, .24);
  --ink: #eee9ff;
  --muted: #a9a0cf;
  --accent: #a78bfa;
  --accent-2: #f0abfc;
  --accent-soft: rgba(167, 139, 250, .16);
  --accent-ink: #c9bbff;
  --on-accent: #1a0b3a;
  --radius: 18px;
  --r-card: var(--radius);
  --btn-r: 999px;
  --wrap: 1240px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --glow: 0 0 0 1px var(--accent), 0 0 34px rgba(167, 139, 250, .55), 0 0 90px rgba(240, 171, 252, .22);
}

/* ---------- shared base (variables driven; each theme overrides below) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.75 var(--font); overflow-x: clip;
  overflow-wrap: anywhere; word-break: normal; line-break: strict;
  -webkit-font-smoothing: antialiased;
}
body.sd-no-scroll { overflow: hidden; }
img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; padding: 10px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.b10-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
[hidden] { display: none !important; }

/* ---------- breadcrumbs ---------- */
.sd-crumbs { padding: 22px 0 6px; font-size: 14px; color: var(--muted); }
.sd-crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; }
.sd-crumbs li + li::before { content: "›"; margin: 0 9px; opacity: .6; }
.sd-crumbs a:hover { color: var(--accent-ink); }
.sd-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- buttons / pills / notes ---------- */
.b10-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: var(--btn-r, 999px); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 15px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.b10-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.b10-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b10-btn--primary:hover { color: var(--on-accent); filter: brightness(1.06); }
.b10-pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; line-height: 1.4;
}
a.b10-pill:hover { background: var(--accent); color: var(--on-accent); }
.b10-note { padding: 14px 18px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.sd-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--btn-r, 999px);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- player (shared contract) ---------- */
.sd-player { background: #000; }
.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: 20px; color: #cbd5e1; font-size: 14px; }
.sd-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px; background: var(--card); color: var(--ink); }
.sd-callout__body { flex: 1 1 220px; }
.sd-callout__title { font-weight: 800; margin-bottom: 4px; }
.sd-callout__desc { color: var(--muted); font-size: 14px; }

/* ---------- pagination ---------- */
.sd-pagination { margin: 38px 0 6px; }
.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 16px;
  border-radius: var(--btn-r, 999px); background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 700;
}
.sd-pagination a.page-numbers:hover { background: var(--accent-soft); color: var(--accent-ink); }
.sd-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .dots { background: none; border-color: transparent; }

/* ---------- page head / filters / chips / empty ---------- */
.b10-pagehead { padding: 22px 0 18px; }
.b10-pagehead h1 { font: 800 clamp(28px, 4.4vw, 44px)/1.2 var(--font-display, var(--font)); letter-spacing: .01em; }
.b10-pagehead p { margin-top: 8px; color: var(--muted); }
.b10-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 26px; }
.b10-filter__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b10-filter__label { flex: none; min-width: 3em; color: var(--muted); font-size: 14px; font-weight: 700; }
.b10-filter__list { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.b10-filter__list::-webkit-scrollbar { display: none; }
.b10-filter__list a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--btn-r, 999px);
  font-size: 14px; color: var(--muted); border: 1px solid transparent; white-space: nowrap;
}
.b10-filter__list a:hover { color: var(--accent-ink); border-color: var(--line); }
.b10-filter__list a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.b10-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b10-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: var(--btn-r, 999px); background: var(--card); font-size: 14px; font-weight: 600;
}
.b10-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.b10-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.b10-empty__title { margin-bottom: 8px; color: var(--ink); font-size: 20px; font-weight: 800; }
.b10-empty .b10-chips { justify-content: center; margin-top: 18px; }

/* ---------- search results / forms ---------- */
.b10-sf { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.b10-sf input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: var(--btn-r, 999px); background: var(--card); outline: none;
}
.b10-sf input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.b10-sf button {
  flex: none; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--btn-r, 999px);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.b10-searchbar { max-width: 640px; margin: 4px 0 26px; }
.b10-results { display: grid; gap: 12px; }
.b10-result {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card, 14px); transition: border-color .2s, transform .2s;
}
.b10-result:hover { border-color: var(--accent); }
.b10-result__img { flex: none; width: 76px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.b10-result__body { display: grid; gap: 4px; min-width: 0; }
.b10-result__t { font-weight: 800; font-size: 17px; line-height: 1.4; }
.b10-result__m { color: var(--muted); font-size: 13px; }
.b10-result__x { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- article / prose / 404 ---------- */
.b10-article { max-width: 780px; }
.b10-prose { font-size: 17px; line-height: 1.95; }
.b10-prose > * + * { margin-top: 1.1em; }
.b10-prose h2, .b10-prose h3 { margin-top: 1.8em; font-weight: 800; line-height: 1.35; }
.b10-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.b10-prose ul { list-style: disc; padding-left: 1.4em; }
.b10-prose ol { list-style: decimal; padding-left: 1.4em; }
.b10-prose img { height: auto; border-radius: 10px; }
.b10-pages { margin-top: 20px; color: var(--muted); }
.b10-notfound { padding: 56px 0 30px; text-align: center; }
.b10-notfound__code { font: 900 clamp(72px, 16vw, 150px)/1 var(--font-display, var(--font)); color: var(--accent); }
.b10-notfound h1 { margin-top: 6px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.b10-notfound__desc { max-width: 520px; margin: 12px auto 22px; color: var(--muted); }
.b10-notfound__search { max-width: 520px; margin: 0 auto 20px; }
.b10-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- blocks / facts / faq ---------- */
.b10-block { margin-top: 44px; }
.b10-block > h2, .b10-sec h2 { font: 800 clamp(21px, 3vw, 28px)/1.3 var(--font-display, var(--font)); }
.b10-block > h2 small, .b10-sec h2 small { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.b10-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.b10-fact { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); }
.b10-fact dt { color: var(--muted); font-size: 13px; }
.b10-fact dd { margin-top: 2px; font-weight: 700; }
.b10-fact--wide { grid-column: 1 / -1; }
.b10-faq details { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); }
.b10-faq summary { min-height: 48px; padding: 12px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b10-faq summary::-webkit-details-marker { display: none; }
.b10-faq summary::after { content: "+"; flex: none; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.b10-faq details[open] summary::after { content: "−"; }
.b10-faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- watch (episode page) ---------- */
.b10-watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 10px; }
.b10-watch__main, .b10-watch__eps { min-width: 0; }
.b10-watch__head h1 { font: 800 clamp(22px, 3.4vw, 34px)/1.3 var(--font-display, var(--font)); }
.b10-watch__head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.b10-player { max-width: 420px; width: 100%; margin: 0 auto; overflow: hidden; border-radius: var(--r-card, 14px); background: #000; }
.b10-pn { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.b10-block__link { margin-top: 14px; font-weight: 700; color: var(--accent-ink); }

/* ---------- search panel / overlay / drawer (ids bound by app.js) ---------- */
.b10-search {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px; background: rgba(10, 10, 20, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.b10-search.is-open { opacity: 1; visibility: visible; }
.b10-search__box { width: min(640px, 100%); padding: 22px; background: var(--card); color: var(--ink); border-radius: var(--r-card, 14px); }
.b10-search__hint { margin: 16px 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.b10-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b10-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--btn-r, 999px); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.b10-overlay { position: fixed; inset: 0; z-index: 94; background: rgba(10, 10, 20, .55); opacity: 0; transition: opacity .25s; }
.b10-overlay.is-open { opacity: 1; }
.b10-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(86vw, 340px); padding: 64px 22px 28px; overflow-y: auto;
  background: var(--card); color: var(--ink); transform: translateX(104%); visibility: hidden; transition: transform .28s, visibility .28s;
}
.b10-drawer.is-open { transform: none; visibility: visible; }
.b10-drawer__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.b10-drawer__list a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 700; }
.b10-drawer__list a[aria-current="page"] { color: var(--accent-ink); }

@media (max-width: 760px) {
  .b10-wrap { padding: 0 16px; }
  .b10-filter__row { align-items: stretch; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .skip, .b10-search, .b10-overlay, .b10-drawer { display: none !important; }
}

/* ---------- starfield (pure CSS) ---------- */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(124, 58, 237, .38), transparent 70%),
    radial-gradient(ellipse 60% 45% at 95% 22%, rgba(240, 171, 252, .16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(79, 70, 229, .28), transparent 70%);
  background-attachment: fixed;
}
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #fff, transparent 60%),
    radial-gradient(1px 1px at 96px 148px, #e9d5ff, transparent 60%),
    radial-gradient(1.6px 1.6px at 168px 72px, #fff, transparent 60%),
    radial-gradient(1px 1px at 236px 206px, #c4b5fd, transparent 60%),
    radial-gradient(1.3px 1.3px at 304px 124px, #fff, transparent 60%),
    radial-gradient(1px 1px at 58px 246px, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 276px 262px, #f5d0fe, transparent 60%);
  background-size: 330px 290px;
  opacity: .85;
}
body::after {
  background-image:
    radial-gradient(1.8px 1.8px at 120px 90px, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 340px 310px, #fff, transparent 60%),
    radial-gradient(2px 2px at 470px 180px, #ddd6fe, transparent 60%),
    radial-gradient(1.4px 1.4px at 210px 420px, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 560px 460px, #f5d0fe, transparent 60%);
  background-size: 620px 520px;
  animation: b10-twinkle 6s ease-in-out infinite alternate;
}
@keyframes b10-twinkle { from { opacity: .25; } to { opacity: 1; } }
.b10-main { min-height: 64vh; }

/* ---------- header ---------- */
.b10-head { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.b10-head.is-stuck { background: rgba(11, 7, 32, .82); border-bottom-color: var(--line); backdrop-filter: blur(12px); }
.b10-head__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.b10-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 22px/1.2 var(--font-display); letter-spacing: .04em; }
.b10-logo__star { color: var(--accent-2); text-shadow: 0 0 14px var(--accent-2); }
.b10-logo__text { background: linear-gradient(90deg, #fff, var(--accent-ink) 60%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b10-logo__img { height: 38px; width: auto; }
.b10-nav { display: none; flex: 1 1 auto; min-width: 0; }
.b10-nav__list { display: flex; justify-content: center; gap: 4px; }
.b10-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s; }
.b10-nav__list a:hover { color: #fff; background: var(--accent-soft); }
.b10-nav__list a[aria-current="page"] { color: #fff; box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(167, 139, 250, .4); }
.b10-tools { display: flex; gap: 8px; }
.b10-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(21, 15, 51, .7); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.b10-icon:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(167, 139, 250, .5); }
@media (min-width: 961px) { .b10-nav { display: block; } .b10-menu-btn { display: none; } }

/* ---------- hero: copy left, orbiting poster right ---------- */
.b10-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); overflow: clip; }
.b10-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
@media (min-width: 900px) { .b10-hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; } }
.b10-hero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-ink); font-size: 14px; font-weight: 600; background: rgba(21, 15, 51, .6); }
.b10-hero__kicker span { color: var(--accent-2); }
.b10-hero h1 { display: grid; gap: 8px; margin-top: 20px; }
.b10-hero__brand { font: 900 clamp(40px, 7.4vw, 84px)/1.08 var(--font-display); letter-spacing: .02em; background: linear-gradient(100deg, #fff 10%, var(--accent) 55%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b10-hero__tag { font-size: clamp(18px, 2.6vw, 28px); font-weight: 600; color: var(--accent-ink); }
.b10-hero__lead { max-width: 520px; margin-top: 16px; color: var(--muted); }
.b10-herosearch { max-width: 520px; margin-top: 26px; }
.b10-herosearch input { background: rgba(21, 15, 51, .85); color: var(--ink); }
.b10-herosearch input::placeholder, .b10-sf input::placeholder { color: var(--muted); }
.b10-hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.b10-hero__quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.b10-hero__quick a:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(167, 139, 250, .45); color: #fff; }

.b10-hero__poster { position: relative; justify-self: center; width: min(320px, 70vw); transform: rotate(3deg); transition: transform .4s; }
.b10-hero__poster:hover { transform: rotate(0deg) scale(1.02); }
.b10-hero__poster img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--glow); }
.b10-hero__ring { position: absolute; inset: -18px; z-index: 0; border: 1px dashed rgba(240, 171, 252, .5); border-radius: 50%; animation: b10-spin 40s linear infinite; }
@keyframes b10-spin { to { transform: rotate(360deg); } }
.b10-hero__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 7, 32, .78); backdrop-filter: blur(8px); }
.b10-hero__cap span { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.b10-hero__cap strong { font-size: 16px; line-height: 1.4; }

/* ---------- sections & rails ---------- */
.b10-block { margin-top: clamp(32px, 5vw, 60px); }
.b10-sec { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.b10-sec h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 800 clamp(21px, 3vw, 28px)/1.3 var(--font-display); }
.b10-sec__star { color: var(--accent-2); font-size: .8em; text-shadow: 0 0 12px var(--accent-2); }
.b10-sec__ctl { display: flex; align-items: center; gap: 8px; }
.b10-sec__more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--accent-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.b10-sec__more:hover { color: #fff; }
.b10-rail-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(21, 15, 51, .7); color: var(--ink); font-size: 22px; line-height: 1; transition: box-shadow .2s, border-color .2s; }
.b10-rail-btn:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(167, 139, 250, .5); }
@media (max-width: 560px) { .b10-rail-btn { display: none; } }
.b10-rail {
  --pad: max(22px, calc((100% - var(--wrap)) / 2 + 22px));
  display: flex; gap: 18px; overflow-x: auto; padding: 14px var(--pad) 26px; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
@media (max-width: 760px) { .b10-rail { --pad: 16px; gap: 14px; } }
.b10-rail > * { scroll-snap-align: start; }
.b10-rail > .b10-card { flex: 0 0 clamp(142px, 38vw, 210px); }

/* ---------- cards: glow on hover ---------- */
.b10-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; padding: 6px 0; }
@media (min-width: 640px) { .b10-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 960px) { .b10-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.b10-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: transform .3s; }
.b10-card__media { position: relative; display: block; border-radius: var(--radius); transition: box-shadow .3s; }
.b10-card__media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.b10-card:hover { transform: translateY(-6px); }
.b10-card:hover .b10-card__media, .b10-card:focus-visible .b10-card__media { box-shadow: var(--glow); }
.b10-card__badge { position: absolute; top: 10px; left: 10px; padding: 3px 11px; border-radius: 999px; background: rgba(11, 7, 32, .78); border: 1px solid var(--line); color: var(--accent-2); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.b10-card__t { margin-top: 8px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b10-card__m { color: var(--muted); font-size: 13px; }
.b10-card:hover .b10-card__t { color: #fff; text-shadow: 0 0 14px rgba(167, 139, 250, .8); }

.b10-rail--chips { align-items: stretch; }
.b10-planet { flex: 0 0 auto; display: grid; place-items: center; align-content: center; gap: 2px; min-width: 128px; min-height: 104px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(124, 58, 237, .28), rgba(21, 15, 51, .8)); text-align: center; transition: box-shadow .3s, transform .3s; }
.b10-planet:hover { box-shadow: var(--glow); transform: translateY(-4px); }
.b10-planet strong { font-size: 17px; }
.b10-planet em { color: var(--accent-2); font-size: 13px; font-style: normal; }

/* ---------- list pages ---------- */
.b10-pagehead h1 { background: linear-gradient(100deg, #fff, var(--accent-ink) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b10-filter__list a[aria-current="page"] { box-shadow: 0 0 16px rgba(167, 139, 250, .55); }
.b10-result, .b10-fact, .b10-faq details, .b10-chip, .b10-btn, .b10-sf input, .sd-pagination .page-numbers { background: rgba(21, 15, 51, .72); }
.b10-result:hover { box-shadow: var(--glow); }
.b10-sf input { color: var(--ink); }
.b10-sf button, .b10-btn--primary { color: var(--on-accent); }
.b10-btn--primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); border-color: transparent; }
.b10-btn:hover, .b10-chip:hover { box-shadow: 0 0 18px rgba(167, 139, 250, .45); }
.b10-notfound__code { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sd-callout { background: var(--card); }
.sd-pagination .current { background: var(--accent); color: var(--on-accent); }

/* ---------- detail ---------- */
.b10-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 18px 0 0; }
@media (min-width: 820px) { .b10-detail { grid-template-columns: 300px minmax(0, 1fr); gap: 52px; align-items: start; } }
.b10-detail__poster { position: relative; width: min(300px, 76vw); justify-self: center; }
.b10-detail__poster img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--glow); }
.b10-detail__glow { position: absolute; inset: -30px; z-index: 0; background: radial-gradient(circle, rgba(167, 139, 250, .35), transparent 65%); }
.b10-detail h1 { font: 900 clamp(28px, 4.6vw, 48px)/1.2 var(--font-display); background: linear-gradient(100deg, #fff 20%, var(--accent-ink) 70%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b10-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.b10-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 2px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(21, 15, 51, .72); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
a.b10-pill { min-height: 44px; }
a.b10-pill:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(167, 139, 250, .45); background: rgba(21, 15, 51, .72); color: #fff; }
.b10-pill--hot { border-color: var(--accent-2); color: var(--accent-2); }
.b10-syn { margin-top: 20px; max-width: 70ch; color: #d6cffa; line-height: 1.95; }
.b10-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.b10-note { margin-top: 16px; border-color: var(--line); }
.b10-player { max-width: 420px; margin: 0 auto; overflow: hidden; border-radius: var(--radius); box-shadow: var(--glow); background: #000; }
.b10-block > .b10-sec { margin-bottom: 14px; }
.b10-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; max-height: 280px; overflow-y: auto; padding: 6px 4px 10px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.b10-eps a, .b10-eps span { display: grid; place-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: rgba(21, 15, 51, .72); font-weight: 700; color: var(--ink); transition: box-shadow .25s, border-color .25s, transform .25s; }
.b10-eps a:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-2px); }
.b10-eps .is-current { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--on-accent); box-shadow: 0 0 22px rgba(240, 171, 252, .55); }
.b10-eps .is-off { opacity: .4; }
.b10-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.b10-fact dd { color: #fff; }
.b10-faq summary::after { color: var(--accent-2); }
.b10-watch { padding-top: 10px; }
@media (min-width: 960px) {
  .b10-watch { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px 44px; align-items: start; }
  .b10-watch__head { grid-column: 1 / -1; }
}
.b10-watch__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- search / drawer skin ---------- */
.b10-search { background: rgba(5, 3, 16, .72); backdrop-filter: blur(6px); }
.b10-search__box { border: 1px solid var(--line); box-shadow: var(--glow); }
.b10-drawer { border-left: 1px solid var(--line); }
.b10-overlay { background: rgba(5, 3, 16, .7); }

/* ---------- footer ---------- */
.b10-foot { margin-top: clamp(48px, 8vw, 96px); padding: 12px 0 40px; background: linear-gradient(180deg, transparent, rgba(21, 15, 51, .8)); }
.b10-foot__line { display: flex; justify-content: center; gap: 18px; padding: 18px 0; color: var(--accent-2); letter-spacing: .3em; border-top: 1px solid var(--line); }
.b10-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 14px 0 26px; color: var(--muted); font-size: 14px; }
@media (min-width: 820px) { .b10-foot__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.b10-foot__grid p + p { margin-top: 8px; }
.b10-foot__brand { color: #fff; font: 800 22px/1.3 var(--font-display); }
.b10-foot__brand span { color: var(--accent-2); }
.b10-foot h2 { margin-bottom: 8px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.b10-foot li a { display: inline-flex; align-items: center; min-height: 40px; }
.b10-foot li a:hover { color: #fff; }
.b10-foot__copy { color: var(--muted); font-size: 13px; }

/* ==== batch5 variant: sd-d37 neon-rail #aa2166/#69e78e ==== */
:root{--accent:#aa2166;--accent-2:#69e78e;--accent-soft:#aa216622;--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}
