:root {
  --bg-deep: #0a0e17;
  --bg-panel: #101623;
  --bg-raised: #161e2e;
  --ink-primary: #e6ebf2;
  --ink-secondary: #8b96a8;
  --ink-muted: #5a6478;
  --line: #1f2839;
  --line-strong: #2c3purple;
  --line-strong: #2c3648;
  --accent-red: #c0303a;
  --accent-red-soft: #7d1e26;
  --accent-cipher: #4a6b8a;
  --steel: #3a4658;
  --indigo: #1a2440;
  --radius-sm: 3px;
  --radius-md: 5px;
  --gap-tight: 8px;
  --gap-base: 14px;
  --gap-section: 26px;
  --max-w: 1280px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(26, 36, 64, 0.55), transparent 70%),
    linear-gradient(180deg, #0a0e17 0%, #0b101a 100%);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
video {
  display: block;
  max-width: 100%;
}
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-base);
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  color: var(--ink-primary);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-left: 14px;
}
a[data-contract="site-name"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(192, 48, 58, 0.7);
}
a[data-contract="site-name"]:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(192, 48, 58, 0.5);
}
.category-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
a.runtime-category {
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
a.runtime-category:hover, a.runtime-category:focus-visible {
  color: var(--ink-primary);
  border-color: var(--accent-red);
  background: var(--indigo);
}
.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.4fr);
  gap: 18px;
  align-items: start;
  background: linear-gradient(180deg, var(--bg-panel), rgba(16, 22, 35, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(74, 107, 138, 0.07) 27px 28px),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(74, 107, 138, 0.05) 27px 28px);
  pointer-events: none;
  opacity: 0.7;
}
.hero-shell > * {
  position: relative;
  z-index: 1;
}
.hero-shell.lights-off {
  filter: brightness(0.55) saturate(0.8);
}
.hero-shell.theater-mode {
  grid-template-columns: minmax(0, 1fr);
  background: #05080e;
}
.hero-shell.theater-mode .poster-frame {
  display: none;
}
.poster-frame {
  margin: 0;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(74, 107, 138, 0.15);
  position: relative;
}
.poster-frame::after {
  content: "◈ ENCRYPTED";
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(230, 235, 242, 0.72);
  background: rgba(10, 14, 23, 0.72);
  padding: 2px 7px;
  border-left: 2px solid var(--accent-red);
}
.poster-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-red);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-red-soft);
}
.hero-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
  line-height: 1.05;
}
.hero-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-cipher);
  letter-spacing: 0.16em;
}
.hero-seo {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
}
.hero-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}
.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ctrl-btn {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ctrl-btn:hover {
  color: var(--ink-primary);
  border-color: var(--accent-cipher);
}
.ctrl-btn.is-active {
  color: #fff;
  background: var(--accent-red-soft);
  border-color: var(--accent-red);
}
.ctrl-btn.play {
  color: #fff;
  background: var(--accent-red-soft);
  border-color: var(--accent-red);
}
.ctrl-btn.pause {
  color: #fff;
  background: var(--indigo);
  border-color: var(--accent-cipher);
}
.ctrl-btn.mute, .ctrl-btn.input {
  color: var(--ink-secondary);
}
.ctrl-btn.fullscreen, .ctrl-btn.theater, .ctrl-btn.pip, .ctrl-btn.speed, .ctrl-btn.light {
  color: var(--ink-secondary);
}
.ctrl-range {
  flex: 1 1 120px;
  min-width: 90px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  border: 2px solid #0a0e17;
  box-shadow: 0 0 8px rgba(192, 48, 58, 0.7);
}
.ctrl-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #0a0e17;
  border-radius: 50%;
  background: var(--accent-red);
}
.ctrl-range.is-active {
  background: var(--accent-cipher);
}
.ctrl-range.progress {
  flex: 2 1 160px;
}
.ctrl-range.volume {
  flex: 1 1 90px;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.status-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  padding: 3px 9px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--steel);
  border-radius: 2px;
}
.status-chip:last-child {
  color: var(--accent-red);
  border-left-color: var(--accent-red);
  background: rgba(125, 30, 38, 0.18);
}
.panel-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-cipher);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.cast-panel {
  margin-top: 6px;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.cast-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cast-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #3c4a60, #1a2440 70%);
  border: 1px solid var(--accent-cipher);
  box-shadow: inset 0 0 0 2px rgba(10, 14, 23, 0.9);
  position: relative;
}
.cast-avatar::after {
  content: "⌘";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(230, 235, 242, 0.5);
}
.cast-name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.cast-role {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.synopsis-panel {
  margin-top: 6px;
}
.synopsis-paragraph {
  font-size: 12px;
  line-height: 1.72;
  color: var(--ink-secondary);
  margin-bottom: 7px;
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
}
.synopsis-paragraph:last-child {
  margin-bottom: 0;
}
.details-panel {
  margin-top: 6px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.detail-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  background: var(--bg-raised);
}
.detail-item dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  flex: 0 0 auto;
}
.detail-item dd {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  text-align: right;
  letter-spacing: 0.02em;
}
.section-heading {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--ink-primary);
  margin-bottom: 12px;
  padding-left: 12px;
  position: relative;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.05em;
  background: var(--accent-red);
  box-shadow: 0 0 10px rgba(192, 48, 58, 0.6);
}
.timeline-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  overflow: hidden;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cipher) 12%, var(--accent-cipher) 88%, transparent);
  opacity: 0.5;
}
.timeline-node {
  position: relative;
  padding: 30px 10px 12px;
  border-right: 1px solid var(--line);
  min-height: 100%;
  transition: background 0.2s ease;
  cursor: default;
}
.timeline-node:last-child {
  border-right: none;
}
.timeline-node:hover {
  background: var(--indigo);
}
.node-timecode {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-red);
  background: rgba(125, 30, 38, 0.2);
  border: 1px solid var(--accent-red-soft);
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.node-cipher {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent-cipher);
  background: var(--bg-deep);
  border: 1px solid var(--accent-cipher);
  border-radius: 50%;
  z-index: 2;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.timeline-node:hover .node-cipher {
  color: #fff;
  border-color: var(--accent-red);
  background: var(--accent-red-soft);
  transform: translate(-50%, -50%) scale(1.15);
}
.node-label {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.28s ease, margin-top 0.28s ease;
  margin-top: 0;
}
.timeline-node:hover .node-label, .timeline-node:focus-within .node-label {
  max-height: 8em;
  opacity: 1;
  margin-top: 6px;
}
.episodes-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-items: start;
}
.episode-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--steel);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  transition: border-left-color 0.18s ease, background 0.18s ease;
}
.episode-card:hover {
  border-left-color: var(--accent-red);
  background: var(--bg-raised);
}
.episode-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: 3px;
}
.episode-summary {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-duration {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cipher);
}
.comments-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.comment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 7px;
  align-items: start;
}
.comment-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.comment-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #46536b, #141c2e 72%);
  border: 1px solid var(--steel);
}
.comment-nickname {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-cipher);
}
.comment-text {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-region {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.region-heading {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--ink-primary);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.region-heading::before {
  content: "▮";
  color: var(--accent-red);
  font-size: 10px;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  align-items: start;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--ink-primary);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
a.recommend-card:hover {
  border-color: var(--accent-cipher);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--bg-deep);
  filter: saturate(0.85) brightness(0.92);
}
[data-runtime="recommendation"]:hover img {
  filter: saturate(1) brightness(1);
}
.recommend-name {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 8px 0;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-blurb {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-muted);
  padding: 3px 8px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #070a11;
  margin-top: 10px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-disclaimer {
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 90ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
a[data-contract="footer-home"]:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}
a[data-contract="footer-sitemap"]:hover {
  color: var(--accent-cipher);
  border-bottom-color: var(--accent-cipher);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.friend-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-right: 6px;
  border-right: 1px solid var(--line-strong);
}
a.runtime-friend-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}
a.runtime-friend-link:hover {
  color: var(--accent-cipher);
  border-color: var(--line-strong);
}
@media (max-width: 900px) {.hero-shell {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-frame {
    max-width: 240px;
  }
.hero-title {
    font-size: clamp(28px, 7vw, 40px);
  }}
@media (max-width: 720px) {.page-main {
    padding: 12px 14px 32px;
    gap: 22px;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.timeline-track {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
.timeline-node {
    padding: 28px 9px 10px;
  }
.node-label {
    max-height: 8em;
    opacity: 1;
    margin-top: 6px;
  }
.recommend-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
.footer-inner {
    padding: 16px 14px 24px;
  }}
@media (max-width: 480px) {.header-inner {
    padding: 9px 12px;
  }
.hero-shell {
    padding: 12px;
    gap: 14px;
  }
.poster-frame {
    max-width: 100%;
  }
.player-controls {
    gap: 5px;
    padding: 7px;
  }
.ctrl-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
.ctrl-range {
    flex: 1 1 100%;
    min-width: 0;
  }
.cast-list {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  }
.details-list {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-list {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
.timeline-track {
    grid-template-columns: minmax(0, 1fr);
  }
.timeline-node {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 30px 10px 12px;
  }
.timeline-node:last-child {
    border-bottom: none;
  }
.timeline-track::before {
    display: none;
  }}

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}
