:root {
  --bg: #0e0f12;
  --surface: #17191e;
  --surface-2: #1f2229;
  --line: #2a2e36;
  --text: #f2f3f5;
  --muted: #9aa1ad;
  --accent: #ff8a4c;
  --accent-soft: rgba(255, 138, 76, .14);
  --accent-ink: #2a1206;
  --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(14, 15, 18, .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(--accent); font-weight: 800; }
.logo-mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.nav { display: flex; gap: 18px; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav { align-items: center; }
.nav:last-child { margin-left: auto; }
.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 #353a44; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; outline: none; -webkit-appearance: none; }
.search input::placeholder { color: #a3aab6; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-icon { position: absolute; left: 15px; top: 12px; width: 18px; height: 18px; fill: none; stroke: var(--accent); 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(--accent); border-top: 1px solid var(--line); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card a { display: flex; flex-direction: column; flex: 1; }
.plat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.plat i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
a.plat:hover { color: var(--text); }
.poster { position: relative; aspect-ratio: 3 / 4; 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; }
.poster .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.card-title { margin: 0; padding: 8px 10px 10px; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-hook { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 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-mark h2::before { content: ""; display: inline-block; width: 4px; height: .85em; margin-right: 8px; border-radius: 2px; background: var(--accent); vertical-align: -.05em; }
.rail-more { color: var(--accent); font-size: 14px; font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cw { margin-top: 28px; }

.kicker { margin: 0 0 8px; color: var(--accent); 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: #e6e8ec; 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(--accent); color: var(--accent-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(--accent); color: var(--accent-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.pre video { object-fit: cover; }
.spin { display: none; position: absolute; left: 50%; top: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; pointer-events: none; }
.player.wait .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 静音期间整块画面都是开声热区，只让出底部原生控制条 */
.unmute { position: absolute; inset: 0 0 56px 0; z-index: 2; padding: 0; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.unmute[hidden] { display: none; }
.unmute-chip { position: absolute; top: 12px; right: 12px; display: none; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(0, 0, 0, .62); font-size: 13px; font-weight: 700; white-space: nowrap; transition: top .35s, right .35s, transform .35s, padding .35s, font-size .35s; }
.unmute.show .unmute-chip { display: flex; }
.unmute-chip svg { width: 18px; height: 18px; transition: width .35s, height .35s; }
.unmute.big .unmute-chip { top: 50%; right: 50%; transform: translate(50%, -50%); flex-direction: column; gap: 10px; padding: 20px 26px; font-size: 16px; background: rgba(0, 0, 0, .72); box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }
.unmute.big .unmute-chip svg { width: 44px; height: 44px; }
.player-msg { z-index: 3; position: absolute; left: 12px; right: 12px; bottom: 64px; padding: 16px; border-radius: var(--radius); background: rgba(20, 22, 26, .94); border: 1px solid var(--line); text-align: center; }
.player-msg p { margin: 0 0 10px; }
.player-msg a { color: var(--accent); font-weight: 700; }
.finish { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 16px; background: rgba(10, 11, 14, .98); text-align: center; overflow-y: auto; }
.finish-hd { margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.finish-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 300px; color: var(--text); text-decoration: none; }
.finish-card img { height: min(30vh, 220px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; outline: 2px solid var(--accent); background: var(--line); margin-bottom: 4px; }
.finish-card b { font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.finish-eps { font-size: 12px; color: var(--muted); }
.finish-hook { font-size: 14px; line-height: 1.4; color: var(--text); opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.finish-play { text-decoration: none; width: 100%; max-width: 300px; justify-content: center; }
.finish-foot { display: flex; gap: 18px; align-items: center; }
.finish-more { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.finish-x { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.ep-head { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.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); }
.ep-free { color: var(--accent); font-size: 13px; }
.info h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; }
.meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.info .chips { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.chip:hover { background: rgba(255, 138, 76, .24); }
.block { margin-top: 36px; }
.block h2 { margin-bottom: 12px; }
.story p { margin: 0 0 14px; color: #d6d9df; max-width: 68ch; }
.story.fold { position: relative; max-height: 9.3em; overflow: hidden; }
.story.fold::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(14, 15, 18, 0), var(--bg)); }
#story-more:checked + .story.fold { max-height: none; }
#story-more:checked + .story.fold::after, #story-more:checked ~ .more-btn { display: none; }
.more-btn { display: inline-block; margin-top: 4px; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.faq { margin: 0; max-width: 68ch; }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: #d6d9df; }
.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(--accent); border-color: var(--accent); color: var(--accent-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; }
.h1-sub { color: var(--muted); font-weight: 400; }
.page-head .kicker a { color: var(--accent); }
.page-head .intro-more { display: none; }
.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(--accent); }
.trope-list em { font-style: normal; color: var(--muted); font-size: 13px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); }
.pager .step { font-size: 26px; font-weight: 700; color: var(--accent); border-color: var(--accent); }
.pager .off { color: var(--muted); border-color: var(--line); opacity: .4; }
.pager .gap { border: 0; color: var(--muted); }
.pager .cur { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); 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(--accent); }

.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; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.foot-tag { margin-top: 0; }
.foot-brand .logo-mark { width: 18px; height: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a:hover { color: var(--text); }
.foot-contact { margin-top: 10px; }
.foot-contact a { color: var(--text); }

@media (max-width: 820px) {
  .top { position: relative; }
  .top-row { flex-wrap: wrap; height: auto; padding: 8px 16px 10px; gap: 8px 16px; }
  .search input { height: 38px; }
  .search-icon { top: 10px; }
  .page-head { margin: 16px 0 16px; }
  .page-head .intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .page-head .intro-more { display: inline-block; margin-top: 2px; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
  #intro-more:checked ~ .intro { display: block; }
  #intro-more:checked ~ .intro-more { display: none; }
  .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 { gap: 20px 12px; }
  .recs .card:nth-child(n+7) { display: none; }
  .card-title { font-size: 14px; padding: 7px 8px 9px; }
  .cw { margin-top: 20px; }
  #continue:empty + .rail { margin-top: 20px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .pager { gap: 5px; }
  .pager a, .pager span { flex: 1; min-width: 0; }
  .top-row { padding: 8px 12px 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rail { margin-top: 32px; }
  .rail-head h2, .block h2 { font-size: 19px; }
  .crumbs { margin: 12px 0; }
  .info h1 { font-size: 26px; }
}


