*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-deep: #060b14;
  --bg-panel: #0b1220;
  --bg-panel-2: #0e1626;
  --ice-blue: #7fb6d9;
  --ice-pale: #cfe6f2;
  --ice-white: #eaf4fa;
  --frost-line: rgba(150, 200, 230, 0.22);
  --gold: #d9a94e;
  --gold-soft: rgba(217, 169, 78, 0.55);
  --text-main: #c3d5e3;
  --text-dim: #7d93a8;
  --text-strong: #eaf4fa;
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  font-stretch: condensed;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(90, 150, 200, 0.18), transparent 60%),
    radial-gradient(90% 60% at 10% 0%, rgba(60, 110, 160, 0.12), transparent 55%),
    linear-gradient(180deg, #050a12 0%, #060d18 40%, #04080f 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  min-height: 100vh;
}
body.lights-off {
  background: #02060c;
}
body.lights-off .page-main { opacity: 0.55; }
a { color: var(--ice-blue); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; color: var(--text-strong); letter-spacing: 0.04em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.96), rgba(6, 12, 22, 0.82));
  border-bottom: 1px solid var(--frost-line);
  backdrop-filter: blur(6px);
}
.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 14px;
  max-width: 1180px;
  margin: 0 auto;
}
a[data-contract="site-name"].site-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ice-white);
  text-decoration: none;
  padding-right: 12px;
  border-right: 1px solid var(--frost-line);
  white-space: nowrap;
}
a[data-contract="site-name"].site-brand:hover { color: var(--gold); }
.category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ice-pale);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--frost-line);
  background: rgba(20, 40, 62, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 92% 100%, 0 100%);
}
a.runtime-category:hover {
  color: #061018;
  background: var(--ice-blue);
  border-color: var(--ice-blue);
  text-decoration: none;
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 14px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section-heading {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ice-pale);
  padding-left: 10px;
  border-left: 3px solid var(--ice-blue);
  margin-bottom: 10px;
}
.hero-frost {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background:
    linear-gradient(150deg, rgba(28, 52, 78, 0.55), rgba(8, 14, 24, 0.9) 55%),
    var(--bg-panel);
  border: 1px solid var(--frost-line);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.hero-frost::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(190, 225, 245, 0.10) 43%, transparent 43.6%),
    linear-gradient(64deg, transparent 68%, rgba(190, 225, 245, 0.07) 68.4%, transparent 69%),
    linear-gradient(160deg, transparent 22%, rgba(217, 169, 78, 0.10) 22.3%, transparent 22.8%);
  pointer-events: none;
}
.hero-media {
  position: relative;
  border: 1px solid rgba(160, 205, 235, 0.3);
  background: #04080f;
  z-index: 1;
}
img.poster-frost {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}
.poster-frost { aspect-ratio: 9 / 16; }
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  z-index: 1;
}
.movie-title {
  font-size: 27px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(120, 180, 220, 0.35);
}
.movie-tagline {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--frost-line);
}
.hero-player { width: 100%; }
.player-shell {
  position: relative;
  width: 100%;
  background: #03070d;
  border: 1px solid rgba(150, 200, 230, 0.28);
}
.player-shell.theater-mode {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(217, 169, 78, 0.25), 0 0 26px rgba(217, 169, 78, 0.16);
}
.player-frame {
  display: block;
  width: 100%;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  padding: 7px 8px;
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.85), rgba(5, 10, 18, 0.95));
  border-top: 1px solid var(--frost-line);
}
.ctrl-btn {
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ice-pale);
  background: rgba(24, 46, 70, 0.6);
  border: 1px solid var(--frost-line);
  padding: 3px 9px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}
