:root {
  --red-candle: #a8322c;
  --red-deep: #7d1f1c;
  --red-glow: #e07a5f;
  --indigo: #2d3a5c;
  --indigo-deep: #1a2238;
  --indigo-soft: #46527a;
  --sand: #c9b89a;
  --sand-dim: #8d7f68;
  --wood: #231a15;
  --wood-2: #2e231c;
  --wood-3: #3a2c23;
  --ink: #e8e0d2;
  --ink-dim: #b3a892;
  --ink-faint: #7f7666;
  --gold: #b8975a;
  --gold-line: rgba(184, 151, 90, 0.45);
  --hairline: rgba(201, 184, 154, 0.18);
  --font-title: "Songti SC", "STSong", "SimSun", "宋体", serif;
  --font-body: "FangSong", "STFangsong", "仿宋", "Songti SC", serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--wood);
  background-image:
    linear-gradient(180deg, rgba(26, 34, 56, 0.55), rgba(35, 26, 21, 0) 320px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
img {
  display: block;
  max-width: 100%;
}
ul, ol, dl, dd, figure, h1, h2, h3, p {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
a[data-contract="site-name"], a.runtime-category, a.rec-card, a[data-contract="footer-home"], a[data-contract="footer-sitemap"], a.runtime-friend-link {
  text-decoration: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 19, 15, 0.92);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
a[data-contract="site-name"] {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
  color: var(--red-glow);
  text-shadow: 0 0 14px rgba(224, 122, 95, 0.35);
  white-space: nowrap;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-left: auto;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 11px;
  font-size: 13px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(45, 58, 92, 0.32), rgba(26, 34, 56, 0.18));
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
a.runtime-category:hover, a.runtime-category:focus-visible {
  color: var(--sand);
  border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(125, 31, 28, 0.45), rgba(45, 58, 92, 0.3));
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 8px;
}
.block-heading {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--sand);
  padding-left: 12px;
  border-left: 3px solid var(--red-candle);
  margin-bottom: 10px;
  line-height: 1.3;
}
.page-main > section {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.page-main > section:last-child {
  border-bottom: 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
  padding-top: 26px !important;
}
.hero-poster-wrap {
  position: relative;
  align-self: start;
  background: var(--indigo-deep);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.hero-poster-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
}
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(26, 34, 56, 0.62) 0%, rgba(35, 26, 21, 0) 42%),
    radial-gradient(120% 70% at 82% 88%, rgba(168, 50, 44, 0.42), rgba(35, 26, 21, 0) 62%),
    repeating-linear-gradient(115deg, rgba(201, 184, 154, 0.05) 0 2px, transparent 2px 9px);
}
.hero-vertical-title, .hero-vertical-tagline {
  position: absolute;
  top: 14px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-title);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
.hero-vertical-title {
  right: 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--red-glow);
}
.hero-vertical-tagline {
  right: 50px;
  top: 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}
