*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, dt, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:root {
  --ink: #2b1d12;
  --ink-soft: #4a3524;
  --parch: #f3e3c3;
  --parch-deep: #e6d2ab;
  --parch-dim: #dcc79c;
  --gold: #b98a2e;
  --gold-bright: #d9a83f;
  --crimson: #7d1f1c;
  --crimson-deep: #571311;
  --umbra: #1b1109;
  --umbra-2: #241708;
  --line: rgba(90, 60, 25, 0.45);
  --line-soft: rgba(90, 60, 25, 0.22);
  --glow: rgba(217, 168, 63, 0.28);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --serif-bold: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}
html, body {
  background-color: var(--umbra);
}
body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(217, 168, 63, 0.10), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(125, 31, 28, 0.16), transparent 46%),
    linear-gradient(180deg, #241708 0%, #1b1109 55%, #150d05 100%);
  background-attachment: fixed;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a { color: var(--gold); text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    linear-gradient(180deg, rgba(27, 17, 9, 0.98), rgba(36, 23, 8, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(217, 168, 63, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px clamp(12px, 3vw, 28px);
  max-width: 1400px;
  margin: 0 auto;
}
a[data-contract="site-name"].site-name {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-decoration: none;
  text-shadow: 0 0 12px var(--glow);
  padding: 2px 0;
  border-bottom: 2px solid rgba(217, 168, 63, 0.35);
}
a[data-contract="site-name"].site-name:hover {
  color: var(--parch);
  border-bottom-color: var(--crimson);
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-left: auto;
  justify-content: flex-end;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  padding: 3px 11px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--parch-dim);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(217, 168, 63, 0.06);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
a.runtime-category:hover {
  color: var(--umbra);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.page-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(12px, 2.2vw, 26px) clamp(12px, 3vw, 28px) 34px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 28px);
}
.movie-overview {
  background:
    linear-gradient(155deg, rgba(243, 227, 195, 0.97), rgba(230, 210, 171, 0.94)),
    var(--parch);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(12px, 2vw, 22px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 250, 235, 0.4);
  position: relative;
  overflow: hidden;
}
.movie-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(90, 60, 25, 0.09) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: 0.55;
}
.overview-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}
.poster-wrap {
  position: relative;
  border-radius: 5px;
  border: 1px solid var(--line);
  padding: 5px;
  background: linear-gradient(160deg, #3a2410, #1c1108);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(217, 168, 63, 0.25);
  align-self: start;
}
.poster-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  filter: saturate(1.05) contrast(1.03);
}
.hero-scroll {
  position: relative;
  background:
    linear-gradient(190deg, rgba(247, 235, 209, 0.86), rgba(226, 205, 163, 0.8));
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--crimson);
  border-radius: 4px;
  padding: clamp(11px, 1.6vw, 18px);
  box-shadow: inset 0 0 26px rgba(125, 31, 28, 0.07);
}
.movie-title {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--crimson-deep);
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.6);
}
.movie-tagline {
  margin-top: 5px;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  font-style: italic;
}
.movie-seo {
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  opacity: 0.85;
  border-top: 1px dashed var(--line-soft);
  padding-top: 5px;
}
.hero-player-slot {
  margin-top: 12px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #120b05;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(217, 168, 63, 0.18);
}
.main-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 3px;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  margin-top: 7px;
  padding: 6px 7px;
  background: linear-gradient(180deg, rgba(58, 36, 16, 0.92), rgba(28, 17, 8, 0.95));
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}
.player-btn {
  cursor: pointer;
  padding: 3px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: var(--parch);
  background: linear-gradient(180deg, rgba(125, 31, 28, 0.75), rgba(87, 19, 17, 0.85));
  border: 1px solid rgba(217, 168, 63, 0.35);
  border-radius: 3px;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.player-btn:hover { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--umbra); }