.ctrl-btn:hover {
  color: #061018;
  background: var(--ice-blue);
  border-color: var(--ice-blue);
}
.ctrl-btn.is-active, .ctrl-btn.is-playing {
  color: #061018;
  background: var(--gold);
  border-color: var(--gold);
}
.ctrl-btn.is-muted { color: #f0c8a0; border-color: var(--gold-soft); }
.ctrl-progress {
  flex: 1 1 120px;
  min-width: 80px;
  height: 4px;
  appearance: none;
  background: rgba(120, 170, 205, 0.25);
  cursor: pointer;
}
.ctrl-progress::-webkit-slider-thumb, .ctrl-volume::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 14px;
  background: var(--ice-blue);
  border: 0;
  clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
}
.ctrl-progress::-moz-range-thumb, .ctrl-volume::-moz-range-thumb {
  width: 9px;
  height: 14px;
  border: 0;
  background: var(--ice-blue);
}
.ctrl-volume {
  flex: 0 1 70px;
  min-width: 50px;
  height: 4px;
  appearance: none;
  background: rgba(120, 170, 205, 0.25);
  cursor: pointer;
}
.ctrl-speed {
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ice-pale);
  background: rgba(24, 46, 70, 0.6);
  border: 1px solid var(--frost-line);
  padding: 3px 6px;
  cursor: pointer;
}
.cast-row { display: block; }
.cast-heading {
  margin-bottom: 8px;
  font-size: 12.5px;
}
.cast-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cast-chip {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ice-pale);
  padding: 3px 9px;
  background: rgba(22, 44, 68, 0.55);
  border: 1px solid var(--frost-line);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 90% 100%, 0 100%);
  white-space: nowrap;
}
.cast-chip:nth-child(3n) { border-color: rgba(217, 169, 78, 0.45); color: #e8d3a4; }
.synopsis-block { display: block; }
.synopsis-heading { font-size: 13px; }
.synopsis-para {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 7px;
  text-align: justify;
}
.synopsis-para:last-child { margin-bottom: 0; }
.episode-status, .details-block { display: block; }
.status-heading, .details-heading { font-size: 13px; }
.status-list, .details-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.status-item, .detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(16, 32, 50, 0.6);
  border: 1px solid var(--frost-line);
  border-left: 2px solid var(--ice-blue);
}
.status-key, .detail-key {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.status-value, .detail-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.status-value { color: var(--gold); font-size: 13.5px; }
.timeline-section {
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.7), rgba(6, 12, 20, 0.85));
  border: 1px solid var(--frost-line);
  padding: 14px 16px;
}
.timeline-heading { font-size: 14px; }
.timeline-list {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 22px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(127, 182, 217, 0.6), rgba(127, 182, 217, 0.12) 70%, rgba(217, 169, 78, 0.45));
}
.timeline-node {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 5px 10px;
  background: rgba(18, 36, 56, 0.4);
  border-left: 1px solid rgba(150, 200, 230, 0.16);
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 9px;
  width: 11px;
  height: 11px;
  background: var(--ice-pale);
  clip-path: polygon(50% 0, 100% 38%, 72% 100%, 28% 100%, 0 38%);
  box-shadow: 0 0 8px rgba(160, 210, 240, 0.6);
}
.timeline-node:last-child::before {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(217, 169, 78, 0.7);
}
.timeline-timecode {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ice-white);
  font-variant-numeric: tabular-nums;
  min-width: 54px;
  white-space: nowrap;
}
.timeline-label {
  font-size: 12.5px;
  color: var(--text-main);
  flex: 1 1 auto;
  min-width: 0;
}
.episodes-section { display: block; }
.episodes-heading { font-size: 14px; }
.episode-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  background: linear-gradient(165deg, rgba(22, 42, 64, 0.62), rgba(9, 17, 28, 0.85));
  border: 1px solid var(--frost-line);
  border-top: 2px solid rgba(127, 182, 217, 0.5);
  position: relative;
  overflow: hidden;
}
.episode-card::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -8px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 48%, rgba(190, 225, 245, 0.14) 49%, transparent 52%);
  pointer-events: none;
}
.episode-number {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ice-blue);
  font-variant-numeric: tabular-nums;
}
.episode-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ice-white);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.episode-summary {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-dim);
  flex: 1 1 auto;
}
.episode-duration {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
  padding-top: 3px;
  border-top: 1px dashed rgba(150, 200, 230, 0.18);
  width: 100%;
}
.comments-section {
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.6), rgba(6, 11, 19, 0.85));
  border: 1px solid var(--frost-line);
  padding: 14px 16px;
}
.comments-heading { font-size: 14px; }
.comment-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.comment-card {
  display: flex;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(16, 32, 50, 0.5);
  border: 1px solid rgba(150, 200, 230, 0.14);
  align-items: flex-start;
}
.comment-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  background: linear-gradient(160deg, var(--ice-pale), rgba(127, 182, 217, 0.35));
  clip-path: polygon(50% 0, 88% 22%, 100% 58%, 72% 100%, 28% 100%, 0 58%, 12% 22%);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5);
}
.comment-body { min-width: 0; flex: 1 1 auto; }
.comment-nickname {
  font-size: 12px;
  font-weight: 800;
  color: var(--ice-pale);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-main);
}
.rec-region {
  border-top: 1px solid var(--frost-line);
  padding-top: 12px;
  display: block;
}
.rec-heading {
  font-size: 14px;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.rec-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(190, 225, 245, 0.55) 0 12%, transparent 12% 16%, rgba(190, 225, 245, 0.3) 16% 46%, transparent 46% 51%, rgba(217, 169, 78, 0.45) 51% 72%, transparent 72% 100%);
}
.rec-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.rec-region-one .rec-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: linear-gradient(170deg, rgba(20, 38, 58, 0.7), rgba(8, 15, 25, 0.88));
  border: 1px solid var(--frost-line);
  padding: 7px;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
a.rec-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  text-decoration: none;
}
[data-runtime="recommendation"] img, .rec-card img.rec-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #04080f;
  border: 1px solid rgba(150, 200, 230, 0.16);
  filter: saturate(0.85) brightness(0.95);
}
.rec-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ice-white);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.rec-blurb {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 14px 30px;
  border-top: 1px solid var(--frost-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
a.footer-link {
  font-size: 12px;
  color: var(--ice-pale);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
a.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-soft);
  text-decoration: none;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}
.friend-links-heading {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  font-weight: 700;
  flex: 0 0 auto;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ice-blue);
  text-decoration: none;
  padding: 2px 7px;
  background: rgba(18, 36, 56, 0.5);
  border: 1px solid rgba(150, 200, 230, 0.16);
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: #061018;
  background: var(--ice-blue);
  text-decoration: none;
}
@media (max-width: 900px) {.hero-frost {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }
.movie-title { font-size: 23px; }
.episode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rec-columns, .rec-region-one .rec-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 720px) {.hero-frost { grid-template-columns: minmax(0, 1fr); }
.hero-media { max-width: 220px; }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-list { padding-left: 18px; }
.timeline-node::before { left: -18px; }}
@media (max-width: 520px) {body { font-size: 13.5px; }
.page-main { padding: 10px 10px 24px; gap: 14px; }
.header-bar { padding: 7px 10px; }
.movie-title { font-size: 20px; }
.hero-frost { padding: 10px; }
.hero-media { max-width: 180px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.rec-columns, .rec-region-one .rec-columns { grid-template-columns: minmax(0, 1fr); }
.player-controls { gap: 4px 5px; padding: 6px; }
.ctrl-btn { font-size: 11px; padding: 3px 7px; }
.ctrl-progress { flex: 1 1 100%; order: 2; }
.ctrl-volume { flex: 1 1 100%; order: 3; }
.timeline-node { flex-direction: column; gap: 2px; }
.timeline-timecode { min-width: 0; }}

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}
