*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #050a14 0%, #0a1428 45%, #0d1f2d 100%);
  background-attachment: fixed;
  color: #f0e6d2;
  line-height: 1.6;
  font-size: 15px;
  min-width: 320px;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
header {
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 100;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
}
.site-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.08em;
  color: #f5c842; 
  text-shadow: 0 0 12px rgba(245, 200, 66, 0.35);
  white-space: nowrap;
}
.site-logo:hover { color: #ffde6b; }
.categories-nav {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem;
  flex: 1; justify-content: flex-end;
}
.runtime-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem; color: #b8c4d4;
  border: 1px solid transparent; border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.runtime-category:hover {
  color: #f5c842; background: rgba(245, 200, 66, 0.1);
  border-color: rgba(245, 200, 66, 0.4);
}
.movie-overview-shell {
  max-width: 1280px; margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.6), rgba(5, 10, 25, 0.3));
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.poster-player-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1rem; align-items: start;
}
.poster-frame { width: 100%; }
.main-poster-img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.2);
}
.player-frame {
  background: #000;
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
.player-frame video {
  aspect-ratio: 16 / 9; width: 100%;
  background: #000;
}
.player-controls {
  display: flex; flex-wrap: wrap; gap: 0.15rem;
  padding: 0.3rem 0.4rem;
  background: rgba(0, 0, 0, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ctrl-btn {
  font-size: 0.9rem; padding: 0.25rem 0.45rem;
  border-radius: 3px; color: #9fb0c3;
  transition: background 0.15s, color 0.15s;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ctrl-btn.playing, .ctrl-btn.progressed, .ctrl-btn.vol-high, .ctrl-btn.muted, .ctrl-btn.speed-changed, .ctrl-btn.pip-active, .ctrl-btn.fullscreen-on, .ctrl-btn.theater-active, .ctrl-btn.dimmed {
  color: #f5c842; background: rgba(245, 200, 66, 0.15);
}
.title-block { margin-top: 1.2rem; }
.movie-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: 0.03em;
  color: #f5c842;
  text-shadow: 0 2px 20px rgba(245, 200, 66, 0.15);
  line-height: 1.25;
}
.tagline {
  margin-top: 0.25rem; font-size: 0.9rem;
  color: #a9b8c9; font-style: italic;
  border-left: 3px solid #f5c842; padding-left: 0.6rem;
}
.episode-status-group {
  margin-top: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}
.status-label { color: #f5c842; font-weight: 600; }
.status-current { color: #fff; font-weight: 500; }
.status-total { color: #9fb0c3; }
.status-duration { color: #7e8fa3; margin-left: auto; }
.synopsis-fragment {
  margin-top: 1.2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 2rem;
  font-size: 0.9rem; color: #d5dee8; line-height: 1.75;
}
.synopsis-left p, .synopsis-right p { margin-bottom: 0.6rem; text-align: justify; }
.synopsis-left p::first-letter {
  font-size: 1.3em; color: #f5c842; font-weight: 700;
}
.cast-grid {
  margin-top: 1.2rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.cast-member {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 0.3rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.cast-member:hover { border-color: rgba(245, 200, 66, 0.4); background: rgba(245, 200, 66, 0.04); }
.cast-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #1a2a44, #0d1f2d);
  border: 2px solid rgba(245, 200, 66, 0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #f5c842; font-weight: 700;
  margin-bottom: 0.35rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.cast-name { font-weight: 600; font-size: 0.95rem; color: #f0e6d2; }
.cast-role { font-size: 0.75rem; color: #8fa2b8; margin-top: 0.1rem; }
.details-panel {
  margin-top: 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 0.8rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.82rem;
}
.detail-item { color: #c5d0dc; }
.detail-label {
  display: inline-block; min-width: 3.5em;
  color: #8fa2b8; font-size: 0.75rem;
  margin-right: 0.3em;
}
.timeline-section {
  max-width: 1280px; margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
.timeline-heading {
  font-size: 1.15rem; font-weight: 700; color: #f5c842;
  margin-bottom: 1rem; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 0.4rem;
}
.timeline-track {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  padding-top: 1.2rem;
}
.timeline-track::before {
  content: ""; position: absolute; top: 0.3rem; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5c842 10%, #f5c842 90%, transparent);
  opacity: 0.5;
}
.timeline-item {
  position: relative; flex: 1 1 150px; min-width: 140px;
  padding: 0.5rem 0.6rem;
  background: rgba(10, 20, 35, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(245, 200, 66, 0.2);
}
.timeline-item::before {
  content: ""; position: absolute; top: -1.05rem; left: 0.8rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f5c842; box-shadow: 0 0 8px rgba(245, 200, 66, 0.6);
}
.timecode {
  display: block; font-size: 0.75rem; color: #f5c842; font-weight: 600;
  margin-bottom: 0.2rem;
}
.timeline-label { font-size: 0.82rem; color: #c5d0dc; }
.episodes-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1rem 2rem;
}
.episodes-heading {
  font-size: 1.15rem; font-weight: 700; color: #f5c842;
  margin-bottom: 1rem; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 0.4rem;
}
.episode-list { display: flex; flex-direction: column; gap: 0.4rem; }
.episode-item {
  display: grid; grid-template-columns: 80px 1fr 2fr 70px;
  gap: 0.4rem 1rem; align-items: center;
  padding: 0.6rem 0.8rem;
  background: rgba(10, 20, 35, 0.4);
  border-left: 3px solid transparent;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.episode-item:hover {
  border-left-color: #f5c842;
  background: rgba(245, 200, 66, 0.05);
}
.episode-number {
  font-family: "Georgia", serif; font-size: 0.9rem;
  color: #f5c842; font-weight: 700;
}
.episode-title { font-weight: 600; color: #e8dece; font-size: 0.95rem; }
.episode-summary { font-size: 0.82rem; color: #9fb0c3; line-height: 1.5; }
.episode-duration {
  font-size: 0.78rem; color: #7e8fa3; text-align: right;
  white-space: nowrap;
}
.comments-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1rem 2rem;
}
.comments-heading {
  font-size: 1.15rem; font-weight: 700; color: #f5c842;
  margin-bottom: 1rem; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 0.4rem;
}
.comments-masonry {
  columns: 3; column-gap: 0.8rem;
}
.comment-card {
  break-inside: avoid; margin-bottom: 0.8rem;
  padding: 0.8rem;
  background: rgba(10, 20, 35, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.comment-nickname {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: #f5c842; margin-bottom: 0.3rem;
}
.comment-text { font-size: 0.85rem; color: #c5d0dc; line-height: 1.55; }
.recommend-region {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1rem 1.5rem;
}
.recommend-title {
  font-size: 1rem; font-weight: 700; color: #f5c842;
  margin-bottom: 0.7rem; letter-spacing: 0.04em;
}
.recommend-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
a[data-runtime="recommendation"] {
  display: flex; flex-direction: column;
  background: rgba(10, 20, 35, 0.55);
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
  padding-bottom: 0.5rem;
}
a[data-runtime="recommendation"]:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 200, 66, 0.5);
}
a[data-runtime="recommendation"] img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  background: #0a1428;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 0.9rem; font-weight: 600; color: #e8dece;
  padding: 0.4rem 0.6rem 0.1rem;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.78rem; color: #8fa2b8;
  padding: 0 0.6rem; line-height: 1.4;
}
footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(5, 8, 16, 0.9);
  padding: 1.2rem 1rem;
  max-width: 1280px; margin: 0 auto;
}
.footer-contract {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center;
  font-size: 0.8rem; color: #7e8fa3;
  margin-bottom: 0.7rem;
}
.footer-contract p { flex-basis: 100%; max-width: 60ch; line-height: 1.5; }
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #b8c4d4; font-size: 0.82rem;
  transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #f5c842; text-decoration: underline;
}
.friend-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center;
  font-size: 0.78rem;
}
.friend-label { color: #f5c842; font-weight: 600; margin-right: 0.2rem; }
.runtime-friend-link {
  color: #7e8fa3; padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.runtime-friend-link:hover {
  color: #f5c842; background: rgba(245, 200, 66, 0.1);
  text-decoration: underline;
}
body.theater-mode .player-frame {
  max-width: 100%;
}
body.lights-dim .movie-overview-shell {
  background: rgba(5, 10, 20, 0.85);
}
body.lights-dim .player-frame {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}
@media (max-width: 900px) {.poster-player-wrap {
    grid-template-columns: 180px minmax(0, 1fr);
  }
.details-panel { grid-template-columns: repeat(2, 1fr); }
.comments-masonry { columns: 2; }
.episode-item {
    grid-template-columns: 60px 1fr 1fr;
  }
.episode-duration { grid-column: 3; text-align: left; }
.episode-summary { grid-column: 2 / -1; }}
@media (max-width: 640px) {body { font-size: 14px; }
header { flex-direction: column; align-items: flex-start; }
.categories-nav { justify-content: flex-start; }
.poster-player-wrap {
    grid-template-columns: 1fr;
  }
.poster-frame { max-width: 200px; }
.synopsis-fragment { grid-template-columns: 1fr; }
.cast-grid { grid-template-columns: repeat(2, 1fr); }
.details-panel { grid-template-columns: 1fr 1fr; }
.timeline-track::before { display: none; }
.timeline-item { flex: 1 1 100%; }
.timeline-item::before { top: auto; bottom: -0.3rem; }
.episode-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.6rem;
  }
.episode-number, .episode-duration { text-align: left; }
.comments-masonry { columns: 1; }
.recommend-row { grid-template-columns: 1fr 1fr; }
.footer-contract { flex-direction: column; align-items: flex-start; }}
@media (max-width: 400px) {.recommend-row { grid-template-columns: 1fr; }
.cast-grid { grid-template-columns: 1fr 1fr; }
.details-panel { grid-template-columns: 1fr; }}
@media (min-width: 641px) {.poster-player-wrap {
    grid-template-columns: minmax(220px, 280px) minmax(480px, 1fr);
  }}
.movie-overview-shell {
  background: linear-gradient(150deg, rgba(12, 22, 42, 0.9), rgba(6, 12, 26, 0.95));
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.poster-player-wrap, .title-block, .episode-status-group, .synopsis-fragment, .cast-grid, .details-panel {
  background: transparent;
  border: none;
  box-shadow: none;
}
.episode-status-group {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 0;
}
.details-panel { border-radius: 0 0 8px 8px; }
::selection { background: rgba(245, 200, 66, 0.3); }
a:focus-visible, button:focus-visible {
  outline: 2px solid #f5c842; outline-offset: 2px;
}
img, video { max-width: 100%; }
a[data-runtime="recommendation"] { min-width: 0; }
.player-frame { min-width: 0; }
.movie-overview-shell { padding: 1rem 1rem 1.5rem; }
.title-block { margin-top: 1rem; }
.episode-status-group { margin-top: 0.8rem; }
.synopsis-fragment { margin-top: 1rem; }
.cast-grid { margin-top: 1rem; }
.details-panel { margin-top: 0.8rem; }
.timeline-track { padding-top: 1.5rem; }
.timeline-item::before { top: -0.35rem; }

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}