.player-btn.is-playing, .player-btn.is-active { background: linear-gradient(180deg, var(--gold-bright), #b07f23); color: var(--umbra); border-color: var(--gold-bright); }
.player-btn.is-muted { background: linear-gradient(180deg, #4a3524, #2b1d12); color: var(--gold-bright); border-color: var(--crimson); }
.player-range {
  flex: 1 1 90px;
  min-width: 70px;
  height: 4px;
  cursor: pointer;
  accent-color: var(--gold-bright);
  background: transparent;
}
.player-select {
  cursor: pointer;
  padding: 3px 6px;
  font-size: 0.76rem;
  color: var(--parch);
  background: rgba(28, 17, 8, 0.9);
  border: 1px solid rgba(217, 168, 63, 0.35);
  border-radius: 3px;
}
.player-select option { background: #1b1109; color: var(--parch); }
.overview-body {
  margin-top: clamp(12px, 2vw, 20px);
  padding-top: clamp(10px, 1.6vw, 16px);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2vw, 22px);
  align-items: start;
}
.section-heading {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--crimson-deep);
  padding: 0 0 5px 0;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.section-heading::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--crimson);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.overview-body > * { min-width: 0; }
.cast-section { grid-column: 1; }
.cast-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.cast-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 168px;
  min-width: 0;
  padding: 6px 9px 6px 6px;
  background: rgba(255, 250, 235, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  align-self: flex-start;
}
.cast-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(217, 168, 63, 0.55), transparent 58%),
    linear-gradient(150deg, #6b4a24, #2b1d12);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.cast-info { min-width: 0; }
.cast-name {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.35;
}
.cast-role {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  opacity: 0.85;
  line-height: 1.4;
}
.synopsis-section { grid-column: 2; }
.synopsis-body {
  background: rgba(255, 250, 235, 0.42);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 9px 11px;
}
.synopsis-para {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-soft);
  text-indent: 2em;
}
.synopsis-para + .synopsis-para { margin-top: 5px; }
.episode-status, .details-section {
  grid-column: 1 / -1;
  padding-top: 9px;
  border-top: 1px dashed var(--line-soft);
}
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.status-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(125, 31, 28, 0.09);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
}
.status-key {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--crimson);
}
.status-value {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 5px 14px;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px dotted var(--line-soft);
  min-width: 0;
}
.detail-key {
  flex: none;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--crimson);
  min-width: 4em;
}
.detail-value {
  font-size: 0.82rem;
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: break-word;
}
.timeline-section {
  background: linear-gradient(160deg, rgba(243, 227, 195, 0.95), rgba(226, 205, 163, 0.9));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(11px, 1.8vw, 18px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-color: var(--gold) rgba(90, 60, 25, 0.18);
  scrollbar-width: thin;
}
.timeline-scroll::-webkit-scrollbar { height: 8px; }
.timeline-scroll::-webkit-scrollbar-track { background: rgba(90, 60, 25, 0.14); border-radius: 4px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--gold), var(--crimson)); border-radius: 4px; }
.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 4px 4px;
  min-width: max-content;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 4%, var(--crimson) 55%, var(--gold) 96%, transparent);
  opacity: 0.6;
}
.timeline-node {
  position: relative;
  flex: none;
  width: 176px;
  padding: 20px 10px 9px;
  background: rgba(255, 250, 235, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  align-self: flex-start;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--crimson));
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 227, 195, 0.9), 0 0 10px var(--glow);
}
.timeline-time {
  display: block;
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  color: var(--crimson);
}
.timeline-label {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.episodes-section {
  background: linear-gradient(160deg, rgba(243, 227, 195, 0.95), rgba(226, 205, 163, 0.9));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(11px, 1.8vw, 18px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  background: rgba(255, 250, 235, 0.58);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.episode-card:hover {
  background: rgba(255, 250, 235, 0.9);
  border-left-color: var(--crimson);
  transform: translateY(-2px);
}
.episode-number {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--crimson);
}
.episode-title {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.35;
}
.episode-summary {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1 1 auto;
}
.episode-duration {
  align-self: flex-start;
  margin-top: 3px;
  padding: 1px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--parch);
  background: linear-gradient(180deg, rgba(125, 31, 28, 0.85), rgba(87, 19, 17, 0.9));
  border: 1px solid rgba(217, 168, 63, 0.42);
  border-radius: 2px;
}
.comments-section {
  background: linear-gradient(160deg, rgba(243, 227, 195, 0.95), rgba(226, 205, 163, 0.9));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(11px, 1.8vw, 18px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}
.comments-columns {
  columns: 2;
  column-gap: 9px;
}
.comment-card {
  break-inside: avoid;
  margin-bottom: 9px;
  padding: 9px 11px;
  background: rgba(255, 250, 235, 0.58);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}
.comment-nickname {
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 6px;
}
.comment-nickname::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}
.comment-text {
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.recommendations-region {
  background: linear-gradient(160deg, rgba(243, 227, 195, 0.95), rgba(226, 205, 163, 0.9));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(11px, 1.8vw, 18px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 9px;
  align-items: start;
}
a.recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  background: rgba(255, 250, 235, 0.58);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
a.recommendation-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(217, 168, 63, 0.35);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #2b1d12;
  border-bottom: 1px solid var(--line-soft);
}
.recommendation-name {
  display: block;
  padding: 0 9px;
  font-family: var(--serif-bold);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.4;
}
.recommendation-blurb {
  display: block;
  padding: 0 9px 9px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.site-footer {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(36, 23, 8, 0.96), rgba(21, 13, 5, 0.99));
  border-top: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 24px) clamp(12px, 3vw, 28px) 26px;
}
.footer-disclaimer {
  max-width: 1400px;
  margin: 0 auto;
  font-size: 0.76rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(220, 199, 156, 0.72);
  text-align: center;
}
.footer-nav {
  max-width: 1400px;
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}
a[data-contract="footer-home"].footer-link, a[data-contract="footer-sitemap"].footer-link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-decoration: none;
  padding: 2px 4px;
  border-bottom: 1px solid rgba(217, 168, 63, 0.35);
  transition: color 0.16s, border-color 0.16s;
}
a[data-contract="footer-home"].footer-link:hover, a[data-contract="footer-sitemap"].footer-link:hover {
  color: var(--parch);
  border-bottom-color: var(--crimson);
}
.friend-links {
  max-width: 1400px;
  margin: 12px auto 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 168, 63, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  justify-content: center;
}
.friend-links-label {
  flex: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--crimson);
  padding: 1px 8px;
  border: 1px solid rgba(217, 168, 63, 0.3);
  border-radius: 2px;
  background: rgba(125, 31, 28, 0.16);
}
a.runtime-friend-link {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: rgba(220, 199, 156, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s;
}
a.runtime-friend-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}
body.lights-off .movie-overview, body.lights-off .timeline-section, body.lights-off .episodes-section, body.lights-off .comments-section, body.lights-off .recommendations-region {
  filter: brightness(0.72) saturate(0.92);
}
body.theater-mode .page-main {
  max-width: 100%;
}
body.theater-mode .movie-overview {
  border-radius: 0;
}
body.theater-mode .overview-hero {
  grid-template-columns: minmax(0, 1fr);
}
body.theater-mode .poster-wrap {
  display: none;
}
@media (max-width: 1024px) {.overview-hero {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
.overview-body {
    grid-template-columns: minmax(0, 1fr);
  }
.cast-section, .synopsis-section {
    grid-column: 1 / -1;
  }
.episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}
@media (max-width: 760px) {body { font-size: 14px; }
.header-inner {
    gap: 8px;
    padding: 8px 12px;
  }
a[data-contract="site-name"].site-name { font-size: 1.05rem; }
.category-bar {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 5px 6px;
  }
.overview-hero {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-wrap {
    justify-self: center;
    width: min(230px, 62%);
  }
.movie-title { font-size: 1.45rem; }
.episodes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.comments-columns {
    columns: 1;
  }
.recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.player-btn { padding: 3px 8px; font-size: 0.74rem; }
.timeline-node { width: 158px; }}
@media (max-width: 460px) {.page-main {
    padding: 10px 10px 24px;
    gap: 14px;
  }
.poster-wrap { width: min(200px, 72%); }
.recommendation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.status-list { gap: 6px; }
.player-range { flex: 1 1 100%; }
.timeline-node { width: 146px; }}

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}
