:root {
  --soil: #17110d;
  --soil-2: #1f1712;
  --soil-3: #2a1f18;
  --wall: #3a2a20;
  --gold: #b99247;
  --gold-dim: #8a6b34;
  --rust: #7c2f22;
  --rust-deep: #57211a;
  --silver: #e7e0d2;
  --silver-dim: #b7ad9b;
  --ink: #d9cfbe;
  --ink-soft: #a99c88;
  --hair: rgba(185, 146, 71, 0.28);
  --gap: 10px;
  --gap-tight: 6px;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --song: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body, h1, h2, p, dl, dd, dt, ol, ul, li, nav, section, article, header, footer {
  margin: 0;
  padding: 0;
}
ol, ul {
  list-style: none;
}
img, video {
  display: block;
  max-width: 100%;
}
button, input, select {
  font: inherit;
  color: inherit;
}
body {
  background-color: var(--soil);
  background-image:
    radial-gradient(120% 80% at 12% 0%, rgba(124, 47, 34, 0.20), transparent 62%),
    radial-gradient(90% 60% at 88% 8%, rgba(185, 146, 71, 0.12), transparent 60%),
    linear-gradient(180deg, #1c1410 0%, #17110d 45%, #120d0a 100%);
  color: var(--ink);
  font-family: var(--song);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a[data-contract="site-name"] {
  color: var(--silver);
  text-decoration: none;
}
a.runtime-category {
  color: var(--gold);
  text-decoration: none;
}
a.rec-card {
  color: var(--ink);
  text-decoration: none;
}
a[data-contract="footer-home"] {
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a[data-contract="footer-sitemap"] {
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.runtime-friend-link {
  color: var(--ink-soft);
  text-decoration: none;
}
a.runtime-friend-link:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--gap-tight) var(--gap);
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(42, 31, 24, 0.92), rgba(23, 17, 13, 0.92));
}
.header-brandrow {
  display: flex;
  align-items: baseline;
  gap: var(--gap);
}
.site-brand {
  font-family: var(--hand);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.header-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.runtime-category {
  white-space: nowrap;
  font-size: 13px;
  padding: 1px 6px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: rgba(124, 47, 34, 0.14);
}
.runtime-category:hover {
  border-color: var(--gold);
  background: rgba(124, 47, 34, 0.3);
}
.page-main {
  display: block;
  padding: 0 12px 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-heading {
  font-family: var(--hand);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--hair);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding-top: 10px;
}
.hero-figure {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.poster-frame {
  position: relative;
  width: min(46%, 260px);
  float: left;
  margin: 0 14px 8px 0;
  border: 1px solid rgba(185, 146, 71, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}
.poster-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.72) contrast(1.08);
}
.hero-title {
  font-family: var(--hand);
  font-size: clamp(34px, 9vw, 92px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: #e9dfc8;
  text-shadow:
    0 0 1px rgba(233, 223, 200, 0.55),
    0 2px 0 rgba(87, 33, 26, 0.85),
    0 6px 22px rgba(0, 0, 0, 0.8);
  margin-bottom: 6px;
}
.hero-tagline {
  font-family: var(--hand);
  font-size: clamp(15px, 2.4vw, 20px);
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.hero-seo {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: justify;
}
.player-shell {
  position: relative;
  width: 100%;
  border: 1px solid rgba(185, 146, 71, 0.3);
  background: #0c0806;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
.player-shell video {
  display: block;
  width: 100%;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: linear-gradient(180deg, rgba(42, 31, 24, 0.9), rgba(18, 13, 10, 0.95));
  border-top: 1px solid var(--hair);
}
.player-button {
  font-family: var(--song);
  font-size: 12.5px;
  line-height: 1.2;
  padding: 4px 9px;
  color: var(--ink);
  background: rgba(58, 42, 32, 0.85);
  border: 1px solid rgba(185, 146, 71, 0.35);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.player-button:hover {
  border-color: var(--gold);
  color: var(--silver);
  background: rgba(124, 47, 34, 0.4);
}
.player-button.click, .player-button:active {
  background: var(--rust-deep);
  border-color: var(--gold);
}
.player-range {
  flex: 1 1 90px;
  min-width: 70px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--rust), rgba(185, 146, 71, 0.35));
  border-radius: 2px;
  cursor: pointer;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid #2a1f18;
}
.player-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 1px solid #2a1f18;
  border-radius: 50%;
  background: var(--gold);
}
.player-select {
  font-size: 12.5px;
  padding: 3px 6px;
  color: var(--ink);
  background: rgba(58, 42, 32, 0.9);
  border: 1px solid rgba(185, 146, 71, 0.35);
  border-radius: 2px;
}
.player-shell.is-playing .player-button[data-player-action="play"] {
  border-color: var(--gold);
  color: var(--silver);
}
.player-shell.is-light-off {
  background: #000;
}
.player-shell.is-light-off video {
  filter: brightness(1.15) contrast(1.06);
}
.player-shell.is-light-off .player-controls {
  background: #050403;
}
.player-shell.is-theater {
  box-shadow: 0 0 0 1px var(--gold), 0 18px 46px rgba(0, 0, 0, 0.85);
}
.status-strip {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(42, 31, 24, 0.7), rgba(23, 17, 13, 0.7));
}
.status-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 7px 10px;
}
.status-key {
  font-family: var(--hand);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.status-value {
  font-size: 14px;
  color: var(--silver);
  margin-right: 8px;
}
.synopsis-panel, .details-panel, .cast-panel {
  padding: 10px 0 0;
}
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 16px;
  align-items: start;
}
.synopsis-para {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  text-align: justify;
  padding-left: 10px;
  border-left: 2px solid rgba(124, 47, 34, 0.55);
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0 14px;
  align-items: start;
  border-top: 1px solid rgba(185, 146, 71, 0.16);
}
.details-key {
  grid-column: auto;
  font-family: var(--hand);
  font-size: 13.5px;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  padding-top: 5px;
}
.details-value {
  font-size: 13.5px;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(185, 146, 71, 0.16);
}
.cast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.cast-figure {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 60% at 50% 22%, rgba(185, 146, 71, 0.28), transparent 70%),
    linear-gradient(180deg, #3a2a20, #1b1310);
  border: 1px solid rgba(185, 146, 71, 0.3);
  box-shadow: inset 0 -18px 26px rgba(0, 0, 0, 0.6);
}
.cast-initial {
  font-family: var(--hand);
  font-size: clamp(24px, 4vw, 34px);
  color: rgba(231, 224, 210, 0.88);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.cast-name {
  display: block;
  width: 100%;
  margin-top: -1px;
  padding: 3px 4px;
  text-align: center;
  font-family: var(--hand);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--silver-dim);
  background: rgba(18, 13, 10, 0.92);
  border: 1px solid rgba(185, 146, 71, 0.3);
  border-top: none;
}
.timeline-shell, .episodes-shell, .comments-shell, .rec-section {
  padding-top: 18px;
}
.timeline-thread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-left: 22px;
}
.timeline-thread::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, rgba(124, 47, 34, 0.2), var(--rust) 12%, var(--rust) 82%, rgba(124, 47, 34, 0.15));
}
.timeline-node {
  position: relative;
  padding: 5px 0 9px;
  border-bottom: 1px dashed rgba(185, 146, 71, 0.14);
}
.timeline-thread .timeline-node:nth-child(1) { padding-bottom: 9px; }
.timeline-thread .timeline-node:nth-child(2) { padding-bottom: 11px; }
.timeline-thread .timeline-node:nth-child(3) { padding-bottom: 13px; }
.timeline-thread .timeline-node:nth-child(4) { padding-bottom: 15px; }
.timeline-thread .timeline-node:nth-child(5) { padding-bottom: 17px; }
.timeline-thread .timeline-node:nth-child(6) { padding-bottom: 19px; }
.timeline-thread .timeline-node:last-child {
  border-bottom: none;
}
.timeline-pin {
  position: absolute;
  left: -22px;
  top: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background:
    radial-gradient(circle at 34% 34%, rgba(231, 224, 210, 0.55), transparent 55%),
    linear-gradient(140deg, var(--gold), var(--gold-dim) 55%, var(--rust-deep));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.timeline-code {
  display: block;
  font-family: var(--hand);
  font-size: 13.5px;
  color: var(--rust);
  letter-spacing: 0.1em;
}
.timeline-label {
  display: block;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--ink-soft);
}
.episodes-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: var(--gap-tight);
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) rgba(42, 31, 24, 0.6);
}
.episodes-scroll::-webkit-scrollbar {
  height: 7px;
}
.episodes-scroll::-webkit-scrollbar-track {
  background: rgba(42, 31, 24, 0.6);
}
.episodes-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  border: 1px solid rgba(185, 146, 71, 0.28);
  background: linear-gradient(180deg, rgba(42, 31, 24, 0.78), rgba(18, 13, 10, 0.9));
  height: 100%;
}
.episode-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 8px;
  cursor: pointer;
  list-style: none;
}
.episode-summary::-webkit-details-marker {
  display: none;
}
.episode-number {
  font-family: var(--hand);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--rust);
}
.episode-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--hand);
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--silver);
  margin: 2px 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}
