*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #1b2027;
  --bg-2: #222831;
  --bg-3: #272e38;
  --line: #333c48;
  --ink: #c9d2dc;
  --ink-dim: #8b97a5;
  --ink-faint: #64707e;
  --red: #8f1d1d;
  --red-bright: #b52a2a;
  --cold: #6f8ba6;
  --radius: 3px;
  --gap: 10px;
  --pad: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
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(20, 24, 30, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px;
}
a[data-contract="site-name"] {
  color: #e6ebf0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: var(--red-bright); }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 9px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}
a.runtime-category:hover {
  color: #e6ebf0;
  border-color: var(--red);
  background: rgba(143, 29, 29, 0.16);
}
.page-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px 4px;
  display: block;
}
.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-poster-wrap {
  position: relative;
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: #10141a;
}
.hero-poster-wrap img[data-contract="main-poster"] {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06) brightness(0.88);
}
.hero-poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 12, 16, 0.96) 0%,
    rgba(10, 12, 16, 0.86) 30%,
    rgba(10, 12, 16, 0.26) 46%,
    rgba(10, 12, 16, 0) 62%
  );
  pointer-events: none;
}
.hero-poster-glow {
  position: absolute;
  top: 4%;
  right: -14%;
  width: 46%;
  height: 88%;
  background: linear-gradient(
    118deg,
    rgba(151, 190, 219, 0) 0%,
    rgba(168, 205, 232, 0.34) 38%,
    rgba(214, 236, 252, 0.62) 48%,
    rgba(151, 190, 219, 0.16) 60%,
    rgba(151, 190, 219, 0) 100%
  );
  transform: rotate(9deg);
  filter: blur(1px);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hero-identity {
  position: relative;
  padding-bottom: 2px;
}
.hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #eef2f6;
  line-height: 1.1;
}
.hero-tagline {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #dfe6ed;
  text-shadow: 0 0 18px rgba(20, 26, 34, 0.92), 0 1px 2px rgba(0, 0, 0, 0.7);
  max-width: 22em;
}
.hero-player-shell {
  position: relative;
  width: 100%;
  background: #0d1116;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-player-shell video {
  display: block;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #171d24;
  border-top: 1px solid var(--line);
}
.pc-btn {
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: #1f262f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.pc-btn:hover { color: #e6ebf0; border-color: var(--cold); }
.pc-btn.is-active {
  color: #f0d7d7;
  border-color: var(--red);
  background: rgba(143, 29, 29, 0.28);
}
.pc-progress {
  flex: 1 1 140px;
  min-width: 90px;
  height: 4px;
  appearance: none;
  background: #303945;
  border-radius: 2px;
  cursor: pointer;
}
.pc-progress::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red-bright);
  border: none;
}
.pc-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--red-bright);
}
.pc-volume {
  flex: 0 1 84px;
  min-width: 56px;
  height: 4px;
  appearance: none;
  background: #303945;
  border-radius: 2px;
  cursor: pointer;
}
.pc-volume::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cold);
  border: none;
}
.pc-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--cold);
}
.pc-speed {
  padding: 3px 4px;
  font-size: 11px;
  background: #1f262f;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-player-shell.is-theater {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(143, 29, 29, 0.5), 0 12px 40px rgba(0, 0, 0, 0.6);
}
body.is-lights-off .page-main { filter: brightness(0.62) contrast(1.04); }
body.is-lights-off .hero-player-shell { filter: brightness(1.55); }
body.is-playing .pc-play { color: #f0d7d7; border-color: var(--red); }
.hero-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.5fr);
  grid-template-areas:
    "synopsis details"
    "status   details";
  gap: var(--gap) 16px;
  align-items: start;
}
.synopsis-block {
  grid-area: synopsis;
  min-width: 0;
}
.details-block {
  grid-area: details;
  min-width: 0;
}
.episode-status-block {
  grid-area: status;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  align-self: start;
}
.status-current {
  color: #e7edf3;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.status-sep { color: var(--ink-faint); }
.status-total { color: var(--ink-dim); font-size: 12px; }
.block-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.synopsis-body { display: block; }
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 5px;
}
.synopsis-para:last-child { margin-bottom: 0; }
.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 9px;
  border-bottom: 1px solid rgba(51, 60, 72, 0.6);
  min-width: 0;
}
.detail-row:nth-child(odd) { border-right: 1px solid rgba(51, 60, 72, 0.6); }
.detail-row:nth-last-child(-n/**/+2) { border-bottom: none; }
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.detail-val {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: #dde4ea;
  text-align: right;
}
.cast-block {
  min-width: 0;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cast-card {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 132px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #2b333e 0%, #1b2129 62%, #14191f 100%);
  border: 1px solid var(--line);
}
.cast-photo {
  position: absolute;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 50% 26%, rgba(120, 145, 172, 0.28), rgba(20, 25, 31, 0) 62%),
    linear-gradient(180deg, rgba(20, 25, 31, 0) 40%, rgba(12, 15, 19, 0.92) 100%);
}
.cast-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50%;
  background: rgba(150, 172, 196, 0.16);
  box-shadow: 0 34px 0 -8px rgba(150, 172, 196, 0.12);
}
.cast-name {
  position: absolute;
  right: 6px;
  bottom: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eaf0f5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 2;
}
.cast-card:hover { border-color: var(--red); }
.section-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--red);
  line-height: 1.1;
}
.timeline-section {
  margin-bottom: 18px;
}
.timeline-track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 14px 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 40, 49, 0.55), rgba(27, 32, 39, 0));
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(143, 29, 29, 0.12) 0%,
    rgba(143, 29, 29, 0.55) 12%,
    rgba(111, 139, 166, 0.4) 50%,
    rgba(143, 29, 29, 0.55) 88%,
    rgba(143, 29, 29, 0.12) 100%
  );
  pointer-events: none;
}
.timeline-list {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 100%;
  width: max-content;
}
.timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  min-height: 122px;
}
.node-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 2px rgba(27, 32, 39, 0.95), 0 0 8px rgba(181, 42, 42, 0.85);
  z-index: 3;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: rgba(143, 29, 29, 0.45);
  z-index: 1;
}
.timeline-up::before { bottom: 50%; height: 26px; margin-bottom: 4px; }
.timeline-down::before { top: 50%; height: 26px; margin-top: 4px; }
.node-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 158px;
  padding: 5px 7px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.timeline-up .node-card { bottom: calc(50% + 30px); }
