*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Songti SC", "SimSun", "STSong", serif;
  background-color: #fff8f0;
  color: #3a3229;
  line-height: 1.5;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: #d97706; text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: #fff8f0;
  border-bottom: 2px solid #f5e6d3;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e0761a;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
}
.site-logo:hover { color: #c05f0a; }
.category-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.category-nav .runtime-category {
  display: inline-block;
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.85rem;
  color: #5a5148;
  background: #fdecd9;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid #f0d9b8;
}
.category-nav .runtime-category:hover {
  background: #f7d8b4;
  color: #8a4d0f;
  border-color: #e0b580;
}
.movie-overview-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #fffdf9;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(200, 150, 80, 0.12);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.poster-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}
.poster-media {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: #f0e3d2;
  box-shadow: 0 6px 18px rgba(160, 110, 50, 0.15);
}
.poster-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.title-tagline-group {
  max-width: 260px;
}
.movie-title {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #3a3229;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.tagline {
  font-size: 0.9rem;
  color: #b07a45;
  font-style: italic;
  letter-spacing: 0.02em;
}
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}
.player-wrapper {
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1510;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}
.player-wrapper video {
  width: 100%;
  display: block;
}
.player-wrapper.theater-mode {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
}
.player-wrapper.theater-mode video {
  width: 100%;
  height: 100%;
}
body.lights-off .player-wrapper:not(.theater-mode) {
  opacity: 0.85;
}
.player-controls {
  display: none;
}
.section-title {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3a3229;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #f2d8b8;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: #e0761a;
}
.synopsis-block { margin-bottom: 0.2rem; }
.synopsis-para {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: #4c4238;
  line-height: 1.65;
  max-width: 68ch;
}
.synopsis-para:last-child { margin-bottom: 0; }
.cast-block { margin-bottom: 0.2rem; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.cast-item {
  background: #faf0e4;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  text-align: center;
  border: 1px solid #f0ddc4;
}
.actor-name {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.9rem;
  color: #5a4a38;
  font-weight: 500;
}
.episode-status-block {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.3rem 0;
}
.current-episode {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #e0761a;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  display: inline-block;
}
.total-episodes {
  font-size: 0.85rem;
  color: #8a7a68;
  background: #f5e9da;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  display: inline-block;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.4rem;
  padding: 0.8rem;
  background: #faf3ea;
  border-radius: 12px;
  border: 1px solid #f0e2d0;
}
.detail-item {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.85rem;
  padding: 0.15rem 0;
}
.detail-label {
  color: #9a7a5a;
  font-size: 0.8rem;
  white-space: nowrap;
}
.detail-value {
  color: #4c4238;
  font-weight: 500;
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.85rem;
}
.timeline-section {
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 1.5rem 1.5rem 1.2rem;
  background: #fffbf5;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(200, 150, 80, 0.08);
  margin-top: 1rem;
}
.timeline-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  padding-top: 1.2rem;
  position: relative;
}
.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #f2d8b8;
}
.timeline-item {
  position: relative;
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.timeline-point {
  position: absolute;
  top: -0.35rem;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0761a;
  border: 3px solid #fff8f0;
  box-shadow: 0 0 0 2px #e0761a;
}
.timecode {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b05e0f;
}
.timeline-label {
  font-size: 0.85rem;
  color: #6b5c4e;
  line-height: 1.5;
}
.episodes-section {
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 1.5rem;
  background: #fffbf5;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(200, 150, 80, 0.08);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}
.episode-card {
  background: #fdf6ee;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid #f0e0ca;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: start;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.episode-card:hover {
  box-shadow: 0 4px 14px rgba(200, 150, 80, 0.14);
  border-color: #e3c9a6;
}
.episode-number {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e0761a;
  line-height: 1;
}
.episode-title {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3a3229;
}
.episode-summary {
  font-size: 0.85rem;
  color: #6b5c4e;
  line-height: 1.5;
  flex-grow: 1;
}
.episode-duration {
  font-size: 0.78rem;
  color: #9a7a5a;
  background: #f5e9da;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  align-self: flex-start;
  margin-top: 0.2rem;
}
.comments-section {
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 1.5rem;
  background: #fffbf5;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(200, 150, 80, 0.08);
}
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
.comment-card {
  background: #fdf6ee;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid #f0e0ca;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.comment-nickname {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b05e0f;
}
.comment-text {
  font-size: 0.88rem;
  color: #4c4238;
  line-height: 1.6;
}
.recommendation-region {
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 1.5rem;
  background: #fffbf5;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(200, 150, 80, 0.08);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}
.rec-grid a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #fdf6ee;
  border-radius: 14px;
  padding: 0.8rem;
  border: 1px solid #f0e0ca;
  color: #3a3229;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  align-self: start;
}
.rec-grid a[data-runtime="recommendation"]:hover {
  box-shadow: 0 4px 14px rgba(200, 150, 80, 0.16);
  border-color: #e3c9a6;
  text-decoration: none;
}
.rec-grid a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #f0e3d2;
}
.rec-grid a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-family: "Heiti SC", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a3229;
}
.rec-grid a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.82rem;
  color: #8a7a68;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid #f0e2d0;
  background: #fff8f0;
  border-radius: 0 0 20px 20px;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: #9a8a7a;
  line-height: 1.6;
  max-width: 80ch;
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: #8a5a2a;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links a[data-contract="footer-home"] { color: #8a5a2a; }
.footer-links a[data-contract="footer-sitemap"] { color: #8a5a2a; }
.friend-links {
  display: flex;
  gap: 0.4rem 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
}
.friend-link-label {
  color: #9a8a7a;
  white-space: nowrap;
}
.runtime-friend-link {
  color: #b07a45;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.runtime-friend-link:hover {
  text-decoration: underline;
  color: #8a5a2a;
}
@media (max-width: 900px) {.movie-overview-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.2rem;
  }
.poster-media { max-width: 200px; }
.title-tagline-group { max-width: 200px; }}
@media (max-width: 720px) {header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }
.category-nav {
    justify-content: flex-start;
    width: 100%;
  }