.episode-duration {
  font-size: 11.5px;
  color: var(--gold-dim);
}
.episode-blurb {
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--ink-soft);
  padding: 0 8px 8px;
  border-top: 1px dashed rgba(185, 146, 71, 0.2);
  margin-top: auto;
  padding-top: 6px;
}
.episode-card[open] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(124, 47, 34, 0.24), rgba(18, 13, 10, 0.94));
}
.comments-masonry {
  columns: 2;
  column-gap: var(--gap);
}
.comment-card {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--gap);
  padding: 8px 9px;
  border: 1px solid rgba(185, 146, 71, 0.22);
  background: linear-gradient(180deg, rgba(42, 31, 24, 0.7), rgba(18, 13, 10, 0.86));
}
.comment-card--short {
  border-left: 2px solid var(--gold-dim);
}
.comment-card--long {
  border-left: 2px solid var(--rust);
  background: linear-gradient(180deg, rgba(87, 33, 26, 0.28), rgba(18, 13, 10, 0.9));
}
.comment-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  text-align: justify;
}
.comment-meta {
  margin-top: 5px;
  font-family: var(--hand);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  text-align: right;
}
.rec-heading {
  font-family: var(--hand);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin: 0 0 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hair);
}
.rec-grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
.rec-grid--four {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.rec-grid--three {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.rec-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  border: 1px solid rgba(185, 146, 71, 0.24);
  background: linear-gradient(180deg, rgba(42, 31, 24, 0.72), rgba(18, 13, 10, 0.88));
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.rec-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.06) brightness(0.9);
}
.rec-name {
  position: relative;
  display: block;
  padding: 5px 7px 3px;
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--silver);
  border-top: 1px solid rgba(185, 146, 71, 0.2);
}
.rec-blurb {
  display: block;
  padding: 0 7px 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.rec-section--compact .rec-name {
  font-size: 13.5px;
}
.rec-section--compact .rec-blurb {
  font-size: 11.5px;
}
.site-footer {
  margin-top: 16px;
  padding: 12px;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.9), rgba(10, 7, 5, 0.98));
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 0;
  border-top: 1px dashed rgba(185, 146, 71, 0.18);
  border-bottom: 1px dashed rgba(185, 146, 71, 0.18);
}
.friend-links-label {
  font-family: var(--hand);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.friend-links .runtime-friend-link {
  font-size: 12.5px;
  white-space: nowrap;
}
.footer-disclaimer {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.66;
  color: rgba(169, 156, 136, 0.7);
  text-align: justify;
}
@media (min-width: 560px) {.page-main {
    padding: 0 16px 22px;
  }
.hero-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
.synopsis-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.details-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
.timeline-thread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }
.timeline-thread::before {
    display: none;
  }
.timeline-node {
    padding-left: 20px;
  }
.timeline-pin {
    left: 0;
  }
.episodes-scroll {
    grid-auto-columns: minmax(160px, 1fr);
  }
.comments-masonry {
    columns: 2;
  }}
