*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
}
:root {
  --rust: #8a3a24;
  --rust-bright: #b4543a;
  --deep: #0d1b26;
  --deep-2: #12242f;
  --deep-3: #1b303c;
  --paper: #d8c9a3;
  --paper-dim: #b3a684;
  --ink: #e8e0cc;
  --ink-dim: #a99f88;
  --line: rgba(216, 201, 163, 0.18);
  --line-strong: rgba(216, 201, 163, 0.32);
  --warm: #e0a04a;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "Noto Sans CJK SC", sans-serif;
}
body {
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(138, 58, 36, 0.28), transparent 60%),
    radial-gradient(900px 600px at 92% 4%, rgba(13, 27, 38, 0.9), transparent 65%),
    linear-gradient(180deg, #0a141c 0%, #0c1720 40%, #0a131b 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 20, 28, 0.96), rgba(10, 20, 28, 0.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 8px 16px;
  max-width: 1240px;
  margin: 0 auto;
}
a[data-contract="site-name"].site-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(224, 160, 74, 0.25);
}
a[data-contract="site-name"].site-brand:hover {
  color: var(--warm);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
a.nav-item {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
a.nav-item:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(138, 58, 36, 0.18);
}
.categories-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  padding: 0 16px 8px;
  max-width: 1240px;
  margin: 0 auto;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 400;
  color: var(--paper-dim);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 48, 60, 0.5);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
a.runtime-category:hover {
  color: var(--deep);
  background: var(--warm);
  border-color: var(--warm);
}
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.block-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  padding-left: 10px;
  border-left: 3px solid var(--rust);
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 20px;
  padding: 22px 0 4px;
  margin-bottom: 10px;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: -6% -4% 0 -4%;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(216, 201, 163, 0.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(65deg, rgba(216, 201, 163, 0.04) 0 1px, transparent 1px 58px),
    radial-gradient(70% 80% at 78% 30%, rgba(138, 58, 36, 0.22), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}
.hero-media {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: start;
  width: 100%;
  max-width: 340px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(27, 48, 60, 0.75), rgba(13, 27, 38, 0.6));
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(13, 27, 38, 0.55)),
    radial-gradient(60% 45% at 50% 18%, rgba(224, 160, 74, 0.16), transparent 70%);
  mix-blend-mode: screen;
}
.hero-poster {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}
.hero-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 0;
}
.hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--paper);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.8), 0 0 40px rgba(180, 84, 58, 0.25);
}
.hero-tagline {
  max-width: 34em;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rust-bright);
  border-left: 2px solid rgba(180, 84, 58, 0.6);
  padding-left: 10px;
}
.hero-seo {
  max-width: 46em;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.cast-block { margin-top: 2px; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  align-items: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  background: rgba(18, 36, 47, 0.62);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.cast-card:hover {
  border-color: var(--line-strong);
  background: rgba(27, 48, 60, 0.8);
}
.cast-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(224, 160, 74, 0.5), transparent 58%),
    linear-gradient(155deg, #2b4552, #14242e);
  border: 1px solid rgba(216, 201, 163, 0.28);
  margin-bottom: 3px;
}
.cast-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.cast-role {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.synopsis-block { margin-top: 2px; }
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 8px 20px;
  align-items: start;
}
.synopsis-para {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-dim);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.episode-status-block, .details-block { margin-top: 2px; }
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-item {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  background: rgba(13, 27, 38, 0.6);
  letter-spacing: 0.04em;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(13, 27, 38, 0.85);
}
.detail-key {
  flex: 0 0 auto;
  min-width: 5em;
  font-size: 12px;
  font-weight: 400;
  color: var(--rust-bright);
  letter-spacing: 0.06em;
}
.detail-value {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
}
.player-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-shell {
  position: relative;
  width: 100%;
  padding: 6px;
  background: linear-gradient(150deg, rgba(27, 48, 60, 0.9), rgba(10, 20, 28, 0.9));
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.9);
}
.player-shell video, .player-shell [data-contract="player"] {
  display: block;
  width: 100%;
  height: auto;
  background: #05090d;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ctrl-btn {
  appearance: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  padding: 4px 11px;
  background: rgba(18, 36, 47, 0.8);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ctrl-btn:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(138, 58, 36, 0.35);
}
.ctrl-btn.is-active {
  color: var(--deep);
  background: var(--warm);
  border-color: var(--warm);
}
.ctrl-range {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 120px;
  min-width: 90px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}
