*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:root {
  --warm: #e8b45a;
  --warm-soft: #f2d69a;
  --warm-deep: #c98f33;
  --ash: #4a5560;
  --ash-deep: #2f3841;
  --ash-soft: #6b7883;
  --paper: #ece5d8;
  --paper-dim: #e0d8c8;
  --ink: #23282e;
  --ink-soft: #4d565f;
  --line: rgba(74, 85, 96, 0.22);
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(35, 40, 46, 0.12);
  --font-head: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.lights-off { background: #1a1e23; }
body.lights-off .movie-overview { filter: brightness(0.72); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ash-deep);
  border-bottom: 2px solid var(--warm-deep);
}
.header-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
}
a[data-contract="site-name"].site-brand {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--warm-soft);
  text-decoration: none;
}
a[data-contract="site-name"].site-brand:hover { color: var(--warm); }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--paper);
  padding: 3px 11px;
  border: 1px solid rgba(232, 180, 90, 0.4);
  border-radius: 999px;
  background: rgba(232, 180, 90, 0.08);
  text-decoration: none;
  transition: background .18s, color .18s;
}
a.runtime-category:hover {
  background: var(--warm);
  color: var(--ash-deep);
  border-color: var(--warm);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--ash-deep);
  letter-spacing: 1px;
  padding-left: 11px;
  border-left: 4px solid var(--warm-deep);
  line-height: 1.3;
}
.movie-overview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f5efe2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
}
.poster-panel { min-width: 0; }
.poster-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ash);
  border: 1px solid var(--line);
  width: 100%;
}
.poster-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.overview-intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.movie-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--ash-deep);
  letter-spacing: 1px;
  line-height: 1.2;
}
.movie-tagline {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--warm-deep);
  letter-spacing: 1px;
}
.movie-seo {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 2px;
}
.player-panel {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #10141a;
  border: 1px solid var(--ash);
}
.player-panel video {
  display: block;
  background: #000;
}
.player-panel.is-theater {
  box-shadow: 0 0 0 2px var(--warm-deep);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: rgba(47, 56, 65, 0.94);
}
.player-controls button {
  font-size: 11.5px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 90, 0.35);
  background: rgba(236, 229, 216, 0.08);
  color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.player-controls button:hover { background: rgba(232, 180, 90, 0.25); }
