*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --wood-deep: #2b1a12;
  --wood-mid: #3d2417;
  --wood-warm: #4a2c1b;
  --cinnabar: #8f2b21;
  --cinnabar-bright: #a8331f;
  --cinnabar-faded: #7a3428;
  --silk-faded: #a8462f;
  --ink: #1c1310;
  --paper: #e8ddc9;
  --paper-dim: #cdbfa6;
  --stone: #6b6f70;
  --stone-cold: #4e5557;
  --gold-thin: #b08a52;
  --line-red: #9c3a28;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--wood-deep);
  background-image:
    linear-gradient(180deg, #35201400 0%, #1a0f09 100%),
    repeating-linear-gradient(90deg, rgba(60, 36, 22, 0.4) 0px, rgba(46, 27, 16, 0.4) 3px, rgba(58, 34, 20, 0.35) 6px);
  color: var(--paper-dim);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
a { color: var(--paper-dim); text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 {
  font-family: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", "STSong", serif;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.site-header {
  background: linear-gradient(180deg, #241209 0%, #180c06 100%);
  border-bottom: 2px solid var(--line-red);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-family: "Songti SC", "SimSun", "Source Han Serif SC", serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--cinnabar-faded);
  text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 12px rgba(143, 43, 33, 0.5);
  border-left: 4px solid var(--cinnabar);
  padding-left: 8px;
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
a.runtime-category {
  white-space: nowrap;
  font-size: 12px;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid rgba(176, 138, 82, 0.35);
  background: rgba(74, 44, 27, 0.5);
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
a.runtime-category:hover {
  background: var(--cinnabar);
  color: #f2e6d2;
  border-color: var(--cinnabar-bright);
}
.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px 28px;
  display: block;
}
.section-heading {
  font-size: 16px;
  color: var(--paper);
  padding: 0 0 5px 9px;
  margin-bottom: 8px;
  border-left: 5px solid var(--cinnabar);
  border-bottom: 1px solid rgba(156, 58, 40, 0.4);
  letter-spacing: 0.12em;
  text-shadow: 0 1px 0 #000;
}
.hero-confrontation {
  background:
    linear-gradient(180deg, rgba(61, 36, 23, 0.96) 0%, rgba(38, 21, 13, 0.98) 100%);
  border: 1px solid rgba(176, 138, 82, 0.28);
  border-top: 3px solid var(--cinnabar);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(0, 0, 0, 0.4);
  padding: 12px;
  margin-bottom: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
}
.hero-visual {
  position: relative;
  grid-column: 1;
}
.poster-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(176, 138, 82, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.main-poster {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06) brightness(0.92);
}
.hero-silk {
  position: absolute;
  top: -14%;
  right: -22%;
  width: 78%;
  height: 128%;
  background: linear-gradient(200deg, rgba(168, 70, 47, 0.62) 0%, rgba(122, 52, 40, 0.42) 45%, rgba(90, 38, 30, 0.18) 100%);
  transform: rotate(24deg);
  transform-origin: top right;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}
.hero-title-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 26px 10px 9px;
  background: linear-gradient(180deg, rgba(20, 10, 6, 0) 0%, rgba(20, 10, 6, 0.86) 45%, rgba(20, 10, 6, 0.96) 100%);
  pointer-events: none;
}
.movie-title {
  font-size: 24px;
  color: #f5e9d4;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px #000, 0 0 18px rgba(143, 43, 33, 0.85);
  line-height: 1.2;
}
.movie-tagline {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--cinnabar-bright);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px #000;
}
.hero-player {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.main-player {
  display: block;
  background: #000;
  border: 1px solid rgba(176, 138, 82, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ctrl-btn {
  font-size: 11.5px;
  color: var(--paper-dim);
  padding: 4px 9px;
  border: 1px solid rgba(176, 138, 82, 0.32);
  background: rgba(43, 26, 18, 0.85);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ctrl-btn:hover { background: rgba(90, 44, 30, 0.9); color: #f0e2ca; }
.ctrl-play { border-color: var(--cinnabar); color: #e8c7b4; }
.ctrl-play.is-playing { background: var(--cinnabar); color: #fff3e4; }
.ctrl-btn.is-active, .ctrl-btn.is-on { background: var(--cinnabar); color: #fff3e4; border-color: var(--cinnabar-bright); }
.ctrl-volume.is-low { color: var(--stone); }
.ctrl-mute.is-muted { background: #3a3f40; color: #cfd6d6; border-color: var(--stone-cold); }
.overview-info {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
  border-top: 1px dashed rgba(176, 138, 82, 0.3);
  padding-top: 12px;
}
.cast-block { grid-column: 1; }
.synopsis-block { grid-column: 2; grid-row: 1 / span 3; }
.episode-status-block { grid-column: 1; }
.details-block { grid-column: 1; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.cast-card {
  position: relative;
  background: linear-gradient(180deg, rgba(74, 44, 27, 0.85) 0%, rgba(43, 26, 18, 0.95) 100%);
  border: 1px solid rgba(176, 138, 82, 0.3);
  border-bottom: 3px solid var(--cinnabar-faded);
  padding: 14px 6px;
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.cast-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(176, 138, 82, 0.16) 0%, rgba(0, 0, 0, 0) 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 2px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 4px);
  pointer-events: none;
}
.cast-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--paper);
  align-self: flex-end;
  text-shadow: 0 1px 0 #000;
}
.synopsis-block .synopsis-p {
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--paper-dim);
  text-indent: 2em;
  margin-bottom: 5px;
}
.synopsis-block .synopsis-p:last-child { margin-bottom: 0; }
.status-line {
  font-size: 12.5px;
  color: #e0cbb0;
  background: rgba(74, 44, 27, 0.6);
  border-left: 3px solid var(--cinnabar);
  padding: 5px 9px;
  letter-spacing: 0.06em;
}
.details-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  font-size: 12px;
  border-top: 1px solid rgba(176, 138, 82, 0.22);
}
.detail-key, .detail-val {
  padding: 3px 6px;
  border-bottom: 1px solid rgba(176, 138, 82, 0.16);
  line-height: 1.5;
}
.detail-key {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(60, 35, 22, 0.55);
  white-space: nowrap;
}
.detail-val { color: var(--paper-dim); }
.timeline-section {
  margin-bottom: 16px;
}
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 4px 16px;
  background:
    linear-gradient(180deg, rgba(46, 27, 16, 0.6) 0%, rgba(30, 17, 10, 0.75) 100%),
    repeating-linear-gradient(90deg, rgba(107, 111, 112, 0.07) 0px, rgba(107, 111, 112, 0.07) 24px, rgba(0, 0, 0, 0) 24px, rgba(0, 0, 0, 0) 48px);
  border-top: 1px solid rgba(156, 58, 40, 0.35);
  border-bottom: 1px solid rgba(156, 58, 40, 0.35);
  scrollbar-width: thin;
  scrollbar-color: var(--cinnabar-faded) rgba(0, 0, 0, 0.3);
  margin-bottom: 22px;
}
.timeline-scroll::-webkit-scrollbar { height: 7px; }
.timeline-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--cinnabar-faded); }
.timeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
  padding: 0 6px;
}
.timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  padding: 10px 12px 12px 14px;
  background: linear-gradient(180deg, rgba(232, 221, 201, 0.06) 0%, rgba(232, 221, 201, 0.02) 100%);
  border-top: 2px solid var(--line-red);
  cursor: pointer;
  transition: background 0.15s;
}
.timeline-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 28px;
  height: 1px;
  background: var(--line-red);
  z-index: 1;
}
.timeline-node:last-child::after { display: none; }
.timeline-node:hover { background: rgba(143, 43, 33, 0.18); }
.node-timecode {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--gold-thin);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.node-label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--paper-dim);
}
.timeline-node-current {
  background: linear-gradient(180deg, rgba(168, 70, 47, 0.34) 0%, rgba(122, 52, 40, 0.18) 100%);
  border-top: 2px solid var(--cinnabar-bright);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 92% 100%, 84% calc(100% - 6px), 76% 100%, 68% calc(100% - 7px), 60% 100%, 52% calc(100% - 5px), 44% 100%, 36% calc(100% - 8px), 28% 100%, 20% calc(100% - 5px), 12% 100%, 4% calc(100% - 8px), 0 100%);
}
.timeline-node-current .node-timecode { color: #f0d9c4; }
.timeline-node-current .node-label { color: #f2e6d2; }
.timeline-node.is-active {
  background: linear-gradient(180deg, rgba(200, 80, 50, 0.4) 0%, rgba(140, 50, 36, 0.2) 100%);
}
.episodes-section { margin-bottom: 16px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.episode-card {
  position: relative;
  background: linear-gradient(180deg, rgba(56, 33, 21, 0.92) 0%, rgba(34, 20, 13, 0.95) 100%);
  border: 1px solid rgba(176, 138, 82, 0.24);
  padding: 9px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.ep-red-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar-bright) 0%, var(--cinnabar-faded) 60%, rgba(122, 52, 40, 0.3) 100%);
}
.ep-title {
  font-size: 13px;
  color: var(--paper);
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding-top: 2px;
  text-shadow: 0 1px 0 #000;
}
.ep-summary {
  font-size: 11.5px;
  line-height: 1.55;
  color: #b9a98f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-duration {
  font-size: 10.5px;
  color: var(--stone);
  letter-spacing: 0.08em;
  border-top: 1px dashed rgba(176, 138, 82, 0.2);
  padding-top: 4px;
  margin-top: 2px;
  align-self: flex-start;
}
.episode-card-current {
  border-color: var(--cinnabar);
  background: linear-gradient(180deg, rgba(90, 40, 26, 0.95) 0%, rgba(46, 24, 15, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(168, 51, 31, 0.5), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.episode-card-current .ep-red-edge {
  height: 4px;
  background: var(--cinnabar-bright);
}
.episode-card-current .ep-title { color: #f5e2cc; }
.comments-section { margin-bottom: 16px; }
.comments-stagger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  align-items: start;
}
.comment-card {
  display: flex;
  gap: 8px;
  background: rgba(43, 26, 18, 0.62);
  border-left: 3px solid rgba(156, 58, 40, 0.55);
  padding: 7px 10px 7px 8px;
}
.comment-card-alt {
  border-left-color: rgba(107, 111, 112, 0.6);
  background: rgba(38, 30, 24, 0.6);
  transform: translateY(14px);
}
.comment-avatar {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cinnabar-bright);
  box-shadow: 0 0 0 2px rgba(168, 51, 31, 0.25);
}
.comment-card-alt .comment-avatar {
  background: var(--stone);
  box-shadow: 0 0 0 2px rgba(107, 111, 112, 0.25);
}
.comment-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comment-nick {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-thin);
  letter-spacing: 0.06em;
}
.comment-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: #b7a68c;
}
.rec-region { margin-bottom: 16px; }
.rec-heading {
  font-size: 14px;
  color: var(--paper);
  letter-spacing: 0.1em;
  padding: 0 0 4px 8px;
  margin-bottom: 7px;
  border-left: 4px solid var(--cinnabar-faded);
  border-bottom: 1px solid rgba(156, 58, 40, 0.3);
}
.rec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: start;
}
a.rec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(46, 27, 16, 0.66);
  border: 1px solid rgba(176, 138, 82, 0.22);
  padding: 6px 8px 7px;
  color: var(--paper-dim);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
