:root {
  color-scheme: light;
  --red: #C8202F;
  --red-deep: #9c1925;
  --red-ink: #b81d2b;
  --gold: #E4B363;
  --gold-deep: #9c7b47;
  --gold-ink: #74572e;
  --paper: #F3F1EC;
  --paper-2: #e9e6df;
  --surface: #faf8f4;
  --ink: #0F0F10;
  --ink-2: #1b1b1c;
  --ink-3: #232324;
  --text: #1f1f1f;
  --text-dim: #6a645c;
  --text-inv: #faf9f6;
  --text-inv-dim: #a09c96;
  --line: rgba(15, 15, 16, 0.12);
  --line-strong: rgba(15, 15, 16, 0.24);
  --line-inv: rgba(228, 179, 99, 0.24);
  --on-red: #fff8f0;
  --on-gold: #17140f;
  --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-eyebrow: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-body: 0.9375rem;
  --fs-lede: 1.0625rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.6rem, 1.35rem + 1.1vw, 2.35rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.9vw, 3.9rem);
  --lh-display: 1.12;
  --lh-tight: 1.28;
  --lh-body: 1.78;
  --ls-han: 0.02em;
  --ls-eyebrow: 0.28em;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: clamp(56px, 7vw, 96px);
  --grid: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(22, 18, 14, 0.05), 0 8px 20px -12px rgba(22, 18, 14, 0.14);
  --sh-2: 0 2px 5px rgba(22, 18, 14, 0.05), 0 22px 44px -28px rgba(22, 18, 14, 0.28);
  --sh-ink: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 56px -30px rgba(0, 0, 0, 0.7);
  --tex-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --glow-red: radial-gradient(62% 72% at 78% 14%, rgba(200, 32, 47, 0.42) 0%, rgba(200, 32, 47, 0.12) 44%, transparent 74%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;
  --z-head: 90;
  --z-top: 120;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101011;
  --paper-2: #1a1a1b;
  --surface: #232324;
  --text: #f2efe9;
  --text-dim: #9b968e;
  --line: rgba(228, 179, 99, 0.16);
  --line-strong: rgba(228, 179, 99, 0.32);
  --gold-ink: #E4B363;
  --red-ink: #dd6a74;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #101011;
    --paper-2: #1a1a1b;
    --surface: #232324;
    --text: #f2efe9;
    --text-dim: #9b968e;
    --line: rgba(228, 179, 99, 0.16);
    --line-strong: rgba(228, 179, 99, 0.32);
    --gold-ink: #E4B363;
    --red-ink: #dd6a74;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-han);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--text); color: var(--paper);
  border-radius: var(--r-sm); transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--grid); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-ink);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::after { content: ""; height: 1px; width: 34px; background: currentColor; opacity: 0.55; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.lede { font-size: var(--fs-lede); line-height: 1.72; color: var(--text-dim); max-width: 34ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.site-head {
  position: sticky; top: 0; z-index: var(--z-head);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: var(--sp-5); height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .seal { width: 34px; height: 34px; flex: none; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; color: var(--text); }
.brand-latin { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--text-dim); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: var(--sp-5); margin-inline-start: var(--sp-3); }
.nav a {
  position: relative; padding: 6px 0; font-size: var(--fs-sm); color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: var(--sp-3); margin-inline-start: auto; }
.search {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface);
}
.search input {
  width: 150px; border: 0; background: none; color: var(--text);
  font: inherit; font-size: var(--fs-sm); outline: none;
}
.search input::placeholder { color: var(--text-dim); }
.search button { border: 0; background: none; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--text-dim); border-radius: 50%; }
.icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  color: var(--text); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--gold); }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
.burger {
  display: none; width: 40px; height: 36px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  padding: 0; place-items: center;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 3px auto; }
.mobile-nav {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: var(--sp-3) var(--gutter) var(--sp-4);
  display: grid; gap: 2px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 10px 2px; font-size: 0.9375rem; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 42px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-deep); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #eec079; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost-inv { border-color: rgba(250, 248, 244, 0.34); color: var(--text-inv); }
.btn-ghost-inv:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 0.9375rem; }
.head-cta { height: 36px; padding: 0 16px; }
@media (max-width: 620px) { .head-cta { padding: 0 12px; } }

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-inv);
  border-bottom: 1px solid var(--line-inv);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--glow-red);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; background-image: var(--tex-paper);
  opacity: 0.05; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: var(--sp-9) var(--sp-8); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: var(--fs-h1); line-height: var(--lh-display);
  margin-block: var(--sp-5) var(--sp-5); color: var(--text-inv);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 .thin { display: block; font-size: 0.5em; letter-spacing: 0.08em; color: var(--text-inv-dim); margin-top: 12px; font-family: var(--font-body); }
