*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Songti SC", "SimSun", "STSong", serif;
  background: #f5f2e8;
  color: #1a3a3a;
  line-height: 1.6;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: normal; }
header, main, footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #c9a962;
  margin-bottom: 32px;
}
a[data-contract="site-name"] {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 1.8rem;
  color: #1a3a3a;
  letter-spacing: 4px;
  text-decoration: none;
}
a[data-contract="site-name"]:hover { color: #c9a962; }
nav[data-contract="categories"] {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
a.runtime-category {
  color: #1a3a3a;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
a.runtime-category:hover {
  color: #c9a962;
  border-color: #c9a962;
}
.hero-section {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 64px;
  padding: 32px;
  background: linear-gradient(145deg, #f5f2e8 0%, #e8e4d8 100%);
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 4px 24px rgba(26, 58, 58, 0.08);
}
.hero-poster-wrapper {
  align-self: start;
  border-radius: 16px 4px 16px 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 58, 58, 0.15);
}
.hero-poster-wrapper img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.movie-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 2.2rem;
  color: #1a3a3a;
  letter-spacing: 3px;
  line-height: 1.3;
  border-bottom: 2px solid #c9a962;
  padding-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
}
.movie-tagline {
  font-size: 1.05rem;
  color: #5a7a7a;
  font-style: italic;
  letter-spacing: 1px;
}
.hero-player-wrapper {
  width: 100%;
  max-width: none;
  min-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 58, 58, 0.12);
  background: #1a3a3a;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1a3a3a;
  border-radius: 0 0 12px 12px;
}
.player-controls button {
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.6);
  color: #f5f2e8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.player-controls button:hover { background: rgba(201, 169, 98, 0.3); }
.player-controls input[type="range"] {
  flex: 1;
  min-width: 100px;
  accent-color: #c9a962;
  cursor: pointer;
}
.movie-details {
  margin-top: 4px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 24px;
  background: rgba(255, 255, 255, 0.4);
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid #c9a962;
}
.detail-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.detail-item dt {
  color: #5a7a7a;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.detail-item dd {
  color: #1a3a3a;
  font-size: 0.95rem;
}
.episode-status {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #c9a962;
}
.episode-total, .episode-current {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.episode-total {
  background: rgba(201, 169, 98, 0.15);
  color: #1a3a3a;
  border: 1px solid #c9a962;
}
.episode-current {
  background: #1a3a3a;
  color: #f5f2e8;
}
.cast-section {
  margin-top: 8px;
}
.section-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 1.6rem;
  color: #1a3a3a;
  margin-bottom: 16px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 2px;
  background: #c9a962;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cast-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(26, 58, 58, 0.1);
  border-radius: 16px 4px 16px 4px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(26, 58, 58, 0.1);
}
.actor-name {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a3a3a;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.actor-role {
  display: block;
  font-size: 0.85rem;
  color: #5a7a7a;
  background: rgba(201, 169, 98, 0.15);
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
}
.synopsis-section {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px dashed rgba(26, 58, 58, 0.2);
}
.synopsis-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.synopsis-paragraph {
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  border-left: 3px solid #c9a962;
  color: #2a4a4a;
}
.episode-list-section {
  margin-bottom: 64px;
  padding: 32px 0;
  border-top: 2px solid #c9a962;
  border-bottom: 2px solid #c9a962;
}
.episode-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.episode-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px 4px 12px 4px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 58, 58, 0.1);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.episode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #c9a962;
  opacity: 0;
  transition: opacity 0.2s;
}
.episode-card:hover::before { opacity: 1; }
.episode-card:hover { box-shadow: 0 4px 16px rgba(26, 58, 58, 0.08); }
.episode-number {
  display: block;
  font-size: 0.9rem;
  color: #c9a962;
  font-weight: bold;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.episode-title {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a3a3a;
  margin-bottom: 8px;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
}
.episode-summary {
  display: block;
  font-size: 0.85rem;
  color: #5a7a7a;
  line-height: 1.6;
}
.episode-duration {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #8a9a9a;
  background: rgba(201, 169, 98, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
}
.timeline-section {
  margin-bottom: 64px;
  padding: 32px 0;
}
.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 20px;
  display: flex;
  gap: 0;
  position: relative;
  padding-top: 40px;
}
.timeline-scroll::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a3a3a 0%, #c9a962 50%, #1a3a3a 100%);
  border-radius: 2px;
}
.timeline-item {
  flex: 0 0 auto;
  width: 200px;
  padding: 0 16px;
  position: relative;
  text-align: center;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #f5f2e8;
  border: 3px solid #c9a962;
  border-radius: 50%;
  z-index: 1;
}
.timeline-time {
  display: block;
  font-size: 0.9rem;
  color: #c9a962;
  font-weight: bold;
  margin-bottom: 8px;
}
.timeline-label {
  display: block;
  font-size: 0.9rem;
  color: #1a3a3a;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  border-radius: 12px 2px 12px 2px;
  box-shadow: 0 2px 8px rgba(26, 58, 58, 0.06);
}
.stills-section {
  margin-bottom: 64px;
}
.stills-masonry {
  columns: 3;
  column-gap: 16px;
}
.stills-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 58, 58, 0.1);
  transition: transform 0.3s;
}
.stills-card:hover { transform: scale(1.02); }
.stills-card img {
  width: 100%;
  height: auto;
}
.stills-card:nth-child(odd) img { aspect-ratio: 3 / 4; }
.stills-card:nth-child(even) img { aspect-ratio: 4 / 3; }
.comments-section {
  margin-bottom: 64px;
  padding: 32px;
  background: rgba(201, 169, 98, 0.05);
  border-radius: 24px 8px 24px 8px;
}
.comments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.comment-bubble {
  background: #fff;
  border-radius: 20px 4px 20px 4px;
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 2px 12px rgba(26, 58, 58, 0.06);
}
.comment-bubble::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 28px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}
.comment-author {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: #c9a962;
  margin-bottom: 8px;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
}
.comment-text {
  font-size: 0.9rem;
  color: #2a4a4a;
  line-height: 1.7;
}
.recommendation-section {
  margin-bottom: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(201, 169, 98, 0.3);
}
.recommendation-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 1.6rem;
  color: #1a3a3a;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
