*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:root {
  --bg: #0a0c10;
  --bg-2: #10141b;
  --bg-3: #161b24;
  --concrete: #1c222c;
  --concrete-2: #252c38;
  --line: #2c3442;
  --line-soft: #232a36;
  --txt: #d5dae3;
  --txt-dim: #8b95a6;
  --txt-faint: #5f6875;
  --cyan: #4de3d0;
  --cyan-dim: #1f7d76;
  --orange: #ff7a2f;
  --orange-hot: #ff9a4d;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(10, 12, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-brand { display: flex; align-items: center; }
a[data-contract="site-name"] {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--cyan);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: var(--orange-hot); }
.categories-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--txt-dim);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  transition: color .15s, border-color .15s, background .15s;
}
a.runtime-category:hover {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}
.page-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 16px;
  max-width: 100%;
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background:
    linear-gradient(115deg, rgba(77, 227, 208, 0.05) 0%, rgba(10,12,16,0) 42%),
    radial-gradient(120% 90% at 12% 0%, rgba(37, 44, 56, 0.9) 0%, rgba(10, 12, 16, 0.98) 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-stage::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 28%;
  width: 2px;
  height: 150%;
  background: linear-gradient(180deg, rgba(255,122,47,0) 0%, var(--orange) 38%, var(--orange-hot) 62%, rgba(255,122,47,0) 100%);
  transform: rotate(9deg);
  opacity: .55;
  pointer-events: none;
  box-shadow: 0 0 26px 4px rgba(255, 122, 47, 0.35);
}
.hero-stage.lights-off { background: #05070a; }
.hero-stage.lights-off .hero-media { filter: brightness(0.72) contrast(1.1); }
.hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.poster-wrap {
  align-self: flex-start;
  width: 100%;
  max-width: 240px;
  border: 1px solid var(--line);
  background: var(--concrete);
  overflow: hidden;
}
.poster-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
}
.player-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #000;
}
.player-wrap video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-wrap.theater-mode {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(255, 122, 47, 0.4), 0 0 24px rgba(255, 122, 47, 0.18);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: var(--concrete);
  border-top: 1px solid var(--line);
}
.ctrl-btn {
  flex: 0 0 auto;
  padding: 3px 7px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--txt-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ctrl-btn:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.ctrl-btn.is-active, .ctrl-btn.mute.is-active, .ctrl-btn.play.is-active {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}
.ctrl-progress {
  flex: 1 1 120px;
  min-width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: pointer;
}
.ctrl-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 12px;
  background: var(--orange);
  border: none;
}
.ctrl-progress::-moz-range-thumb {
  width: 9px;
  height: 12px;
  background: var(--orange);
  border: none;
}
.ctrl-volume {
  flex: 0 1 62px;
  width: 62px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: pointer;
}
.ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 12px;
  background: var(--cyan);
  border: none;
}
.ctrl-volume::-moz-range-thumb {
  width: 8px;
  height: 12px;
  background: var(--cyan);
  border: none;
}
.ctrl-speed {
  flex: 0 0 auto;
  padding: 3px 4px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--txt-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: pointer;
}
.hero-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.movie-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.2em;
  color: #eef2f7;
  text-shadow: 0 0 18px rgba(77, 227, 208, 0.22);
  border-left: 3px solid var(--orange);
  padding-left: 9px;
}
.movie-tagline {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--txt-dim);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.status-current {
  padding: 2px 7px;
  color: var(--bg);
  background: var(--orange);
  font-weight: 700;
}
.status-total {
  padding: 2px 7px;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}