.hero-lede { font-size: var(--fs-lede); line-height: 1.78; color: var(--text-inv-dim); max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(250, 248, 244, 0.14);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--text-inv-dim);
}
.hero-meta b { color: var(--gold); font-weight: 500; }
.hero-stage { position: relative; min-height: 440px; }
.stage-main {
  position: relative; display: block; width: 100%; max-width: 320px; margin-inline: auto;
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-ink);
  border: 1px solid rgba(228, 179, 99, 0.32);
  transform: rotate(-1.2deg);
  transition: transform var(--dur) var(--ease);
}
.stage-main:hover { transform: rotate(0deg) translateY(-3px); }
.stage-main img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.stage-side {
  position: absolute; top: 34px; width: 34%; max-width: 152px; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid rgba(228, 179, 99, 0.22); box-shadow: var(--sh-ink);
  opacity: 0.92;
}
.stage-side img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.stage-side.left { left: 0; transform: rotate(-5deg); }
.stage-side.right { right: 0; transform: rotate(5deg); }
.stage-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 2; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--red); color: var(--on-red);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
}
.stage-note {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(15, 15, 16, 0.72); border: 1px solid var(--line-inv);
  font-size: 0.75rem; color: var(--text-inv-dim); white-space: nowrap;
}
.stage-note b { color: var(--gold); font-weight: 500; }

.facts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-inv);
}
.fact { padding: var(--sp-5) var(--sp-4) var(--sp-2); border-inline-end: 1px solid var(--line-inv); }
.fact:first-child { padding-inline-start: 0; }
.fact:last-child { border-inline-end: 0; }
.fact-v { font-family: var(--font-mono); font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); color: var(--text-inv); line-height: 1.1; }
.fact-v small { font-size: 0.75rem; color: var(--gold); margin-inline-start: 5px; letter-spacing: 0.1em; }
.fact-l { font-size: 0.75rem; color: var(--text-inv-dim); margin-top: 8px; letter-spacing: 0.06em; }

.section { padding-block: var(--sp-9); }
.section-paper { background: var(--paper); }
.section-alt { background: var(--paper-2); }
.section-ink { position: relative; background: var(--ink); color: var(--text-inv); overflow: hidden; }
.section-ink::after {
  content: ""; position: absolute; inset: 0; background-image: var(--tex-paper); opacity: 0.045; pointer-events: none;
}
.section-ink > .wrap { position: relative; z-index: 1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-7); }
.sec-head-l { display: grid; gap: var(--sp-4); }
.sec-head-r { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.section-ink .lede { color: var(--text-inv-dim); }
.section-ink .eyebrow { color: var(--gold); }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; font-size: var(--fs-sm); color: var(--gold-ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.section-ink .link-more { color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.card { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card-media { position: relative; overflow: hidden; background: var(--paper-2); }
.card-media img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 380ms var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-tag {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  padding: 3px 8px; border-radius: var(--r-xs);
  background: rgba(15, 15, 16, 0.72); color: var(--gold);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
}
.card-eps {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  padding: 3px 8px; border-radius: var(--r-xs);
  background: rgba(15, 15, 16, 0.72); color: var(--text-inv);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
}
.card-body { padding: 14px 14px 16px; display: grid; gap: 8px; }
.card-title { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.32; color: var(--text); }
.card-title a { display: inline-flex; align-items: center; min-height: 26px; }
.card-hook { font-size: 0.8125rem; line-height: 1.62; height: 3.24em; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.06em; }
.score { display: inline-flex; align-items: center; gap: 4px; color: var(--red-ink); font-weight: 600; }
.score::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
:root[data-theme="dark"] .card { background: #191a1b; }

.genre-rail { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 0.8125rem; color: var(--text); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--text-inv); border-color: var(--ink); }
.chip .cnt { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.7; }

.rank { display: grid; gap: 0; border-top: 1px solid var(--line-inv); }
.rank-row {
  display: grid; grid-template-columns: 54px 46px 1fr auto auto; align-items: center; gap: var(--sp-4);
  padding: 14px 4px; border-bottom: 1px solid var(--line-inv);
  transition: background var(--dur) var(--ease);
}
.rank-row:hover { background: rgba(228, 179, 99, 0.06); }
.rank-n { font-family: var(--font-mono); font-size: 1.05rem; color: var(--gold); }
.rank-thumb { width: 46px; height: 61px; border-radius: var(--r-xs); overflow: hidden; background: #232324; }
.rank-thumb img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rank-name { font-family: var(--font-display); font-size: 1rem; color: var(--text-inv); }
.rank-name small { display: block; font-family: var(--font-body); font-size: 0.75rem; color: var(--text-inv-dim); margin-top: 3px; letter-spacing: 0.06em; }
.rank-heat { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-inv-dim); }
.rank-sc { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gold); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.strip-item { position: relative; overflow: hidden; border-radius: var(--r-sm); border: 1px solid var(--line); }
.strip-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip-cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(15, 15, 16, 0.78));
  font-size: 0.75rem; color: var(--text-inv);
}
.strip-cap small { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 4px; }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-6);
  padding: var(--sp-7); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface);
}
.cta-band h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.cta-band p { color: var(--text-dim); margin-top: 10px; max-width: 46ch; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.0625rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: var(--red);
  transition: transform var(--dur) var(--ease);
}
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq details[open] summary { color: var(--red-ink); }
.faq details:not([open]) p { display: none; }
.faq details[open] p { display: block; }
.faq p { padding: 0 0 20px; color: var(--text-dim); max-width: 62ch; font-size: 0.9375rem; }

