*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:root {
  --bg-deep: #10161c;
  --bg-panel: #161e26;
  --bg-raise: #1b242e;
  --gold: #b9954f;
  --gold-bright: #d8b978;
  --gold-dim: #6e5a30;
  --plum: #8e1f2e;
  --plum-bright: #b8283a;
  --plum-dark: #4d1018;
  --ink: #c9d0d6;
  --ink-soft: #8a949e;
  --ink-faint: #5e6873;
  --cold-white: #e8edf1;
  --hairline: rgba(185, 149, 79, 0.28);
  --hairline-soft: rgba(201, 208, 214, 0.12);
  --kai: "KaiTi", "STKaiti", "Kaiti SC", "楷体", serif;
  --song: "SimSun", "Songti SC", "宋体", "Noto Serif CJK SC", serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1100px 620px at 12% -6%, rgba(142, 31, 46, 0.20), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(77, 16, 24, 0.34), transparent 66%),
    linear-gradient(180deg, #0d1319 0%, #10161c 40%, #0c1116 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--song);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(13, 19, 25, 0.96), rgba(13, 19, 25, 0.82));
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 16px;
}
a[data-contract="site-name"] {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(216, 185, 120, 0.28);
}
a[data-contract="site-name"]:hover { color: var(--cold-white); }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}
a.runtime-category:hover {
  color: var(--gold-bright);
  border-color: var(--hairline);
  background: rgba(185, 149, 79, 0.07);
}
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 34px;
  display: block;
}
.section-heading {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  padding-left: 10px;
  border-left: 3px solid var(--plum);
  margin-bottom: 9px;
}
.movie-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
  margin-top: 14px;
  padding: 18px 18px 22px;
  background:
    linear-gradient(105deg, rgba(22, 30, 38, 0.94) 0%, rgba(20, 26, 33, 0.9) 46%, rgba(58, 14, 21, 0.62) 100%);
  border: 1px solid var(--hairline-soft);
  border-top: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}
