*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --night: #060b18;
  --night-2: #0b1428;
  --night-3: #101d38;
  --amber: #f0a829;
  --amber-soft: #d98c1c;
  --cold-white: #e8eef7;
  --cold-dim: #8ea0bc;
  --blood: #4a0f18;
  --hair: rgba(240, 168, 41, 0.28);
  --gap: 12px;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 300;
  font-stretch: condensed;
  color: var(--cold-white);
  background:
    radial-gradient(120% 80% at 78% 6%, rgba(240, 168, 41, 0.10), transparent 55%),
    radial-gradient(90% 70% at 12% 40%, rgba(30, 60, 120, 0.28), transparent 60%),
    linear-gradient(180deg, #050a15 0%, #060b18 40%, #04070f 100%);
  background-attachment: fixed;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
  padding: 8px 14px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, rgba(6, 11, 24, 0.96), rgba(11, 20, 40, 0.86));
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(6px);
}
.brand-row { display: flex; align-items: center; }
.site-brand {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  white-space: nowrap;
  padding-left: 10px;
  border-left: 3px solid var(--amber);
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 300;
  padding: 4px 10px;
  color: var(--cold-dim);
  border: 1px solid var(--hair);
  background: rgba(16, 29, 56, 0.5);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.runtime-category:hover {
  color: var(--night);
  background: var(--amber);
  border-color: var(--amber);
}
.page-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap) 14px 20px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-heading {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--cold-white);
  padding-left: 9px;
  border-left: 3px solid var(--amber);
  margin-bottom: 10px;
}
.hero-poster {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "media player"
    "cast cast"
    "synopsis synopsis"
    "details details";
  gap: var(--gap);
  align-items: start;
  background: linear-gradient(160deg, rgba(11, 20, 40, 0.92), rgba(6, 11, 24, 0.96));
  border: 1px solid var(--hair);
  padding: var(--gap);
  position: relative;
}
.hero-poster__media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: #03060e;
  align-self: start;
}
.hero-poster__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
}
.hero-poster__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(240, 168, 41, 0.10) 0%, transparent 28%),
    linear-gradient(0deg, rgba(3, 6, 14, 0.94) 2%, rgba(3, 6, 14, 0.35) 42%, rgba(3, 6, 14, 0.05) 70%);
}
.hero-poster__dossier {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}
.dossier-line {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(240, 168, 41, 0.62);
  font-weight: 300;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-poster__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 12px 12px 14px;
  background: linear-gradient(0deg, rgba(3, 6, 14, 0.96) 0%, rgba(3, 6, 14, 0.78) 55%, transparent 100%);
}
.movie-title {
  font-size: clamp(1.35rem, 4.4vw, 2.4rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.02em;
}
.movie-tagline {
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 300;
  letter-spacing: 0.08em;
}
.movie-seo {
  margin-top: 7px;
  font-size: 0.74rem;
  line-height: 1.62;
  color: rgba(232, 238, 247, 0.74);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.episode-status__now, .episode-status__total, .episode-status__platform {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border: 1px solid var(--hair);
  color: var(--cold-dim);
  white-space: nowrap;
}
.episode-status__now {
  color: var(--night);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 900;
}
.player-shell {
  grid-area: player;
  position: relative;
  border: 1px solid var(--hair);
  background: #01030a;
  align-self: start;
  width: 100%;
}
.player-shell video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(16, 29, 56, 0.7), rgba(6, 11, 24, 0.95));
}
.player-btn {
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  color: var(--cold-dim);
  background: rgba(16, 29, 56, 0.6);
  border: 1px solid var(--hair);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.player-btn:hover { color: #fff; border-color: var(--amber); }
.player-btn.is-active, .player-btn.is-muted {
  color: var(--night);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 900;
}
.player-progress {
  flex: 1 1 120px;
  min-width: 80px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(142, 160, 188, 0.35);
  cursor: pointer;
  border: none;
}
.player-progress::-webkit-slider-thumb, .player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: var(--amber);
  cursor: pointer;
}
.player-progress::-moz-range-thumb, .player-volume::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 0;
  background: var(--amber);
  cursor: pointer;
}
.player-volume {
  flex: 0 1 76px;
  min-width: 52px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(142, 160, 188, 0.35);
  cursor: pointer;
  border: none;
}
.player-shell.is-theater {
  grid-column: 1 / -1;
  box-shadow: 0 0 0 1px var(--amber), 0 0 34px rgba(240, 168, 41, 0.22);
}
body.lights-off .page-main > :not(.hero-poster) { opacity: 0.28; transition: opacity 0.3s; }
body.lights-off .player-shell { box-shadow: 0 0 0 1px var(--amber), 0 0 48px rgba(240, 168, 41, 0.3); }
.cast-panel {
  grid-area: cast;
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}
.cast-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--amber-soft) transparent;
}
.cast-rail::-webkit-scrollbar { height: 5px; }
.cast-rail::-webkit-scrollbar-thumb { background: var(--amber-soft); }
.cast-rail::-webkit-scrollbar-track { background: rgba(142, 160, 188, 0.15); }
.cast-card {
  flex: 0 0 auto;
  width: 176px;
  padding: 9px 10px;
  border: 1px solid var(--hair);
  background: linear-gradient(160deg, rgba(16, 29, 56, 0.66), rgba(6, 11, 24, 0.9));
  transition: background 0.18s, border-color 0.18s;
}
.cast-card:hover {
  background: linear-gradient(160deg, rgba(74, 15, 24, 0.72), rgba(6, 11, 24, 0.94));
  border-color: var(--amber-soft);
}
.cast-card__name {
  font-weight: 900;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 5px;
}
.cast-card__bio {
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(232, 238, 247, 0.72);
}
.synopsis-panel {
  grid-area: synopsis;
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}
.synopsis-line {
  font-size: 0.78rem;
  line-height: 1.66;
  color: rgba(232, 238, 247, 0.8);
  padding-left: 10px;
  border-left: 1px solid rgba(240, 168, 41, 0.22);
  margin-bottom: 6px;
}
.synopsis-line:last-child { margin-bottom: 0; }
.details-panel {
  grid-area: details;
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(240, 168, 41, 0.16);
  border: 1px solid rgba(240, 168, 41, 0.16);
}
.details-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 8px;
  background: rgba(8, 15, 30, 0.96);
}
.details-key {
  flex: 0 0 auto;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cold-dim);
}
.details-value {
  font-size: 0.72rem;
  color: var(--cold-white);
  font-weight: 300;
}
.timeline-section {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.72), rgba(6, 11, 24, 0.92));
  padding: var(--gap);
}
.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--amber-soft) transparent;
}
.timeline-scroll::-webkit-scrollbar { height: 5px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--amber-soft); }
.timeline-scroll::-webkit-scrollbar-track { background: rgba(142, 160, 188, 0.15); }
.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  min-width: max-content;
  padding: 6px 0 4px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair) 4%, var(--hair) 96%, transparent);
}
.timeline-node {
  flex: 0 0 auto;
  width: 176px;
  position: relative;
  padding: 0 12px 0 0;
}
.timeline-dot {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  background: var(--amber);
  border: 1px solid var(--amber);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 8px rgba(240, 168, 41, 0.5);
}
.timeline-node:last-child .timeline-dot {
  background: #fff;
  border-color: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}
