/*
Theme Name: sd-b12 青檸電競
Theme URI: https://example.com/
Author: SD Network
Description: 黑底青檸電競風：斜向條紋、切角卡片、橫向大 banner 首屏與底部快捷欄。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-b12
*/

/* ==========================================================================
   sd-b12 青檸電競 · 黑底青檸 / 斜向條紋 / 切角卡片 / 橫向大 banner / 底部快捷欄
   tokens → base → header → banner → cards → detail → footer + dock
   ========================================================================== */

:root {
  --bg: #080b08;
  --card: #0f150f;
  --line: rgba(182, 255, 0, .24);
  --ink: #e9f5dc;
  --muted: #92a587;
  --accent: #b6ff00;
  --accent-2: #00e0a0;
  --accent-soft: rgba(182, 255, 0, .13);
  --accent-ink: #b6ff00;
  --on-accent: #0a0d0a;
  --radius: 4px;
  --r-card: 2px;
  --btn-r: 2px;
  --wrap: 1280px;
  --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;
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --cut-s: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  --stripes: repeating-linear-gradient(135deg, rgba(182, 255, 0, .05) 0 2px, transparent 2px 16px);
}

/* ---------- 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; }
.b12-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 ---------- */
.b12-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;
}
.b12-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.b12-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b12-btn--primary:hover { color: var(--on-accent); filter: brightness(1.06); }
.b12-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.b12-pill:hover { background: var(--accent); color: var(--on-accent); }
.b12-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 ---------- */
.b12-pagehead { padding: 22px 0 18px; }
.b12-pagehead h1 { font: 800 clamp(28px, 4.4vw, 44px)/1.2 var(--font-display, var(--font)); letter-spacing: .01em; }
.b12-pagehead p { margin-top: 8px; color: var(--muted); }
.b12-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 26px; }
.b12-filter__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b12-filter__label { flex: none; min-width: 3em; color: var(--muted); font-size: 14px; font-weight: 700; }
.b12-filter__list { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.b12-filter__list::-webkit-scrollbar { display: none; }
.b12-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;
}
.b12-filter__list a:hover { color: var(--accent-ink); border-color: var(--line); }
.b12-filter__list a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.b12-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b12-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;
}
.b12-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.b12-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.b12-empty__title { margin-bottom: 8px; color: var(--ink); font-size: 20px; font-weight: 800; }
.b12-empty .b12-chips { justify-content: center; margin-top: 18px; }

