*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h2, h3, p, figure, ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:root {
  --bg: #0e141c;
  --bg-2: #131c27;
  --surface: #18222f;
  --surface-2: #1e2a39;
  --line: #263444;
  --line-2: #33465b;
  --ink: #e8eef5;
  --ink-2: #9fb0c3;
  --ink-3: #6b7d92;
  --gold: #c9a24a;
  --gold-2: #e3c47c;
  --cold: #6fa3c9;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Roboto Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 20, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  color: var(--gold-2);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: #fff; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12.5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
a.runtime-category:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.08);
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.movie-overview {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr) minmax(0, 1.4fr);
  grid-template-areas:
    "poster head player"
    "poster body body";
  gap: 12px 14px;
  padding: 14px;
}
.overview-poster {
  grid-area: poster;
  margin: 0;
  align-self: start;
  width: 100%;
  background: #0a0f15;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.hero-poster {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.overview-head { grid-area: head; align-self: start; }
.overview-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}
.overview-tagline {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.overview-seo {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.overview-player-wrap {
  grid-area: player;
  align-self: start;
  width: 100%;
  background: #0a0f15;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.overview-player-wrap video {
  border-radius: 4px;
  background: #000;
  display: block;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.player-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.player-btn:hover { color: var(--gold-2); border-color: var(--gold); }
.player-btn.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}
.player-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 3px;
  background: var(--line-2);
  cursor: pointer;
  outline: none;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-2);
  border: none;
}
.player-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--gold-2);
}
.player-progress { flex: 1 1 120px; min-width: 80px; }
.player-volume { flex: 0 1 70px; min-width: 54px; }
.overview-body {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "cast cast cast"
    "synopsis status details";
  gap: 12px;
}
.cast-block { grid-area: cast; }
.synopsis-block { grid-area: synopsis; }
.episode-status-block { grid-area: status; }
.details-block { grid-area: details; }
.block-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-2);
  letter-spacing: 0.14em;
  padding-bottom: 5px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.block-heading::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 11px;
  margin-right: 7px;
  background: var(--cold);
  vertical-align: -1px;
  border-radius: 1px;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.cast-avatar {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0a0f15;
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.cast-card:hover .cast-avatar { border-color: var(--gold); }
.cast-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.cast-line {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}
.synopsis-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.status-list, .details-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.status-item, .details-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.status-item:last-child, .details-item:last-child { border-bottom: none; }
.status-key, .details-key {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.status-value, .details-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-align: right;
}
.status-value { color: var(--gold-2); font-weight: 600; }
.details-value { color: var(--ink-2); }
.details-item .details-value:not(:only-child) { max-width: 60%; }
.section-heading {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  padding-left: 11px;
  position: relative;
  margin-bottom: 9px;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--cold));
  border-radius: 2px;
}
.timeline-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.timeline-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.timeline-node {
  position: relative;
  flex: 0 0 196px;
  max-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: flex-start;
}
.timeline-drop {
  position: absolute;
  top: -1px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: var(--cold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translateY(-50%);
  box-shadow: 0 0 0 3px var(--bg-2);
}
.timeline-node-current {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 74, 0.14), var(--surface));
}
.timeline-node-current .timeline-drop {
  background: var(--gold-2);
  box-shadow: 0 0 0 3px var(--bg-2), 0 0 10px rgba(227, 196, 124, 0.6);
}
.timeline-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-2);
  letter-spacing: 0.06em;
}
.timeline-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.timeline-node-current .timeline-label { color: var(--ink); }
.episodes-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-self: start;
}
.episode-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--cold);
}
.episode-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.episode-summary {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.episode-duration {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.episode-card-on {
  border-left: 3px solid var(--gold);
}
.episode-card-on .episode-number { color: var(--gold-2); }
.episode-card-on .episode-title { color: #fff; }
.episode-card-off {
  opacity: 0.5;
  background: #141d28;
}
.episode-card-off .episode-title, .episode-card-off .episode-number, .episode-card-off .episode-summary, .episode-card-off .episode-duration { color: var(--ink-3); }
.episode-card-off .episode-title { font-weight: 600; }
.comments-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.comment-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 7px 7px 0;
  padding: 9px 11px 9px 14px;
  align-self: start;
}
.comment-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cold);
  border-radius: 1px;
}
.comment-card:nth-child(even)::before { background: var(--gold); }
.comment-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 0.03em;
}
.comment-text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.recommend-region {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.recommend-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 9px;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  align-self: start;
  transition: border-color .15s, transform .15s, background .15s;
}
.recommend-card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  background: #0a0f15;
}
.recommend-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.recommend-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 16px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 900px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12.5px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.friend-links-label {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
a.runtime-friend-link {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 11.5px;
  transition: color .15s;
}
a.runtime-friend-link:hover { color: var(--cold); text-decoration: underline; }
body.is-lights-off { background: #05080c; }
body.is-lights-off .movie-overview, body.is-lights-off .timeline-section, body.is-lights-off .episodes-section, body.is-lights-off .comments-section, body.is-lights-off .recommend-region {
  filter: brightness(0.72);
}
.overview-player-wrap.is-theater {
  grid-column: 1 / -1;
  max-width: 100%;
}
body.is-lights-off .overview-player-wrap { filter: none; }
@media (max-width: 1080px) {.movie-overview {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    grid-template-areas:
      "poster head"
      "player player"
      "body body";
  }
.overview-body {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
      "cast cast"
      "synopsis status"
      "synopsis details";
  }
.cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 760px) {.site-header-inner { padding: 7px 12px; gap: 10px; }
.page-main { padding: 10px 12px 24px; gap: 11px; }
.movie-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "poster"
      "player"
      "body";
    padding: 12px;
    gap: 11px;
  }
.overview-poster { max-width: 260px; }
.overview-title { font-size: 20px; }
.overview-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "cast"
      "synopsis"
      "status"
      "details";
    gap: 11px;
  }
.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.recommend-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-node { flex: 0 0 168px; }
.section-heading { font-size: 15px; }}
@media (max-width: 420px) {.recommend-columns { grid-template-columns: minmax(0, 1fr); }
.cast-grid { grid-template-columns: minmax(0, 1fr); }
.overview-poster { max-width: 100%; }
.player-btn { font-size: 11px; padding: 3px 7px; }
.player-progress { flex: 1 1 100%; order: 5; }}

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}
