*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #1d2329;
  color: #d8cfc0;
  line-height: 1.6;
  min-height: 100vh;
}
header {
  background: #2a3440;
  border-bottom: 1px solid #3a4550;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.site-logo {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #d9a441;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-left: 3px solid #d9a441;
  padding-left: 0.6rem;
}
.categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.runtime-category {
  color: #b8b0a3;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.runtime-category:hover {
  color: #d9a441;
  background: rgba(217, 164, 65, 0.1);
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.movie-overview-shell {
  background: #2a3440;
  border-radius: 12px;
  border: 1px solid #3a4550;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.movie-overview-shell.lights-dim .media-panel {
  filter: brightness(0.4);
  transition: filter 0.4s;
}
.media-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1.25rem;
  align-items: start;
}
.main-poster-img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.player-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.player-wrapper.theater-mode {
  position: fixed;
  inset: 0;
  z-index: 200;
  border-radius: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-wrapper.theater-mode video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-wrapper video {
  display: block;
  width: 100%;
  background: #000;
}
.player-wrapper video.playing + .player-controls {
  opacity: 0;
  transition: opacity 0.3s;
}
.player-wrapper video.playing:hover + .player-controls, .player-controls:hover {
  opacity: 1;
}
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transition: opacity 0.3s;
}
.player-controls button {
  background: none;
  border: none;
  color: #d8cfc0;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  line-height: 1;
}
.player-controls button:hover {
  color: #d9a441;
  background: rgba(217, 164, 65, 0.15);
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: #4a5560;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  min-width: 60px;
}
.progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 30%;
  background: #d9a441;
  border-radius: 2px;
}
.volume-slider {
  width: 50px;
  height: 4px;
  background: #4a5560;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.volume-slider::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  background: #d8cfc0;
  border-radius: 2px;
}
.info-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.title-block {
  border-bottom: 1px solid #3a4550;
  padding-bottom: 0.75rem;
}
.movie-title {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e8e0d2;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.tagline {
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 1.1rem;
  color: #d9a441;
  font-style: italic;
}
.fragment-title {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #d9a441;
  margin-bottom: 0.5rem;
  border-left: 3px solid #d9a441;
  padding-left: 0.5rem;
}
.cast-fragment, .synopsis-fragment, .episode-status-fragment, .details-fragment {
  padding: 0.25rem 0;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.actor-chip {
  background: #3a4550;
  color: #d8cfc0;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #4a5560;
}
.synopsis-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}
.synopsis-text p {
  background: rgba(216, 207, 192, 0.05);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  border-left: 2px solid rgba(217, 164, 65, 0.3);
}
.episode-status-fragment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.episode-total, .episode-current {
  background: #3a4550;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.episode-badge {
  background: #d9a441;
  color: #1d2329;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.details-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem 1rem;
}
.details-meta li {
  font-size: 0.88rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #3a4550;
}
.meta-label {
  color: #b8b0a3;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}
.episodes-fragment {
  background: #2a3440;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #3a4550;
}
.episode-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.episode-item {
  background: rgba(216, 207, 192, 0.05);
  border-radius: 8px;
  border: 1px solid #3a4550;
  overflow: hidden;
}
.episode-item[open] {
  border-color: #d9a441;
}
.episode-item summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.episode-item summary:hover {
  background: rgba(217, 164, 65, 0.08);
}
.episode-item summary::-webkit-details-marker {
  display: none;
}
.episode-item summary::before {
  content: "▸";
  color: #d9a441;
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.episode-item[open] summary::before {
  transform: rotate(90deg);
}
.ep-number {
  color: #d9a441;
  font-weight: 600;
  min-width: 3.5em;
}
.ep-title {
  flex: 1;
  color: #e8e0d2;
}
.ep-duration {
  color: #b8b0a3;
  font-size: 0.8rem;
}
.ep-summary {
  padding: 0.5rem 0.8rem 0.8rem 3rem;
  font-size: 0.85rem;
  color: #c0b8ab;
  background: rgba(0,0,0,0.15);
}
.creator-card {
  background: #2a3440;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid #3a4550;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.director-info, .screenwriter-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.role-label {
  font-size: 0.8rem;
  color: #b8b0a3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.person-name {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e8e0d2;
}
.rating-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-left: 1px solid #3a4550;
  padding-left: 2rem;
}
.rating-score {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #d9a441;
}
.rating-stars {
  color: #d9a441;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.timeline-fragment {
  background: #2a3440;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #3a4550;
}
.timeline-vertical {
  position: relative;
  margin-left: 1rem;
  padding-left: 1.5rem;
}
.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px dashed #d9a441;
}
.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  align-items: baseline;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.85rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #2a3440;
  border: 2px solid #d9a441;
  border-radius: 50%;
}
.timecode {
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 600;
  color: #d9a441;
  font-size: 0.9rem;
  min-width: 3.5em;
}
.timeline-label {
  color: #d8cfc0;
  font-size: 0.9rem;
}
.comments-fragment {
  background: #2a3440;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #3a4550;
}
.comment-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  align-items: start;
}
.comment-card {
  background: rgba(216, 207, 192, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #3a4550;
}
.comment-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d9a441;
  margin-bottom: 0.35rem;
}
.comment-text {
  font-size: 0.88rem;
  color: #c0b8ab;
  line-height: 1.5;
}
.recommendation-region {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recommendation-title {
  font-family: "Kaiti SC", "STKaiti", cursive;
  font-size: 1.3rem;
  color: #d9a441;
  border-bottom: 1px solid #3a4550;
  padding-bottom: 0.4rem;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.rec-card {
  background: #2a3440;
  border-radius: 8px;
  border: 1px solid #3a4550;
  overflow: hidden;
  text-decoration: none;
  color: #d8cfc0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rec-card:hover {
  transform: translateY(-2px);
  border-color: #d9a441;
  box-shadow: 0 4px 12px rgba(217, 164, 65, 0.15);
}
.rec-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.rec-card span {
  padding: 0.35rem 0.6rem 0.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.rec-card span:last-child {
  padding-top: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: #b8b0a3;
  flex: 1;
}
footer {
  background: #2a3440;
  border-top: 1px solid #3a4550;
  margin-top: 2rem;
}
.footer-contents {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contents nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}
.friend-links-label {
  color: #b8b0a3;
  font-size: 0.85rem;
}
.runtime-friend-link {
  color: #b8b0a3;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: color 0.2s;
}
.runtime-friend-link:hover {
  color: #d9a441;
  text-decoration: underline;
}
.disclaimer {
  color: #8a8578;
  font-size: 0.78rem;
  line-height: 1.5;
}
.footer-links-mini {
  display: flex;
  gap: 1rem;
}
.footer-links-mini a {
  color: #b8b0a3;
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-links-mini a:hover {
  color: #d9a441;
  text-decoration: underline;
}
@media (max-width: 1024px) {.media-panel {
    grid-template-columns: 1fr;
  }
.main-poster-img {
    max-width: 280px;
    margin: 0 auto;
  }}
@media (max-width: 768px) {header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
.categories-container {
    width: 100%;
  }
.movie-overview-shell {
    padding: 1rem;
  }
.movie-title {
    font-size: 1.4rem;
  }
.tagline {
    font-size: 1rem;
  }
.synopsis-text {
    grid-template-columns: 1fr;
  }
.details-meta {
    grid-template-columns: 1fr 1fr;
  }
.comment-wall {
    grid-template-columns: 1fr;
  }
.recommendation-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
.creator-card {
    flex-direction: column;
    gap: 1rem;
  }
.rating-block {
    border-left: none;
    border-top: 1px solid #3a4550;
    padding-left: 0;
    padding-top: 0.75rem;
  }
.timeline-vertical {
    margin-left: 0.5rem;
    padding-left: 1.25rem;
  }
.timeline-item {
    flex-direction: column;
    gap: 0.15rem;
  }
.timeline-item::before {
    top: 0.4rem;
  }}
@media (max-width: 480px) {main {
    padding: 0.75rem 0.5rem 1.5rem;
  }
.movie-overview-shell, .episodes-fragment, .timeline-fragment, .comments-fragment {
    padding: 0.75rem;
  }
.episode-item summary {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
.ep-duration {
    width: 100%;
    padding-left: 2.2rem;
  }
.details-meta {
    grid-template-columns: 1fr;
  }
.recommendation-grid {
    grid-template-columns: 1fr 1fr;
  }
.player-controls {
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem;
  }
.volume-slider {
    width: 35px;
  }
.footer-links-mini {
    flex-wrap: wrap;
  }}
.video.playing {
  cursor: pointer;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1d2329;
}
::-webkit-scrollbar-thumb {
  background: #3a4550;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d9a441;
}

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}