.pagehead { padding-block: var(--sp-8) var(--sp-6); border-bottom: 1px solid var(--line); background: var(--paper); }
.pagehead h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: var(--lh-display); margin-block: var(--sp-4) var(--sp-4); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-dim); }
.crumbs a { display: inline-flex; align-items: center; min-height: 26px; }
.crumbs a:hover { color: var(--red-ink); }
.crumbs span { color: inherit; }

.toolbar { display: grid; gap: var(--sp-4); padding-block: var(--sp-6); border-bottom: 1px solid var(--line); }
.toolbar-top { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; justify-content: space-between; }
.lib-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.1em; white-space: nowrap; }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); min-width: 260px;
}
.search-box input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); outline: none; }
.lib-grid { padding-block: var(--sp-7); }
.empty { display: none; padding: var(--sp-9) var(--sp-4); text-align: center; color: var(--text-dim); }
.empty.on { display: block; }
.empty b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--text); margin-bottom: 8px; }

.board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.score { width: 100%; border-collapse: collapse; min-width: 620px; }
table.score th {
  text-align: left; font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.14em; color: var(--text-dim);
  padding: 10px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.score td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.score tr:hover td { background: rgba(200, 32, 47, 0.035); }
td.rank-cell { width: 56px; font-family: var(--font-mono); color: var(--red-ink); }
td.title-cell { font-family: var(--font-display); font-size: 1rem; }
td.title-cell a { display: inline-flex; align-items: center; min-height: 26px; white-space: nowrap; }
td.title-cell small { display: block; font-family: var(--font-body); font-size: 0.75rem; color: var(--text-dim); margin-top: 3px; }
td.num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text); white-space: nowrap; }
.trend { font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }
.trend.up { color: #18603c; }
.trend.down { color: var(--red-ink); }
.trend.flat { color: var(--text-dim); }
:root[data-theme="dark"] .trend.up { color: #86d3a8; }

.board-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }

.detail-hero { position: relative; background: var(--ink); color: var(--text-inv); overflow: hidden; padding-block: var(--sp-8); }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 20% 0%, rgba(200, 32, 47, 0.34) 0%, transparent 66%); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background-image: var(--tex-paper); opacity: 0.05; }
.detail-hero > .wrap { position: relative; z-index: 1; }
.detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.poster-wrap { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(228, 179, 99, 0.3); box-shadow: var(--sh-ink); }
.poster-wrap img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.player-bar {
  position: absolute; inset: auto 0 0 0; padding: 12px;
  background: linear-gradient(transparent, rgba(15, 15, 16, 0.9) 40%);
  display: grid; gap: 8px;
}
.play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 40px; border: 0; border-radius: var(--r-pill); background: var(--gold); color: var(--on-gold);
  font-size: 0.875rem; font-weight: 600; cursor: pointer; width: 100%;
  transition: background var(--dur) var(--ease);
}
.play-btn:hover { background: #eec079; }
.now-playing { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-inv); opacity: 0.86; }
.progress { height: 2px; background: rgba(250, 248, 244, 0.22); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 520ms linear; }

.detail-copy .eyebrow { color: var(--gold); }
.detail-copy h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: var(--lh-display); margin-block: 12px 8px; color: var(--text-inv); }
.detail-copy .latin { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; color: var(--text-inv-dim); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block: var(--sp-5) var(--sp-4); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border: 1px solid var(--line-inv); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-inv-dim);
}
.pill.hot { border-color: rgba(200, 32, 47, 0.5); color: #f0a3ab; }
.detail-syn { color: var(--text-inv-dim); max-width: 58ch; font-size: var(--fs-body); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5); }
.tag { display: inline-flex; align-items: center; min-height: 26px; font-size: 0.75rem; color: var(--gold); border-bottom: 1px solid rgba(228, 179, 99, 0.42); padding-bottom: 1px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.ep-section { padding-block: var(--sp-8); }
.ep-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-4); }
.ep-btn {
  display: grid; gap: 8px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; text-align: left; overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ep-btn:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--sh-1); }
