*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-deep: #0d1113;
  --bg-rock: #14191c;
  --bg-panel: #1a2126;
  --bg-panel-2: #202a30;
  --line: #2b363c;
  --line-soft: #223035;
  --ink: #d7dde0;
  --ink-dim: #8a969c;
  --ink-faint: #5d6a70;
  --amber: #f0a53c;
  --amber-deep: #c97f1e;
  --amber-glow: rgba(240, 165, 60, 0.14);
  --cold: #4a5a62;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(13,17,19,0.98), rgba(13,17,19,0.86));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 16px;
}
.brand-mark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
  text-transform: uppercase;
  border-left: 3px solid var(--amber);
  padding-left: 9px;
  white-space: nowrap;
}
a[data-contract="site-name"] { color: var(--amber); text-decoration: none; }
a[data-contract="site-name"]:hover { color: #ffc36b; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 400;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-rock);
  transition: color .15s, border-color .15s, background .15s;
}
a.runtime-category:hover {
  color: var(--amber);
  border-color: var(--amber-deep);
  background: var(--amber-glow);
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 8px;
}
.section-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: none;
  padding-left: 10px;
  border-left: 3px solid var(--amber);
  margin-bottom: 10px;
  line-height: 1.1;
}
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  position: relative;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}
.hero-poster-panel {
  position: relative;
  align-self: start;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-rock);
}
.hero-poster-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,19,0.55) 0%, rgba(13,17,19,0) 32%, rgba(13,17,19,0.92) 100%),
    linear-gradient(90deg, rgba(13,17,19,0.7) 0%, rgba(13,17,19,0) 60%);
  pointer-events: none;
}
.hero-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.12) brightness(0.82) sepia(0.12) hue-rotate(-8deg);
}
.hero-info-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  min-width: 0;
}
.hero-title {
  font-size: clamp(30px, 7vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #f4f7f8;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.hero-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.22em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.player-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #000;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.player-video {
  display: block;
  width: 100%;
  max-width: none;
  background: #000;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}
.player-btn {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 9px;
  background: var(--bg-rock);
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.player-btn:hover { color: var(--amber); border-color: var(--amber-deep); }
.player-btn.is-on, .player-btn.is-boosted, .player-btn.is-muted { color: var(--amber); border-color: var(--amber-deep); background: var(--amber-glow); }
.player-range {
  flex: 1 1 90px;
  min-width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  border: 0;
}
.player-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
}
.player-shell.theater-mode { position: relative; z-index: 30; }
.lights-off .hero-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 20;
}
.lights-off .player-shell { position: relative; z-index: 25; }
.synopsis-block {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.synopsis-lead {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #b9c3c8;
  max-width: 74ch;
  margin-bottom: 12px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.synopsis-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.synopsis-step {
  background: var(--bg-rock);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-dim);
  padding: 9px 11px 9px 30px;
  position: relative;
  counter-increment: step;
}
.synopsis-steps { counter-reset: step; }
.synopsis-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 9px;
  top: 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--amber-deep);
  letter-spacing: 0.04em;
}
.episode-status {
  grid-column: 1 / -1;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line-soft);
}
.status-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.status-note {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--amber);
  margin-top: 3px;
  letter-spacing: 0.08em;
}
.cast-rail {
  grid-column: 1 / -1;
  padding: 8px 0 6px;
  border-top: 1px solid var(--line-soft);
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr));
  gap: 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 0 0 8px;
  overflow: hidden;
  align-self: start;
}
.cast-face {
  position: relative;
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #eef2f3;
  letter-spacing: 0.04em;
  padding: 16px 10px 10px;
  min-height: 78px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(240,165,60,0.22), rgba(240,165,60,0) 55%),
    linear-gradient(200deg, #26333a 0%, #151b1f 70%);
  border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 0 0);
}
.cast-face::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(13,17,19,0) 0%, rgba(13,17,19,0.9) 100%);
  pointer-events: none;
}
.cast-role {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-dim);
  padding: 0 10px;
}
.detail-strip {
  grid-column: 1 / -1;
  padding: 10px 0 6px;
  border-top: 1px solid var(--line-soft);
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--bg-panel);
  padding: 7px 10px;
}
.detail-item dt {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.detail-item dd {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}
.timeline-section {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--amber-deep) var(--bg-rock);
}
.timeline-scroll::-webkit-scrollbar { height: 7px; }
.timeline-scroll::-webkit-scrollbar-track { background: var(--bg-rock); }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--amber-deep); border-radius: 4px; }
.timeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
  padding: 4px 0 2px;
}
.timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 176px;
  padding: 12px 12px 12px 16px;
  background: var(--bg-rock);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}