/* ---------- search results / forms ---------- */
.b12-sf { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.b12-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;
}
.b12-sf input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.b12-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;
}
.b12-searchbar { max-width: 640px; margin: 4px 0 26px; }
.b12-results { display: grid; gap: 12px; }
.b12-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;
}
.b12-result:hover { border-color: var(--accent); }
.b12-result__img { flex: none; width: 76px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.b12-result__body { display: grid; gap: 4px; min-width: 0; }
.b12-result__t { font-weight: 800; font-size: 17px; line-height: 1.4; }
.b12-result__m { color: var(--muted); font-size: 13px; }
.b12-result__x { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- article / prose / 404 ---------- */
.b12-article { max-width: 780px; }
.b12-prose { font-size: 17px; line-height: 1.95; }
.b12-prose > * + * { margin-top: 1.1em; }
.b12-prose h2, .b12-prose h3 { margin-top: 1.8em; font-weight: 800; line-height: 1.35; }
.b12-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.b12-prose ul { list-style: disc; padding-left: 1.4em; }
.b12-prose ol { list-style: decimal; padding-left: 1.4em; }
.b12-prose img { height: auto; border-radius: 10px; }
.b12-pages { margin-top: 20px; color: var(--muted); }
.b12-notfound { padding: 56px 0 30px; text-align: center; }
.b12-notfound__code { font: 900 clamp(72px, 16vw, 150px)/1 var(--font-display, var(--font)); color: var(--accent); }
.b12-notfound h1 { margin-top: 6px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.b12-notfound__desc { max-width: 520px; margin: 12px auto 22px; color: var(--muted); }
.b12-notfound__search { max-width: 520px; margin: 0 auto 20px; }
.b12-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- blocks / facts / faq ---------- */
.b12-block { margin-top: 44px; }
.b12-block > h2, .b12-sec h2 { font: 800 clamp(21px, 3vw, 28px)/1.3 var(--font-display, var(--font)); }
.b12-block > h2 small, .b12-sec h2 small { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.b12-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.b12-fact { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); }
.b12-fact dt { color: var(--muted); font-size: 13px; }
.b12-fact dd { margin-top: 2px; font-weight: 700; }
.b12-fact--wide { grid-column: 1 / -1; }
.b12-faq details { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); }
.b12-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; }
.b12-faq summary::-webkit-details-marker { display: none; }
.b12-faq summary::after { content: "+"; flex: none; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.b12-faq details[open] summary::after { content: "−"; }
.b12-faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- watch (episode page) ---------- */
.b12-watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 10px; }
.b12-watch__main, .b12-watch__eps { min-width: 0; }
.b12-watch__head h1 { font: 800 clamp(22px, 3.4vw, 34px)/1.3 var(--font-display, var(--font)); }
.b12-watch__head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.b12-player { max-width: 420px; width: 100%; margin: 0 auto; overflow: hidden; border-radius: var(--r-card, 14px); background: #000; }
.b12-pn { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.b12-block__link { margin-top: 14px; font-weight: 700; color: var(--accent-ink); }

/* ---------- search panel / overlay / drawer (ids bound by app.js) ---------- */
.b12-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;
}
.b12-search.is-open { opacity: 1; visibility: visible; }
.b12-search__box { width: min(640px, 100%); padding: 22px; background: var(--card); color: var(--ink); border-radius: var(--r-card, 14px); }
.b12-search__hint { margin: 16px 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.b12-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b12-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; }
.b12-overlay { position: fixed; inset: 0; z-index: 94; background: rgba(10, 10, 20, .55); opacity: 0; transition: opacity .25s; }
.b12-overlay.is-open { opacity: 1; }
.b12-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;
}
.b12-drawer.is-open { transform: none; visibility: visible; }
.b12-drawer__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.b12-drawer__list a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 700; }
.b12-drawer__list a[aria-current="page"] { color: var(--accent-ink); }

@media (max-width: 760px) {
  .b12-wrap { padding: 0 16px; }
  .b12-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, .b12-search, .b12-overlay, .b12-drawer { display: none !important; }
}

body { background-image: var(--stripes); }
.b12-main { min-height: 62vh; }
@media (max-width: 760px) { body { padding-bottom: 96px; } }
@media (min-width: 761px) { body { padding-bottom: 96px; } }

/* ---------- header ---------- */
.b12-head { position: sticky; top: 0; z-index: 50; background: rgba(8, 11, 8, .94); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.b12-head__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.b12-logo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; background: var(--accent); color: var(--on-accent); transform: skewX(-14deg); }
.b12-logo__text { display: block; transform: skewX(14deg); font: 900 20px/1.2 var(--font-display); letter-spacing: .06em; }
.b12-logo__img { height: 32px; width: auto; transform: skewX(14deg); }
.b12-nav { display: none; flex: 1 1 auto; min-width: 0; }
.b12-nav__list { display: flex; justify-content: center; gap: 4px; }
.b12-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; transform: skewX(-14deg); font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.b12-nav__list a:hover { background: var(--accent-soft); color: var(--ink); }
.b12-nav__list a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.b12-tools { display: flex; gap: 8px; }
.b12-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); color: var(--accent); clip-path: var(--cut-s); }
.b12-icon:hover { background: var(--accent); color: var(--on-accent); }
@media (min-width: 961px) { .b12-nav { display: block; } .b12-menu-btn { display: none; } }