.ep-btn.is-on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.ep-thumb { display: block; width: 100%; overflow: hidden; background: var(--paper-2); }
.ep-thumb img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ep-label { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 0 10px 10px; }
.ep-label b { font-family: var(--font-mono); font-size: 0.75rem; color: var(--red-ink); letter-spacing: 0.06em; }
.ep-label span { font-size: 0.75rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-4); }
.cast-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.cast-item img { width: 48px; height: 48px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; flex: none; }
.cast-item b { display: block; font-size: 0.9375rem; }
.cast-item small { display: block; color: var(--text-dim); font-size: 0.75rem; }

.prose { max-width: 68ch; display: grid; gap: var(--sp-4); }
.prose p { color: var(--text-dim); line-height: 1.86; }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--sp-6); line-height: var(--lh-tight); }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--sp-4); }
.prose strong { color: var(--text); font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.standard-list { display: grid; gap: var(--sp-4); }
.standard-item { display: grid; grid-template-columns: 42px 1fr; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.standard-item .n { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--red-ink); letter-spacing: 0.1em; }
.standard-item b { display: block; font-family: var(--font-display); font-size: 1.0625rem; margin-bottom: 6px; }
.standard-item p { font-size: 0.875rem; color: var(--text-dim); }
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.schedule th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 500; }
.schedule td.mono { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.8125rem; }

.site-foot { background: var(--ink); color: var(--text-inv-dim); padding-block: var(--sp-8) var(--sp-6); position: relative; overflow: hidden; }
.site-foot::after { content: ""; position: absolute; inset: 0; background-image: var(--tex-paper); opacity: 0.04; pointer-events: none; }
.site-foot > .wrap { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 0.7fr); gap: var(--sp-6); }
.foot-brand .brand-name { color: var(--text-inv); }
.foot-brand .brand-latin { color: var(--text-inv-dim); }
.foot-tagline { margin-top: var(--sp-4); font-size: 0.8125rem; max-width: 30ch; line-height: 1.72; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: var(--sp-4); font-weight: 500; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 26px; padding-block: 3px; font-size: 0.8125rem; color: var(--text-inv-dim); transition: color var(--dur) var(--ease); }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-8); padding-top: var(--sp-4); border-top: 1px solid var(--line-inv);
  font-size: 0.75rem; letter-spacing: 0.04em;
}
.foot-bottom a:hover { color: var(--gold); }

.to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: var(--z-top);
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(8px);
  color: var(--text); cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); border-color: var(--gold); }

.err-wrap { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: var(--sp-4); padding-block: var(--sp-9); }
.err-code { font-family: var(--font-mono); font-size: clamp(3rem, 2rem + 6vw, 6rem); color: var(--red-ink); line-height: 1; }
.err-wrap h1 { font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
.err-wrap p { color: var(--text-dim); max-width: 42ch; margin-inline: auto; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-stage { min-height: 380px; order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .stage-main { max-width: 250px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 240px 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .search { display: none; }
  .burger { display: grid; }
  .head-inner { height: 60px; gap: var(--sp-3); min-width: 0; }
  .brand-latin { display: none; }
  .head-tools { flex: none; min-width: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-inline-end: 0; border-bottom: 1px solid var(--line-inv); }
  .fact:nth-child(odd) { padding-inline-start: 0; }
  .fact:nth-child(even) { border-inline-end: 0; }
  .fact:last-child, .fact:nth-last-child(2) { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .poster-wrap { max-width: 260px; }
  .cta-band { grid-template-columns: 1fr; padding: var(--sp-6); }
  .rank-row { grid-template-columns: 34px 40px 1fr auto; }
  .rank-sc { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
}
@media (max-width: 620px) {
  :root { --fs-body: 0.9375rem; }
  .hero-inner { padding-block: var(--sp-7) var(--sp-6); }
  .hero h1 .thin { font-size: 0.42em; }
  .hero-stage { min-height: 320px; }
  .stage-side { top: 22px; width: 30%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sec-head { align-items: flex-start; }
  .sec-head-r { width: 100%; justify-content: space-between; }
  .ep-grid { grid-template-columns: repeat(2, 1fr); }
  .cast { grid-template-columns: 1fr; }
  .cta-band { padding: var(--sp-5); }
  .strip { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-tagline { max-width: none; }
  .book-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .rank-row { grid-template-columns: 28px 1fr auto; gap: 10px; }
  .rank-thumb { display: none; }
}
