*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:root {
  --paper: #e7e0d5;
  --paper-2: #ded5c7;
  --paper-3: #d3c8b7;
  --ink: #211d19;
  --ink-soft: #4a423a;
  --ink-faint: #7b7266;
  --line: #b9ad9b;
  --line-soft: #cabfae;
  --gold: #a8813a;
  --gold-deep: #8a6524;
  --ember: #a45a2a;
  --radius: 10px;
  --radius-sm: 6px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(164, 90, 42, 0.10), transparent 60%),
    radial-gradient(90% 70% at 100% 8%, rgba(33, 29, 25, 0.07), transparent 55%),
    linear-gradient(180deg, #e9e2d7 0%, #e3dbcd 46%, #ddd3c3 100%);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  min-height: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(231, 224, 213, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(3px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(12px, 3vw, 30px);
  flex-wrap: wrap;
}
.site-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  line-height: 1.3;
}
.runtime-category:hover { color: var(--ink); border-color: var(--gold); }
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(12px, 3vw, 30px) 6px;
}
.section-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  margin-bottom: 8px;
  line-height: 1.2;
}
.stage-hero {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.hero-poster-shell { min-width: 0; }
.poster-frame {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 5px;
}
.poster-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 3px);
  object-fit: cover;
  background: var(--paper-2);
}
.hero-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.movie-title {
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.04em;
  font-family: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  font-stretch: normal;
}
.movie-tagline {
  font-size: 12.5px;
  color: var(--ember);
  letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-player-shell {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #17130f;
  border: 1px solid var(--line);
}
.hero-player-shell video {
  display: block;
  width: 100%;
  background: #17130f;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 6px 7px;
  background: linear-gradient(180deg, #241e18 0%, #1b1611 100%);
  border-top: 1px solid #3a3128;
}
.player-btn {
  font-size: 11px;
  line-height: 1.4;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #d8cec0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 206, 192, 0.2);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.player-btn:hover { background: rgba(168, 129, 58, 0.24); color: #f0e7d8; }
.player-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1b1611;
}
.player-btn.is-muted {
  background: var(--ember);
  border-color: var(--ember);
  color: #f6efe4;
}
body.lights-off .page-main { opacity: 0.55; }
body.lights-off .stage-hero { opacity: 1; }
body.lights-off .hero-player-shell { box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(0, 0, 0, 0.45); }
body.theater-mode .stage-hero { grid-template-columns: minmax(0, 1fr); }
body.theater-mode .hero-poster-shell { max-width: 260px; }
.episode-status { min-width: 0; }
.status-line {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.3);
}
.cast-strip { min-width: 0; }
.cast-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: flex-start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 54px;
  flex: 0 0 auto;
}
.cast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #cbbda8 0%, #b3a48e 55%, #9c8b73 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 -4px 8px rgba(33, 29, 25, 0.14);
}
.cast-name {
  font-size: 11px;
  line-height: 1.25;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}
.synopsis-block { min-width: 0; }
.synopsis-text {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-align: justify;
}
.synopsis-text + .synopsis-text { margin-top: 5px; }
.details-block { min-width: 0; }
.details-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.detail-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  min-width: 44px;
}
.detail-value {
  font-size: 12px;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.timeline-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 0;
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-areas:
    "dot code"
    "dot label";
  align-items: start;
  padding: 5px 0 5px 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.timeline-node:first-child::before { top: 12px; }
.timeline-node:last-child::before { bottom: calc(100% - 12px); }
.timeline-dot {
  grid-area: dot;
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 0 0 3px var(--paper);
}
.timeline-timecode {
  grid-area: code;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  line-height: 1.35;
}
.timeline-label {
  grid-area: label;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.episodes-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.episode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 12px 8px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.episode-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ember);
}
.episode-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.episode-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.episode-duration {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-top: 1px;
}
.comments-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 10px;
  align-items: start;
}
.comment-card {
  align-self: start;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.32);
  min-width: 0;
}
.comment-card:nth-child(2n) { margin-left: 10px; }
.comment-card:nth-child(3n) { margin-left: 4px; }
.comment-card:nth-child(5n) { margin-left: 14px; }
.comment-nickname {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 3px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.52;
  color: var(--ink-soft);
}
.rec-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rec-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.rec-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.rec-track::-webkit-scrollbar { height: 6px; }
.rec-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.rec-track::-webkit-scrollbar-track { background: transparent; }
.rec-card {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rec-card:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.55); }
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  background: var(--paper-3);
}
.rec-card [data-runtime="name"] {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rec-card [data-runtime="blurb"] {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: rgba(222, 213, 199, 0.6);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px clamp(12px, 3vw, 30px) 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.friend-links { min-width: 0; }
.friend-links-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.24);
}
.runtime-friend-link:hover { color: var(--ink); border-color: var(--gold); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.footer-link {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.footer-link:hover { color: var(--gold-deep); text-decoration: underline; }
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 76ch;
}
@media (max-width: 900px) {.stage-hero { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
.comment-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-card:nth-child(n) { margin-left: 0; }
.comment-card:nth-child(2n) { margin-left: 10px; }
.details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 720px) {.stage-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
.hero-poster-shell { max-width: 210px; }
.timeline-list { grid-template-columns: minmax(0, 1fr); }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.comment-card:nth-child(n) { margin-left: 0; }
.comment-card:nth-child(2n) { margin-left: 12px; }
.rec-card { flex: 0 0 118px; }}
@media (max-width: 460px) {body { font-size: 12.5px; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.hero-poster-shell { max-width: 170px; }
.cast-card { width: 48px; }
.cast-avatar { width: 36px; height: 36px; }
.rec-card { flex: 0 0 106px; }
.comment-card:nth-child(n) { margin-left: 0; }}

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}
