*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #070b16;
  --ink-2: #0c1220;
  --ink-3: #111a2e;
  --panel: #0a1120;
  --line: #1c2740;
  --line-soft: #172137;
  --red: #8e1f2c;
  --red-bright: #c02b3a;
  --white: #e9eef6;
  --dim: #8a97ad;
  --dim-2: #5d6a82;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-lg: 15px;
  --fs-xl: 19px;
  --fs-hero: 30px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 60% at 18% 0%, #0d1526 0%, rgba(13,21,38,0) 62%),
    linear-gradient(180deg, #060a14 0%, #070b16 42%, #05080f 100%);
  background-color: var(--ink);
  color: var(--white);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.45;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 10, 20, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-size: var(--fs-lg);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--white);
  text-decoration: none;
  padding-left: 10px;
  border-left: 2px solid var(--red-bright);
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: var(--fs-sm);
  color: var(--dim);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
a.runtime-category:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(142, 31, 44, 0.16);
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 40px;
  display: block;
}
.section-title {
  font-size: var(--fs-lg);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--white);
  padding-left: 11px;
  border-left: 2px solid var(--red);
  margin-bottom: 12px;
}
.subsection-title {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: none;
  margin-bottom: 8px;
}
.player-shell {
  position: relative;
  margin: 18px 0 26px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.player-shell.is-theater {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(192, 43, 58, 0.35), 0 18px 46px rgba(0, 0, 0, 0.7);
}
.player-shell.is-lights-off {
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 0, 0, 0.95) inset;
}
.player-shell.is-lights-off .player-controls {
  background: #000;
}
.player-video {
  display: block;
  width: 100%;
  background: #000;
  filter: saturate(0.94) contrast(1.04);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #0b1221 0%, #080d19 100%);
  border-top: 1px solid var(--line);
}
.ctrl-btn {
  background: #121c30;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--dim);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.ctrl-btn:hover { color: var(--white); border-color: var(--red); }
.ctrl-btn.is-playing {
  color: var(--white);
  border-color: var(--red-bright);
  background: rgba(142, 31, 44, 0.28);
}
.ctrl-btn.is-muted {
  color: var(--red-bright);
  border-color: var(--red-bright);
}
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 110px;
  min-width: 84px;
  height: 3px;
  background: #1b2740;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-bright);
  border: 1px solid #2a0d12;
}
.ctrl-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--red-bright);
}
.ctrl-range:focus-visible { box-shadow: 0 0 0 1px var(--red); }
.ctrl-select {
  background: #121c30;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--dim);
  font-size: var(--fs-xs);
  padding: 4px 6px;
  cursor: pointer;
}
.timeline-section { margin: 0 0 30px; }
.timeline-track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 2px 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.timeline-track::-webkit-scrollbar { height: 5px; }
.timeline-track::-webkit-scrollbar-track { background: #0a1020; }
.timeline-track::-webkit-scrollbar-thumb { background: #23304c; border-radius: 3px; }
.timeline-nodes {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  min-width: 100%;
}
.timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 152px;
  padding: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0b1220;
  border: 1px solid #2c3a58;
}
.timeline-node::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  right: -2px;
  height: 1px;
  background: #24314c;
}
.timeline-node:last-child::after { display: none; }
.timeline-node:hover::before {
  background: var(--red);
  border-color: var(--red-bright);
}
.timeline-node:first-child::before, .timeline-node:last-child::before {
  background: var(--red);
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(142, 31, 44, 0.2);
}
.node-timecode {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--red-bright);
  font-variant-numeric: tabular-nums;
}
.node-label {
  font-size: var(--fs-sm);
  color: var(--dim);
  line-height: 1.35;
  max-width: 130px;
}
.overview-section {
  display: grid;
  grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
  gap: 0 22px;
  align-items: start;
  background: linear-gradient(180deg, #0b1222 0%, #080e1b 100%);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  margin-bottom: 30px;
}
.overview-media {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 100%;
  max-width: 232px;
}
.hero-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #05080f;
}
.overview-header {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.overview-title {
  font-size: var(--fs-hero);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 0 34px rgba(142, 31, 44, 0.35);
}
.overview-tagline {
  margin-top: 6px;
  font-size: var(--fs-md);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--red-bright);
}
.overview-seo {
  margin-top: 9px;
  font-size: var(--fs-sm);
  color: var(--dim);
  line-height: 1.6;
  max-width: 68ch;
}
.cast-section, .synopsis-section, .episode-status-section, .details-section {
  grid-column: 2;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 14px;
}
.cast-section { margin-bottom: 16px; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-self: start;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.018);
  border-left: 1px solid var(--line);
  border-radius: 1px;
}
.cast-name {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white);
}
.cast-note {
  font-size: var(--fs-xs);
  color: var(--dim-2);
  line-height: 1.45;
}
.synopsis-para {
  font-size: var(--fs-sm);
  color: var(--dim);
  line-height: 1.62;
  margin-bottom: 6px;
  max-width: 78ch;
}
.synopsis-para:last-child { margin-bottom: 0; }
.status-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: var(--fs-sm);
}
.status-row:last-child { border-bottom: 0; }
.status-label {
  flex: 0 0 auto;
  min-width: 76px;
  color: var(--dim-2);
  letter-spacing: 0.08em;
}
.status-value {
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.detail-key {
  flex: 0 0 auto;
  min-width: 58px;
  color: var(--dim-2);
  letter-spacing: 0.06em;
}
.detail-value {
  color: var(--white);
  min-width: 0;
  word-break: break-word;
}
.episodes-section { margin-bottom: 30px; }
.episode-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  align-items: start;
}
.episode-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.episode-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  transition: background 0.15s;
}
.episode-item:hover { background: rgba(142, 31, 44, 0.12); }
.episode-number {
  color: var(--dim-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.episode-item:hover .episode-number { color: var(--red-bright); }
.episode-title {
  color: var(--white);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-duration {
  color: var(--dim-2);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.comments-section { margin-bottom: 30px; }
.comment-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  align-items: start;
}
.comment-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.comment-column-left { padding-top: 0; }
.comment-column-right { padding-top: 20px; }
.comment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-left: 2px solid #232f4a;
  border-radius: 2px;
}
.comment-column-left .comment-card:nth-child(2) { margin-left: 12px; }
.comment-column-right .comment-card:nth-child(1) { margin-right: 12px; }
.comment-column-right .comment-card:nth-child(3) { margin-left: 10px; }
.comment-nickname {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--red-bright);
}
.comment-text {
  font-size: var(--fs-xs);
  color: var(--dim);
  line-height: 1.62;
}
.rec-region { margin-bottom: 30px; }
.rec-title {
  font-size: var(--fs-lg);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--white);
  padding-left: 11px;
  border-left: 2px solid var(--red);
  margin-bottom: 12px;
}
.rec-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.rec-row::-webkit-scrollbar { height: 5px; }
.rec-row::-webkit-scrollbar-track { background: #0a1020; }
.rec-row::-webkit-scrollbar-thumb { background: #23304c; border-radius: 3px; }
a.rec-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  min-width: 0;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 7px;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
a.rec-item:hover {
  border-color: var(--red);
  background: rgba(142, 31, 44, 0.14);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #05080f;
  border-radius: 1px;
}
a.rec-item img.rec-pic { aspect-ratio: 16 / 9; }
.rec-name {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-blurb {
  font-size: var(--fs-xs);
  color: var(--dim-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  min-width: 0;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 8px;
  transition: border-color 0.18s, background 0.18s;
}
a.rec-card:hover {
  border-color: var(--red);
  background: rgba(142, 31, 44, 0.14);
}
a.rec-card img.rec-pic { aspect-ratio: 3 / 4; }
.rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.016);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
a.rec-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  text-decoration: none;
  color: var(--dim);
  background: #0d1526;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
a.rec-tag:hover {
  color: var(--white);
  border-color: var(--red-bright);
  background: rgba(142, 31, 44, 0.2);
}
a.rec-tag .rec-tag-pic {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #05080f;
}
a.rec-tag .rec-name {
  font-size: var(--fs-sm);
  white-space: nowrap;
}
a.rec-tag .rec-blurb {
  -webkit-line-clamp: 1;
  white-space: nowrap;
  max-width: 22ch;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #05080f;
  padding: 20px 18px 28px;
  text-align: center;
}
.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 14px;
  font-size: var(--fs-xs);
  color: var(--dim-2);
  line-height: 1.65;
}
.footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 14px;
}
.friend-links-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--dim-2);
  margin-right: 4px;
}
a.runtime-friend-link {
  font-size: var(--fs-xs);
  color: var(--dim);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  transition: color 0.16s, border-color 0.16s;
}
a.runtime-friend-link:hover {
  color: var(--white);
  border-color: var(--red);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
}
@media (max-width: 1024px) {.cast-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-section { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 0 18px; padding: 14px; }
.overview-media { max-width: 200px; }
.overview-title { font-size: 26px; }}
@media (max-width: 820px) {.header-inner { padding: 8px 12px; gap: 12px; }
.page-main { padding: 0 12px 32px; }
.overview-section { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.overview-media { grid-column: 1; grid-row: auto; max-width: 200px; }
.overview-header, .cast-section, .synopsis-section, .episode-status-section, .details-section { grid-column: 1; }
.cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.episode-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
.comment-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.comment-column-right { padding-top: 0; }
.comment-column-left .comment-card:nth-child(2), .comment-column-right .comment-card:nth-child(1), .comment-column-right .comment-card:nth-child(3) { margin-left: 0; margin-right: 0; }
.rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-title { font-size: 24px; }}
@media (max-width: 560px) {:root { --fs-hero: 22px; }
.site-brand { font-size: var(--fs-md); }
.category-nav { margin-left: 0; width: 100%; }
.player-controls { gap: 6px; padding: 7px 8px; }
.ctrl-range { flex: 1 1 100%; order: 3; }
.timeline-node { width: 138px; }
.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.episode-item { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; }
.rec-grid { grid-template-columns: minmax(0, 1fr); }
.rec-row { grid-auto-columns: minmax(150px, 1fr); }
a.rec-tag .rec-blurb { display: none; }
.overview-media { max-width: 168px; }
.section-title, .rec-title { font-size: var(--fs-md); letter-spacing: 0.14em; }}
@media (max-width: 380px) {.cast-grid { grid-template-columns: minmax(0, 1fr); }
.page-main { padding: 0 10px 28px; }
.header-inner { padding: 7px 10px; }}

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}
