*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #1b222c;
  --bg-2: #202934;
  --bg-3: #26303c;
  --line: #3a4856;
  --line-soft: #2c3743;
  --ink: #e8edf2;
  --ink-2: #a8b6c4;
  --ink-3: #7b8a99;
  --red: #8e2b32;
  --red-soft: #b3454c;
  --paper: #cbb98d;
  --paper-soft: #a99b74;
  --radius: 4px;
  --gap: 10px;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Roboto Mono", monospace;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 60% at 15% -5%, #2a3644 0%, transparent 55%),
    linear-gradient(180deg, #1b222c 0%, #181f28 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 0 0 24px;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { list-style: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 26, 34, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-transform: uppercase;
  white-space: nowrap;
}
a[data-contract="site-name"] { color: var(--paper); text-decoration: none; }
a[data-contract="site-name"]:hover { color: #e0d2a6; text-decoration: underline; text-underline-offset: 3px; }
.categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-2);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
a.runtime-category:hover {
  color: var(--ink);
  border-color: var(--red-soft);
  background: rgba(142, 43, 50, 0.18);
  text-decoration: none;
}
.page-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 14px 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  background: linear-gradient(180deg, #222b37 0%, #1d2531 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--gap);
}
.hero__backdrop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hero__poster-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #141a22;
}
.hero__poster {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.03) brightness(0.96);
}
.hero__poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 60, 90, 0.28), rgba(20, 30, 44, 0.42));
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__tag-stack {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 8px 9px;
  background:
    repeating-linear-gradient(180deg, rgba(203, 185, 141, 0.05) 0 1px, transparent 1px 7px),
    rgba(203, 185, 141, 0.07);
}
.hero__slogan {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--paper);
  letter-spacing: 0.03em;
  margin-bottom: 7px;
}
.tag-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag-strip__item {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 3px 6px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--red);
  border-radius: 3px;
  background: rgba(24, 32, 42, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.hero__title {
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero__tagline {
  font-size: 13px;
  color: var(--paper);
  border-left: 2px solid var(--red);
  padding-left: 8px;
  letter-spacing: 0.02em;
}
.hero__seo {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 74ch;
}
.player-shell {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10161d;
  overflow: hidden;
}
.player {
  display: block;
  width: 100%;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-top: 1px solid var(--line-soft);
  background: #182029;
}
.player-btn {
  font-size: 11.5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1f2833;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.player-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.player-btn.is-active, .player-btn.BUTTON.is-active {
  color: #f2e6c8;
  border-color: var(--red-soft);
  background: rgba(142, 43, 50, 0.35);
}
.player-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 130px;
}
.player-field__label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.player-range {
  flex: 1 1 auto;
  min-width: 60px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-soft);
  border: 1px solid #e9d9b4;
}
.player-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid #e9d9b4;
  border-radius: 50%;
  background: var(--red-soft);
}
.cast__heading, .synopsis__heading, .episode-status__heading, .details__heading, .section-heading, .recommend-region__heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-transform: uppercase;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 5px;
  margin-bottom: 8px;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.cast-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(38, 48, 60, 0.55);
  padding: 7px 8px 6px;
  min-width: 0;
}
.cast-card__name {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid var(--red);
  padding-left: 6px;
}
.synopsis__para {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 7px;
  text-indent: 1em;
}
.synopsis__para:last-child { margin-bottom: 0; }
.episode-status__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}
.episode-status__pair {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 5px 8px;
  background: rgba(32, 41, 52, 0.6);
  min-width: 0;
}
.episode-status__key {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.episode-status__value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  margin-left: auto;
  white-space: nowrap;
}
.details__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 14px;
}
.details__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line-soft);
  min-width: 0;
}
.details__key {
  flex: 0 0 4.6em;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.details__value {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
  min-width: 0;
}
.timeline-section, .episodes-section, .comments-section, .recommend-region {
  background: linear-gradient(180deg, #212a35 0%, #1d2531 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--gap);
}
.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.timeline-node {
  position: relative;
  flex: 0 0 176px;
  padding: 0 12px 0 12px;
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 100%;
  border-top: 1px dashed var(--line);
  z-index: 0;
}
.timeline-node:last-child::before { display: none; }
.timeline-node__time {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: #1d2531;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 6px;
  margin-bottom: 6px;
}
.timeline-node__label {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.timeline-node.is-active .timeline-node__time {
  color: #f4e4c2;
  background: var(--red);
  border-color: var(--red-soft);
}
.timeline-node.is-active .timeline-node__label { color: var(--ink); }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(30, 38, 48, 0.7);
  padding: 7px 8px 8px;
  min-width: 0;
}
.episode-card__thumb {
  display: block;
  height: 40px;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(142, 43, 50, 0.55) 0%, rgba(58, 72, 86, 0.5) 48%, rgba(203, 185, 141, 0.35) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
}
.episode-card__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-card__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.episode-card__details { border-top: 1px dashed var(--line-soft); padding-top: 5px; }
.episode-card__summary {
  font-size: 11px;
  color: var(--paper-soft);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.episode-card__summary::-webkit-details-marker { display: none; }
.episode-card__summary::before { content: "▸ "; color: var(--red-soft); }
.episode-card__details[open] .episode-card__summary::before { content: "▾ "; }
.episode-card__text {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 5px;
}
.comments-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-items: start;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 7px;
  min-width: 0;
}
.comment:last-child { border-bottom: 0; padding-bottom: 0; }
.comment__marker {
  flex: 0 0 3px;
  align-self: stretch;
  min-height: 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red-soft), var(--red));
}
.comment__body { min-width: 0; }
.comment__nickname {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.comment__text {
  font-size: 12px;
  line-height: 1.58;
  color: var(--ink-2);
}
.recommend-region { min-width: 0; }
.recommend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(30, 38, 48, 0.7);
  padding: 6px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: border-color .15s, background .15s;
}
a.recommend-card:hover {
  border-color: var(--red-soft);
  background: rgba(142, 43, 50, 0.16);
  color: var(--ink);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  background: #141a22;
  filter: saturate(0.8);
}
.recommend-card__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-card__blurb {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  max-width: 1400px;
  margin: 14px auto 0;
  padding: 12px 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--paper);
  border-bottom-color: var(--red-soft);
  text-decoration: none;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 90ch;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border-top: 1px dashed var(--line-soft);
  padding-top: 8px;
}
.friend-links__label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
a.runtime-friend-link:hover {
  color: var(--paper);
  border-color: var(--paper-soft);
  text-decoration: none;
}
.player-shell.is-theater {
  border-color: var(--red-soft);
}
.player-shell.is-lights-off {
  background: #05080b;
}
.player-shell.is-lights-off .player-controls {
  background: #0b0f14;
}
.player-shell .click, .player-shell .data-player-action { cursor: pointer; }
.player-shell .BUTTON { border-radius: var(--radius); }
.player-shell .input { background: #1f2833; border: 1px solid var(--line); }
.player-shell .fullscreen, .player-shell .theater, .player-shell .light, .player-shell .mute, .player-shell .pip, .player-shell .play, .player-shell .speed, .player-shell .volume, .player-shell .timeupdate, .player-shell .progress { cursor: pointer; }
.player-shell .fullscreen.is-active, .player-shell .theater.is-active, .player-shell .light.is-active, .player-shell .mute.is-active, .player-shell .pip.is-active, .player-shell .play.is-active, .player-shell .speed.is-active {
  color: #f2e6c8;
  border-color: var(--red-soft);
  background: rgba(142, 43, 50, 0.35);
}
@media (max-width: 920px) {.hero {
    grid-template-columns: minmax(0, 1fr);
  }
.hero__backdrop {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }
.comments-columns {
    grid-template-columns: minmax(0, 1fr);
  }}
@media (max-width: 640px) {body { font-size: 12.5px; }
.page-main { padding: 10px 10px 0; gap: 10px; }
.hero__backdrop {
    grid-template-columns: minmax(0, 1fr);
  }
.hero__poster-wrap { max-width: 240px; }
.site-header__bar { flex-wrap: wrap; gap: 8px; padding: 7px 10px; }
.categories-container { margin-left: 0; }
.episode-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.recommend-strip { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.details__list { grid-template-columns: minmax(0, 1fr); }
.timeline-node { flex: 0 0 152px; }}
@media (max-width: 400px) {.episode-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.recommend-strip { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.player-field { flex: 1 1 100%; }}

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}
