*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink-pool: #0b1614;
  --ink-deep: #101f1c;
  --ink-stone: #16241f;
  --moss: #4a5c46;
  --moss-dim: #37453a;
  --bone: #d8d5c8;
  --bone-dim: #9b9a8d;
  --rust: #7c3a2c;
  --rust-dim: #56271d;
  --line: #2a3a33;
  --gap: 8px;
  --gap-tight: 5px;
  --radius: 2px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--ink-pool);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(74, 92, 70, 0.28), transparent 70%),
    repeating-linear-gradient(0deg, rgba(216, 213, 200, 0.014) 0 1px, transparent 1px 3px);
  color: var(--bone);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
h1, h2, h3 {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(11, 22, 20, 0.97), rgba(11, 22, 20, 0.88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(3px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 16px;
  max-width: 1280px;
  margin: 0 auto;
}
a[data-contract="site-name"] {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
  border-left: 3px solid var(--rust);
  padding-left: 9px;
}
.categories-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}
a.runtime-category:hover {
  color: var(--bone);
  border-color: var(--moss);
  background: rgba(74, 92, 70, 0.16);
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px 22px;
}
.hero-pool {
  position: relative;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.hero-waterline {
  position: relative;
  padding: 34px 4px 26px;
  margin-bottom: 4px;
  text-align: center;
  border-bottom: 1px dashed rgba(74, 92, 70, 0.5);
}
.hero-waterline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--moss) 20%, var(--moss) 80%, transparent);
  opacity: 0.55;
}
.hero-title {
  font-size: clamp(26px, 5.2vw, 46px);
  color: var(--bone);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(74, 92, 70, 0.5);
  letter-spacing: 0.16em;
}
.hero-tagline {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--bone-dim);
}
.overview-body {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 12px;
}
.poster-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-deep);
  padding: 3px;
  align-self: start;
}
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(216, 213, 200, 0.05) 0 1px, transparent 1px 6px);
}
.poster-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ink-stone);
  filter: saturate(0.72) contrast(1.04) brightness(0.94);
}
.overview-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.player-shell {
  position: relative;
  width: 100%;
  background: #050b0a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.player-video {
  width: 100%;
  height: auto;
  background: #050b0a;
  object-fit: contain;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: linear-gradient(180deg, rgba(16, 31, 28, 0.96), rgba(11, 22, 20, 0.96));
  border-top: 1px solid var(--line);
}
.ctrl {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 36, 31, 0.6);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.ctrl:hover {
  color: var(--bone);
  border-color: var(--moss);
  background: rgba(74, 92, 70, 0.22);
}
.ctrl-play { color: var(--bone); border-color: var(--moss); }
.ctrl-light { margin-left: auto; }
.ctrl-progress {
  flex: 1 1 120px;
  min-width: 80px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--moss-dim);
  appearance: none;
  -webkit-appearance: none;
}
.ctrl-volume {
  flex: 0 1 74px;
  min-width: 56px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--moss-dim);
  appearance: none;
  -webkit-appearance: none;
}
.ctrl-progress::-webkit-slider-thumb, .ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--rust);
  border: 1px solid var(--bone-dim);
  cursor: pointer;
}
.ctrl-progress::-moz-range-thumb, .ctrl-volume::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--rust);
  border: 1px solid var(--bone-dim);
  cursor: pointer;
}
.player-shell.is-playing { border-color: var(--moss); }
.player-shell.is-muted .ctrl-mute { color: var(--rust); border-color: var(--rust-dim); }
.player-shell.is-theater { border-color: var(--moss); box-shadow: 0 0 0 1px rgba(74, 92, 70, 0.4); }
body.lights-off { background-image: none; background-color: #040908; }
body.lights-off .site-header { background: #040908; }
body.lights-off .player-shell { box-shadow: 0 0 24px rgba(124, 58, 44, 0.22); }
.episode-status {
  border-left: 3px solid var(--rust);
  background: rgba(86, 39, 29, 0.14);
  padding: 5px 10px;
}
.status-line {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
}
.block-heading {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--moss);
  padding-bottom: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 26px;
  height: 1px;
  background: var(--rust);
}
.details-block { margin-top: 2px; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0 14px;
  border-top: 1px solid rgba(42, 58, 51, 0.5);
}
.detail-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid rgba(42, 58, 51, 0.42);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--moss);
  min-width: 56px;
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--bone);
  word-break: break-word;
}
.cast-block { margin-top: 2px; }
.cast-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.cast-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px 3px 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 36, 31, 0.44);
}
.cast-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 1px;
  border: 1px solid var(--moss-dim);
  background:
    linear-gradient(150deg, rgba(216, 213, 200, 0.12), transparent 60%),
    var(--moss-dim);
}
.cast-name {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bone);
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
  max-height: 26px;
  overflow: hidden;
}
.synopsis-block { margin-top: 2px; }
.synopsis-text {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--bone-dim);
  text-align: justify;
  margin-bottom: 6px;
  padding-left: 9px;
  border-left: 1px solid rgba(74, 92, 70, 0.4);
}
.synopsis-text:last-child { margin-bottom: 0; }
.section-heading {
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--bone);
  padding: 3px 0 5px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: var(--rust);
}
.timeline-section {
  margin-top: 16px;
  padding-top: 2px;
}
.timeline-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
  padding-left: 12px;
}
.timeline-axis::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--moss), var(--moss-dim) 70%, transparent);
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 4px 0 4px 10px;
  border-bottom: 1px solid rgba(42, 58, 51, 0.42);
}
.node-pin {
  position: absolute;
  left: -12px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--bone-dim);
  border: 1px solid var(--moss);
  border-radius: 1px;
  transform: rotate(45deg);
}
.node-time {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
}
.node-label {
  font-size: 12px;
  color: var(--bone);
  line-height: 1.5;
}
.episodes-section {
  margin-top: 16px;
  padding-top: 2px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.episode-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 36, 31, 0.5), rgba(11, 22, 20, 0.5));
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.episode-card:hover { border-color: var(--moss); }
.episode-card.is-active { border-color: var(--rust); background: rgba(86, 39, 29, 0.2); }
.episode-number {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--moss);
  padding-top: 1px;
  border-right: 1px solid rgba(42, 58, 51, 0.7);
  padding-right: 6px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  justify-self: start;
  line-height: 1.1;
}
.episode-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.episode-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--bone);
}
.episode-summary {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--bone-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-duration {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--rust);
  align-self: flex-end;
}
.comments-section {
  margin-top: 16px;
  padding-top: 2px;
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}
.comment-card {
  position: relative;
  padding: 7px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(216, 213, 200, 0.05), rgba(22, 36, 31, 0.5));
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
}
.comment-card:nth-child(3n + 1) { transform: rotate(-0.5deg); }
.comment-card:nth-child(3n + 2) { transform: rotate(0.42deg) translateY(2px); }
.comment-card:nth-child(3n) { transform: rotate(-0.22deg) translateY(-1px); }
.comment-nickname {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--moss);
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(74, 92, 70, 0.42);
}
.comment-text {
  font-size: 12px;
  line-height: 1.62;
  color: var(--bone-dim);
}
.rec-region {
  margin-top: 16px;
  padding-top: 2px;
}
.rec-heading {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--bone);
  padding: 2px 0 5px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.rec-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 30px;
  height: 2px;
  background: var(--moss);
}
.rec-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  align-items: start;
}
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 36, 31, 0.42);
  color: var(--bone);
  text-decoration: none;
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}
a.rec-card:hover {
  border-color: var(--rust);
  background: rgba(86, 39, 29, 0.16);
  transform: translateY(-2px);
}
.rec-pic {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-stone);
  filter: saturate(0.7) contrast(1.05) brightness(0.92);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.rec-name {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.rec-blurb {
  font-size: 11px;
  line-height: 1.5;
  color: var(--bone-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 22, 20, 0.4), #070f0d);
  margin-top: 18px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--moss-dim);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--rust);
  border-color: var(--rust);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(42, 58, 51, 0.5);
}
.friend-links-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--moss);
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
a.runtime-friend-link:hover { color: var(--bone); text-decoration: underline; }
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(155, 154, 141, 0.72);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {.overview-body {
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
    gap: 12px;
  }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 720px) {.header-inner { padding: 6px 12px; gap: 10px; }
.page-main { padding: 0 10px 18px; }
.overview-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
.poster-frame {
    max-width: 220px;
    margin: 0 auto;
  }
.hero-waterline { padding: 26px 4px 20px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.timeline-axis { grid-template-columns: minmax(0, 1fr); gap: 0; }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.rec-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ctrl-light { margin-left: 0; }}
@media (max-width: 480px) {body { font-size: 12.5px; }
.hero-title { letter-spacing: 0.1em; }
.hero-tagline { letter-spacing: 0.14em; font-size: 11.5px; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.cast-name { writing-mode: horizontal-tb; text-orientation: mixed; max-height: none; }
.episode-number { writing-mode: horizontal-tb; text-orientation: mixed; border-right: none; border-bottom: 1px solid rgba(42, 58, 51, 0.7); padding-right: 0; padding-bottom: 3px; }
.episode-card { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.rec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.player-controls { gap: 3px; padding: 4px; }
.ctrl { padding: 3px 5px; font-size: 10.5px; }
.ctrl-progress { flex-basis: 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}
