*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:root {
  --wall: #b8b3aa;
  --wall-deep: #a49e93;
  --wall-pale: #cfcac0;
  --ink: #1d2733;
  --ink-soft: #3a4654;
  --ink-dim: #6b7480;
  --navy: #16222f;
  --navy-soft: #22303f;
  --red: #b8332a;
  --red-deep: #8e241d;
  --line: rgba(29, 39, 51, .16);
  --line-strong: rgba(29, 39, 51, .34);
  --paper: rgba(255, 255, 255, .38);
  --gap: 10px;
  --gap-tight: 6px;
}
body {
  background-color: var(--wall);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(0,0,0,.05) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.03) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: .01em;
  min-height: 100vh;
}
h1, h2, h3, .brand-mark, .section-title, .rec-name {
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
  padding: 8px 14px;
  background: var(--navy);
  color: var(--wall-pale);
  border-bottom: 2px solid var(--red);
}
.masthead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.brand-mark {
  font-size: 17px;
  line-height: 1.2;
  color: #f2efe9;
  border-left: 3px solid var(--red);
  padding-left: 8px;
}
.masthead-note {
  font-size: 11px;
  color: rgba(207, 202, 192, .72);
  letter-spacing: .16em;
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 9px;
  color: var(--wall-pale);
  background: var(--navy-soft);
  border: 1px solid rgba(207,202,192,.28);
  text-decoration: none;
}
a.runtime-category:hover {
  color: #fff;
  background: var(--red-deep);
  border-color: var(--red);
}
.page-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-title {
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
  padding-top: 8px;
  margin-bottom: 8px;
  border-top: 2px solid var(--ink);
  display: inline-block;
  min-width: 88px;
}
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  width: 34px;
  background: var(--red);
}
.overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  border: 1px solid var(--line-strong);
  padding: 10px;
}
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr) auto;
  gap: 14px;
  align-items: start;
  position: relative;
  padding-bottom: 4px;
}
.poster-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--navy);
  padding: 4px;
  align-self: start;
}
.poster-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.72) contrast(1.04);
}
.poster-frame::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(22,34,47,.72));
  pointer-events: none;
}
.hero-copy {
  position: relative;
  align-self: start;
  padding: 4px 0 26px;
  min-width: 0;
}
.film-title {
  font-size: 30px;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 6px;
}
.film-tagline {
  font-size: 13px;
  line-height: 1.5;
  color: var(--red-deep);
  border-left: 3px solid var(--red);
  padding-left: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}
