*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:root {
  --bg-deep: #2a1216;
  --bg-panel: #3a1a1e;
  --bg-panel-2: #451f23;
  --ink: #f4e8dc;
  --ink-soft: #d8c2b4;
  --peach: #f5a98b;
  --peach-hi: #ffc2a3;
  --peach-deep: #d96f52;
  --velvet: #7a1f2b;
  --line: rgba(245, 169, 139, 0.28);
  --slope: 14px;
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 90% at 15% -10%, rgba(217, 111, 82, 0.22), transparent 60%),
    radial-gradient(110% 80% at 100% 0%, rgba(122, 31, 43, 0.55), transparent 62%),
    linear-gradient(180deg, #2c1317 0%, #231014 55%, #1c0d11 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  min-height: 100%;
}
body.lights-off { background: #0d0507; }
body.lights-off .overview-shell, body.lights-off .timeline-section, body.lights-off .episodes-section, body.lights-off .comments-section, body.lights-off .recommend-region { filter: brightness(0.62) saturate(0.9); }
body.theater-mode .player-wrapper { box-shadow: 0 0 0 3px var(--peach-deep), 0 0 60px rgba(217, 111, 82, 0.5); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(42, 18, 22, 0.96), rgba(42, 18, 22, 0.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 9px 16px;
  max-width: 1240px;
  margin: 0 auto;
}
.site-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--peach-hi);
  text-decoration: none;
  border-left: 3px solid var(--peach-deep);
  padding-left: 9px;
  white-space: nowrap;
}
.site-brand:hover { color: #fff; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.runtime-category {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 3px 11px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: rgba(245, 169, 139, 0.06);
  transition: background 0.18s, color 0.18s;
}
.runtime-category:hover, .runtime-category:focus-visible {
  color: #2a1216;
  background: var(--peach);
}
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--peach-hi);
  padding-left: 11px;
  border-left: 4px solid var(--peach-deep);
  margin-bottom: 10px;
}
.block-heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--peach);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.movie-overview { display: block; }
.overview-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 20px;
  align-items: start;
  padding: 16px;
  background:
    linear-gradient(155deg, rgba(122, 31, 43, 0.42), rgba(42, 18, 22, 0.9)),
    repeating-linear-gradient(102deg, rgba(255, 194, 163, 0.05) 0 2px, transparent 2px 9px);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
}
.poster-column { min-width: 0; }
.poster-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
  overflow: hidden;
  background: #1c0d11;
}
.poster-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 13, 17, 0.72));
  pointer-events: none;
}
.poster-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}
.overview-info { min-width: 0; }
.movie-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.06em;
  line-height: 1.22;
  color: var(--ink);
}
.movie-tagline {
  font-size: 13.5px;
  color: var(--peach);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.movie-tagline::before { content: "／ "; color: var(--peach-deep); }
.player-wrapper {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #15090c;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
}
.main-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #15090c;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  background: linear-gradient(180deg, rgba(69, 31, 35, 0.96), rgba(42, 18, 22, 0.96));
  border-top: 1px solid var(--line);
}
.ctrl {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: rgba(245, 169, 139, 0.07);
  border: 1px solid var(--line);
  padding: 4px 9px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
  white-space: nowrap;
}
.ctrl:hover { color: #2a1216; background: var(--peach-hi); border-color: var(--peach-hi); }
.ctrl.is-active, .ctrl.play.is-active, .ctrl.mute.is-active, .ctrl.light.is-active, .ctrl.theater.is-active, .ctrl.pip.is-active, .ctrl.fullscreen.is-active {
  color: #2a1216;
  background: var(--peach-deep);
  border-color: var(--peach-hi);
}
.ctrl-play { font-weight: 700; }
.ctrl-progress { flex: 1 1 160px; min-width: 90px; }
.ctrl-volume { flex: 0 1 90px; min-width: 66px; }
.ctrl-progress, .ctrl-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  clip-path: none;
}
.ctrl-progress::-webkit-slider-runnable-track, .ctrl-volume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--peach-deep), rgba(245, 169, 139, 0.18));
}
.ctrl-progress::-webkit-slider-thumb, .ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--peach-hi);
  border: 1px solid #2a1216;
}
.ctrl-progress::-moz-range-track, .ctrl-volume::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--peach-deep), rgba(245, 169, 139, 0.18));
}
.ctrl-progress::-moz-range-thumb, .ctrl-volume::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--peach-hi);
  border: 1px solid #2a1216;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.status-chip {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.status-current {
  background: var(--peach-deep);
  color: #22100f;
  font-weight: 700;
  border-color: var(--peach-hi);
}
.status-total { color: var(--ink-soft); background: rgba(245, 169, 139, 0.06); }
.cast-block, .synopsis-block, .details-block { margin-top: 14px; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 6px 10px;
}
.cast-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(245, 169, 139, 0.05);
  border-left: 2px solid var(--peach-deep);
  min-width: 0;
}
.cast-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background:
    radial-gradient(circle at 34% 30%, var(--peach-hi), var(--peach-deep) 62%, #6d2a22 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.cast-name {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.synopsis-para {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.72;
  text-indent: 2em;
  margin-bottom: 6px;
}
.synopsis-para:last-child { margin-bottom: 0; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 14px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(245, 169, 139, 0.2);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--peach);
  white-space: nowrap;
}
.detail-value {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.timeline-section {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(58, 26, 30, 0.72), rgba(40, 18, 22, 0.72));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  counter-reset: tl;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 10px;
  border-left: 5px solid var(--peach-deep);
  background: linear-gradient(90deg, rgba(217, 111, 82, 0.24), rgba(217, 111, 82, 0.02));
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: border-color 0.2s, background 0.2s, padding-left 0.2s;
}
.timeline-timecode {
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--peach-hi);
  white-space: nowrap;
}
.timeline-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  min-width: 0;
}
.timeline-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--peach-deep);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  vertical-align: 1px;
}
.timeline-item:hover {
  border-left-color: var(--peach-hi);
  background: linear-gradient(90deg, rgba(255, 194, 163, 0.4), rgba(217, 111, 82, 0.06));
  padding-left: 16px;
}
.timeline-item:hover .timeline-label { color: var(--ink); }
.timeline-1997 { --c1: #a83a3a; --c2: #d96f52; border-left-color: var(--c1); }
.timeline-2003 { --c1: #8d2440; --c2: #c2506a; border-left-color: var(--c1); }
.timeline-w1 { --c1: #c96b4e; --c2: #f5a98b; border-left-color: var(--c1); }
.timeline-w3 { --c1: #d97f5e; --c2: #ffc2a3; border-left-color: var(--c1); }
.timeline-w6 { --c1: #b8523f; --c2: #f08a6c; border-left-color: var(--c1); }
.timeline-w9 { --c1: #9c3348; --c2: #e07a86; border-left-color: var(--c1); }
.timeline-w12 { --c1: #c05a3c; --c2: #ffb98f; border-left-color: var(--c1); }
.timeline-item[class*="timeline-"] {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c2, #d96f52) 30%, transparent), rgba(217, 111, 82, 0.02));
}
.timeline-item[class*="timeline-"]:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c2, #d96f52) 52%, transparent), rgba(217, 111, 82, 0.06));
}
.episodes-section {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(52, 23, 27, 0.7), rgba(36, 16, 20, 0.7));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px 10px;
  background: rgba(245, 169, 139, 0.06);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 0.18s, border-color 0.18s;
}
.episode-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--peach-deep), transparent 78%);
  opacity: 0.6;
}
.episode-card:hover {
  background: rgba(255, 194, 163, 0.14);
  border-color: var(--peach-hi);
}
.episode-number {
  font-family: var(--font-head);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--peach);
}
.episode-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.episode-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 2px;
}
.episode-duration {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--peach-hi);
  padding: 2px 8px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.episode-current {
  background: linear-gradient(150deg, #c2506a, #8d2440 70%);
  border-color: var(--peach-hi);
}
.episode-current .episode-title, .episode-current .episode-summary { color: #ffe9dd; }
.episode-current .episode-number { color: #ffd0b4; }
.episode-current .episode-duration {
  color: #3a1a1e;
  background: var(--peach-hi);
  border-color: var(--peach-hi);
}
.episode-current::after { background: linear-gradient(90deg, #ffe0cd, transparent 80%); opacity: 0.9; }
.comments-section {
  padding: 14px 16px;
  background:
    linear-gradient(140deg, rgba(255, 194, 163, 0.1), rgba(42, 18, 22, 0.55) 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 7px);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.comment-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 74%;
  padding: 7px 12px;
  background: rgba(58, 26, 30, 0.86);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.comment-left { align-self: flex-start; border-left: 3px solid var(--peach-deep); }
.comment-right { align-self: flex-end; border-right: 3px solid var(--peach-hi); }
.comment-nickname {
  font-family: var(--font-head);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--peach);
}
.comment-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}
.recommend-region {
  padding: 12px 14px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slope)), calc(100% - var(--slope)) 100%, 0 100%);
}
.region-1 { background: linear-gradient(160deg, rgba(245, 169, 139, 0.2), rgba(42, 18, 22, 0.7)); }
.region-2 { background: linear-gradient(160deg, rgba(217, 111, 82, 0.24), rgba(42, 18, 22, 0.7)); }
.region-3 { background: linear-gradient(160deg, rgba(194, 80, 106, 0.24), rgba(42, 18, 22, 0.7)); }
.recommend-track {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.recommend-track::-webkit-scrollbar { height: 6px; }
.recommend-track::-webkit-scrollbar-track { background: rgba(245, 169, 139, 0.08); }
.recommend-track::-webkit-scrollbar-thumb { background: var(--peach-deep); }
.recommend-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 168px;
  padding: 7px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(30, 14, 17, 0.82);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  scroll-snap-align: start;
  transition: border-color 0.18s, transform 0.18s;
}
.recommend-card:hover, .recommend-card:focus-visible {
  border-color: var(--peach-hi);
  transform: translateY(-2px);
}
.recommend-card .recommend-pic, .recommend-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}
.recommend-name {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: 6px;
}
.recommend-blurb {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 2px;
}
.site-footer {
  margin-top: 10px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(28, 13, 17, 0.6), rgba(20, 9, 12, 0.96));
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 1240px;
  margin: 0 auto 8px;
}
.footer-nav a {
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--peach);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a[data-contract="footer-home"] { color: var(--peach-hi); }
.footer-nav a[data-contract="footer-sitemap"] { color: var(--peach); }
.footer-nav a:hover { color: #fff; border-bottom-color: var(--peach-hi); }
.footer-disclaimer {
  max-width: 1240px;
  margin: 0 auto 10px;
  line-height: 1.62;
  color: rgba(216, 194, 180, 0.78);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.friend-links-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--peach-deep);
  white-space: nowrap;
}
.runtime-friend-link {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dotted rgba(245, 169, 139, 0.4);
}
.runtime-friend-link:hover { color: var(--peach-hi); border-bottom-color: var(--peach-hi); }
@media (max-width: 900px) {.overview-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
.poster-wrapper { max-width: 240px; }
.comment-item { max-width: 88%; }}
@media (max-width: 640px) {body { font-size: 14.5px; }
.header-inner { padding: 8px 12px; gap: 8px 12px; }
.category-nav { margin-left: 0; }
.page-main { padding: 12px 12px 20px; gap: 16px; }
.overview-shell, .timeline-section, .episodes-section, .comments-section, .recommend-region { padding: 12px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 7px 10px;
  }
.timeline-item:hover { padding-left: 10px; }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.comment-item { max-width: 94%; }
.recommend-card { width: 150px; }
.ctrl { font-size: 11.5px; padding: 4px 8px; }
.ctrl-progress { flex: 1 1 100%; order: 5; }}
@media (max-width: 400px) {.recommend-card { width: 138px; }
.poster-wrapper { max-width: 190px; }
.comment-item { max-width: 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}