.timeline-node:first-child { border-left: 1px solid var(--line); }
.timeline-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cold);
}
.timeline-node::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg-rock);
  border: 2px solid var(--cold);
}
.node-timecode {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  padding-left: 8px;
}
.node-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-dim);
  padding-left: 8px;
}
.timeline-node.is-current {
  background: linear-gradient(180deg, rgba(240,165,60,0.13), rgba(240,165,60,0.04));
  border-color: var(--amber-deep);
}
.timeline-node.is-current::before { background: var(--amber); }
.timeline-node.is-current::after { border-color: var(--amber); background: var(--bg-deep); }
.timeline-node.is-current .node-timecode { color: var(--amber); }
.timeline-node.is-current .node-label { color: #f0e6d6; font-weight: 700; }
.episodes-section {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.episode-slate {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.episode-slate-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  background: var(--bg-rock);
  min-width: 0;
}
.episode-slate-row:nth-child(even) { background: var(--bg-panel); }
.slate-number {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 9px 9px 11px;
  border-right: 1px solid var(--line);
  border-left: 2px solid var(--cold);
  min-height: 100%;
}
.ep-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ep-duration {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.slate-body {
  padding: 8px 11px 10px;
  min-width: 0;
}
.ep-title {
  font-size: 14px;
  font-weight: 700;
  color: #e6ebed;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.ep-summary {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-dim);
}
.episode-slate-row.is-current {
  background: linear-gradient(180deg, rgba(240,165,60,0.11), rgba(240,165,60,0.03));
}
.episode-slate-row.is-current .slate-number { border-left-color: var(--amber); }
.episode-slate-row.is-current .ep-num { color: var(--amber); }
.episode-slate-row.is-current .ep-title { color: #ffd79a; }
.comments-section {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.comment-masonry {
  columns: 2;
  column-gap: 8px;
}
.comment-card {
  break-inside: avoid;
  margin-bottom: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cold);
  padding: 7px 10px 9px;
}
.comment-card:nth-child(3n) { border-left-color: var(--amber-deep); }
.comment-nick {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comment-text {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-dim);
}
.rec-grid-region {
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}
.rec-grid-region:last-child { border-bottom: 0; }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 8px;
  align-items: start;
}
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-rock);
  border: 1px solid var(--line);
  padding: 6px;
  color: var(--ink);
  text-decoration: none;
  align-self: start;
  transition: border-color .15s, background .15s;
}
a.rec-card:hover {
  border-color: var(--amber-deep);
  background: var(--amber-glow);
}
[data-runtime="recommendation"] img, .rec-pic {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  background: #0a0e10;
  filter: grayscale(0.3) contrast(1.08) brightness(0.85);
}
.rec-name {
  font-size: 13px;
  font-weight: 700;
  color: #e6ebed;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-blurb {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-rock);
}
.disclaimer {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-faint);
  max-width: 90ch;
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"] { color: var(--amber); }
a[data-contract="footer-sitemap"] { color: #9fb0b6; }
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { border-bottom-color: currentColor; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.friend-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dashed var(--line);
}
a.runtime-friend-link:hover { color: var(--amber); border-bottom-color: var(--amber-deep); }
@media (min-width: 560px) {.comment-masonry { columns: 3; }}
@media (min-width: 760px) {.hero-stage {
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-areas:
      "poster info"
      "synopsis synopsis"
      "status status"
      "cast cast"
      "details details";
    column-gap: 18px;
    row-gap: 12px;
  }
.hero-poster-panel { grid-area: poster; }
.hero-info-panel { grid-area: info; }
.synopsis-block { grid-area: synopsis; }
.episode-status { grid-area: status; }
.cast-rail { grid-area: cast; }
.detail-strip { grid-area: details; }}
@media (min-width: 900px) {body { font-size: 14px; }
.page-main { padding: 0 22px 10px; }
.header-inner { padding: 10px 22px; }
.comment-masonry { columns: 4; }}
@media (max-width: 480px) {.episode-slate-row { grid-template-columns: 68px minmax(0, 1fr); }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); }
.rec-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.player-controls { gap: 4px; padding: 6px; }
.player-btn { font-size: 11px; padding: 3px 7px; }
.hero-title { font-size: 30px; }}
@media (prefers-reduced-motion: reduce) {* { transition: none !important; scroll-behavior: auto !important; }}

footer{text-align:center!important}
footer *{justify-content:center!important}
footer :is(div,nav,ul,ol,p,section,address){margin-left:auto!important;margin-right:auto!important}
