*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0a0e14;
  color: #c8ccd0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 300;
  overflow-x: hidden;
}
body.lights-off .hero-silhouette { opacity: 0; }
body.lights-off .poster-wrapper { opacity: 0.6; }
body.lights-off .main-poster-img { filter: brightness(0.5); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input[type="range"] { accent-color: #f5c842; }
header {
  background: #0a0e14;
  border-bottom: 1px solid #2a2f38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
}
.site-name {
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #f5c842;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.runtime-category {
  color: #8a919c;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #2a2f38;
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.runtime-category:hover { border-color: #f5c842; color: #f5c842; }
.hero-silhouette {
  height: 55vh;
  min-height: 320px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(245, 200, 66, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #10151e 70%, #1a2029 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-silhouette::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background:
    radial-gradient(ellipse at 30% 100%, transparent 0%, transparent 45%, #0a0e14 46%),
    radial-gradient(ellipse at 70% 100%, transparent 0%, transparent 45%, #0a0e14 46%),
    linear-gradient(180deg, transparent 0%, #0a0e14 30%);
  opacity: 0.8;
}
.hero-silhouette::after {
  content: "工 地 夜 话";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  color: #f5c842;
  text-shadow: 0 0 40px rgba(245, 200, 66, 0.3), 0 4px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.15em;
  white-space: nowrap;
  z-index: 2;
}
.movie-overview {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 2.5rem 2.5rem;
  background: linear-gradient(180deg, #10151e 0%, #0d1117 100%);
  border-bottom: 1px solid #2a2f38;
  position: relative;
}
.poster-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.poster-wrapper {
  width: 100%;
  max-width: 280px;
  background: #1a2029;
  border: 1px solid #2a2f38;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.main-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.overview-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.movie-title {
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #e8e6e3;
  line-height: 1.2;
  border-left: 4px solid #f5c842;
  padding-left: 0.8rem;
}
.tagline {
  color: #f5c842;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #2a2f38;
  padding-bottom: 0.75rem;
}
.section-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8e6e3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: "Songti SC", "SimSun", serif;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #f5c842 0%, transparent 100%);
}
.cast-section { margin-bottom: 0.5rem; }
.cast-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(26, 32, 41, 0.5);
  border: 1px solid #2a2f38;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.cast-card:hover { border-color: #f5c842; background: rgba(26, 32, 41, 0.8); }
.actor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a4a5a 0%, #1a2029 100%);
  border: 2px solid #f5c842;
  position: relative;
  overflow: hidden;
}
.actor-avatar::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background: #8a919c;
}
.actor-avatar::before {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40%;
  background: #8a919c;
  border-radius: 50% 50% 0 0;
}
.actor-name {
  font-size: 0.9rem;
  color: #e8e6e3;
  font-weight: 500;
}
.synopsis-section { margin-bottom: 0.5rem; }
.synopsis-para {
  color: #b0b5bc;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: left;
  max-width: 65ch;
}
.episode-status-block {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.status-label {
  background: #f5c842;
  color: #0a0e14;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.current-episode {
  color: #8a919c;
  font-size: 0.9rem;
  border: 1px solid #2a2f38;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}
.detail-meta { margin-top: 0.5rem; }
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem 1rem;
  background: rgba(26, 32, 41, 0.4);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #2a2f38;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.detail-item dt {
  font-size: 0.75rem;
  color: #8a919c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-item dd {
  font-size: 0.95rem;
  color: #e8e6e3;
  font-weight: 400;
}
.player-figure {
  margin: 0;
  padding: 1.5rem 2.5rem;
  background: #0d1117;
  border-bottom: 1px solid #2a2f38;
  position: relative;
}
.player-figure video {
  display: block;
  background: #000;
  border: 1px solid #2a2f38;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.player-figure.theater-mode video {
  border-radius: 0;
  border: none;
}
.player-figure.theater-mode {
  padding: 0;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-figure.theater-mode video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.custom-player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background: rgba(26, 32, 41, 0.7);
  border-radius: 4px;
  padding: 0.5rem;
  border: 1px solid #2a2f38;
}
.custom-player-controls button {
  color: #c8ccd0;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.custom-player-controls button:hover { color: #f5c842; background: rgba(245, 200, 66, 0.1); }
.custom-player-controls input[type="range"] {
  flex: 1;
  min-width: 60px;
  height: 4px;
  background: #2a2f38;
  border-radius: 2px;
}
.speed-control {
  font-size: 0.85rem;
  color: #8a919c;
  padding: 0.25rem 0.5rem;
  border: 1px solid #2a2f38;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.speed-control:hover { border-color: #f5c842; color: #f5c842; }
.episodes-timeline {
  padding: 2rem 2.5rem;
  background: #0d1117;
  border-bottom: 1px solid #2a2f38;
}
.episode-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  counter-reset: episode;
}
.episode-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(26, 32, 41, 0.4);
  border: 1px solid #2a2f38;
  border-radius: 4px;
  position: relative;
  transition: border-color 0.2s;
}
.episode-step:hover { border-color: #f5c842; }
.episode-number {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f5c842;
  min-width: 40px;
  text-align: center;
  line-height: 1.2;
  border-right: 1px solid #2a2f38;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.episode-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.episode-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e6e3;
}
.episode-summary {
  font-size: 0.85rem;
  color: #8a919c;
  line-height: 1.5;
}
.episode-duration {
  font-size: 0.8rem;
  color: #f5c842;
  opacity: 0.8;
}
.timeline-river {
  padding: 2rem 2.5rem;
  background: #10151e;
  border-bottom: 1px solid #2a2f38;
}
.timeline-horizontal {
  overflow-x: auto;
  padding-bottom: 1rem;
}
.timeline-track {
  display: flex;
  gap: 2rem;
  min-width: max-content;
  position: relative;
  padding-top: 2rem;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f5c842, #2a2f38 50%, #f5c842);
  border-radius: 1px;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  width: 150px;
  text-align: center;
}
.timeline-node::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5c842;
  border: 3px solid #0d1117;
  box-shadow: 0 0 0 2px #f5c842;
  margin-bottom: 0.5rem;
}
.timecode {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 0.8rem;
  color: #f5c842;
  font-weight: 600;
}
.timeline-label {
  font-size: 0.85rem;
  color: #b0b5bc;
  line-height: 1.4;
}
.comments-grid {
  padding: 2rem 2.5rem;
  background: #0d1117;
  border-bottom: 1px solid #2a2f38;
}
.comment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.comment-card {
  background: rgba(26, 32, 41, 0.4);
  border: 1px solid #2a2f38;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.comment-card:hover { border-color: rgba(245, 200, 66, 0.5); }
.comment-nick {
  font-size: 0.85rem;
  color: #f5c842;
  font-weight: 600;
  border-bottom: 1px solid #2a2f38;
  padding-bottom: 0.4rem;
}
.comment-text {
  font-size: 0.9rem;
  color: #b0b5bc;
  line-height: 1.6;
}
.recommendation-region {
  padding: 2rem 2.5rem;
  background: #0d1117;
  border-bottom: 1px solid #2a2f38;
}
.region-title {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.3rem;
  color: #e8e6e3;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f5c842;
  position: relative;
}
.region-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: #f5c842;
}
.recommendation-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.recommendation-list a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(26, 32, 41, 0.4);
  border: 1px solid #2a2f38;
  border-radius: 4px;
  padding: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  height: 100%;
  align-self: start;
}
.recommendation-list a[data-runtime="recommendation"]:hover {
  border-color: #f5c842;
  transform: translateY(-2px);
}
.recommendation-list a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: #2a2f38;
}
.recommendation-list a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 0.95rem;
  color: #e8e6e3;
  font-weight: 600;
  line-height: 1.3;
}
.recommendation-list a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.8rem;
  color: #8a919c;
  line-height: 1.4;
}
footer {
  background: #0a0e14;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid #2a2f38;
}
footer p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 80ch;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-links a {
  color: #8a919c;
  font-size: 0.9rem;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: #f5c842; border-bottom-color: #f5c842; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2f38;
}
.friend-label {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}
.runtime-friend-link {
  color: #8a919c;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.runtime-friend-link:hover { color: #f5c842; }
@media (max-width: 1024px) {.movie-overview {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
.recommendation-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }}
@media (max-width: 768px) {header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 1rem;
  }
.category-nav { justify-content: flex-start; }
.movie-overview {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
.poster-column {
    align-items: center;
  }
.poster-wrapper {
    max-width: 240px;
    width: 100%;
  }
.player-figure {
    padding: 1rem;
  }
.custom-player-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
.episodes-timeline, .timeline-river, .comments-grid, .recommendation-region {
    padding: 1.5rem 1rem;
  }
.detail-list {
    grid-template-columns: repeat(2, 1fr);
  }
.episode-steps {
    grid-template-columns: 1fr;
  }
.comment-cards {
    grid-template-columns: 1fr;
  }
.recommendation-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
.hero-silhouette { height: 40vh; min-height: 240px; }}
@media (max-width: 480px) {.movie-title {
    font-size: 1.6rem;
  }
.cast-card-group {
    grid-template-columns: repeat(2, 1fr);
  }
.detail-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
.recommendation-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
.recommendation-list a[data-runtime="recommendation"] {
    padding: 0.5rem;
  }
.hero-silhouette::after {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }
.timeline-node { width: 110px; }
.footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
.friend-links {
    flex-direction: column;
    align-items: flex-start;
  }}
@media (max-width: 360px) {.recommendation-list {
    grid-template-columns: 1fr;
  }
.detail-list {
    grid-template-columns: 1fr;
  }}
.click { outline: 1px solid rgba(245, 200, 66, 0.5); }
.input { border-color: #f5c842; }
.lights-off .hero-silhouette { opacity: 0; }
.lights-off .poster-wrapper { opacity: 0.6; }
.lights-off .main-poster-img { filter: brightness(0.5); }
.player { border: 1px solid #f5c842; }
.progress { background: #f5c842; }
.theater-mode { }
.timeupdate { }
.volume { }
.volumechange { }
.x { transform: rotate(45deg); }
.player-figure { min-width: 0; }
.player-figure video { width: 100% !important; }
.player-figure { width: 100%; }
.cast-card, .comment-card, .recommendation-list a[data-runtime="recommendation"] {
  align-self: start;
  height: auto;
}
.poster-column { align-self: start; }
.overview-content { min-width: 0; }

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}
