:root {
  --bg-deep: #0a0b0d;
  --bg-panel: rgba(28, 30, 34, 0.72);
  --bg-panel-solid: #1a1c20;
  --bg-elevated: rgba(40, 43, 48, 0.6);
  --edge-cold: #3a4654;
  --edge-warm: #5a2a28;
  --ember-red: #b8322a;
  --ember-red-bright: #e0443a;
  --ice-blue: #5b7d9e;
  --ice-blue-dim: #35485a;
  --text-primary: #e8ebee;
  --text-secondary: #a8b0b8;
  --text-dim: #6b7480;
  --accent-orange: #ff7a1a;
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --gap-tight: 10px;
  --gap-section: 18px;
  --pad-panel: 14px;
}
*, *::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 60% 40% at 80% 0%, rgba(90, 42, 40, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 30%, rgba(53, 72, 90, 0.14), transparent 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img {
  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: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 125, 158, 0.22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-tight);
  padding: 8px 16px;
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--ember-red-bright);
  text-shadow: 0 0 14px rgba(224, 68, 58, 0.45);
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.brand:hover {
  color: #ff6a5e;
  text-shadow: 0 0 20px rgba(224, 68, 58, 0.7);
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  padding: 3px 9px;
  border: 1px solid rgba(91, 125, 158, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(53, 72, 90, 0.18);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.runtime-category:hover {
  color: #ffd8b0;
  border-color: rgba(224, 68, 58, 0.6);
  background: rgba(90, 42, 40, 0.35);
}
.page-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 24px;
}
.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: var(--pad-panel);
  margin-top: var(--gap-section);
  border: 1px solid rgba(91, 125, 158, 0.2);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(53, 72, 90, 0.16), rgba(90, 42, 40, 0.12)),
    var(--bg-panel);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(91, 125, 158, 0.06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(91, 125, 158, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(45deg, rgba(224, 68, 58, 0.04) 0 2px, transparent 2px 58px);
  opacity: 0.9;
  z-index: 0;
}
.hero-media, .hero-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero-media {
  align-self: start;
}
.poster-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 125, 158, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 14px 40px rgba(0, 0, 0, 0.65),
    inset 0 0 60px rgba(53, 72, 90, 0.2);
  filter: saturate(0.92) contrast(1.06);
}
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.movie-title {
  font-size: clamp(22px, 3.4vw, 38px);
  letter-spacing: 0.18em;
  color: #f2f4f6;
  text-shadow: 0 0 22px rgba(224, 68, 58, 0.35), 0 2px 0 rgba(0, 0, 0, 0.6);
  border-left: 3px solid var(--ember-red);
  padding-left: 10px;
}
.movie-tagline {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ice-blue);
  padding-left: 13px;
  border-left: 1px solid rgba(91, 125, 158, 0.5);
}
.block-heading {
  position: relative;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: #d6dbe0;
  padding-bottom: 5px;
  margin: 0;
  text-transform: uppercase;
}
.block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ember-red-bright), rgba(91, 125, 158, 0.5) 65%, transparent);
  box-shadow: 0 0 10px rgba(224, 68, 58, 0.55);
}
.cast-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-start;
}
.cast-card {
  flex: 0 0 auto;
}
.cast-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 62px;
  margin: 0;
}
.cast-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(224, 68, 58, 0.55), transparent 62%),
    radial-gradient(circle at 65% 75%, rgba(91, 125, 158, 0.5), transparent 60%),
    linear-gradient(160deg, #2b3138, #14171b);
  border: 1px solid rgba(91, 125, 158, 0.45);
  box-shadow: inset 0 0 12px rgba(224, 68, 58, 0.5), 0 0 10px rgba(53, 72, 90, 0.55);
}
.cast-name {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}
.synopsis-block, .details-block, .episode-status-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}
.synopsis-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid rgba(91, 125, 158, 0.28);
  padding-left: 10px;
}
.synopsis-paragraph {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: justify;
}
.status-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 7px 12px;
  background: rgba(90, 42, 40, 0.22);
  border: 1px solid rgba(184, 50, 42, 0.32);
  border-radius: var(--radius-sm);
}
.status-current {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ember-red-bright);
}
.status-total {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.status-note {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-left: auto;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 14px;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(91, 125, 158, 0.14);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ice-blue);
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.player-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--gap-section);
  padding: var(--pad-panel);
  border: 1px solid rgba(91, 125, 158, 0.2);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.player-frame {
  position: relative;
  width: 100%;
  border: 1px solid rgba(91, 125, 158, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
}
.player-frame video {
  display: block;
  width: 100%;
  height: auto;
}
.player-frame.is-theater {
  box-shadow: 0 0 0 2px rgba(224, 68, 58, 0.6), 0 0 34px rgba(224, 68, 58, 0.4);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.control-btn {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  color: var(--text-secondary);
  background: rgba(53, 72, 90, 0.22);
  border: 1px solid rgba(91, 125, 158, 0.32);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.control-btn:hover {
  color: #ffd8b0;
  border-color: rgba(224, 68, 58, 0.55);
  background: rgba(90, 42, 40, 0.4);
}
.control-btn.is-playing, .control-btn.is-active {
  color: #fff;
  background: rgba(184, 50, 42, 0.55);
  border-color: var(--ember-red-bright);
  box-shadow: 0 0 10px rgba(224, 68, 58, 0.45);
}
.control-btn.is-muted {
  color: var(--text-dim);
  border-color: rgba(107, 116, 128, 0.4);
  background: rgba(28, 30, 34, 0.6);
}
.control-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  flex: 1 1 120px;
  min-width: 80px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ice-blue-dim), rgba(91, 125, 158, 0.25));
  cursor: pointer;
  outline: none;
}
.control-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember-red-bright);
  border: 1px solid #ffb0a8;
  box-shadow: 0 0 8px rgba(224, 68, 58, 0.8);
}
.control-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid #ffb0a8;
  border-radius: 50%;
  background: var(--ember-red-bright);
  box-shadow: 0 0 8px rgba(224, 68, 58, 0.8);
}
body.is-lights-off .page-main {
  filter: brightness(0.55) contrast(1.05);
  transition: filter 0.3s ease;
}
.timeline-section {
  margin-top: var(--gap-section);
  padding: var(--pad-panel);
  border: 1px solid rgba(91, 125, 158, 0.18);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin-top: 10px;
  padding-left: 4px;
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 16px auto 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0 5px 0;
  border-left: 1px solid rgba(91, 125, 158, 0.3);
  padding-left: 12px;
  margin-left: 6px;
}
.timeline-node:last-child {
  border-left-color: rgba(184, 50, 42, 0.5);
}
.timeline-icon {
  position: absolute;
  left: -7px;
  top: 9px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--ice-blue), var(--ember-red));
  clip-path: polygon(50% 0%, 100% 38%, 78% 100%, 22% 100%, 0% 38%);
  box-shadow: 0 0 8px rgba(91, 125, 158, 0.7);
}
.timeline-node:nth-child(1) .timeline-icon { background: linear-gradient(135deg, #5b7d9e, #3b5871); }
.timeline-node:nth-child(2) .timeline-icon { background: linear-gradient(135deg, #557a9b, #4a5f70); }
.timeline-node:nth-child(3) .timeline-icon { background: linear-gradient(135deg, #58708a, #6a4a4a); }
.timeline-node:nth-child(4) .timeline-icon { background: linear-gradient(135deg, #6a6a7a, #8a3a30); }
.timeline-node:nth-child(5) .timeline-icon { background: linear-gradient(135deg, #8a5a4a, #b8322a); }
.timeline-node:nth-child(6) .timeline-icon { background: linear-gradient(135deg, #b8322a, #e0443a); box-shadow: 0 0 12px rgba(224, 68, 58, 0.85); }
.timeline-timecode {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ice-blue);
  white-space: nowrap;
}
.timeline-node:nth-child(5) .timeline-timecode, .timeline-node:nth-child(6) .timeline-timecode {
  color: var(--ember-red-bright);
}
.timeline-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}
.episodes-section {
  margin-top: var(--gap-section);
  padding: var(--pad-panel);
  border: 1px solid rgba(91, 125, 158, 0.18);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 12px 10px;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid rgba(91, 125, 158, 0.2);
  border-left: 2px solid rgba(184, 50, 42, 0.45);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.episode-card:hover {
  border-color: rgba(224, 68, 58, 0.6);
  border-left-color: var(--ember-red-bright);
  background: rgba(60, 32, 30, 0.55);
  transform: translateY(-2px);
}
.episode-number {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(180deg, rgba(224, 68, 58, 0.9), rgba(91, 125, 158, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(224, 68, 58, 0.25);
}
.episode-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #eef1f4;
  margin: 0;
}
.episode-summary {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  overflow-wrap: anywhere;
}
.episode-duration {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
  border-top: 1px solid rgba(255, 122, 26, 0.3);
  padding-top: 4px;
}
.comments-section {
  margin-top: var(--gap-section);
  padding: var(--pad-panel);
  border: 1px solid rgba(91, 125, 158, 0.18);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.comments-masonry {
  column-count: 2;
  column-gap: 12px;
  margin-top: 10px;
}
.comment-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 11px;
  background: rgba(40, 43, 48, 0.55);
  border: 1px solid rgba(91, 125, 158, 0.16);
  border-radius: var(--radius-sm);
}
.comment-nickname {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin: 0 0 4px;
  text-shadow: 0 0 12px rgba(255, 122, 26, 0.35);
}
.comment-text {
  font-size: 12px;
  line-height: 1.65;
  color: #c3c9cf;
  margin: 0;
  overflow-wrap: anywhere;
}
.recommend-region {
  margin-top: var(--gap-section);
  padding: var(--pad-panel);
  border: 1px solid rgba(91, 125, 158, 0.18);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.recommend-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  background: rgba(40, 43, 48, 0.5);
  border: 1px solid rgba(91, 125, 158, 0.18);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.recommend-card:hover {
  border-color: rgba(224, 68, 58, 0.55);
  background: rgba(60, 32, 30, 0.5);
  box-shadow: 0 0 14px rgba(224, 68, 58, 0.25);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(91, 125, 158, 0.25);
  filter: saturate(0.92);
}
.recommend-card [data-runtime="name"] {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e6eaee;
  overflow-wrap: anywhere;
}
.recommend-card [data-runtime="blurb"] {
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}
.site-footer {
  margin-top: var(--gap-section);
  padding: 14px 16px 20px;
  border-top: 1px solid rgba(91, 125, 158, 0.22);
  background: rgba(14, 15, 18, 0.9);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  max-width: 1440px;
  margin: 0 auto;
}
.friend-links-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ice-blue);
  white-space: nowrap;
}
.runtime-friend-link {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.16s ease;
}
.runtime-friend-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}
.footer-disclaimer {
  max-width: 1440px;
  margin: 10px auto 0;
  font-size: 11px;
  line-height: 1.6;
  color: #565e68;
  letter-spacing: 0.04em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  max-width: 1440px;
  margin: 8px auto 0;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  padding: 2px 0;
  border-bottom: 1px solid rgba(91, 125, 158, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-nav a[data-contract="footer-home"]:hover {
  color: var(--ember-red-bright);
  border-color: var(--ember-red-bright);
}
.footer-nav a[data-contract="footer-sitemap"]:hover {
  color: var(--ice-blue);
  border-color: var(--ice-blue);
}
@media (max-width: 980px) {.hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
.hero-media {
    max-width: 320px;
  }
.episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.recommend-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.timeline-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }}
@media (max-width: 640px) {.header-inner {
    padding: 7px 12px;
  }
.page-main {
    padding: 0 10px 18px;
  }
.hero-media {
    max-width: none;
  }
.cast-row {
    gap: 8px 10px;
  }
.cast-figure {
    width: 56px;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-row {
    grid-template-columns: minmax(0, 1fr);
  }
.comments-masonry {
    column-count: 1;
  }
.detail-list {
    grid-template-columns: minmax(0, 1fr);
  }
.player-controls {
    gap: 5px 6px;
  }
.control-range {
    flex: 1 1 100%;
  }}
@media (max-width: 420px) {.timeline-node {
    grid-template-columns: 14px auto;
  }
.timeline-label {
    grid-column: 2 / -1;
  }}

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}
