*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0a1220;
  --ink-2: #0e1a2c;
  --ink-3: #132238;
  --line: #1c2f47;
  --gold: #c39a4e;
  --gold-dim: #8a6f3d;
  --gold-soft: rgba(195, 154, 78, 0.16);
  --rouge: #a63a4a;
  --rouge-deep: #7c2733;
  --text: #d7dde6;
  --text-dim: #8c9aab;
  --text-faint: #5f6f82;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 80% at 78% -8%, rgba(166, 58, 74, 0.16), transparent 55%),
    linear-gradient(180deg, #0a1220 0%, #0b1524 40%, #091019 100%);
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(13, 24, 40, 0.96), rgba(11, 19, 32, 0.88));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(6px);
}
.header-brand { display: flex; align-items: center; }
.site-logo, a[data-contract="site-name"] {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-left: 12px;
  border-left: 3px solid var(--rouge);
  text-decoration: none;
  transition: color 0.25s ease;
}
a[data-contract="site-name"]:hover { color: #e6c07c; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px 10px 2px 10px;
  text-decoration: none;
  background: rgba(19, 34, 56, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
a.runtime-category:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-soft);
}
.page-main {
  display: block;
  padding: 0 0 26px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.9fr);
  gap: 18px;
  align-items: start;
  padding: 20px 20px 18px;
  margin-bottom: 6px;
  background:
    linear-gradient(180deg, rgba(14, 26, 44, 0.85), rgba(10, 18, 32, 0.6)),
    radial-gradient(140% 90% at 20% 0%, rgba(20, 40, 68, 0.9), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: relative;
  width: 100%;
  max-width: 260px;
  align-self: start;
  border-radius: 3px 16px 3px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(195, 154, 78, 0.08) inset;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(166, 58, 74, 0.28) 100%);
  pointer-events: none;
}
.hero-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--rouge);
  text-transform: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(166, 58, 74, 0.3);
}
.hero-title {
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: 0.1em;
  color: #f0e6d2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 26px rgba(195, 154, 78, 0.12);
}
.hero-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), var(--rouge));
}
.hero-seo {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 62ch;
}
.player-shell {
  position: relative;
  width: 100%;
  margin: 4px 0 2px;
  border: 1px solid var(--line);
  border-radius: 3px 14px 3px 14px;
  overflow: hidden;
  background: #05090f;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04070c;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: linear-gradient(180deg, rgba(13, 23, 38, 0.94), rgba(8, 14, 24, 0.98));
  border-top: 1px solid var(--line);
}
.ctrl-btn {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 2px 9px 2px 9px;
  background: rgba(19, 34, 56, 0.6);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ctrl-btn:hover, .ctrl-btn.is-active {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-soft);
}
.ctrl-btn.is-playing { color: #e8c684; border-color: rgba(195, 154, 78, 0.6); }
.ctrl-btn.is-muted { color: var(--rouge); border-color: rgba(166, 58, 74, 0.6); }
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rouge-deep), var(--gold-dim));
  outline: none;
  cursor: pointer;
  min-width: 60px;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid #2a1d0c;
  box-shadow: 0 0 8px rgba(195, 154, 78, 0.6);
}
.ctrl-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid #2a1d0c;
  border-radius: 50%;
  background: var(--gold);
}
.ctrl-progress { flex: 1 1 120px; }
.ctrl-volume { flex: 0 1 84px; }
.ctrl-select {
  font-size: 12px;
  padding: 5px 6px;
  color: var(--text-dim);
  background: rgba(19, 34, 56, 0.7);
  border: 1px solid var(--line);
  border-radius: 2px 9px 2px 9px;
  cursor: pointer;
}
.ctrl-select:hover { color: var(--gold); border-color: var(--gold-dim); }
.episode-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12.5px;
  padding: 4px 12px;
  background: rgba(166, 58, 74, 0.12);
  border: 1px solid rgba(166, 58, 74, 0.4);
  border-radius: 2px 10px 2px 10px;
  letter-spacing: 0.06em;
}
.status-label { color: var(--text-faint); }
.status-current { color: var(--gold); font-weight: 600; }
.status-sep { color: var(--text-faint); }
.status-total { color: var(--text-dim); }
.cast-strip {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.cast-heading, .synopsis-heading, .details-heading {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--rouge);
}
.cast-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.cast-list::-webkit-scrollbar { height: 5px; }
.cast-list::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
.cast-list::-webkit-scrollbar-track { background: rgba(28, 47, 71, 0.4); }
.cast-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 7px 12px;
  background: linear-gradient(160deg, rgba(19, 34, 56, 0.75), rgba(12, 22, 38, 0.85));
  border: 1px solid var(--line);
  border-radius: 2px 12px 2px 12px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cast-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.cast-name {
  font-family: var(--serif);
  font-size: 14px;
  color: #e8dfcd;
  letter-spacing: 0.08em;
}
.cast-role {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.synopsis-block {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.synopsis-para {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 7px;
  text-align: justify;
}
.synopsis-para:last-child { margin-bottom: 0; }
.details-block {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px 12px 2px 12px;
  overflow: hidden;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(13, 23, 38, 0.92);
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.detail-value {
  font-size: 12.5px;
  color: var(--text);
  min-width: 0;
}
.timeline-section {
  padding: 16px 20px 20px;
  margin-bottom: 6px;
}
.timeline-heading, .episodes-heading, .comments-heading, .recommend-heading {
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #e6d6b4;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.timeline-heading::before, .episodes-heading::before, .comments-heading::before, .recommend-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rouge));
}
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(195, 154, 78, 0.28);
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dim), rgba(166, 58, 74, 0.5), transparent);
}
.timeline-node {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 0 5px 4px;
  min-width: 0;
}
.node-dot {
  position: absolute;
  left: -22px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8b86a, var(--rouge-deep));
  box-shadow: 0 0 8px rgba(195, 154, 78, 0.7);
}
.node-timecode {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.node-label {
  font-size: 12.5px;
  color: var(--text-dim);
  min-width: 0;
}
.episodes-section {
  padding: 4px 20px 20px;
  margin-bottom: 6px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  background: linear-gradient(165deg, rgba(19, 34, 56, 0.7), rgba(11, 20, 34, 0.9));
  border: 1px solid var(--line);
  border-radius: 2px 12px 2px 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.episode-card:hover { border-color: var(--gold-dim); }
.episode-card.is-current {
  border-color: var(--gold);
  background: linear-gradient(165deg, rgba(166, 58, 74, 0.18), rgba(19, 34, 56, 0.85));
  box-shadow: 0 0 0 1px rgba(195, 154, 78, 0.35) inset, 0 6px 18px rgba(0, 0, 0, 0.4);
}
.episode-number {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.is-current .episode-number { color: #f0d69a; }
.episode-title {
  font-size: 13.5px;
  color: #e4dbc8;
  letter-spacing: 0.04em;
}
.episode-summary {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-faint);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-duration {
  align-self: flex-start;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 2px;
  padding-top: 3px;
  border-top: 1px solid rgba(28, 47, 71, 0.8);
  width: 100%;
}
.comments-section {
  padding: 4px 20px 20px;
  margin-bottom: 6px;
}
.comments-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-items: start;
}
.comments-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.comment-item {
  padding: 8px 11px;
  background: rgba(13, 23, 38, 0.7);
  border-left: 2px solid var(--rouge-deep);
  border-radius: 0 10px 10px 0;
  transition: border-color 0.2s ease;
}
.comment-item:hover { border-left-color: var(--gold); }
.comment-nickname {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  margin-bottom: 2px;
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-section {
  padding: 4px 20px 18px;
  margin-bottom: 4px;
}
.recommend-heading {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 9px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(195, 154, 78, 0.25);
  display: block;
}
.recommend-heading::before { display: none; }
.recommend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
a.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  background: rgba(13, 23, 38, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px 12px 2px 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  min-width: 0;
}
a.recommend-item:hover {
  border-color: var(--gold-dim);
  background: rgba(19, 34, 56, 0.9);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px 8px 2px 8px;
  background: #05090f;
  display: block;
}
.recommend-name {
  font-family: var(--serif);
  font-size: 13px;
  color: #e4dbc8;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recommend-blurb {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.player-shell.is-theater {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(195, 154, 78, 0.3), 0 14px 40px rgba(0, 0, 0, 0.7);
}
.player-shell.is-theater .player-video { filter: saturate(1.05) contrast(1.03); }
body.lights-off::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 11, 0.82);
  z-index: 40;
  pointer-events: none;
}
body.lights-off .player-shell {
  position: relative;
  z-index: 50;
  border-color: var(--gold);
}
body.lights-off .hero-info { position: relative; z-index: 45; }
.ctrl-progress.progress { background: linear-gradient(90deg, var(--rouge), var(--gold)); }
.ctrl-volume.volume { background: linear-gradient(90deg, var(--line), var(--gold-dim)); }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 14px 20px 22px;
  background: linear-gradient(180deg, rgba(9, 16, 27, 0.9), #070c14);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 78ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a[data-contract="footer-home"] { color: var(--gold-dim); }
a[data-contract="footer-home"]:hover { color: var(--gold); border-bottom-color: var(--gold); }
a[data-contract="footer-sitemap"] { color: var(--text-dim); }
a[data-contract="footer-sitemap"]:hover { color: #e6d6b4; border-bottom-color: var(--rouge); }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.friend-links-label {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--rouge);
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--text-faint);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
a.runtime-friend-link:hover { color: var(--gold); }
@media (max-width: 900px) {.hero-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 14px;
    padding: 16px 16px 14px;
  }
.hero-media { max-width: 220px; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-section, .episodes-section, .comments-section, .recommend-section { padding-left: 16px; padding-right: 16px; }}
@media (max-width: 640px) {body { font-size: 13.5px; }
.site-header { padding: 9px 14px; }
.site-logo, a[data-contract="site-name"] { font-size: 17px; }
.hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 14px 12px;
  }
.hero-media {
    max-width: 190px;
    margin: 0 auto;
  }
.hero-info { gap: 9px; }
.hero-tagline { letter-spacing: 0.1em; }
.player-controls { gap: 5px; padding: 6px; }
.ctrl-btn { padding: 5px 7px; font-size: 11.5px; }
.ctrl-progress { flex: 1 1 100%; }
.ctrl-volume { flex: 1 1 60px; }
.timeline-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
.timeline-node { padding: 4px 0 4px 4px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comments-columns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.recommend-list { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.timeline-section, .episodes-section, .comments-section, .recommend-section { padding-left: 14px; padding-right: 14px; }
.site-footer { padding: 12px 14px 20px; }}
@media (max-width: 400px) {.recommend-list { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.details-list { grid-template-columns: minmax(0, 1fr); }}

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}
