*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: #1a1410;
  color: #d9c7a7;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #1a1410;
  border-bottom: 1px solid #3a2d1f;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f0b35e;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.site-brand:hover { color: #ffd79a; }
.header-categories {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0;
}
.runtime-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  color: #b8a58a;
  border: 1px solid #3a2d1f;
  border-radius: 2rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.runtime-category:hover {
  background: #3a2d1f;
  color: #f0b35e;
  border-color: #f0b35e;
}
.page-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.2rem;
}
.movie-overview-panel {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  background: #231c15;
  border: 1px solid #3a2d1f;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.hero-poster-shell {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}
.hero-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.movie-info-group {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.movie-title {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f5e6c8;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.movie-tagline {
  font-size: 1rem;
  color: #f0b35e;
  font-style: italic;
  margin-top: -0.4rem;
}
.synopsis-block {
  padding: 0.8rem 0;
  border-top: 1px solid #3a2d1f;
  border-bottom: 1px solid #3a2d1f;
}
.block-heading {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0b35e;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.block-heading::after {
  content: "";
  flex: 0 0 2rem;
  height: 2px;
  background: #f0b35e;
  opacity: 0.4;
}
.synopsis-paragraph {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #cbbda6;
  text-align: justify;
  margin-bottom: 0.6rem;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.cast-block { padding: 0.2rem 0; }
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cast-item {
  font-size: 0.9rem;
  padding: 0.2rem 0.8rem;
  background: #2d2419;
  border-radius: 2rem;
  color: #e0c9a6;
  border: 1px solid #3a2d1f;
}
.episode-status-block {
  padding: 0.4rem 0;
}
.episode-meta {
  font-size: 0.9rem;
  color: #b8a58a;
}
.total-episodes, .current-episode {
  color: #f0b35e;
  font-weight: 700;
}
.details-block { padding: 0.4rem 0; }
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.5rem;
}
.detail-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #3a2d1f;
}
.detail-row dt {
  color: #8a7a5c;
  flex: 0 0 auto;
}
.detail-row dd {
  color: #d9c7a7;
}
.player-wrapper {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
.player-wrapper video {
  border-radius: 8px;
  background: #1a1410;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}
.player-controls button {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: #2d2419;
  border: 1px solid #3a2d1f;
  border-radius: 4px;
  color: #b8a58a;
  transition: all 0.2s;
}
.player-controls button:hover {
  background: #f0b35e;
  color: #1a1410;
  border-color: #f0b35e;
}
.player.theater-mode {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}
.player.light-off {
  filter: brightness(0.4);
}
.episodes-section {
  margin-bottom: 2.5rem;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
}
.episode-card {
  background: #231c15;
  border: 1px solid #3a2d1f;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s, border-color 0.2s;
}
.episode-card:hover {
  background: #2d2419;
  border-color: #d9b370;
}
.episode-number {
  font-size: 0.8rem;
  color: #f0b35e;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.episode-title {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1rem;
  color: #f5e6c8;
  font-weight: 600;
}
.episode-summary {
  font-size: 0.85rem;
  color: #b8a58a;
  line-height: 1.5;
  flex: 1;
}
.episode-duration {
  font-size: 0.75rem;
  color: #8a7a5c;
  align-self: flex-end;
}
.timeline-section {
  margin-bottom: 2.5rem;
}
.timeline-horizontal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.timeline-card {
  background: #231c15;
  border: 1px solid #3a2d1f;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100px;
}
.timecode {
  font-size: 0.8rem;
  color: #f0b35e;
  font-weight: 700;
}
.timeline-label {
  font-size: 0.9rem;
  color: #d9c7a7;
  line-height: 1.5;
}
.cast-detail-section {
  margin-bottom: 2.5rem;
}
.cast-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.actor-card {
  background: #231c15;
  border: 1px solid #3a2d1f;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.actor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3a2d1f;
  color: #f0b35e;
  font-size: 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0b35e;
  margin-bottom: 0.4rem;
}
.actor-name {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.1rem;
  color: #f5e6c8;
}
.actor-role {
  font-size: 0.85rem;
  color: #b8a58a;
}
.actor-quote {
  font-size: 0.85rem;
  color: #d9b370;
  font-style: italic;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #3a2d1f;
}
.comments-section {
  margin-bottom: 2.5rem;
}
.comments-masonry {
  columns: 3;
  column-gap: 0.8rem;
}
.comment-card {
  break-inside: avoid;
  margin-bottom: 0.8rem;
  background: rgba(35, 28, 21, 0.7);
  border: 1px solid #3a2d1f;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.comment-text {
  font-size: 0.88rem;
  color: #cbbda6;
  line-height: 1.7;
}
.comment-author {
  font-size: 0.8rem;
  color: #f0b35e;
  align-self: flex-end;
}
.recommendation-region {
  margin-bottom: 2.5rem;
}
.recommendation-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}
a[data-runtime="recommendation"] {
  background: #231c15;
  border: 1px solid #3a2d1f;
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, transform 0.2s;
  color: #d9c7a7;
}
a[data-runtime="recommendation"]:hover {
  border-color: #f0b35e;
  transform: translateY(-2px);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}
a[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f5e6c8;
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 0.78rem;
  color: #8a7a5c;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid #3a2d1f;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
}
.friend-link-label {
  font-size: 0.85rem;
  color: #8a7a5c;
  font-weight: 600;
}
a.runtime-friend-link {
  font-size: 0.82rem;
  color: #b8a58a;
  transition: color 0.2s;
}
a.runtime-friend-link:hover {
  color: #f0b35e;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: #6b5d4a;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: #b8a58a;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #f0b35e;
}
a[data-contract="site-name"] { color: #f0b35e; }
a[data-contract="site-name"]:hover { color: #ffd79a; }
a.runtime-category { color: #b8a58a; }
a.runtime-category:hover { color: #f0b35e; }
a[data-runtime="recommendation"] { color: #d9c7a7; }
a[data-runtime="recommendation"]:hover { color: #f5e6c8; }
a.runtime-friend-link { color: #b8a58a; }
a.runtime-friend-link:hover { color: #f0b35e; }
a[data-contract="footer-home"] { color: #b8a58a; }
a[data-contract="footer-home"]:hover { color: #f0b35e; }
a[data-contract="footer-sitemap"] { color: #b8a58a; }
a[data-contract="footer-sitemap"]:hover { color: #f0b35e; }
@media (max-width: 1200px) {.comments-masonry { columns: 2; }}
@media (max-width: 900px) {.movie-overview-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
.hero-poster-shell {
    grid-column: 1;
    grid-row: 1;
    max-width: 300px;
  }
.hero-poster-img {
    max-width: 300px;
  }
.movie-info-group {
    grid-column: 1;
    grid-row: 2;
  }
.player-wrapper {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
  }}
@media (max-width: 768px) {.site-header {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
  }
.header-categories {
    width: 100%;
    justify-content: flex-start;
  }
.page-main {
    padding: 0.8rem;
  }
.movie-overview-panel {
    padding: 1rem;
  }
.movie-title {
    font-size: 1.4rem;
  }
.details-grid {
    grid-template-columns: 1fr;
  }
.episode-grid {
    grid-template-columns: 1fr;
  }
.timeline-horizontal {
    grid-auto-columns: 200px;
  }
.cast-card-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
.comments-masonry {
    columns: 1;
  }
.recommendation-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }}
@media (max-width: 480px) {.cast-card-row {
    grid-template-columns: 1fr;
  }
.recommendation-row {
    grid-template-columns: 1fr;
  }
.actor-card {
    padding: 1rem;
  }
.player-controls {
    gap: 0.2rem;
  }
.player-controls button {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
.player-wrapper {
    min-width: 0;
    width: 100%;
  }
.player-wrapper video {
    width: 100%;
  }}
@media (max-width: 360px) {.recommendation-row {
    grid-template-columns: 1fr;
  }}

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}