.movie-overview-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
.poster-column {
    max-width: 100%;
    align-items: center;
  }
.poster-media {
    max-width: 220px;
    margin: 0 auto;
  }
.title-tagline-group {
    max-width: 100%;
    text-align: center;
  }
.info-panel {
    width: 100%;
  }
.player-wrapper {
    width: 100%;
  }
.details-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
.timeline-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
.timeline-horizontal::before {
    display: none;
  }
.timeline-item {
    padding-top: 0.5rem;
    padding-left: 1.5rem;
  }
.timeline-point {
    top: 0.6rem;
    left: 0;
  }
.episode-grid {
    grid-template-columns: 1fr;
  }
.comments-grid {
    grid-template-columns: 1fr;
  }
.rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }}
@media (max-width: 480px) {body {
    font-size: 15px;
  }
.movie-overview-shell {
    margin-top: 0.5rem;
    border-radius: 16px;
    padding: 0.8rem;
  }
.info-panel {
    gap: 0.9rem;
  }
.player-wrapper {
    border-radius: 12px;
  }
.section-title {
    font-size: 1rem;
  }
.cast-list {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
.episode-grid {
    gap: 0.6rem;
  }
.episode-card {
    padding: 0.75rem;
  }
.comments-grid {
    gap: 0.6rem;
  }
.comment-card {
    padding: 0.75rem;
  }
.rec-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
.rec-grid a[data-runtime="recommendation"] {
    flex-direction: row;
    align-items: center;
    padding: 0.6rem;
  }
.rec-grid a[data-runtime="recommendation"] img {
    width: 90px;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }
.rec-grid a[data-runtime="recommendation"] span[data-runtime="blurb"] {
    display: none;
  }
.timeline-section, .episodes-section, .comments-section, .recommendation-region {
    padding: 1rem;
    border-radius: 16px;
  }
footer {
    padding: 1rem;
  }}
@media (max-width: 360px) {.details-grid {
    grid-template-columns: 1fr 1fr;
  }
.episode-status-block {
    flex-direction: column;
    align-items: flex-start;
  }
.rec-grid a[data-runtime="recommendation"] {
    flex-direction: column;
    align-items: flex-start;
  }
.rec-grid a[data-runtime="recommendation"] img {
    width: 100%;
  }}

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}