.movie-overview::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  pointer-events: none;
  background: radial-gradient(560px 420px at 100% 30%, rgba(142, 31, 46, 0.30), transparent 70%);
}
.poster-column { position: relative; z-index: 1; }
.poster-frame {
  position: relative;
  width: 100%;
  max-width: 250px;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 14px 34px rgba(0, 0, 0, 0.62);
  background: #0b0f13;
}
.poster-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(185, 149, 79, 0.22);
  pointer-events: none;
  z-index: 2;
}
.poster-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.overview-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.movie-title {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--cold-white);
}
.movie-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold-bright), var(--plum));
}
.movie-tagline {
  font-family: var(--kai);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--plum-bright);
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline-soft);
}
.status-current, .status-total, .status-label {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 2px;
  white-space: nowrap;
}
.status-current {
  color: #10202c;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  font-weight: 700;
  letter-spacing: 0.06em;
}
.status-total {
  color: var(--ink-soft);
  border: 1px solid var(--hairline-soft);
}
.status-label {
  color: var(--plum-bright);
  border: 1px solid rgba(184, 40, 58, 0.45);
  background: rgba(142, 31, 46, 0.14);
}
.player-shell {
  position: relative;
  width: 100%;
  background: #07090c;
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: background-color 0.25s, border-color 0.25s;
}
.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: linear-gradient(180deg, rgba(13, 19, 25, 0.9), rgba(9, 13, 17, 0.98));
  border-top: 1px solid var(--hairline-soft);
}
.player-controls button {
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: rgba(201, 208, 214, 0.05);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background-color 0.16s;
}
.player-controls button:hover {
  color: var(--gold-bright);
  border-color: var(--hairline);
  background: rgba(185, 149, 79, 0.1);
}
.player-controls button.is-active {
  color: #0d1319;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.player-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 96px;
  min-width: 64px;
  height: 3px;
  background: rgba(201, 208, 214, 0.18);
  border-radius: 2px;
  cursor: pointer;
}
.player-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: none;
  box-shadow: 0 0 8px rgba(216, 185, 120, 0.5);
}
.player-controls input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--gold-bright);
}
.player-controls select {
  padding: 3px 6px;
  font-size: 11px;
  color: var(--ink-soft);
  background: rgba(201, 208, 214, 0.05);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  cursor: pointer;
}
.player-controls select.is-active {
  color: var(--gold-bright);
  border-color: var(--hairline);
}
.player-shell.is-theater {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(185, 149, 79, 0.25), 0 0 40px rgba(142, 31, 46, 0.32);
}
.player-shell.is-lights-off { background: #000; }
.player-shell.is-lights-off .player-controls { background: #000; border-top-color: rgba(201, 208, 214, 0.06); }
.cast-section {
  padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px 10px;
  align-items: start;
}
.cast-member {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "avatar role"
    "note note";
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  padding: 7px 8px;
  background: rgba(201, 208, 214, 0.035);
  border: 1px solid var(--hairline-soft);
  border-left: 2px solid rgba(142, 31, 46, 0.55);
  border-radius: 2px;
}
.cast-avatar {
  grid-area: avatar;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(216, 185, 120, 0.5), rgba(142, 31, 46, 0.55) 62%, #1a222b 100%);
  border: 1px solid var(--gold-dim);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.55);
}
.cast-name {
  grid-area: name;
  font-family: var(--kai);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cold-white);
}
.cast-role {
  grid-area: role;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.cast-note {
  grid-area: note;
  margin-top: 4px;
  padding-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(185, 149, 79, 0.2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.26s ease, opacity 0.22s ease, padding-top 0.22s ease;
}
.cast-member:hover .cast-note, .cast-member:focus-within .cast-note {
  max-height: 90px;
  opacity: 1;
}
.cast-member:hover {
  border-left-color: var(--plum-bright);
  background: rgba(142, 31, 46, 0.1);
}
.synopsis-section {
  padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
}
.synopsis-paragraph {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink);
  text-align: justify;
  margin-bottom: 6px;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.synopsis-paragraph:first-of-type::first-letter {
  font-family: var(--kai);
  font-size: 30px;
  line-height: 1;
  float: left;
  margin: 2px 6px 0 0;
  color: var(--gold-bright);
}
.details-section {
  padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0 14px;
  align-items: start;
}
.detail-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(201, 208, 214, 0.12);
  font-size: 12px;
}
.detail-item dt {
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.detail-item dd {
  color: var(--ink);
  text-align: right;
}
.timeline-section {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.timeline-track {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-top: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(142, 31, 46, 0.1), var(--plum) 30%, var(--plum-bright) 70%, rgba(185, 149, 79, 0.85));
  pointer-events: none;
}
.timeline-node {
  position: relative;
  flex: 1 1 0;
  min-width: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 0 10px 0 0;
}
.timeline-node:nth-child(even) { padding-top: 8px; }
.timeline-node:nth-child(3n) { padding-top: 3px; }
.node-petal {
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: 1px;
  background: var(--plum-dark);
  border: 1px solid var(--plum-bright);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(184, 40, 58, 0.5);
}
.timeline-node:last-child .node-petal {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(216, 185, 120, 0.75), 0 0 26px rgba(216, 185, 120, 0.35);
}
.timeline-node:last-child .node-petal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50% 0 50% 50%;
  background: #fff6de;
  opacity: 0.85;
}
.node-timecode {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.node-label {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
}
.timeline-node:hover .node-label { color: var(--cold-white); }
.episodes-section {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  align-items: start;
}
.episode-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num title dur"
    "sum sum sum";
  align-items: baseline;
  column-gap: 8px;
  row-gap: 3px;
  padding: 7px 9px;
  background: rgba(201, 208, 214, 0.03);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  transition: border-color 0.18s, background-color 0.18s;
}
.episode-item:nth-child(3n/**/+2) { background: rgba(142, 31, 46, 0.06); }
.episode-item:nth-child(5n) { background: rgba(185, 149, 79, 0.05); }
.episode-item:hover {
  border-color: var(--hairline);
  background: rgba(142, 31, 46, 0.12);
}
.episode-number {
  grid-area: num;
  font-family: var(--kai);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.episode-number::after { content: " ·"; color: var(--ink-faint); }
.episode-title {
  grid-area: title;
  font-family: var(--kai);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cold-white);
}
.episode-duration {
  grid-area: dur;
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.episode-summary {
  grid-area: sum;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: justify;
}
.comments-section {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 8px 12px;
  align-items: start;
}
.comment-card {
  position: relative;
  display: block;
  padding: 7px 10px 8px 14px;
  background: rgba(201, 208, 214, 0.035);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.comment-card:nth-child(2n) { transform: translateY(6px); }
.comment-card:nth-child(3n) { transform: translateY(-4px); }
.comment-card:nth-child(5n) { transform: translateY(10px); }
.comment-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline);
  background: rgba(142, 31, 46, 0.1);
}
.comment-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--plum-bright), var(--plum-dark));
  box-shadow: 0 0 8px rgba(184, 40, 58, 0.45);
}
.comment-nickname {
  display: block;
  font-family: var(--kai);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 3px;
}
.comment-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
}
.recommend-region {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.recommend-heading {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
}
.recommend-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 1px;
  background: var(--plum-bright);
}
.recommend-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
a.recommend-card {
  flex: 0 0 152px;
  width: 152px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(201, 208, 214, 0.035);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  scroll-snap-align: start;
  transition: border-color 0.18s, background-color 0.18s, transform 0.18s;
}
a.recommend-card:hover {
  border-color: var(--gold-dim);
  background: rgba(185, 149, 79, 0.08);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a0e12;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.recommend-name {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cold-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(13, 19, 25, 0.6), rgba(9, 13, 17, 0.98));
  padding: 14px 16px 22px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-bottom: 9px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 9px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--plum-bright);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
}
.friend-links-label {
  font-family: var(--kai);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  padding-right: 10px;
  border-right: 1px solid var(--hairline-soft);
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px dotted rgba(201, 208, 214, 0.22);
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s;
}
a.runtime-friend-link:hover {
  color: var(--plum-bright);
  border-bottom-color: var(--plum-bright);
}
@media (max-width: 900px) {.movie-overview {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 14px 18px;
  }
.poster-frame {
    max-width: 216px;
    margin: 0 auto;
  }
.movie-title { font-size: 22px; }
.comment-card:nth-child(2n), .comment-card:nth-child(3n), .comment-card:nth-child(5n) { transform: none; }}
@media (max-width: 720px) {body { font-size: 12.5px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.timeline-node { min-width: 124px; }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
a.recommend-card { flex: 0 0 138px; width: 138px; }}
@media (max-width: 480px) {.header-inner { padding: 7px 12px; }
a[data-contract="site-name"] { font-size: 16px; }
.page-main { padding: 0 12px 26px; }
.movie-title { font-size: 19px; }
.poster-frame { max-width: 176px; }
.player-controls button, .player-controls select { font-size: 10px; padding: 2px 6px; }
.player-controls input[type="range"] { flex: 1 1 100%; }
a.recommend-card { flex: 0 0 124px; width: 124px; }
.cast-list { grid-template-columns: minmax(0, 1fr); }
.cast-note { max-height: 90px; opacity: 1; }
.timeline-node { min-width: 116px; padding-right: 8px; }}

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}