.cast-block { display: flex; flex-direction: column; gap: 5px; }
.cast-heading, .synopsis-heading, .details-heading, .timeline-heading, .episodes-heading, .comments-heading, .rec-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--txt-faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 3px;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px;
  align-items: start;
}
.cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  min-width: 0;
}
.cast-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(77, 227, 208, 0.55) 0%, rgba(77, 227, 208, 0) 58%),
    linear-gradient(160deg, var(--concrete-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 10px rgba(77, 227, 208, 0.12);
}
.cast-actor {
  font-size: 11px;
  color: var(--txt);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.cast-role {
  font-size: 9.5px;
  color: var(--txt-faint);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.synopsis-block { display: flex; flex-direction: column; gap: 5px; }
.synopsis-para {
  font-size: 12px;
  line-height: 1.68;
  color: #a7b0bf;
  text-align: justify;
}
.synopsis-para + .synopsis-para { margin-top: 3px; }
.details-block { display: flex; flex-direction: column; gap: 5px; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 6px;
  background: var(--bg-2);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--txt-faint);
}
.detail-value {
  flex: 1 1 auto;
  font-size: 11.5px;
  color: var(--txt);
  letter-spacing: 0.02em;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.timeline-episodes-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 8px;
  align-items: start;
}
.timeline-panel, .episodes-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0 5px 0;
}
.timeline-node + .timeline-node { border-top: 1px dashed var(--line-soft); }
.timeline-node::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(77, 227, 208, 0.6);
}
.timeline-node:nth-child(even)::before {
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(255, 122, 47, 0.6);
}
.timeline-timecode {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--orange-hot);
}
.timeline-label {
  font-size: 11.5px;
  line-height: 1.5;
  color: #9aa4b3;
  letter-spacing: 0.01em;
}
.timeline-node:hover .timeline-label { color: var(--txt); }
.episode-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  align-items: start;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--line);
  min-width: 0;
  transition: border-color .15s, background .15s;
}
.episode-card:hover {
  border-top-color: var(--orange);
  background: #1a2029;
}
.episode-number {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.episode-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e3e8f0;
  line-height: 1.3;
}
.episode-summary {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--txt-faint);
}
.episode-duration {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--txt-dim);
  align-self: flex-start;
  border-top: 1px solid var(--line-soft);
  padding-top: 3px;
  width: 100%;
}
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.comments-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.comments-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.comments-col-left { transform: translateY(0); }
.comments-col-right { transform: translateY(14px); }
.comment-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--cyan-dim);
  min-width: 0;
}
.comments-col-right .comment-card { border-left-color: var(--orange); }
.comment-nick {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.comments-col-right .comment-nick { color: var(--orange-hot); }
.comment-text {
  font-size: 11.5px;
  line-height: 1.6;
  color: #9aa4b3;
}
.rec-region {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.rec-grid {
  display: grid;
  gap: 6px;
  align-items: start;
}
.rec-grid-4 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.rec-grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rec-grid-5 { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--txt);
  min-width: 0;
  transition: border-color .15s, transform .15s, background .15s;
}
a.rec-card:hover {
  border-color: var(--orange);
  background: #1a2029;
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: var(--concrete);
  filter: saturate(0.8) contrast(1.08);
}
.rec-name {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e3e8f0;
  line-height: 1.3;
}
.rec-blurb {
  font-size: 10px;
  line-height: 1.5;
  color: var(--txt-faint);
}
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin-top: 8px;
  background: #07090d;
  border-top: 1px solid var(--line);
}
.footer-disclaimer {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--txt-faint);
  letter-spacing: 0.02em;
  max-width: 70ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
a.footer-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--txt-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
a[data-contract="footer-home"] { color: var(--cyan); }
a[data-contract="footer-sitemap"] { color: var(--orange-hot); }
a.footer-link:hover {
  color: var(--txt);
  border-bottom-color: currentColor;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}
.friend-links-label {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  color: var(--txt-faint);
  text-transform: uppercase;
  margin-right: 2px;
}
a.runtime-friend-link {
  font-size: 10.5px;
  color: #7f8998;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
a.runtime-friend-link:hover { color: var(--cyan); text-decoration: underline; }
@media (max-width: 900px) {.hero-stage {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-wrap { max-width: 200px; }
.timeline-episodes-row {
    grid-template-columns: minmax(0, 1fr);
  }
.comments-col-right { transform: translateY(0); }}
@media (max-width: 640px) {body { font-size: 12.5px; }
.page-main { padding: 6px 8px 12px; gap: 6px; }
.movie-title { font-size: 20px; letter-spacing: 0.14em; }
.poster-wrap { max-width: 150px; }
.hero-stage { padding: 8px; gap: 8px; }
.comments-columns { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.cast-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.cast-avatar { width: 32px; height: 32px; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.episode-scroll { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.rec-grid-4, .rec-grid-3, .rec-grid-5 { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.site-header { padding: 6px 10px; }
a[data-contract="site-name"] { font-size: 13px; letter-spacing: 0.22em; }}
@media (max-width: 420px) {.poster-wrap { max-width: 130px; }
.rec-grid-4, .rec-grid-3, .rec-grid-5 { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.episode-scroll { grid-template-columns: minmax(0, 1fr); }}

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}