.ctrl-range::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--deep-3));
  border: 1px solid var(--line);
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--warm);
  border: 1px solid rgba(10, 20, 28, 0.9);
}
.ctrl-range::-moz-range-track {
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--deep-3));
  border: 1px solid var(--line);
}
.ctrl-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warm);
  border: 1px solid rgba(10, 20, 28, 0.9);
}
.player .progress { color: var(--warm); }
.player .volume, .player .speed, .player .timeupdate { color: var(--paper-dim); }
.player .play.is-active, .player .pause.is-active, .player .mute.is-active, .player .input.is-active, .player .click.is-active, .player .pip.is-active, .player .fullscreen.is-active, .player .theater.is-active, .player .light.is-active { color: var(--deep); background: var(--warm); border-color: var(--warm); }
.player .x { color: var(--rust-bright); }
body.lights-off { background: #04080b; }
body.lights-off .page-main { opacity: 0.92; }
body.lights-off .player-shell { box-shadow: 0 0 0 1px rgba(224, 160, 74, 0.35), 0 30px 70px -30px #000; }
body.theater-mode .page-main { max-width: 100%; padding-left: 12px; padding-right: 12px; }
body.theater-mode .player-shell { border-color: rgba(224, 160, 74, 0.45); }
.timeline-section {
  position: relative;
  margin-top: 6px;
}
.timeline-scroll {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 12px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--rust) rgba(13, 27, 38, 0.6);
  background:
    linear-gradient(180deg, transparent 46%, rgba(216, 201, 163, 0.14) 46%, rgba(216, 201, 163, 0.14) 47%, transparent 47%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.timeline-scroll::-webkit-scrollbar { height: 6px; }
.timeline-scroll::-webkit-scrollbar-track { background: rgba(13, 27, 38, 0.7); }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--rust); }
.timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 12px;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 37px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(216, 201, 163, 0.06));
}
.timeline-node:first-child::before { left: 50%; width: 50%; }
.node-plate {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: linear-gradient(160deg, #2b4552, #14242e 70%);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(216, 201, 163, 0.16), 0 6px 14px -8px rgba(0, 0, 0, 0.9);
}
.node-plate::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(216, 201, 163, 0.12);
  pointer-events: none;
}
.node-label {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 24em;
}
.timeline-node.is-current .node-plate {
  color: var(--deep);
  background: linear-gradient(160deg, #f0b45c, #b4543a);
  border-color: var(--warm);
  box-shadow: 0 0 18px -2px rgba(224, 160, 74, 0.5);
}
.timeline-node.is-current .node-label {
  color: var(--paper);
  font-weight: 500;
}
.timeline-node.is-current::before {
  background: linear-gradient(90deg, var(--warm), rgba(224, 160, 74, 0.1));
  height: 2px;
}
.episodes-section { margin-top: 4px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  background: rgba(18, 36, 47, 0.5);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(138, 58, 36, 0.55);
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.episode-card:hover {
  background: rgba(27, 48, 60, 0.78);
  border-color: var(--line-strong);
  border-left-color: var(--rust-bright);
}
.episode-card.is-current {
  border-left-color: var(--warm);
  background: rgba(138, 58, 36, 0.2);
}
.episode-card.is-current .episode-number { color: var(--warm); }
.episode-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rust-bright);
  white-space: nowrap;
  padding-top: 1px;
  min-width: 3.6em;
}
.episode-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.episode-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  line-height: 1.35;
}
.episode-summary {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-duration {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(169, 159, 136, 0.75);
}
.comments-section { margin-top: 4px; }
.comment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 8px;
  align-items: start;
}
.comment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px;
  background: rgba(13, 27, 38, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(180, 84, 58, 0.7), transparent 60%),
    linear-gradient(150deg, #2b4552, #14242e);
  border: 1px solid rgba(216, 201, 163, 0.25);
}
.comment-nickname {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.comment-text {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-region {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.region-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 8px;
}
.region-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 8px;
  align-items: start;
}
.region-item {
  min-width: 0;
  display: flex;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 6px;
  color: var(--ink-dim);
  text-decoration: none;
  background: rgba(18, 36, 47, 0.55);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
a[data-runtime="recommendation"]:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(27, 48, 60, 0.85);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.92);
  border: 1px solid rgba(216, 201, 163, 0.1);
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  line-height: 1.4;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  margin-top: 26px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 28, 0.2), rgba(6, 12, 17, 0.9));
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.friend-links-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rust-bright);
  margin-right: 2px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
a.runtime-friend-link:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(138, 58, 36, 0.25);
}
.footer-disclaimer {
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(169, 159, 136, 0.7);
  max-width: 70em;
}
@media (max-width: 900px) {.hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
.hero-media {
    max-width: 260px;
    justify-self: start;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }}
@media (max-width: 620px) {body { font-size: 13.5px; }
.page-main {
    padding: 16px 12px 6px;
    gap: 18px;
  }
.header-bar { padding: 7px 12px; }
.categories-shell { padding: 0 12px 7px; }
a[data-contract="site-name"].site-brand { font-size: 15px; }
.hero-media { max-width: 210px; padding: 6px; }
.hero-tagline { font-size: 13px; }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.synopsis-body { grid-template-columns: minmax(0, 1fr); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.detail-row { padding: 4px 9px; }
.detail-key { min-width: 4.4em; }
.comment-list { grid-template-columns: minmax(0, 1fr); }
.region-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
.timeline-node { width: 156px; }
.player-controls { gap: 5px; }
.ctrl-btn { padding: 4px 9px; font-size: 11.5px; }
.ctrl-range { flex: 1 1 100%; min-width: 0; }
.site-footer { padding: 14px 12px; }}
@media (max-width: 420px) {.hero-media { max-width: 100%; }
.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.region-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-node { width: 144px; }}

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}