.player-controls button.is-active, .player-controls button.is-muted {
  background: var(--warm);
  color: var(--ash-deep);
  border-color: var(--warm);
}
.player-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(236, 229, 216, 0.28);
  cursor: pointer;
  outline: none;
}
.player-controls input[data-player-action="progress"] {
  flex: 1 1 110px;
  min-width: 80px;
}
.player-controls input[data-player-action="volume"] {
  flex: 0 1 74px;
  min-width: 54px;
}
.player-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warm);
  border: 2px solid var(--ash-deep);
}
.player-controls input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ash-deep);
  border-radius: 50%;
  background: var(--warm);
}
.player-controls input[type="range"]:focus-visible { box-shadow: 0 0 0 2px var(--warm-soft); }
.overview-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.cast-strip { min-width: 0; }
.cast-strip .section-heading { font-size: 14px; margin-bottom: 6px; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 5px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(74, 85, 96, 0.06);
  border-left: 3px solid var(--ash-soft);
}
.cast-name {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ash-deep);
}
.cast-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.episode-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  background: var(--ash-deep);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 118px;
}
.status-item {
  font-size: 12px;
  color: var(--warm-soft);
  white-space: nowrap;
  border-bottom: 1px dotted rgba(232, 180, 90, 0.35);
  padding-bottom: 3px;
}
.status-item:last-child { border-bottom: none; padding-bottom: 0; }
.status-item::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm);
  margin-right: 6px;
  vertical-align: middle;
}
.synopsis-panel {
  background: rgba(74, 85, 96, 0.05);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 18px;
}
.synopsis-para {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: justify;
}
.details-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 14px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px dotted var(--line);
  padding: 3px 0;
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--ash-soft);
  letter-spacing: 0.5px;
}
.detail-value {
  font-size: 12.5px;
  color: var(--ink);
  margin-left: auto;
  text-align: right;
}
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3px 16px;
  border-left: 2px solid var(--ash-soft);
  padding-left: 0;
}
.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 8px 5px 0;
  border-bottom: 1px dashed var(--line);
  min-width: 0;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warm-deep);
  box-shadow: 0 0 0 2px var(--paper);
}
.timeline-code {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--ash-deep);
  background: var(--warm-soft);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.5px;
}
.timeline-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  min-width: 0;
}
.episodes-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.episode-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--ash-soft) transparent;
  -webkit-overflow-scrolling: touch;
}
.episode-scroll::-webkit-scrollbar { height: 7px; }
.episode-scroll::-webkit-scrollbar-track { background: rgba(74, 85, 96, 0.1); border-radius: 999px; }
.episode-scroll::-webkit-scrollbar-thumb { background: var(--ash-soft); border-radius: 999px; }
.episode-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 208px;
  gap: 9px;
  align-items: stretch;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-top: 3px solid var(--warm-deep);
  border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.episode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-top-color: var(--ash);
}
.episode-number {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ash-deep);
  background: var(--warm-soft);
  border-radius: 999px;
  padding: 1px 9px;
  letter-spacing: 1px;
}
.episode-title {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ash-deep);
  line-height: 1.3;
}
.episode-summary {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1 1 auto;
}
.episode-duration {
  align-self: flex-start;
  font-size: 11px;
  color: var(--ash-soft);
  border-top: 1px dotted var(--line);
  padding-top: 3px;
  width: 100%;
}
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.comment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #fdf9f0;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(35, 40, 46, 0.07);
  position: relative;
}
.comment-board .comment-card:nth-child(odd) { transform: rotate(-0.5deg); }
.comment-board .comment-card:nth-child(even) { transform: rotate(0.5deg); }
.comment-board .comment-card:nth-child(3n) { border-color: rgba(232, 180, 90, 0.55); }
.comment-nickname {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ash-deep);
}
.comment-nickname::before {
  content: "“";
  color: var(--warm-deep);
  margin-right: 2px;
}
.comment-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.recommend-region {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recommend-region .section-heading {
  font-size: 16px;
  border-left: none;
  padding-left: 0;
  position: relative;
}
.recommend-region .section-heading::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 3px;
  background: var(--warm-deep);
  border-radius: 999px;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #f4eee1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
a.recommend-card:hover {
  transform: translateY(-2px);
  background: #fdf8ee;
  box-shadow: var(--shadow);
}
[data-runtime="recommendation"] img, .recommend-pic {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--ash-soft);
}
.recommend-name {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ash-deep);
  line-height: 1.3;
}
.recommend-blurb {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.site-footer {
  background: var(--ash-deep);
  color: var(--paper-dim);
  border-top: 2px solid var(--warm-deep);
  margin-top: 8px;
}
.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  color: var(--warm-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}
.friend-links-label {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--warm-soft);
  letter-spacing: 1px;
  margin-right: 2px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: rgba(224, 216, 200, 0.75);
  text-decoration: none;
  padding: 1px 7px;
  border: 1px solid rgba(224, 216, 200, 0.22);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
a.runtime-friend-link:hover {
  color: var(--ash-deep);
  background: var(--warm-soft);
  border-color: var(--warm-soft);
  text-decoration: none;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(224, 216, 200, 0.55);
  line-height: 1.6;
  border-top: 1px solid rgba(224, 216, 200, 0.15);
  padding-top: 9px;
}
@media (max-width: 900px) {.overview-hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  }
.comment-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 720px) {.page-main { padding: 12px 12px 30px; gap: 16px; }
.movie-overview { padding: 11px; }
.overview-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
.poster-media { max-width: 210px; }
.movie-title { font-size: 22px; }
.overview-meta {
    grid-template-columns: minmax(0, 1fr);
  }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.episode-status { flex-direction: row; gap: 12px; min-width: 0; }
.details-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.timeline-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-board { grid-template-columns: minmax(0, 1fr); }
.comment-board .comment-card:nth-child(odd), .comment-board .comment-card:nth-child(even) { transform: none; }}
@media (max-width: 480px) {body { font-size: 13.5px; }
.header-shell { padding: 7px 12px; gap: 8px; }
a[data-contract="site-name"].site-brand { font-size: 17px; }
.category-nav { margin-left: 0; width: 100%; }
.page-main { padding: 10px 10px 24px; gap: 14px; }
.movie-title { font-size: 20px; }
.movie-tagline { font-size: 13.5px; }
.poster-media { max-width: 170px; }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.timeline-list { grid-template-columns: minmax(0, 1fr); }
.recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.episode-grid { grid-auto-columns: 176px; }
.synopsis-body { grid-template-columns: minmax(0, 1fr); }
.player-controls button { font-size: 11px; padding: 4px 7px; }
.footer-shell { padding: 13px 12px; }}
@media (max-width: 360px) {.recommend-grid { grid-template-columns: minmax(0, 1fr); }
.episode-grid { grid-auto-columns: 158px; }}
@media (prefers-reduced-motion: reduce) {* { transition: none !important; }}

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}