.timeline-timecode {
  margin-top: 8px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  white-space: nowrap;
}
.timeline-label {
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(232, 238, 247, 0.78);
}
.episodes-section {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.62), rgba(6, 11, 24, 0.9));
  padding: var(--gap);
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--hair);
  background: rgba(8, 15, 30, 0.82);
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s;
}
.episode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(74, 15, 24, 0.55) 0 3px, rgba(74, 15, 24, 0.28) 3px 7px);
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.episode-card:hover { border-color: var(--amber-soft); }
.episode-card:hover::before { opacity: 1; }
.episode-card__number {
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  padding: 2px 4px;
  border-right: 1px solid var(--hair);
  position: relative;
  z-index: 1;
}
.episode-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.episode-card__title {
  font-size: 0.86rem;
  color: #fff;
  letter-spacing: 0.03em;
}
.episode-card__summary {
  font-size: 0.72rem;
  line-height: 1.56;
  color: rgba(232, 238, 247, 0.74);
}
.episode-card__duration {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--cold-dim);
  margin-top: auto;
  padding-top: 3px;
}
.comments-section {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.62), rgba(6, 11, 24, 0.9));
  padding: var(--gap);
}
.comments-stack {
  columns: 3 220px;
  column-gap: 10px;
}
.comment-note {
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 9px 11px;
  background: linear-gradient(160deg, rgba(20, 34, 62, 0.94), rgba(11, 20, 40, 0.96));
  border: 1px solid var(--hair);
  border-left: 3px solid var(--amber-soft);
  transform: rotate(-2deg);
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.5);
}
.comment-note:nth-child(even) { transform: rotate(2deg); }
.comment-note__text {
  font-size: 0.74rem;
  line-height: 1.62;
  color: rgba(232, 238, 247, 0.86);
}
.comment-note__nickname {
  margin-top: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-align: right;
}
.rec-region {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.6), rgba(6, 11, 24, 0.9));
  padding: var(--gap);
}
.rec-heading {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--cold-white);
  padding-left: 9px;
  border-left: 3px solid var(--amber);
  margin-bottom: 9px;
}
.rec-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
  align-items: start;
}
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--hair);
  background: rgba(8, 15, 30, 0.86);
  color: var(--cold-white);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.rec-card:hover {
  border-color: var(--amber);
  background: rgba(74, 15, 24, 0.5);
  transform: translateY(-2px);
}
.rec-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  background: #03060e;
  filter: saturate(0.85);
}
.rec-card__name {
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: #fff;
}
.rec-card__blurb {
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--cold-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-region--1 { border-top: 2px solid var(--amber-soft); }
.rec-region--2 { border-top: 2px solid rgba(240, 168, 41, 0.5); }
.rec-region--3 { border-top: 2px solid rgba(240, 168, 41, 0.3); }
.site-footer {
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.96), #03060e);
  padding: 12px 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-disclaimer {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 0.68rem;
  line-height: 1.62;
  color: rgba(142, 160, 188, 0.82);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-link {
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid var(--hair);
  color: var(--cold-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.footer-link:hover {
  color: var(--night);
  background: var(--amber);
  border-color: var(--amber);
}
.friend-links {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.friend-links__label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  white-space: nowrap;
}
.runtime-friend-link {
  font-size: 0.68rem;
  color: var(--cold-dim);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.runtime-friend-link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
@media (max-width: 900px) {.hero-poster {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "player"
      "cast"
      "synopsis"
      "details";
  }
.hero-poster__media { max-width: 420px; }
.timeline-node { width: 150px; }}
@media (max-width: 640px) {.page-main { padding: 10px 10px 16px; }
.site-brand { font-size: 0.94rem; letter-spacing: 0.1em; }
.episodes-grid { grid-template-columns: minmax(0, 1fr); }
.comments-stack { columns: 1; }
.comments-stack .comment-note { transform: rotate(-1.2deg); }
.comments-stack .comment-note:nth-child(even) { transform: rotate(1.2deg); }
.rec-rail { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.details-list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.movie-seo { -webkit-line-clamp: 6; }
.player-progress { flex-basis: 100%; }}
@media (max-width: 400px) {.hero-poster__media { max-width: 100%; }
.cast-card { width: 150px; }
.timeline-node { width: 136px; }
.rec-rail { grid-template-columns: repeat(2, 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}