a.rec-item:hover {
  background: rgba(90, 44, 30, 0.72);
  border-color: var(--cinnabar);
}
[data-runtime="recommendation"] img.rec-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.5);
  filter: saturate(0.8) brightness(0.9);
  display: block;
}
.rec-name {
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #e6d5bb;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: #a4947b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  background: linear-gradient(180deg, #1a0e07 0%, #120a05 100%);
  border-top: 2px solid var(--line-red);
  padding: 14px 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: #8d7c63;
  max-width: 780px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  color: var(--gold-thin);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.08em;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #e6d5bb; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(176, 138, 82, 0.25);
}
.friend-label {
  font-size: 11.5px;
  color: var(--cinnabar-faded);
  letter-spacing: 0.16em;
  font-weight: 700;
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: #9c8b72;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(176, 138, 82, 0.22);
  padding-bottom: 1px;
}
a.runtime-friend-link:hover { color: #e6d5bb; border-bottom-color: var(--cinnabar); }
body.lights-off .page-main { filter: brightness(0.45) contrast(1.1); }
body.lights-off .hero-player { filter: brightness(2.1) contrast(1.05); }
body.theater-mode .hero-confrontation { grid-template-columns: minmax(0, 1fr); }
body.theater-mode .hero-visual { grid-column: 1; }
body.theater-mode .hero-player { grid-column: 1; }
body.theater-mode .overview-info { grid-template-columns: minmax(0, 1fr); }
body.theater-mode .overview-info > * { grid-column: 1; grid-row: auto; }
.ctrl-progress.is-active, .ctrl-speed.is-active, .ctrl-pip.is-on, .ctrl-fullscreen.is-on, .ctrl-theater.is-on, .ctrl-light.is-on { background: var(--cinnabar); color: #fff3e4; border-color: var(--cinnabar-bright); }
@media (max-width: 940px) {.hero-confrontation {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }
.overview-info {
    grid-template-columns: minmax(0, 1fr);
  }
.cast-block, .synopsis-block, .episode-status-block, .details-block {
    grid-column: 1;
    grid-row: auto;
  }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 680px) {body { font-size: 13px; }
.header-inner { padding: 7px 10px; gap: 8px; }
a[data-contract="site-name"] { font-size: 17px; }
.page-main { padding: 10px 10px 22px; }
.hero-confrontation {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
    gap: 10px;
  }
.hero-visual { grid-column: 1; }
.hero-player { grid-column: 1; }
.movie-title { font-size: 20px; }
.cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cast-card { padding: 10px 5px; min-height: 82px; }
.cast-name { font-size: 12px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comments-stagger { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.comment-card-alt { transform: none; }
.rec-list { grid-template-columns: minmax(0, 1fr); }
.timeline-node { width: 132px; padding: 9px 10px 11px 12px; }
.details-list { grid-template-columns: auto minmax(0, 1fr); font-size: 11.5px; }}
@media (max-width: 420px) {.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ctrl-btn { font-size: 11px; padding: 4px 7px; }
.movie-tagline { font-size: 10.5px; }}

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}
