:root {
  --ink: #2b2723;
  --ink-soft: #5c554d;
  --ink-faint: #8a8178;
  --warm-grey: #b7ada1;
  --paper: #f4efe8;
  --paper-2: #ece5db;
  --card: #faf6f0;
  --wood: #8a6a4a;
  --wood-deep: #5e4630;
  --moss: #6f7d5c;
  --moss-soft: #9aa584;
  --orange: #b7592f;
  --line: #d8cfc2;
  --line-soft: #e5ddd1;
  --radius: 10px;
  --radius-sm: 6px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul, ol, dl, dd, h1, h2, h3, p {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: var(--wood-deep);
  text-decoration: none;
}
button, input, select {
  font: inherit;
  color: inherit;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
a[data-contract="site-name"].site-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wood-deep);
  text-decoration: none;
  white-space: nowrap;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: flex-end;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--moss);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
a.runtime-category:hover {
  color: var(--paper);
  background: var(--moss);
  border-color: var(--moss);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 24px;
}
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  grid-template-areas:
    "media copy"
    "cast cast"
    "synopsis details";
  gap: 18px 22px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  grid-area: media;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  align-self: start;
}
.hero-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.movie-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.movie-tagline {
  font-size: 15px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.movie-seo {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 62ch;
}
.hero-player {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1c1a17;
  margin-top: 2px;
}
.hero-player video {
  display: block;
  width: 100%;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.ctrl:hover {
  color: var(--wood-deep);
  border-color: var(--warm-grey);
}
.ctrl-label {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.ctrl input[type="range"] {
  width: 96px;
  accent-color: var(--moss);
  cursor: pointer;
}
.ctrl select {
  border: none;
  background: transparent;
  font-size: 12.5px;
  cursor: pointer;
  outline: none;
}
.ctrl-play.is-playing { color: var(--paper); background: var(--moss); border-color: var(--moss); }
.ctrl-mute.is-muted { color: var(--paper); background: var(--orange); border-color: var(--orange); }
.ctrl-pip.is-active, .ctrl-fullscreen.is-active, .ctrl-theater.is-active, .ctrl-light.is-active { color: var(--paper); background: var(--wood); border-color: var(--wood); }
body.theater-mode .hero-band {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "copy"
    "cast"
    "synopsis"
    "details";
}
body.lights-off {
  background: #211e1a;
  color: #e8e0d6;
}
body.lights-off .site-header { background: rgba(33, 30, 26, 0.94); }
body.lights-off .movie-title, body.lights-off .section-heading { color: #efe7dc; }
.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 2px;
}
.status-item {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  white-space: nowrap;
}
.hero-cast {
  grid-area: cast;
  min-width: 0;
}
.cast-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.cast-member {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  min-width: 0;
}
.cast-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.cast-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.cast-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.hero-synopsis {
  grid-area: synopsis;
  min-width: 0;
}
.hero-details {
  grid-area: details;
  min-width: 0;
}
.section-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wood-deep);
  padding-left: 10px;
  border-left: 3px solid var(--moss);
  line-height: 1.3;
}
.synopsis-para {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-top: 8px;
  text-indent: 0;
}
.detail-list {
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.detail-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.detail-row dt {
  flex: 0 0 76px;
  color: var(--ink-faint);
}
.detail-row dd {
  color: var(--ink);
  min-width: 0;
}
.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-count {
  font-size: 12.5px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.timeline-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: var(--line);
}
.timeline-node {
  position: relative;
  flex: 0 0 168px;
  scroll-snap-align: start;
  padding-top: 30px;
}
.node-tick {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--moss);
  background: var(--paper);
  padding-right: 6px;
  white-space: nowrap;
}
.node-tick::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 1px;
  height: 10px;
  background: var(--warm-grey);
}
.node-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.timeline-node.is-active .node-tick { color: var(--orange); }
.timeline-node.is-active .node-label {
  border-color: var(--orange);
  color: var(--ink);
}
.episodes-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  align-items: start;
}
.episode-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title duration"
    "summary summary";
  gap: 2px 10px;
  padding: 8px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  align-self: start;
}
.episode-card.is-active {
  border-color: var(--moss);
  background: #f0f2e9;
}
.episode-title {
  grid-area: title;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.episode-duration {
  grid-area: duration;
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  align-self: start;
}
.episode-summary {
  grid-area: summary;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.comments-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.comment-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: start;
}
.comment-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.comment-column-a { padding-top: 14px; }
.comment-card {
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--moss-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.comment-column-b .comment-card { border-left-color: var(--warm-grey); }
.comment-nickname {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.comment-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.recommend-region {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.recommend-region:last-of-type { border-bottom: none; }
.recommend-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.recommend-item {
  flex: 0 0 168px;
  scroll-snap-align: start;
  display: flex;
  min-width: 0;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color .18s ease, background .18s ease;
}
a[data-runtime="recommendation"]:hover {
  border-color: var(--moss);
  background: #f1f3ea;
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-2);
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.site-footer {
  margin-top: 10px;
  padding: 18px 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 13px;
  color: var(--wood-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.friends-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 12.5px;
  color: var(--moss);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
a.runtime-friend-link:hover {
  color: var(--orange);
  text-decoration: underline;
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: 72ch;
}
@media (max-width: 980px) {.hero-band {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "copy"
      "cast"
      "synopsis"
      "details";
    gap: 16px;
  }
.hero-media { max-width: 340px; }
.cast-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-columns { grid-template-columns: minmax(0, 1fr); }
.comment-column-a { padding-top: 0; }}
@media (max-width: 620px) {.page-main { padding: 12px 12px 18px; }
.header-inner { padding: 7px 12px; }
.movie-title { font-size: 23px; }
.movie-tagline { font-size: 14px; }
.movie-seo { font-size: 13px; }
.cast-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.player-controls { gap: 5px; padding: 7px 8px; }
.ctrl { padding: 3px 8px; font-size: 12px; }
.ctrl input[type="range"] { width: 72px; }
.timeline-node { flex: 0 0 150px; }
.recommend-item { flex: 0 0 148px; }
.site-footer { padding: 16px 12px 22px; }}
@media (max-width: 400px) {.cast-strip { grid-template-columns: minmax(0, 1fr); }
.cast-avatar { aspect-ratio: 4 / 3; }
.timeline-node { flex: 0 0 78%; }
.recommend-item { flex: 0 0 74%; }}

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}
