*, *::before, *::after { box-sizing: border-box; }
html, body, h2, h3, p, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:root {
  --bg: #1c2225;
  --bg-deep: #161b1d;
  --panel: #232b2e;
  --panel-deep: #1a2124;
  --concrete: #2c3539;
  --concrete-light: #3a4449;
  --ink: #d9dcd8;
  --ink-dim: #8d979a;
  --ink-faint: #6b7477;
  --sun: #e8b04b;
  --sun-soft: #c9922f;
  --blood: #c8281f;
  --blood-bright: #e2352a;
  --line: #394346;
  --gap: 14px;
  --tight: 10px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
::selection { background: var(--blood); color: #fff; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tight);
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 16px;
}
a[data-contract="site-name"] {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-left: 3px solid var(--blood);
  padding-left: 9px;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: var(--sun); }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 8px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
a.runtime-category:hover {
  color: var(--bg-deep);
  background: var(--sun);
  border-color: var(--sun);
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.player-shell {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blood);
  padding: var(--tight);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-frame {
  position: relative;
  width: 100%;
  background: #0b0e0f;
  border: 1px solid var(--line);
  overflow: hidden;
}
.player-video {
  display: block;
  width: 100%;
  background: #0b0e0f;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ctrl-btn {
  background: var(--panel);
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s linear, color 0.12s linear, border-color 0.12s linear;
}
.ctrl-btn:hover { color: var(--ink); border-color: var(--concrete-light); }
.ctrl-btn.is-active {
  background: var(--blood);
  border-color: var(--blood);
  color: #fff;
}
.ctrl-btn.is-playing { background: var(--sun); border-color: var(--sun); color: var(--bg-deep); }
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--concrete);
  border: none;
  cursor: pointer;
  flex: 1 1 120px;
  min-width: 90px;
}
.ctrl-progress { flex: 3 1 200px; }
.ctrl-volume { flex: 1 1 80px; max-width: 150px; }
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 14px;
  background: var(--blood);
  border: none;
  cursor: pointer;
}
.ctrl-range::-moz-range-thumb {
  width: 10px; height: 14px;
  background: var(--blood);
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.ctrl-range::-moz-range-track { height: 4px; background: var(--concrete); }
.player-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.status-episode {
  font-size: 11px;
  color: var(--sun);
  letter-spacing: 0.08em;
}
.status-episode:first-child::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--blood);
  margin-right: 6px;
  vertical-align: 1px;
}
.movie-overview {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  background: var(--panel-deep);
  border: 1px solid var(--line);
  padding: 12px;
}
.overview-poster {
  position: relative;
  border: 1px solid var(--concrete-light);
  background: var(--concrete);
  align-self: start;
  line-height: 0;
}
.overview-poster-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.overview-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.overview-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.overview-tagline {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 15px;
  color: var(--blood-bright);
  letter-spacing: 0.1em;
  border-left: 3px solid var(--blood);
  padding-left: 9px;
}
.overview-seo {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.75;
  max-width: 72ch;
}
.block-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sun);
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 2px solid var(--blood);
  margin-bottom: 7px;
}
.cast-block { min-width: 0; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.cast-card {
  background: var(--concrete);
  border-top: 2px solid var(--blood);
  padding: 22px 6px 8px;
  display: flex;
  justify-content: flex-end;
  min-height: 86px;
  transition: background 0.12s linear;
}
.cast-card:hover { background: var(--concrete-light); }
.cast-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--ink);
  line-height: 1;
  text-align: right;
}
.synopsis-block { min-width: 0; }
.synopsis-text {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.8;
  text-indent: 2em;
}
.synopsis-text + .synopsis-text { margin-top: 5px; }
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.status-item {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.status-item::before {
  content: "/";
  color: var(--blood);
  margin-right: 6px;
}
.details-block { min-width: 0; }
.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 3px 0;
  border-bottom: 1px dotted var(--line);
  min-width: 0;
}
.detail-key {
  flex: 0 0 62px;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink);
  text-align: right;
}
.section-heading {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-bottom: 6px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 2px;
  background: var(--blood);
}
.timeline-section { padding-top: 4px; }
.timeline-list {
  position: relative;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--concrete-light);
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: baseline;
  gap: 4px 12px;
  padding: 3px 0;
}
.timeline-dot {
  position: absolute;
  left: -16px;
  top: 9px;
  width: 7px; height: 7px;
  background: var(--blood);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline-timecode {
  font-size: 11px;
  color: var(--blood-bright);
  letter-spacing: 0.12em;
  font-weight: 400;
}
.timeline-label {
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.timeline-node:hover .timeline-label { color: var(--ink); }
.episodes-section { padding-top: 4px; }
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.episode-card {
  position: relative;
  background: var(--panel-deep);
  border-left: 2px solid var(--concrete-light);
  padding: 9px 11px 9px 62px;
  overflow: hidden;
  min-height: 74px;
  transition: border-color 0.12s linear, background 0.12s linear;
}
.episode-card:hover {
  border-left-color: var(--blood);
  background: var(--panel);
}
.episode-number {
  position: absolute;
  left: 6px;
  top: -6px;
  font-size: 46px;
  font-weight: 200;
  line-height: 1;
  color: var(--concrete-light);
  opacity: 0.55;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.episode-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.episode-summary {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-duration {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--sun-soft);
  letter-spacing: 0.1em;
}
.comments-section { padding-top: 4px; }
.comment-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.comment-note {
  position: relative;
  background: var(--concrete);
  border-top: 1px solid var(--concrete-light);
  padding: 9px 11px 26px 40px;
  min-height: 92px;
  transition: transform 0.12s linear;
}
.comment-note:nth-child(2n) { transform: translate(2px, 2px); }
.comment-note:nth-child(3n) { transform: translate(-2px, 3px); }
.comment-note:nth-child(5n) { transform: translate(3px, -2px); }
.comment-note:hover { transform: translate(0, 0); z-index: 2; }
.comment-avatar {
  position: absolute;
  left: 10px;
  top: 11px;
  width: 20px; height: 20px;
}
.comment-avatar-a { background: var(--blood); }
.comment-avatar-b { background: var(--sun); }
.comment-avatar-c { background: var(--concrete-light); }
.comment-avatar-d { background: var(--blood-bright); }
.comment-avatar-e { background: var(--sun-soft); }
.comment-avatar-f { background: var(--ink-faint); }
.comment-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.7;
}
.comment-nickname {
  position: absolute;
  right: 11px;
  bottom: 8px;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 11px;
  color: var(--blood-bright);
  letter-spacing: 0.08em;
}
.recommend-region { padding-top: 4px; }
.recommend-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: 7px;
  padding-left: 8px;
  border-left: 2px solid var(--sun);
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 6px;
  align-items: start;
}
.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel-deep);
  border: 1px solid var(--line);
  padding: 5px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color 0.12s linear, background 0.12s linear;
}
.recommend-item:hover {
  border-color: var(--blood);
  background: var(--panel);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
}
.recommend-item span[data-runtime="name"] {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-item span[data-runtime="blurb"] {
  font-size: 11px;
  color: var(--ink-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 90ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"] { color: var(--sun); text-decoration: none; }
a[data-contract="footer-home"]:hover { border-bottom-color: var(--sun); }
a[data-contract="footer-sitemap"] { color: var(--ink-dim); text-decoration: none; }
a[data-contract="footer-sitemap"]:hover { color: var(--ink); border-bottom-color: var(--ink); }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.friend-label {
  font-size: 11px;
  color: var(--blood-bright);
  letter-spacing: 0.14em;
  font-weight: 400;
}
a.runtime-friend-link {
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: none;
  white-space: nowrap;
}
a.runtime-friend-link:hover { color: var(--sun); text-decoration: underline; }
body.lights-off { background: #0a0d0e; }
body.lights-off .page-main, body.lights-off .site-header, body.lights-off .site-footer { filter: brightness(0.86); }
body.lights-off .player-shell {
  filter: none;
  border-color: var(--blood);
}
body.theater-mode .player-shell {
  border-left: none;
  border-right: none;
  background: #0b0e0f;
}
body.theater-mode .player-frame { border-color: var(--blood); }
.player-shell .click, .player-shell .input, .player-shell .play, .player-shell .pause, .player-shell .progress, .player-shell .speed, .player-shell .volume, .player-shell .mute, .player-shell .pip, .player-shell .fullscreen, .player-shell .theater, .player-shell .light, .player-shell .timeupdate, .player-shell .x { position: static; }
@media (max-width: 1080px) {.cast-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.comment-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }}
@media (max-width: 860px) {.movie-overview {
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  }
.details-list { grid-template-columns: minmax(0, 1fr); }
.episodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cast-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cast-card { padding: 18px 4px 7px; min-height: 78px; }
.cast-name { font-size: 11.5px; letter-spacing: 0.18em; }}
@media (max-width: 680px) {.header-inner { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
.category-nav { justify-content: flex-start; }
.page-main { padding: 10px 12px 22px; gap: 12px; }
.movie-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
.overview-poster {
    max-width: 150px;
  }
.overview-title { font-size: 19px; }
.cast-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cast-card { min-height: 74px; }
.timeline-node { grid-template-columns: 56px 1fr; }
.episodes-grid { grid-template-columns: minmax(0, 1fr); }
.episode-card { padding-left: 54px; }
.episode-number { font-size: 40px; }
.comment-stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.comment-note:nth-child(2n), .comment-note:nth-child(3n), .comment-note:nth-child(5n) { transform: none; }
.recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-inner { padding: 12px 12px 18px; }}
@media (max-width: 420px) {.ctrl-btn { padding: 4px 7px; font-size: 11px; }
.ctrl-progress { flex-basis: 100%; }
.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-grid { grid-template-columns: minmax(0, 1fr); }
.overview-title { font-size: 17px; }}

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}