@media (min-width: 860px) {body {
    font-size: 15.5px;
  }
.page-main {
    padding: 0 22px 26px;
  }
.hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-areas:
      "figure player"
      "figure status"
      "figure synopsis"
      "figure details"
      "cast cast";
    column-gap: 18px;
    row-gap: 12px;
    align-items: start;
  }
.hero-figure {
    grid-area: figure;
    border-bottom: none;
    border-right: 1px solid var(--hair);
    padding-right: 18px;
    padding-bottom: 0;
    position: sticky;
    top: 10px;
  }
.poster-frame {
    width: 100%;
    float: none;
    margin: 0 0 12px;
  }
.player-shell {
    grid-area: player;
  }
.status-strip {
    grid-area: status;
  }
.synopsis-panel {
    grid-area: synopsis;
  }
.details-panel {
    grid-area: details;
  }
.cast-panel {
    grid-area: cast;
    border-top: 1px solid var(--hair);
    padding-top: 12px;
  }
.synopsis-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.details-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
.timeline-thread {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
  }
.episodes-scroll {
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: minmax(170px, 1fr);
  }
.comments-masonry {
    columns: 3;
  }
.rec-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
.rec-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }}
@media (min-width: 1100px) {.hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    column-gap: 24px;
  }
.timeline-thread {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
.comments-masonry {
    columns: 4;
  }
.episodes-scroll {
    grid-auto-columns: minmax(180px, 1fr);
  }}
@media (max-width: 559px) {.poster-frame {
    width: 42%;
    margin-right: 10px;
  }
.hero-title {
    font-size: clamp(30px, 10vw, 46px);
  }
.synopsis-body {
    grid-template-columns: minmax(0, 1fr);
  }
.details-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.timeline-thread {
    padding-left: 20px;
  }
.timeline-pin {
    left: -20px;
  }
.episodes-scroll {
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: minmax(140px, 1fr);
  }
.comments-masonry {
    columns: 2;
  }
.rec-grid--four, .rec-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}
@media (max-width: 400px) {.comments-masonry {
    columns: 1;
  }
.rec-grid--four, .rec-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }}

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}