.timeline-down .node-card { top: calc(50% + 30px); }
.node-time {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red-bright);
  white-space: nowrap;
}
.node-label {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink);
}
.timeline-node:hover .node-card { border-color: var(--red); }
.episodes-section { margin-bottom: 18px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.episode-card {
  position: relative;
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(143, 29, 29, 0.55);
  border-radius: var(--radius);
  min-width: 0;
  align-self: start;
}
.ep-number {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red-bright);
  margin-bottom: 1px;
}
.ep-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #e8eef4;
  line-height: 1.2;
  margin-bottom: 3px;
}
.ep-summary {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-dim);
}
.ep-duration {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cold);
  transition: max-height 0.18s ease, opacity 0.18s ease, margin-top 0.18s ease;
}
.episode-card:hover {
  border-color: var(--red);
  background: var(--bg-3);
}
.episode-card:hover .ep-duration {
  max-height: 20px;
  opacity: 1;
  margin-top: 4px;
}
.comments-section { margin-bottom: 18px; }
.comments-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.comment-column {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}
.comment-card {
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.comment-nick {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cold);
  margin-bottom: 3px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}
.comment-pinned {
  background: var(--bg-3);
  border-color: rgba(143, 29, 29, 0.6);
  border-left: 3px solid var(--red);
}
.comment-pinned .comment-nick {
  color: #e7edf3;
  font-weight: 700;
}
.comment-pinned .comment-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #eef3f8;
}
.comment-minor .comment-text { font-size: 11.5px; color: var(--ink-dim); }
.comment-minor .comment-nick { color: var(--ink-faint); }
.comment-minor:hover { border-color: var(--cold); }
.rec-region { margin-bottom: 18px; }
.rec-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: 7px;
  padding-left: 8px;
  border-left: 3px solid var(--red);
  line-height: 1.1;
}
.rec-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-start;
}
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 140px;
  min-width: 0;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
a.rec-card:hover {
  border-color: var(--red);
  background: var(--bg-3);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.8) brightness(0.92);
}
.rec-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #e8eef4;
}
.rec-blurb {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-faint);
}
a.rec-card {
  position: relative;
}
a.rec-card::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 5px rgba(181, 42, 42, 0.9);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #14181e;
  margin-top: 4px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #e6ebf0;
  border-bottom-color: var(--red);
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-faint);
  max-width: 62em;
}
.footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(51, 60, 72, 0.6);
}
.friends-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 11px;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
}
a.runtime-friend-link:hover { color: var(--red-bright); }
.player .play, .player .pause, .player .mute, .player .volume, .player .progress, .player .speed, .player .pip, .player .fullscreen, .player .theater, .player .light, .player .input, .player .change, .player .click, .player .timeupdate {
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
@media (max-width: 1080px) {.hero-shell {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    gap: 16px;
  }
.cast-card { width: 96px; height: 122px; }}
@media (max-width: 860px) {.hero-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
.hero-poster-wrap {
    max-width: 300px;
  }
.hero-info-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "synopsis"
      "details"
      "status";
  }
.hero-tagline { font-size: 18px; max-width: none; }}
@media (max-width: 720px) {body { font-size: 12.5px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comments-masonry { grid-template-columns: minmax(0, 1fr); }
.rec-row { gap: 8px; }
a.rec-card { flex: 1 1 130px; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.detail-row:nth-child(odd) { border-right: none; }
.detail-row:nth-last-child(-n/**/+2) { border-bottom: 1px solid rgba(51, 60, 72, 0.6); }
.detail-row:last-child { border-bottom: none; }
.cast-card { width: 88px; height: 112px; }}
@media (max-width: 520px) {.page-main { padding: 10px 10px 4px; }
.header-inner { padding: 7px 10px; gap: 10px; }
.hero-poster-wrap { max-width: 240px; }
.hero-tagline { font-size: 16px; }
.hero-title { font-size: 19px; }
.player-controls { gap: 5px; padding: 6px; }
.pc-progress { flex: 1 1 100%; order: 3; }
.pc-volume { flex: 0 1 70px; }
.timeline-node { width: 150px; }
.node-card { width: 142px; }
.cast-card { width: 82px; height: 104px; }
.cast-name { font-size: 11px; }
a.rec-card { 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}