/* ---------- section title ---------- */
.b12-block { margin-top: clamp(36px, 5vw, 64px); }
.b12-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.b12-sec h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; font: 900 clamp(21px, 3vw, 28px)/1.3 var(--font-display); letter-spacing: .03em; }
.b12-sec__tag { display: inline-block; width: 12px; height: 26px; margin-right: 14px; background: var(--accent); transform: skewX(-20deg); box-shadow: 8px 0 0 -2px var(--accent-2); }
.b12-sec h2 small { margin-left: 12px; }
.b12-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.b12-sec__more:hover { color: #fff; }
.b12-flag { display: inline-block; padding: 3px 16px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 900; letter-spacing: .12em; transform: skewX(-14deg); }

/* ---------- banner: wide horizontal ---------- */
.b12-banner { position: relative; display: flex; overflow: hidden; min-height: clamp(440px, 46vw, 580px); border-bottom: 3px solid var(--accent); background: #050705; }
.b12-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.b12-banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 11, 8, .96) 0%, rgba(8, 11, 8, .78) 44%, rgba(8, 11, 8, .25) 100%), var(--stripes); }
.b12-banner__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
@media (min-width: 1000px) { .b12-banner__in { grid-template-columns: minmax(0, 1fr) 300px; align-items: end; } }
.b12-banner__text { display: grid; justify-items: start; gap: 18px; min-width: 0; }
.b12-banner h1 { display: grid; gap: 6px; }
.b12-banner__brand { font: 900 clamp(38px, 7.2vw, 88px)/1.05 var(--font-display); letter-spacing: .02em; text-shadow: 4px 4px 0 rgba(182, 255, 0, .38); }
.b12-banner__tag { color: var(--accent); font-size: clamp(17px, 2.4vw, 26px); font-weight: 800; letter-spacing: .1em; }
.b12-banner__go { display: flex; align-items: center; gap: 16px; max-width: 100%; padding: 12px 24px 12px 12px; border-left: 4px solid var(--accent); background: rgba(15, 21, 15, .88); clip-path: var(--cut-s); transition: background .2s; }
.b12-banner__go:hover { background: rgba(182, 255, 0, .18); }
.b12-banner__play { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--accent); color: var(--on-accent); font-size: 18px; }
.b12-banner__gt { display: grid; min-width: 0; }
.b12-banner__gt strong { font-size: 19px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b12-banner__gt em { color: var(--muted); font-size: 13px; font-style: normal; }
.b12-herosearch { max-width: 480px; }
.b12-herosearch input, .b12-sf input { background: rgba(8, 11, 8, .85); border-color: var(--line); color: var(--ink); }
.b12-sf input::placeholder { color: var(--muted); }
.b12-sf button { clip-path: var(--cut-s); }
.b12-banner__side { display: none; gap: 12px; }
@media (min-width: 1000px) { .b12-banner__side { display: grid; } }
.b12-banner__side a { display: grid; grid-template-columns: 34px 54px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 84px; padding: 6px 14px 6px 6px; background: rgba(15, 21, 15, .86); border-right: 3px solid var(--line); clip-path: var(--cut-s); transition: border-color .2s, background .2s; }
.b12-banner__side a:hover { border-right-color: var(--accent); background: rgba(182, 255, 0, .14); }
.b12-banner__no { color: transparent; -webkit-text-stroke: 1px var(--accent); font: 900 24px/1 var(--font-display); text-align: center; }
.b12-banner__thumb { width: 54px; height: 72px; object-fit: cover; }
.b12-banner__st { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- cards: chamfered ---------- */
.b12-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .b12-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; } }
@media (min-width: 960px) { .b12-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.b12-card { display: block; padding: 2px; background: var(--line); clip-path: var(--cut); transition: background .2s, transform .2s; }
.b12-card:hover, .b12-card:focus-visible { background: var(--accent); transform: translateY(-4px); }
.b12-card__in { display: block; background: var(--card); clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px)); }
.b12-card__media { position: relative; display: block; overflow: hidden; }
.b12-card__media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .35s; }
.b12-card:hover img { transform: scale(1.06); }
.b12-card__badge { position: absolute; left: 0; bottom: 10px; padding: 2px 14px 2px 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 900; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.b12-card__body { display: grid; gap: 2px; padding: 10px 12px 14px; }
.b12-card__t { font-weight: 800; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b12-card__m { color: var(--muted); font-size: 12px; }

.b12-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .b12-zones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.b12-zone { position: relative; display: grid; align-content: end; gap: 2px; min-height: 116px; padding: 16px 18px; overflow: hidden; background: var(--stripes), linear-gradient(135deg, #121b12, #0c110c); border-left: 4px solid var(--accent); clip-path: var(--cut); transition: background .2s, color .2s; }
.b12-zone__n { position: absolute; right: 12px; top: 2px; color: transparent; -webkit-text-stroke: 1px rgba(182, 255, 0, .5); font: 900 44px/1 var(--font-display); }
.b12-zone strong { font-size: 18px; }
.b12-zone em { color: var(--muted); font-size: 13px; font-style: normal; }
.b12-zone:hover { background: var(--accent); color: var(--on-accent); }
.b12-zone:hover em, .b12-zone:hover .b12-zone__n { color: var(--on-accent); -webkit-text-stroke-color: rgba(10, 13, 10, .5); }

.b12-ranks { display: grid; gap: 10px; }
@media (min-width: 860px) { .b12-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; } }
.b12-rank { display: grid; grid-template-columns: 44px 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: var(--card); border-left: 3px solid var(--accent); clip-path: var(--cut-s); transition: background .2s; }
.b12-rank:hover { background: rgba(182, 255, 0, .12); }
.b12-rank__no { color: transparent; -webkit-text-stroke: 1px var(--accent); font: 900 28px/1 var(--font-display); text-align: center; }
.b12-rank__img { width: 54px; height: 81px; object-fit: cover; }
.b12-rank__body { display: grid; gap: 2px; min-width: 0; }
.b12-rank__t { font-weight: 800; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b12-rank__m { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b12-rank__badge { padding: 2px 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
@media (max-width: 460px) { .b12-rank { grid-template-columns: 36px 54px minmax(0, 1fr); } .b12-rank__badge { display: none; } }

/* ---------- list pages ---------- */
.b12-pagehead h1 { padding-left: 16px; border-left: 6px solid var(--accent); letter-spacing: .03em; }
.b12-result { background: var(--card); border-color: var(--line); clip-path: var(--cut-s); border-radius: 0; }
.b12-result:hover { border-color: var(--accent); }
.b12-fact { background: var(--card); border-radius: 0; border: 0; border-left: 3px solid var(--accent); }
.b12-faq details { background: var(--card); border-radius: 0; border-color: var(--line); }
.b12-btn { background: var(--card); border-color: var(--line); color: var(--ink); clip-path: var(--cut-s); border-radius: 0; }
.b12-chip { background: var(--card); border-color: var(--line); border-radius: 0; clip-path: var(--cut-s); }
.b12-chip:hover { border-color: var(--accent); color: var(--accent); }
.b12-btn:hover { border-color: var(--accent); color: var(--accent); }
.b12-btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.b12-btn--primary:hover { color: var(--on-accent); background: #d0ff4d; }
.b12-notfound__code { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.sd-pagination .page-numbers { background: var(--card); border-radius: 0; clip-path: var(--cut-s); }
.sd-pagination .current { background: var(--accent); color: var(--on-accent); }
.b12-filter__list a { border-radius: 0; }
.b12-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 2px 14px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; clip-path: var(--cut-s); }
a.b12-pill { min-height: 44px; }
a.b12-pill:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- detail: HUD ---------- */
.b12-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 14px 0 0; }
@media (min-width: 860px) { .b12-detail { grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; } }
.b12-detail__poster { width: min(260px, 70vw); justify-self: center; padding: 3px; background: var(--accent); clip-path: var(--cut); }
.b12-detail__poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.b12-detail h1 { margin-top: 12px; font: 900 clamp(28px, 4.6vw, 50px)/1.2 var(--font-display); letter-spacing: .02em; }
.b12-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b12-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 22px; border: 1px solid var(--line); background: var(--card); }
.b12-stats div { padding: 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.b12-stats div:first-child { border-left: 0; }
.b12-stats dt { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.b12-stats dd { color: var(--accent); font: 900 clamp(18px, 2.6vw, 28px)/1.3 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .b12-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b12-stats div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); } .b12-stats div:nth-child(4) { border-top: 1px solid var(--line); } }
.b12-syn { margin-top: 20px; max-width: 70ch; color: #cfdcc2; line-height: 1.95; }
.b12-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.b12-note { margin-top: 16px; }
.b12-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .b12-stage:not(.b12-stage--solo) { grid-template-columns: 400px minmax(0, 1fr); gap: 44px; align-items: start; } }
.b12-stage__play, .b12-stage__eps { min-width: 0; }
.b12-player { max-width: 400px; margin: 0 auto; padding: 3px; background: var(--accent); clip-path: var(--cut); }
.b12-player .sd-player { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.b12-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; max-height: 460px; overflow-y: auto; padding: 4px 4px 8px 0; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.b12-eps a, .b12-eps span { display: grid; place-items: center; min-height: 48px; background: #172017; clip-path: var(--cut-s); font: 900 16px/1 var(--font-display); color: var(--ink); transition: background .15s, color .15s; }
.b12-eps a:hover { background: var(--accent-soft); color: var(--accent); }
.b12-eps .is-current { background: var(--accent); color: var(--on-accent); }
.b12-eps .is-off { opacity: .4; }
.b12-watch { padding-top: 10px; }
@media (min-width: 960px) {
  .b12-watch { grid-template-columns: 420px minmax(0, 1fr); gap: 18px 44px; align-items: start; }
  .b12-watch__head { grid-column: 1 / -1; }
}
.b12-watch__head h1 { padding-left: 14px; border-left: 6px solid var(--accent); }
.b12-watch__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- search / drawer skin ---------- */
.b12-search { background: rgba(4, 6, 4, .8); }
.b12-search__box { border: 1px solid var(--accent); border-radius: 0; clip-path: var(--cut); }
.b12-tags a { border-radius: 0; clip-path: var(--cut-s); }
.b12-drawer { border-left: 3px solid var(--accent); }
.b12-drawer__list a { text-transform: none; border-bottom-color: var(--line); }
.b12-overlay { background: rgba(4, 6, 4, .75); }

/* ---------- footer + dock ---------- */
.b12-foot { margin-top: clamp(48px, 7vw, 88px); padding-bottom: 20px; background: #050705; }
.b12-foot__stripe { height: 14px; background: repeating-linear-gradient(135deg, var(--accent) 0 10px, #050705 10px 20px); }
.b12-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 34px 0 20px; color: var(--muted); font-size: 14px; }
@media (min-width: 820px) { .b12-foot__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }
.b12-foot__grid p + p { margin-top: 8px; }
.b12-foot__brand { color: var(--accent); font: 900 24px/1.3 var(--font-display); letter-spacing: .06em; }
.b12-foot h2 { margin-bottom: 8px; color: var(--ink); font-size: 15px; letter-spacing: .1em; }
.b12-foot li a { display: inline-flex; align-items: center; min-height: 40px; }
.b12-foot li a:hover { color: var(--accent); }
.b12-foot__copy { color: var(--muted); font-size: 13px; }

.b12-dock {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr); width: min(560px, calc(100% - 20px));
  background: rgba(15, 21, 15, .96); border-top: 2px solid var(--accent); clip-path: var(--cut-s); backdrop-filter: blur(8px);
}
.b12-dock a { display: grid; place-items: center; align-content: center; gap: 0; min-height: 56px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; transition: background .15s, color .15s; }
.b12-dock b { color: var(--accent); font-size: 16px; line-height: 1; }
.b12-dock a:hover { background: var(--accent-soft); color: var(--ink); }
.b12-dock a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.b12-dock a[aria-current="page"] b { color: var(--on-accent); }
