*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:root {
  --wall: #e7e1d5;
  --wall-deep: #d8d0c1;
  --plaster: #f4efe4;
  --warm: #f0c778;
  --warm-deep: #d99f3c;
  --ink: #33302b;
  --ink-soft: #6d655a;
  --night: #232b3d;
  --night-soft: #3a4459;
  --line: rgba(51, 48, 43, 0.16);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --gap: 12px;
  --pad: 14px;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 18% -6%, rgba(240, 199, 120, 0.34), transparent 62%),
    linear-gradient(180deg, var(--plaster) 0%, var(--wall) 42%, var(--wall-deep) 100%);
  background-attachment: fixed;
  line-height: 1.62;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.page-main {
  width: min(1180px, 100% - 28px);
  margin: 0 auto;
  padding-bottom: 34px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(244, 239, 228, 0.96), rgba(231, 225, 213, 0.9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  width: min(1180px, 100% - 28px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
}
a[data-contract="site-name"] {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: var(--warm-deep); }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}
a.runtime-category:hover {
  color: var(--night);
  border-color: var(--warm-deep);
  background: rgba(240, 199, 120, 0.4);
}
.movie-overview {
  display: block;
  margin-top: 16px;
  padding: var(--pad);
  background:
    linear-gradient(180deg, rgba(244, 239, 228, 0.92), rgba(231, 225, 213, 0.86));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 26px -22px rgba(35, 43, 61, 0.6);
}
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 2fr);
  gap: 18px;
  align-items: start;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.hero-poster-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 30px -20px rgba(35, 43, 61, 0.9);
  background: var(--night);
}
.main-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.door-plate-mark {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-family: var(--serif);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--night);
  background: linear-gradient(180deg, #f6f2e6, #ded5c3);
  border: 1px solid rgba(35, 43, 61, 0.4);
  border-radius: 3px;
  padding: 1px 7px 1px 8px;
  opacity: 0.8;
  transform: rotate(-2deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}
.movie-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.movie-tagline {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--warm-deep);
  letter-spacing: 0.05em;
  padding-left: 10px;
  border-left: 3px solid var(--warm);
}
.movie-seo {
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 62ch;
}
.episode-status {
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(240, 199, 120, 0.26), rgba(240, 199, 120, 0.1));
  border-left: 3px solid var(--warm-deep);
}
.status-line {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.status-note {
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hero-actions button {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.hero-actions button:hover { transform: translateY(-1px); }
.btn-play {
  background: linear-gradient(180deg, #f3cd85, #ddA94a) !important;
  border-color: rgba(180, 133, 44, 0.7) !important;
  color: #3a2c11 !important;
  font-weight: 700;
}
.btn-play.is-playing { background: linear-gradient(180deg, #cfd7e6, #a9b4c9) !important; color: #1d2433 !important; }
.btn-theater.is-active, .btn-light.is-active {
  background: linear-gradient(180deg, #3d4864, #232b3d) !important;
  border-color: #232b3d !important;
  color: #f1e6cd !important;
}
.player-shell {
  margin-top: 14px;
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #14182a;
  border: 1px solid rgba(35, 43, 61, 0.55);
  box-shadow: 0 18px 34px -26px rgba(20, 24, 42, 0.95);
}
.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1322;
  display: block;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 8px;
  background: linear-gradient(180deg, rgba(35, 43, 61, 0.96), rgba(20, 24, 42, 0.98));
  border-top: 1px solid rgba(240, 199, 120, 0.22);
}
.player-controls button {
  font-size: 0.74rem;
  padding: 4px 11px;
  border-radius: 999px;
  color: #e9dfc8;
  border: 1px solid rgba(233, 223, 200, 0.28);
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.player-controls button:hover {
  background: rgba(240, 199, 120, 0.28);
  border-color: var(--warm);
  color: #fff6e2;
}
.ctrl-mute.is-muted, .ctrl-speed.is-fast, .ctrl-pip.is-active, .ctrl-fullscreen.is-active {
  background: rgba(240, 199, 120, 0.85);
  border-color: var(--warm);
  color: #2b2411;
  font-weight: 700;
}
.player-shell.theater-mode {
  box-shadow: 0 0 0 3px rgba(240, 199, 120, 0.5), 0 22px 40px -24px rgba(20, 24, 42, 1);
}
body.lights-off {
  background: #10131f;
}
body.lights-off .site-header {
  background: linear-gradient(180deg, rgba(24, 28, 42, 0.96), rgba(16, 19, 31, 0.92));
  border-bottom-color: rgba(240, 199, 120, 0.2);
}
body.lights-off a[data-contract="site-name"], body.lights-off .section-title, body.lights-off .movie-title { color: #f2e8d3; }
body.lights-off .movie-tagline { color: var(--warm); }
body.lights-off .movie-seo, body.lights-off .status-note, body.lights-off .section-head-note { color: #b7b0a1; }
body.lights-off .status-line { color: #efe4cd; }
body.lights-off .movie-overview, body.lights-off .episode-card, body.lights-off .comment-card, body.lights-off .recommend-chip, body.lights-off .timeline-item {
  background: rgba(30, 35, 52, 0.92);
  border-color: rgba(240, 199, 120, 0.22);
}
body.lights-off .synopsis-paragraph, body.lights-off .episode-summary, body.lights-off .comment-text, body.lights-off .chip-blurb, body.lights-off .timeline-label, body.lights-off .detail-value, body.lights-off .detail-key { color: #cfc7b6; }
body.lights-off .episode-title, body.lights-off .chip-name, body.lights-off .comment-nickname, body.lights-off .cast-name { color: #f2e8d3; }
body.lights-off .site-footer { background: #0d1019; }
.section-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-left: 9px;
  border-left: 3px solid var(--warm-deep);
  line-height: 1.3;
}
.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.section-head-note {
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.synopsis-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.synopsis-body {
  margin-top: 8px;
  columns: 2;
  column-gap: 22px;
  column-rule: 1px solid var(--line);
}
.synopsis-paragraph {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.82;
  margin-bottom: 8px;
  break-inside: avoid;
}
.synopsis-paragraph:first-child { color: var(--ink); }
.cast-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 8px;
  margin-top: 10px;
}
.cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.cast-avatar {
  width: 100%;
  max-width: 68px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.85), transparent 52%),
    linear-gradient(160deg, #e9c98d, #b98f4d 62%, #8d6b33);
  border: 2px solid rgba(244, 239, 228, 0.9);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(35, 43, 61, 0.9);
}
.cast-name {
  font-size: 0.76rem;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.03em;
}
.details-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.details-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--line);
}
.detail-key {
  flex: 0 0 4.6em;
  font-size: 0.76rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.detail-value {
  font-size: 0.82rem;
  color: var(--ink);
  min-width: 0;
}
.episodes-section {
  margin-top: 22px;
}
.episodes-section .section-head-row {
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.episode-card {
  position: relative;
  padding: 9px 11px 10px 40px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.episode-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--warm), var(--warm-deep));
  border-radius: 5px 0 0 5px;
}
.episode-number {
  position: absolute;
  left: 10px;
  top: 8px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--warm-deep);
  line-height: 1;
  letter-spacing: 0.02em;
}
.episode-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.episode-title {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.episode-duration {
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(240, 199, 120, 0.3);
}
.episode-summary {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.66;
  color: var(--ink-soft);
}
.timeline-section {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.timeline-axis {
  position: relative;
  margin-top: 12px;
  padding-left: 24px;
}
.timeline-axis::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--night), var(--night-soft) 55%, var(--warm-deep));
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm);
  border: 2px solid var(--night);
}
.timeline-item:nth-child(even) { margin-left: 12%; }
.timeline-item:nth-child(odd) { margin-left: 0; }
.timeline-timecode {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--night);
  background: rgba(240, 199, 120, 0.42);
  border-radius: 3px;
  padding: 1px 7px;
}
.timeline-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.comments-section {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.comments-column {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.comment-card {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 5px;
  border-left: 3px solid rgba(240, 199, 120, 0.85);
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 7px;
}
.comment-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(150deg, #c9d0e0, #7d8aa4 60%, #4d5872);
  border: 1px solid rgba(35, 43, 61, 0.4);
}
.comment-nickname {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.comment-text {
  margin-top: 5px;
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.recommend-region {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.recommend-region .section-title {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  border-left-width: 2px;
  border-left-color: var(--warm);
}
.recommend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
a.recommend-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 9px;
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  text-decoration: none;
  max-width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
a.recommend-chip:hover {
  background: rgba(240, 199, 120, 0.36);
  border-color: var(--warm-deep);
  transform: translateY(-1px);
}
[data-runtime="recommendation"] img {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(35, 43, 61, 0.3);
  flex: 0 0 auto;
}
.chip-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-blurb {
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  margin-top: 26px;
  background: linear-gradient(180deg, var(--night-soft), var(--night));
  color: #cfc7b6;
  border-top: 3px solid var(--warm-deep);
}
.footer-inner {
  width: min(1180px, 100% - 28px);
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.7;
  color: #a8a094;
  max-width: 78ch;
}
.footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(240, 199, 120, 0.16);
}
.friends-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--warm);
  margin-right: 2px;
}
a.runtime-friend-link {
  font-size: 0.72rem;
  color: #bdb5a6;
  text-decoration: none;
  padding: 2px 9px;
  border: 1px solid rgba(207, 199, 182, 0.24);
  border-radius: 999px;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: #2b2411;
  background: var(--warm);
  border-color: var(--warm);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 9px;
  border-top: 1px solid rgba(240, 199, 120, 0.16);
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 0.75rem;
  color: #e2d9c6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.06em;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}
@media (max-width: 980px) {.cast-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.synopsis-body { columns: 1; column-rule: none; }}
@media (max-width: 820px) {.overview-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
.hero-poster-wrap {
    width: min(260px, 62%);
  }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comments-column { grid-template-columns: minmax(0, 1fr); }
.details-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.timeline-item:nth-child(even), .timeline-item:nth-child(odd) { margin-left: 0; width: 100%; }}
@media (max-width: 560px) {body { font-size: 14px; }
.page-main { width: 100% - 18px; width: calc(100% - 18px); }
.header-inner, .footer-inner { width: calc(100% - 18px); }
.cast-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-poster-wrap { width: min(220px, 66%); }
.movie-title { font-size: 1.35rem; }
.player-controls { gap: 4px; padding: 6px; }
.player-controls button { font-size: 0.7rem; padding: 3px 9px; }
.episode-card { padding-left: 36px; }
.episode-number { left: 8px; }
[data-runtime="recommendation"] img { width: 40px; height: 40px; }
a.recommend-chip { padding: 4px 11px 4px 4px; }}
@media (max-width: 420px) {.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-poster-wrap { width: min(190px, 72%); }
.hero-actions button { padding: 5px 11px; font-size: 0.78rem; }
.synopsis-body { columns: 1; }}

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}