.hero-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hero-title-block {
  border-left: 3px solid var(--red-candle);
  padding-left: 14px;
}
.movie-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.18em;
  color: var(--ink);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(168, 50, 44, 0.45);
}
.movie-tagline {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--sand-dim);
  margin-top: 4px;
}
.player-shell {
  position: relative;
  width: 100%;
  background: #0b0908;
  border: 1px solid var(--hairline);
}
.player-shell video {
  display: block;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: linear-gradient(180deg, rgba(45, 58, 92, 0.35), rgba(17, 12, 9, 0.9));
  border-top: 1px solid var(--hairline);
}
.pc-btn {
  cursor: pointer;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  background: rgba(26, 34, 56, 0.4);
  border: 1px solid var(--hairline);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.pc-btn:hover {
  color: var(--sand);
  border-color: var(--gold-line);
}
.pc-btn.is-active {
  color: #f3e6d4;
  border-color: var(--red-candle);
  background: rgba(125, 31, 28, 0.55);
}
.pc-progress {
  flex: 1 1 160px;
  min-width: 100px;
  height: 4px;
  appearance: none;
  background: rgba(201, 184, 154, 0.2);
  border: 0;
  cursor: pointer;
}
.pc-progress::-webkit-slider-thumb, .pc-volume::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 14px;
  background: var(--red-glow);
  border: 0;
  cursor: pointer;
}
.pc-progress::-moz-range-thumb, .pc-volume::-moz-range-thumb {
  width: 9px;
  height: 14px;
  background: var(--red-glow);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.pc-volume {
  flex: 0 1 84px;
  min-width: 60px;
  height: 4px;
  appearance: none;
  background: rgba(201, 184, 154, 0.2);
  border: 0;
  cursor: pointer;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 7px 12px;
  border-left: 3px solid var(--indigo-soft);
  background: linear-gradient(90deg, rgba(45, 58, 92, 0.32), rgba(45, 58, 92, 0));
}
.es-key {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
.es-value {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--red-glow);
}
.cast-block {
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.cast-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--red-deep) transparent;
}
.cast-strip::-webkit-scrollbar {
  height: 6px;
}
.cast-strip::-webkit-scrollbar-thumb {
  background: var(--red-deep);
}
.cast-card {
  flex: 0 0 auto;
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cast-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--hairline);
  background: var(--indigo-deep);
  overflow: hidden;
}
.cast-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.86);
  transition: filter 0.2s;
}
.cast-card:hover .cast-figure img {
  filter: saturate(1) brightness(1);
}
.cast-role-vertical {
  position: absolute;
  top: 5px;
  right: 4px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sand);
  padding: 3px 2px;
  background: rgba(26, 19, 15, 0.62);
  border-left: 1px solid var(--gold-line);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.cast-name {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.synopsis-block {
  margin-top: 4px;
}
.synopsis-para {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-dim);
  text-indent: 2em;
  margin-bottom: 7px;
}
.synopsis-para:last-child {
  margin-bottom: 0;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(46, 35, 28, 0.72);
}
.detail-key {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.detail-value {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--sand);
  min-width: 0;
  overflow-wrap: anywhere;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(46, 35, 28, 0.9), rgba(35, 26, 21, 0.9));
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--red-deep);
  transition: border-color 0.18s, background 0.18s;
}
.episode-card:hover {
  border-top-color: var(--red-glow);
  background: linear-gradient(180deg, rgba(58, 44, 35, 0.95), rgba(45, 58, 92, 0.3));
}
.ep-number {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--red-glow);
}
.ep-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.35;
}
.ep-summary {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.65em);
}
.ep-duration {
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--sand-dim);
}
.timeline-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 14px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) transparent;
}
.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-line);
}
.timeline-node {
  flex: 1 0 auto;
  min-width: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
}
.tl-timecode {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red-glow);
  white-space: nowrap;
}
.tl-thread {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold-line);
}
.tl-thread::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--red-candle);
  box-shadow: 0 0 8px rgba(224, 122, 95, 0.7);
}
.tl-label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.comment-columns {
  column-count: 2;
  column-gap: 20px;
}
.comment-item {
  break-inside: avoid;
  display: flex;
  gap: 9px;
  padding: 9px 11px;
  margin-bottom: 7px;
  background: rgba(46, 35, 28, 0.55);
  border-left: 2px solid rgba(45, 58, 92, 0.85);
}
.comment-item:nth-child(even) {
  background: rgba(45, 58, 92, 0.3);
  border-left-color: rgba(168, 50, 44, 0.75);
}
.comment-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background:
    radial-gradient(circle at 34% 30%, rgba(224, 122, 95, 0.55), rgba(26, 34, 56, 0.9) 68%),
    var(--indigo-deep);
  border: 1px solid var(--hairline);
}
.comment-body {
  min-width: 0;
}
.comment-nick {
  font-family: var(--font-title);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 2px;
}
.comment-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
  overflow-wrap: anywhere;
}
.rec-grid {
  display: grid;
  gap: 8px;
}
.rec-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rec-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  background: rgba(46, 35, 28, 0.6);
  border: 1px solid var(--hairline);
  border-bottom: 2px solid var(--gold-line);
  transition: background 0.18s, border-color 0.18s;
}
a.rec-card:hover {
  background: rgba(45, 58, 92, 0.42);
  border-bottom-color: var(--red-glow);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.86);
  transition: filter 0.2s;
}
a.rec-card:hover img {
  filter: saturate(1) brightness(0.98);
}
.rec-name {
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-blurb {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 18px 26px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(26, 34, 56, 0.28), rgba(17, 12, 9, 0));
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--sand-dim);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--red-glow);
  border-bottom-color: var(--red-candle);
}
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 900px;
  margin-bottom: 14px;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 13px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.friend-links-label {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--sand);
  margin-right: 4px;
}
a.runtime-friend-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  transition: color 0.18s;
}
a.runtime-friend-link:hover {
  color: var(--red-glow);
}
body.lights-off .page-main > section:not(.hero), body.lights-off .site-footer {
  opacity: 0.28;
  transition: opacity 0.3s;
}
body.theater-mode .hero {
  grid-template-columns: minmax(0, 1fr);
}
body.theater-mode .hero-poster-wrap {
  max-width: 420px;
}
body.theater-mode .player-shell {
  box-shadow: 0 0 0 1px var(--red-deep), 0 0 40px rgba(168, 50, 44, 0.35);
}
.player-shell:fullscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}
.player-shell:fullscreen video {
  max-height: calc(100% - 44px);
}
@media (max-width: 980px) {.hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
.hero-poster-wrap {
    max-width: 340px;
  }
.hero-vertical-title {
    font-size: 22px;
  }
.episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.rec-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }}
@media (max-width: 720px) {body {
    font-size: 14px;
  }
.page-main {
    padding: 0 12px 6px;
  }
.header-inner {
    padding: 8px 12px;
    gap: 10px;
  }
.movie-title {
    font-size: 24px;
  }
.hero-poster-wrap {
    max-width: 280px;
  }
.hero-vertical-title {
    font-size: 19px;
    right: 9px;
  }
.hero-vertical-tagline {
    right: 40px;
    font-size: 11px;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-columns {
    column-count: 1;
  }
.rec-grid-4, .rec-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.timeline-node {
    min-width: 138px;
  }}
@media (max-width: 460px) {.rec-grid-4, .rec-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
.details-list {
    grid-template-columns: minmax(0, 1fr);
  }
.player-controls {
    gap: 5px;
    padding: 6px 7px;
  }
.pc-btn {
    padding: 3px 7px;
    font-size: 11.5px;
  }
.pc-progress {
    flex: 1 1 100%;
    order: -1;
  }}

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}
