*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0b1120;
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 15px;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: 700; line-height: 1.2; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
body > header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(11,17,32,0.95);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
footer {
  border-top: 1px solid #1e293b;
  padding: 24px 20px 40px;
  background: #0d1526;
  color: #94a3b8;
  font-size: 13px;
}
.site-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f97316;
  white-space: nowrap;
}
a[data-contract="site-name"] { color: #f97316; text-decoration: none; }
a[data-contract="site-name"]:hover { color: #fb923c; }
nav[data-contract="categories"] {
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  scrollbar-width: thin;
}
nav[data-contract="categories"]::-webkit-scrollbar { height: 4px; }
nav[data-contract="categories"]::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
a.runtime-category {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1e293b;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
a.runtime-category:hover { background: #334155; color: #f97316; }
.movie-overview-panel {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 28px;
  margin-bottom: 32px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.movie-overview-panel::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle at 70% 30%, rgba(249,115,22,0.12), transparent 60%),
              radial-gradient(circle at 30% 80%, rgba(168,85,247,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.movie-overview-panel > * { position: relative; z-index: 1; }
.poster-wrapper {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  align-self: start;
}
.main-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  border: 1px solid #2d3a52;
}
.movie-info-group {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.title-tagline-block {
  border-bottom: 1px solid #2d3a52;
  padding-bottom: 16px;
}
.movie-title {
  font-size: 28px;
  letter-spacing: 1px;
  color: #f1f5f9;
  text-shadow: 0 2px 10px rgba(249,115,22,0.3);
}
.movie-tagline {
  margin-top: 6px;
  color: #fb923c;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.section-heading {
  font-size: 18px;
  color: #f97316;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #f97316, transparent);
  opacity: 0.3;
}
.synopsis-panel { display: flex; flex-direction: column; gap: 10px; }
.synopsis-text {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  text-align: justify;
}
.cast-panel { margin-top: 4px; }
.cast-scroll-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.cast-scroll-list::-webkit-scrollbar { height: 6px; }
.cast-scroll-list::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.cast-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(30,41,59,0.6);
  border: 1px solid #263449;
  transition: transform 0.2s, border-color 0.2s;
}
.cast-card:hover { transform: translateY(-2px); border-color: #f97316; }
.cast-photo {
  width: 96px;
  height: 128px;
  margin: 0 auto 8px;
  border-radius: 6px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #2d3a52;
  position: relative;
  overflow: hidden;
}
.cast-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(249,115,22,0.15) 0%, transparent 40%, rgba(168,85,247,0.1) 100%);
}
.cast-name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}
.cast-role {
  font-size: 12px;
  color: #f97316;
  margin-top: 2px;
}
.episode-status-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.status-label { color: #94a3b8; }
.status-current {
  color: #f97316;
  font-weight: 700;
  font-size: 16px;
  background: rgba(249,115,22,0.1);
  padding: 3px 12px;
  border-radius: 999px;
}
.status-separator { color: #475569; }
.status-total { color: #94a3b8; }
.movie-details-panel {
  border-top: 1px solid #263449;
  padding-top: 14px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px 24px;
  align-items: baseline;
}
.detail-item {
  display: flex;
  gap: 6px;
  font-size: 13px;
}
.detail-item dt { color: #64748b; }
.detail-item dd { color: #cbd5e1; }
.player-container {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2d3a52;
  min-width: 0;
  width: 100%;
}
.player-container video {
  display: block;
  background: #000;
}
.player-controls-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  flex-wrap: wrap;
  align-items: center;
}
.player-controls-bar button {
  font-size: 12px;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #263449;
  transition: all 0.15s;
}
.player-controls-bar button:hover { color: #f97316; border-color: #f97316; }
.progress-indicator {
  font-size: 12px;
  color: #64748b;
  padding: 4px 8px;
  background: #1e293b;
  border-radius: 6px;
}
.timeline-section {
  margin: 32px 0;
  padding: 24px;
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid #1e293b;
}
.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  position: relative;
  padding-left: 24px;
}
.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #f97316, #1685f7, #f97316);
  opacity: 0.5;
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
}
.timecode {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #f97316;
  min-width: 60px;
  letter-spacing: 0.5px;
}
.timeline-label {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}
.episodes-grid-panel {
  margin: 32px 0;
  padding: 24px;
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid #1e293b;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.episode-card {
  background: #111c30;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: start;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.episode-card:hover { border-color: #f97316; transform: translateY(-1px); }
.episode-card:hover .ep-duration { opacity: 1; }
.ep-number {
  grid-row: 1 / 3;
  font-size: 26px;
  font-weight: 800;
  color: #1e3a5f;
  line-height: 1;
  font-family: "SFMono-Regular", Consolas, monospace;
  min-width: 36px;
}
.ep-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}
.ep-summary {
  grid-column: 2 / 4;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}
.ep-duration {
  font-size: 12px;
  color: #f97316;
  background: rgba(249,115,22,0.15);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.comments-masonry {
  margin: 32px 0;
  padding: 24px;
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid #1e293b;
  column-count: 2;
  column-gap: 16px;
}
.comments-masonry .section-heading { column-span: all; }
.comment-card {
  break-inside: avoid;
  background: #111c30;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: inline-block;
  width: 100%;
}
.comment-user {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fb923c;
  margin-bottom: 6px;
  background: rgba(249,115,22,0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.comment-text {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}
.recommend-region {
  margin: 28px 0;
  padding: 20px 0;
}
.region-title {
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}
.region-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: #f97316;
  border-radius: 2px;
}
.recommend-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.recommend-row::-webkit-scrollbar { height: 6px; }
.recommend-row::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
a[data-runtime="recommendation"] {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #111c30;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  color: #e2e8f0;
}
a[data-runtime="recommendation"]:hover { transform: translateY(-3px); border-color: #f97316; }
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1e293b;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px 2px;
  color: #e2e8f0;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 12px;
  color: #94a3b8;
  padding: 2px 10px 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.footer-disclaimer {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  padding: 0 10px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #263449;
  transition: all 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #f97316; border-color: #f97316; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  justify-content: center;
}
.friend-label {
  font-weight: 600;
  color: #f97316;
  font-size: 13px;
}
a.runtime-friend-link {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
a.runtime-friend-link:hover { color: #fb923c; background: rgba(249,115,22,0.1); }
.active-progress { color: #f97316 !important; border-color: #f97316 !important; }
.muted-state { color: #f97316 !important; border-color: #f97316 !important; background: rgba(249,115,22,0.2) !important; }
.volume-adjusted { color: #818cf8 !important; border-color: #818cf8 !important; }
.speed-changed { color: #34d399 !important; border-color: #34d399 !important; }
.theater-mode { color: #f97316 !important; border-color: #f97316 !important; background: rgba(249,115,22,0.1) !important; }
.light-off { box-shadow: 0 0 20px rgba(249,115,22,0.1) !important; }
@media (max-width: 1024px) {.movie-overview-panel {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }
.details-grid {
    grid-template-columns: repeat(3, auto);
  }}
@media (max-width: 768px) {body > header { padding: 10px 16px; gap: 12px; }
main { padding: 16px 12px 32px; }
.movie-overview-panel {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
.poster-wrapper {
    grid-row: auto;
    grid-column: auto;
    width: 160px;
    margin: 0 auto;
  }
.main-poster-img { aspect-ratio: 2 / 3; }
.movie-info-group {
    grid-column: auto;
    gap: 16px;
  }
.player-container {
    grid-column: auto;
    grid-row: auto;
  }
.movie-title { font-size: 22px; }
.details-grid {
    grid-template-columns: repeat(2, auto);
    gap: 8px 16px;
  }
.episodes-grid {
    grid-template-columns: 1fr;
  }
.comments-masonry {
    column-count: 1;
  }
.timeline-vertical {
    padding-left: 20px;
  }
.timeline-item {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 8px 0;
  }
.timecode { min-width: 0; }
a[data-runtime="recommendation"] {
    flex-basis: 140px;
  }}
@media (max-width: 480px) {body > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
nav[data-contract="categories"] {
    width: 100%;
  }
.movie-overview-panel {
    padding: 12px;
  }
.poster-wrapper {
    width: 140px;
  }
.movie-title {
    font-size: 18px;
    line-height: 1.3;
  }
.movie-tagline {
    font-size: 13px;
  }
.details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
.detail-item {
    font-size: 12px;
  }
.episode-card {
    grid-template-columns: auto 1fr;
    padding: 12px;
  }
.ep-summary {
    grid-column: 2 / 3;
  }
.ep-duration {
    grid-column: 2 / 3;
    justify-self: start;
  }
.cast-card {
    flex-basis: 100px;
  }
.cast-photo {
    width: 80px;
    height: 110px;
  }
.player-controls-bar {
    gap: 4px;
  }
.player-controls-bar button {
    padding: 3px 8px;
    font-size: 11px;
  }
a[data-runtime="recommendation"] {
    flex-basis: 120px;
  }
.recommend-row {
    gap: 10px;
  }
.footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
.friend-links {
    flex-direction: column;
    gap: 6px;
  }}
@media (min-width: 769px) {.player-container {
    min-width: 480px;
  }
.movie-overview-panel {
    grid-template-columns: 220px minmax(480px, 1fr);
  }}
[data-runtime="recommendation"] img {
  display: block;
  background: #1e293b;
}

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}
