:root {
  --bg: #0f0d0a;
  --surface: #1a1712;
  --surface-2: #231f18;
  --line: #2e2920;
  --text: #f4efe4;
  --muted: #a49c8b;
  --honey: #f5b301;
  --honey-soft: rgba(245, 179, 1, .14);
  --honey-ink: #1c1500;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.wrap { min-height: 70vh; padding-bottom: 48px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 13, 10, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -.02em; }
.logo b, .foot-brand b { color: var(--honey); font-weight: 800; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 18px; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.search { position: relative; margin-left: auto; width: min(340px, 42vw); }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid #4a4131; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; outline: none; -webkit-appearance: none; }
.search input::placeholder { color: #b8ae99; }
.search input:focus { border-color: var(--honey); box-shadow: 0 0 0 3px var(--honey-soft); }
.search-icon { position: absolute; left: 15px; top: 12px; width: 18px; height: 18px; fill: none; stroke: var(--honey); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.suggest { position: absolute; top: 44px; right: 0; left: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 14px; }
.suggest a:hover { background: var(--surface-2); }
.suggest img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.suggest em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.suggest .all { color: var(--honey); border-top: 1px solid var(--line); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 16px; }
.card a { display: block; }
.poster { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card a:hover .poster img { transform: scale(1.04); }
.poster.bad img { visibility: hidden; }
.eps { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .72); font-size: 12px; font-weight: 600; }
.poster .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--honey); }
.card-title { margin-top: 8px; font-size: 15px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-hook { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* rails */
.rail { margin-top: 40px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.rail-head h2, .block h2, .pitch h2 { font-size: 21px; letter-spacing: -.01em; }
.rail-more { color: var(--honey); font-size: 14px; font-weight: 600; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .card { scroll-snap-align: start; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rail-lg .rail-track { grid-auto-columns: 200px; }
.rail-lg .card-title { font-size: 16px; }
.cw { margin-top: 28px; }
.cw-track { display: grid; grid-auto-flow: column; grid-auto-columns: 340px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.cw-track::-webkit-scrollbar { display: none; }
.cw-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 14px 11px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cw-item:hover { border-color: var(--muted); }
.cw-item img { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-2); }
.cw-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cw-play { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--honey); color: var(--honey-ink); font-size: 13px; padding-left: 2px; }
.cw-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-text em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--honey); }
.cw-text small { color: var(--muted); font-weight: 500; }
.cw-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--honey); }

.kicker { margin: 0 0 8px; color: var(--honey); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lede { font-family: var(--serif); font-size: 20px; line-height: 1.5; font-style: italic; color: #e9e1cf; margin: 14px 0 22px; max-width: 60ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font: 700 16px var(--sans); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }

.pitch { margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); max-width: 70ch; }
.pitch h2 { color: var(--text); margin-bottom: 8px; }

/* drama page */
.crumbs { margin: 20px 0 16px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.watch { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 40px; align-items: start; }
.watch > * { min-width: 0; }
.stage { position: sticky; top: 76px; }
.player { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100vh - 150px); margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.play-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; color: var(--text);
  background: #000; font: 700 16px var(--sans); overflow: hidden; }
.play-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .6)); }
.play-cover span, .play-cover em { position: relative; z-index: 1; }
.play-cover span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--honey); color: var(--honey-ink); font-size: 30px; padding-left: 5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.play-cover em { font-style: normal; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); }
.play-cover[hidden] { display: none; }
.player-msg { position: absolute; left: 12px; right: 12px; bottom: 64px; padding: 16px; border-radius: var(--radius); background: rgba(20, 17, 12, .94); border: 1px solid var(--line); text-align: center; }
.player-msg p { margin: 0 0 10px; }
.player-msg a { color: var(--honey); font-weight: 700; }
.ep-head { margin-top: 12px; }
.ep-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ep-strip { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 0; }
.ep-strip::-webkit-scrollbar { display: none; }
.ep-strip .ep { flex: none; min-width: 44px; padding: 0 6px; scroll-snap-align: center; }
.ep-step { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; }
.ep-now { color: var(--muted); font-size: 14px; }
.ep-now b { color: var(--text); }
.info h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; }
.meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.info .lede { margin: 18px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--honey-soft); color: var(--honey); font-size: 13px; font-weight: 600; }
.chip:hover { background: rgba(245, 179, 1, .24); }
.block { margin-top: 36px; }
.block h2 { margin-bottom: 12px; }
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.why li { position: relative; padding-left: 26px; }
.why li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.story p { margin: 0 0 14px; color: #ddd5c4; max-width: 68ch; }
.ep { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.ep:hover { border-color: var(--muted); }
.ep.on { background: var(--honey); border-color: var(--honey); color: var(--honey-ink); }

/* lists */
.page-head { margin: 32px 0 24px; max-width: 70ch; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.page-head p { color: var(--muted); margin: 8px 0 0; }
.page-head .kicker a { color: var(--honey); }
.trope-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.trope-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.trope-list a:hover { border-color: var(--honey); }
.trope-list em { font-style: normal; color: var(--muted); font-size: 13px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager a, .pager .cur { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); }
.pager .cur { background: var(--honey); color: var(--honey-ink); border-color: var(--honey); font-weight: 700; }
.empty { color: var(--muted); margin-bottom: 24px; }
.prose { max-width: 68ch; margin-top: 32px; }
.prose h1 { margin-bottom: 16px; }
.prose a { color: var(--honey); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-brand .logo-mark { width: 18px; height: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .top { position: static; }
  .top-row { flex-wrap: wrap; height: auto; padding: 10px 16px 12px; gap: 10px 16px; }
  .nav { margin-left: auto; gap: 16px; font-size: 15px; }
  .search { order: 3; width: 100%; flex: none; }
  .suggest { min-width: 0; }
  .kicker { font-size: 11px; margin-bottom: 6px; }
  .lede { font-size: 17px; }
  .watch { grid-template-columns: 1fr; gap: 24px; }
  .stage { position: static; }
  .player { max-height: 78vh; width: auto; border-radius: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 12px; }
  .rail-track { grid-auto-columns: 132px; gap: 12px; }
  .rail-lg .rail-track { grid-auto-columns: 168px; }
  .cw { margin-top: 20px; }
  .cw-track { grid-auto-columns: minmax(82%, 1fr); }
  .rail-lg:first-child, #continue:empty + .rail-lg { margin-top: 20px; }
}
@media (max-width: 480px) {
  .rail { margin-top: 32px; }
  .rail-head h2, .block h2 { font-size: 19px; }
  .crumbs { margin: 12px 0; }
  .info h1 { font-size: 26px; }
}