a[data-runtime="recommendation"] {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px 4px 16px 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  border: 1px solid rgba(26, 58, 58, 0.08);
  color: #1a3a3a;
  text-decoration: none;
}
a[data-runtime="recommendation"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 58, 58, 0.1);
  border-color: #c9a962;
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px 2px 8px 2px;
}
a[data-runtime="recommendation"] [data-runtime="name"] {
  font-weight: bold;
  font-size: 0.95rem;
  color: #1a3a3a;
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 0.8rem;
  color: #5a7a7a;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
footer {
  margin-top: 32px;
  padding: 40px 24px 24px;
  border-top: 3px solid #1a3a3a;
  background: #1a3a3a;
  color: #e8e4d8;
  border-radius: 24px 24px 0 0;
}
[data-contract="disclaimer"] {
  font-size: 0.8rem;
  color: #8a9a9a;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #c9a962;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #f5f2e8;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  align-items: center;
}
.friend-links-label {
  color: #c9a962;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
}
a.runtime-friend-link {
  color: #8a9a9a;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
a.runtime-friend-link:hover { color: #c9a962; text-decoration: underline; }
body.lights-off {
  background: #0a1a1a;
  color: #e8e4d8;
}
body.lights-off .hero-section {
  background: linear-gradient(145deg, #0a1a1a, #122a2a);
}
body.lights-off .movie-title, body.lights-off .section-title, body.lights-off .actor-name, body.lights-off .episode-title, body.lights-off .timeline-label, body.lights-off .comment-text { color: #e8e4d8; }
body.lights-off .cast-card, body.lights-off .episode-card, body.lights-off .comment-bubble, body.lights-off a[data-runtime="recommendation"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
body.lights-off .synopsis-paragraph, body.lights-off .details-list { background: rgba(255, 255, 255, 0.03); }
body.lights-off .episode-summary, body.lights-off .actor-role, body.lights-off .comment-text { color: #8a9a9a; }
video.theater-mode {
  border-radius: 0 !important;
}
@media (max-width: 1024px) {.hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
.hero-poster-wrapper {
    max-width: 340px;
    margin: 0 auto;
  }
.synopsis-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
.stills-masonry { columns: 2; }
.hero-player-wrapper { min-width: 0; }}
@media (max-width: 768px) {header, main, footer { padding: 0 16px; }
.movie-title { font-size: 1.8rem; }
.comments-grid { grid-template-columns: 1fr; }
.cast-list { grid-template-columns: repeat(2, 1fr); }
.episode-timeline { grid-template-columns: 1fr; }
.stills-masonry { columns: 1; }
.recommendation-grid { grid-template-columns: repeat(2, 1fr); }
.details-list { grid-template-columns: 1fr 1fr; }
.timeline-scroll { padding-top: 32px; }
.timeline-item { width: 160px; }
.hero-player-wrapper { min-width: 0; }}
@media (max-width: 480px) {.hero-section { padding: 16px; }
.movie-title { font-size: 1.5rem; }
.cast-list { grid-template-columns: 1fr; }
.recommendation-grid { grid-template-columns: 1fr; }
.details-list { grid-template-columns: 1fr; }
header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
nav[data-contract="categories"] { justify-content: center; }
.episode-status { justify-content: center; }
.hero-player-wrapper { min-width: 0; }
.player-controls { gap: 6px; }
.player-controls button { padding: 4px 10px; font-size: 0.8rem; }
.timeline-item { width: 140px; }}

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}