.film-seo {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}
.film-line-note {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 10.5px;
  color: rgba(29,39,51,.45);
  letter-spacing: .1em;
  border-top: 1px dashed var(--line-strong);
  width: 100%;
  padding-top: 3px;
}
.hero-rail {
  align-self: start;
  border-left: 1px solid var(--line-strong);
  padding-left: 8px;
}
.hero-rail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-rail-item {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  line-height: 1.25;
  padding: 3px 0;
}
.hero-rail-item:first-child {
  font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
}
.player-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(22,34,47,.06);
  padding: 6px;
  transition: background .18s ease, box-shadow .18s ease;
}
.player-shell.is-theater {
  background: #0b1119;
  box-shadow: 0 0 0 1px var(--red) inset;
}
.movie-player {
  display: block;
  width: 100%;
  background: #000;
  border: 1px solid var(--line-strong);
}
.player-shell.is-theater .movie-player {
  border-color: var(--red);
}
.player-console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.ctrl-btn {
  font-size: 11.5px;
  line-height: 1.1;
  padding: 5px 9px;
  background: var(--navy);
  color: var(--wall-pale);
  border: 1px solid var(--navy-soft);
  cursor: pointer;
  white-space: nowrap;
}
.ctrl-btn:hover { background: var(--navy-soft); }
.ctrl-btn.is-active {
  background: var(--red-deep);
  border-color: var(--red);
  color: #fff;
}
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line-strong);
  border: none;
  min-width: 90px;
  flex: 1 1 110px;
  cursor: pointer;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  background: var(--red);
  border: none;
  cursor: pointer;
}
.ctrl-range::-moz-range-thumb {
  width: 11px; height: 11px;
  background: var(--red);
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.ctrl-select {
  font-size: 11.5px;
  padding: 4px 6px;
  background: var(--navy);
  color: var(--wall-pale);
  border: 1px solid var(--navy-soft);
  cursor: pointer;
}
body.lights-off .page-main { background: rgba(11,17,25,.06); }
body.lights-off .overview { border-color: var(--red); }
body.lights-off .movie-player { box-shadow: 0 0 0 1px var(--red); }
.synopsis-panel, .episode-status-panel, .details-panel, .cast-panel, .timeline-section, .episodes-section, .comments-section, .rec-region {
  min-width: 0;
}
.synopsis-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px 20px;
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
}
.synopsis-line {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  padding: 5px 0;
  border-bottom: 1px dotted var(--line);
}
.synopsis-line::before {
  content: "—";
  color: var(--red);
  margin-right: 6px;
}
.episode-status-panel .status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line-strong);
}
.status-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px;
  border-right: 1px solid var(--line);
  flex: 1 1 auto;
  min-width: 0;
}
.status-item:last-child { border-right: none; }
.status-key {
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: .08em;
}
.status-value {
  font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
}
.status-item:nth-child(2) .status-value { color: var(--red); }
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 18px;
  border-top: 1px solid var(--line-strong);
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.detail-key {
  flex: 0 0 62px;
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: .06em;
}
.detail-key::after { content: ""; }
.detail-value {
  flex: 1 1 auto;
  font-size: 12.5px;
  color: var(--ink);
  min-width: 0;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.cast-avatar {
  width: 100%;
  max-width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.5), rgba(255,255,255,0) 55%),
    linear-gradient(160deg, var(--wall-deep), var(--navy-soft));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 3px rgba(207,202,192,.22);
}
.cast-name {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  letter-spacing: .04em;
}
.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 22px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}
.timeline-node {
  position: relative;
  padding: 7px 0 9px;
  border-bottom: 1px dotted var(--line);
  min-width: 0;
}
.node-dot {
  position: absolute;
  left: -21px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wall);
  border: 1px solid var(--ink);
}
.timeline-node:first-child .node-dot {
  background: var(--red);
  border-color: var(--red-deep);
  box-shadow: 0 0 0 3px rgba(184,51,42,.18);
}
.node-time {
  display: inline-block;
  font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
  letter-spacing: .06em;
  margin-right: 8px;
}
.timeline-node:first-child .node-time { color: var(--red-deep); }
.node-label {
  display: inline;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.episode-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.episode-rail::-webkit-scrollbar { height: 6px; }
.episode-rail::-webkit-scrollbar-track { background: var(--line); }
.episode-rail::-webkit-scrollbar-thumb { background: var(--ink-dim); }
.episode-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px 7px;
  background: rgba(255,255,255,.30);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy);
  min-width: 0;
}
.episode-card:hover { background: rgba(255,255,255,.52); border-top-color: var(--red); }
.episode-number {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--red-deep);
  font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-weight: 700;
}
.episode-name {
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ink);
}
.episode-summary {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1 1 auto;
}
.episode-duration {
  font-size: 10.5px;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding-top: 3px;
  letter-spacing: .06em;
}
.comments-masonry {
  column-count: 2;
  column-gap: 12px;
}
.comment-card {
  break-inside: avoid;
  display: block;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.34);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-dim);
}
.comment-long { border-left-color: var(--navy); }
.comment-short { border-left-color: var(--red); }
.comment-text {
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.comment-meta {
  margin-top: 5px;
  padding-top: 3px;
  border-top: 1px dotted var(--line-strong);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-dim);
}
.comment-meta::before { content: "◎ "; color: var(--red); }
.rec-region {
  border-top: 1px solid var(--line-strong);
  padding-top: 4px;
}
.rec-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  align-items: start;
}
[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,.30);
  border: 1px solid var(--line);
  align-self: start;
  min-width: 0;
}
[data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--navy-soft);
  filter: saturate(.78);
}
[data-runtime="recommendation"]:hover {
  background: rgba(255,255,255,.55);
  border-color: var(--line-strong);
}
[data-runtime="recommendation"]:hover img { filter: saturate(1); }
.rec-name {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--navy);
}
.rec-blurb {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  background: var(--navy);
  color: rgba(207,202,192,.80);
  border-top: 2px solid var(--red);
  padding: 12px 14px 16px;
  margin-top: 8px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(207,202,192,.22);
}
.footer-brand {
  font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #f2efe9;
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  color: rgba(207,202,192,.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #fff;
  border-bottom-color: var(--red);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 0;
}
.friend-links-label {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--red);
  font-weight: 700;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: rgba(207,202,192,.68);
  text-decoration: none;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(207,202,192,.52);
  border-top: 1px solid rgba(207,202,192,.18);
  padding-top: 8px;
}
.is-playing .movie-player { outline: none; }
.movie-player.is-playing { border-color: var(--red); }
.movie-player.is-muted { opacity: .92; }
.player-shell.is-theater .player-console { border-top: 1px solid var(--red); padding-top: 5px; }
@media (max-width: 900px) {.hero-stage {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "poster copy"
      "rail rail";
  }
.poster-frame { grid-area: poster; }
.hero-copy { grid-area: copy; }
.hero-rail {
    grid-area: rail;
    border-left: none;
    border-top: 1px solid var(--line-strong);
    padding: 6px 0 0;
  }
.hero-rail-list { flex-direction: row; gap: 16px; }
.hero-rail-item { writing-mode: horizontal-tb; }
.cast-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.comments-masonry { column-count: 2; }}
@media (max-width: 640px) {.page-main { padding: 10px 10px 14px; gap: 10px; }
.hero-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "poster"
      "copy"
      "rail";
    gap: 10px;
  }
.film-title { font-size: 24px; }
.film-line-note { position: static; width: auto; margin-top: 6px; }
.hero-copy { padding-bottom: 4px; }
.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comments-masonry { column-count: 1; }
.synopsis-strip { grid-template-columns: minmax(0, 1fr); }
.detail-list { grid-template-columns: minmax(0, 1fr); }
.timeline-list { grid-template-columns: minmax(0, 1fr); }
.status-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--line); }
.status-item:last-child { border-bottom: none; }
.rec-board { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.episode-card { flex: 0 0 180px; }
.section-title { font-size: 14px; }}
@media (max-width: 420px) {.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-board { grid-template-columns: minmax(0, 1fr); }
.ctrl-range { flex: 1 1 100%; order: 3; }}

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}
