*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --salt: #d8d5cc;
  --salt-dim: #b6b2a6;
  --ash: #8c8779;
  --loam: #4c473d;
  --loam-deep: #2e2b25;
  --earth: #3a352c;
  --ochre: #9c6b3f;
  --ochre-deep: #6f4a29;
  --wheat: #d9a94b;
  --wheat-bright: #edc161;
  --ink: #1c1a16;
  --line: #57503f;
  --line-soft: #6e6753;
  --bg: #262319;
  --bg-2: #2f2b20;
  --bg-3: #1e1c14;
  --text: #d9d4c4;
  --text-dim: #9d9683;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; }
.site-header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
  max-width: 1240px;
  margin: 0 auto;
}
.site-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wheat);
  border-left: 3px solid var(--ochre);
  padding-left: 9px;
  white-space: nowrap;
  transition: color 0.18s ease;
}
a[data-contract="site-name"] { color: var(--wheat); text-decoration: none; }
a[data-contract="site-name"]:hover { color: var(--wheat-bright); text-decoration: none; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
a.header-nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 11px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}
a.header-nav-link:hover {
  color: var(--text);
  border-color: var(--line);
  text-decoration: none;
}
.categories-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 0;
  padding: 0 16px 8px;
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--bg-2);
  padding-top: 7px;
}
a.runtime-category {
  color: var(--salt-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
a.runtime-category:first-child { padding-left: 0; }
a.runtime-category:last-child { border-right: none; }
a.runtime-category:hover {
  color: var(--wheat);
  background: rgba(217, 169, 75, 0.07);
  text-decoration: none;
}
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.overview-block {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 16px;
  position: relative;
}
.overview-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ochre-deep), var(--wheat) 46%, var(--salt-dim));
}
.overview-poster-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: start;
}
.poster-frame {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--earth);
  overflow: hidden;
}
.poster-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.poster-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  border-left: 2px solid var(--ochre-deep);
  padding-left: 7px;
}
.overview-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  align-self: start;
}
.overview-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.overview-title {
  font-size: 26px;
  line-height: 1.2;
  color: var(--salt);
  letter-spacing: 0.04em;
}
.overview-tagline {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--wheat);
  letter-spacing: 0.05em;
}
.overview-subtitle {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.player-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.player-frame {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}
.player-frame video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 7px 9px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.control-btn {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.control-btn:hover {
  color: var(--wheat);
  border-color: var(--ochre);
  background: rgba(217, 169, 75, 0.06);
}
.control-btn.is-active {
  color: var(--ink);
  background: var(--wheat);
  border-color: var(--wheat);
}
.control-btn.is-playing { color: var(--wheat); border-color: var(--ochre); }
.control-btn.is-paused { color: var(--text-dim); }
.control-btn.is-muted { color: var(--ochre); border-color: var(--ochre-deep); }
.control-btn.is-sounding { color: var(--salt-dim); }
.control-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.control-label {
  color: var(--ash);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.control-range {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 3px;
  background: var(--line);
  cursor: pointer;
  outline: none;
}
.control-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 13px;
  background: var(--wheat);
  border: none;
  cursor: pointer;
}
.control-range::-moz-range-thumb {
  width: 9px;
  height: 13px;
  background: var(--wheat);
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.control-range.is-live { background: var(--ochre-deep); }
.control-select {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 11.5px;
  padding: 2px 4px;
  cursor: pointer;
}
.detail-panel {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.detail-heading, .status-heading, .cast-heading {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ochre);
  margin-bottom: 8px;
  font-family: var(--sans);
  font-weight: 600;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--bg-3);
}
.detail-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid var(--bg-2);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  width: 62px;
  font-size: 11.5px;
  color: var(--ash);
  letter-spacing: 0.06em;
}
.detail-val {
  font-size: 12.5px;
  color: var(--text);
  min-width: 0;
  overflow-wrap: break-word;
}
.status-panel {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.status-chip {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border: 1px solid var(--ochre);
  color: var(--wheat);
  background: rgba(217, 169, 75, 0.08);
  white-space: nowrap;
}
.status-chip-alt {
  border-color: var(--line-soft);
  color: var(--salt-dim);
  background: transparent;
}
.status-note {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.cast-panel {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}
.cast-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.cast-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, var(--loam) 0%, var(--ash) 52%, var(--salt-dim) 100%);
  position: relative;
  overflow: hidden;
}
.cast-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 26, 22, 0.55));
}
.cast-name {
  font-size: 12.5px;
  color: var(--salt);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cast-role {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.synopsis-block {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.section-title {
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--salt);
  line-height: 1.3;
}
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin-top: 9px;
}
.synopsis-para {
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-dim);
  letter-spacing: 0.015em;
  text-align: justify;
  border-left: 2px solid var(--bg-3);
  padding-left: 10px;
}
.synopsis-para:first-child {
  color: var(--text);
  border-left-color: var(--ochre-deep);
}
.timeline-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.timeline-hint {
  font-size: 11.5px;
  color: var(--ash);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--ochre-deep) var(--bg-3);
}
.timeline-scroll::-webkit-scrollbar { height: 6px; }
.timeline-scroll::-webkit-scrollbar-track { background: var(--bg-3); }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--ochre-deep); }
.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-top: 22px;
  min-width: max-content;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: var(--line);
}
.timeline-node {
  flex: 0 0 200px;
  position: relative;
  padding: 0 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: flex-start;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 1px;
  height: 11px;
  background: var(--ochre);
}
.timeline-node::after {
  content: "";
  position: absolute;
  top: -19px;
  left: -2px;
  width: 5px;
  height: 5px;
  background: var(--wheat);
}
.timeline-timecode {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--wheat);
  letter-spacing: 0.08em;
}
.timeline-label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.015em;
  border-top: 1px solid var(--bg-3);
  padding-top: 5px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.section-note {
  font-size: 11.5px;
  color: var(--ash);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.episodes-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.episode-card {
  background: var(--bg-2);
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: background 0.16s ease;
}
.episode-card:hover { background: var(--bg-3); }
.episode-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ochre);
}
.episode-name {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--salt);
  line-height: 1.3;
}
.episode-summary {
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  max-height: 4.9em;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.episode-card:hover .episode-summary { max-height: 14em; }
.episode-duration {
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 3px;
  border-top: 1px solid var(--bg-3);
}
.comments-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.comment-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  align-items: start;
}
.comment-stream {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.comment-stream:nth-child(2) { margin-top: 22px; }
.comment-card {
  border-left: 2px solid var(--line-soft);
  padding: 7px 0 7px 11px;
  background: linear-gradient(90deg, rgba(76, 71, 61, 0.28), transparent 82%);
  min-width: 0;
  transition: border-color 0.16s ease;
}
.comment-card:hover { border-left-color: var(--wheat); }
.comment-card-long { padding-bottom: 11px; }
.comment-card-short { padding-top: 4px; padding-bottom: 4px; }
.comment-nick {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ochre);
  margin-bottom: 3px;
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--text-dim);
  letter-spacing: 0.015em;
}
.comment-card-long .comment-text { color: var(--text); }
.recommend-region {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.recommend-title {
  margin-bottom: 10px;
  color: var(--salt-dim);
  font-size: 15px;
}
.recommend-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}
.recommend-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recommend-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 7px;
  min-width: 0;
  align-self: start;
  transition: border-color 0.16s ease, background 0.16s ease;
}
a.recommend-item:hover {
  border-color: var(--ochre);
  background: var(--bg-3);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--earth);
  border: 1px solid var(--bg-3);
}
.recommend-pic { display: block; }
.recommend-name {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--salt);
  line-height: 1.35;
}
.recommend-blurb {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  padding: 18px 16px 22px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 28px;
  align-items: start;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--bg-2);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  color: var(--salt-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--wheat);
  border-bottom-color: var(--ochre);
  text-decoration: none;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.friend-links-label {
  font-size: 11.5px;
  color: var(--ash);
  letter-spacing: 0.12em;
  flex: 0 0 auto;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
a.runtime-friend-link:hover {
  color: var(--wheat);
  border-bottom-color: var(--line-soft);
  text-decoration: none;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.68;
  color: var(--ash);
  letter-spacing: 0.02em;
  padding: 12px 0 8px;
  max-width: 88ch;
}
.footer-copy {
  font-size: 11px;
  color: var(--line-soft);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--bg-2);
  padding-top: 9px;
}
body.is-theater .overview-block {
  border-color: var(--ochre-deep);
}
body.is-theater .player-frame {
  border-color: var(--ochre);
}
body.is-lights-off {
  background: #14120d;
}
body.is-lights-off .site-header, body.is-lights-off .site-footer {
  background: #0e0d09;
}
body.is-lights-off .player-shell {
  background: #0a0906;
  padding: 10px;
  border: 1px solid var(--ochre-deep);
}
@media (max-width: 1024px) {.episode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recommend-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 880px) {.overview-block {
    grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
    gap: 14px;
  }
.synopsis-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.recommend-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-top { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 680px) {.page-main { padding: 0 12px 26px; gap: 16px; }
.header-bar { padding: 8px 12px; }
.categories-strip { padding: 7px 12px 8px; }
.site-name { font-size: 15px; }
.overview-block {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
    gap: 14px;
  }
.overview-poster-col {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
.poster-frame { flex: 0 0 108px; width: 108px; }
.poster-note { align-self: flex-end; }
.overview-title { font-size: 22px; }
.detail-grid { grid-template-columns: minmax(0, 1fr); }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.comment-stream:nth-child(2) { margin-top: 0; }
.recommend-grid-4, .recommend-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-node { flex-basis: 168px; }}
@media (max-width: 460px) {.header-nav { gap: 0; }
a.header-nav-link { padding: 4px 8px; font-size: 12.5px; }
.overview-poster-col { flex-direction: column; }
.poster-frame { width: 100%; flex: none; }
.poster-note { align-self: stretch; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.recommend-grid-4, .recommend-grid-3 { grid-template-columns: minmax(0, 1fr); }
.cast-row { gap: 6px 12px; }
.cast-item { flex: 0 0 100%; }
.control-range { width: 72px; }
.timeline-node { flex-basis: 150px; }}

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}
