*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body, h1, h2, h3, p, dl, dd, dt, ol, ul {
  margin: 0;
  padding: 0;
}
ol, ul {
  list-style: none;
}
img, video {
  display: block;
  max-width: 100%;
}
button, input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
}
:root {
  --ink: #1a1f2e;
  --ink-2: #2d3548;
  --amber: #c9a96e;
  --text: #e8e4dc;
  --milk: #f2ede2;
  --deep: #12151f;
  --black: #0a0c12;
  --line: rgba(201, 169, 110, 0.22);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Heiti SC", "WenQuanYi Micro Hei", system-ui, -apple-system, sans-serif;
  --song: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC",
    "STSong", serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo,
    Consolas, "Courier New", monospace;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--song);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(18, 21, 31, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
a[data-contract="site-name"] {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-decoration: none;
  white-space: nowrap;
}
.categories-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(45, 53, 72, 0.5);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.runtime-category:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.movie-detail-main {
  display: block;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px 16px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(201, 169, 110, 0.14), transparent 58%),
    linear-gradient(180deg, #232a3d 0%, var(--ink) 78%);
  border-bottom: 1px solid var(--line);
}
.hero-poster-col {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.poster-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}
.poster-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}
.hero-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.movie-heading {
  position: relative;
  padding: 10px 12px 10px 14px;
  border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, rgba(45, 53, 72, 0.72), transparent 88%);
}
.movie-title {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--milk);
  text-shadow: 0 0 18px rgba(201, 169, 110, 0.28);
}
.movie-tagline {
  margin-top: 4px;
  font-family: var(--song);
  font-size: 13px;
  line-height: 1.65;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.cast-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 6px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 0 1 auto;
  width: 84px;
  min-width: 0;
  text-align: center;
}
.cast-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(201, 169, 110, 0.55), transparent 62%),
    linear-gradient(160deg, #3a445c, #1d2334);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
}
.cast-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--milk);
}
.cast-state {
  font-family: var(--song);
  font-size: 10px;
  line-height: 1.45;
  color: rgba(232, 228, 220, 0.62);
}
.synopsis-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-heading {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--amber);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.synopsis-body {
  columns: 2;
  column-gap: 18px;
  column-rule: 1px solid rgba(201, 169, 110, 0.14);
}
.synopsis-para {
  font-family: var(--song);
  font-size: 13px;
  line-height: 1.78;
  color: rgba(232, 228, 220, 0.9);
  text-align: justify;
  margin-bottom: 8px;
  break-inside: avoid;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 6px 10px;
  background: rgba(45, 53, 72, 0.55);
  border: 1px solid var(--line);
}
.status-current {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.status-total {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(232, 228, 220, 0.7);
}
.details-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-content: start;
}
.detail-key {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(232, 228, 220, 0.5);
  margin-top: 5px;
}
.detail-value {
  font-family: var(--song);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 5px;
  padding-bottom: 4px;
  border-bottom: 1px dotted rgba(201, 169, 110, 0.16);
}
.player-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%);
  border-bottom: 1px solid var(--line);
}
.player-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: #05070c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.player-wrapper video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070c;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: rgba(45, 53, 72, 0.55);
  border: 1px solid var(--line);
}
.ctrl-btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(26, 31, 46, 0.75);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ctrl-btn:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.ctrl-btn.is-active {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.ctrl-btn.is-playing {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.ctrl-progress, .ctrl-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), rgba(201, 169, 110, 0.2));
  outline: none;
}
.ctrl-progress {
  flex: 1 1 200px;
  min-width: 120px;
}
.ctrl-volume {
  flex: 0 1 110px;
  min-width: 80px;
  background: rgba(232, 228, 220, 0.22);
}
.ctrl-progress::-webkit-slider-thumb, .ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  border: 1px solid #0a0c12;
  cursor: pointer;
}
.ctrl-progress::-moz-range-thumb, .ctrl-volume::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  border: 1px solid #0a0c12;
  cursor: pointer;
}
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 14px;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}
.timeline-section .section-heading {
  margin: 0 16px;
}
.timeline-strip {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px 12px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 10px,
      rgba(232, 228, 220, 0.07) 10px 14px) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg,
      transparent 0 10px,
      rgba(232, 228, 220, 0.07) 10px 14px) bottom / 100% 7px no-repeat,
    linear-gradient(180deg, #161b28, #10131d);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.5) transparent;
}
.timeline-strip::-webkit-scrollbar {
  height: 6px;
}
.timeline-strip::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.5);
  border-radius: 3px;
}
.timeline-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
}
.timeline-cell {
  flex: 0 0 auto;
  width: 132px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 9px;
  background: rgba(45, 53, 72, 0.6);
  border: 1px solid rgba(201, 169, 110, 0.16);
  border-left: 2px solid rgba(201, 169, 110, 0.35);
}
.timeline-timecode {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(232, 228, 220, 0.55);
}
.timeline-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text);
}
.timeline-cell:first-child {
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.28), rgba(45, 53, 72, 0.7));
  border-color: var(--amber);
  border-left-color: var(--amber);
  box-shadow: 0 0 14px rgba(201, 169, 110, 0.22);
}
.timeline-cell:first-child .timeline-timecode {
  color: var(--amber);
}
.timeline-cell:first-child .timeline-label {
  color: var(--milk);
}
.episodes-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 14px;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  align-items: start;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px 7px 10px;
  background: rgba(45, 53, 72, 0.42);
  border: 1px solid rgba(201, 169, 110, 0.14);
  border-left: 2px solid rgba(201, 169, 110, 0.4);
  min-width: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.episode-card:hover {
  background: rgba(45, 53, 72, 0.8);
  border-color: rgba(201, 169, 110, 0.5);
  border-left-color: var(--amber);
}
.episode-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.episode-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--milk);
}
.episode-summary {
  font-family: var(--song);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(232, 228, 220, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}
.episode-duration {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(232, 228, 220, 0.45);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.episode-card:hover .episode-duration {
  max-height: 22px;
  opacity: 1;
  margin-top: 2px;
}
.episode-card:hover .episode-summary {
  color: rgba(232, 228, 220, 0.88);
  -webkit-line-clamp: 3;
}
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, var(--deep), #0f121b);
  border-bottom: 1px solid var(--line);
}
.comments-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}
.comment-card {
  position: relative;
  margin: 4px 6px 12px 0;
  padding: 8px 10px 9px;
  background: #202839;
  border: 1px solid rgba(201, 169, 110, 0.2);
  box-shadow: 0 6px 0 -3px #1a1f2e, 0 6px 0 -2px rgba(201, 169, 110, 0.22),
    0 12px 0 -7px #171c2a, 0 12px 0 -6px rgba(201, 169, 110, 0.14);
  min-width: 0;
}
.comment-card:nth-child(3n + 2) {
  background: #1d2434;
}
.comment-card:nth-child(3n + 3) {
  background: #242c3e;
}
.comment-nickname {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 3px;
}
.comment-text {
  font-family: var(--song);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(232, 228, 220, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-region {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 10px;
  align-items: start;
  padding: 10px 16px 12px;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}
.recommend-region[data-recommendation-region="1"] {
  background: #12161f;
}
.recommend-region[data-recommendation-region="2"] {
  background: #0e1119;
}
.recommend-region[data-recommendation-region="3"] {
  background: var(--black);
}
.recommend-title {
  grid-row: 1 / span 2;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--amber);
  padding: 2px 0;
  border-left: 1px solid var(--line);
  padding-left: 8px;
  align-self: stretch;
  justify-self: start;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  background: rgba(45, 53, 72, 0.34);
  border: 1px solid rgba(201, 169, 110, 0.14);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}
a.recommend-card:hover {
  border-color: var(--amber);
  background: rgba(45, 53, 72, 0.62);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  background: #0a0c12;
  filter: saturate(0.85) brightness(0.9);
}
.recommend-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--milk);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-blurb {
  font-family: var(--song);
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(232, 228, 220, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 20px;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.friend-links-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(232, 228, 220, 0.45);
  white-space: nowrap;
}
a.runtime-friend-link {
  font-family: var(--song);
  font-size: 11.5px;
  color: rgba(232, 228, 220, 0.62);
  text-decoration: none;
  padding: 1px 5px;
  border: 1px solid rgba(201, 169, 110, 0.12);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.runtime-friend-link:hover {
  color: var(--amber);
  border-color: rgba(201, 169, 110, 0.45);
}
.footer-disclaimer {
  font-family: var(--song);
  font-size: 11px;
  line-height: 1.65;
  color: rgba(232, 228, 220, 0.38);
}
body.lights-off {
  background: #05070c;
}
body.lights-off .movie-detail-main, body.lights-off .site-footer {
  filter: brightness(0.55);
}
body.lights-off .player-section {
  filter: none;
}
body.theater-mode .player-section {
  padding-left: 0;
  padding-right: 0;
}
body.theater-mode .player-wrapper {
  border-left: none;
  border-right: none;
}
.player-wrapper.fullscreen, .player-wrapper.theater {
  width: 100%;
}
.ctrl-btn.play.is-playing {
  color: var(--ink);
  background: var(--amber);
}
.ctrl-btn.mute.is-active, .ctrl-btn.speed.is-active, .ctrl-btn.pip.is-active, .ctrl-btn.fullscreen.is-active, .ctrl-btn.theater.is-active, .ctrl-btn.light.is-active {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.ctrl-progress.progress, .ctrl-volume.volume {
  background: linear-gradient(90deg, var(--amber) 0%, rgba(201, 169, 110, 0.25) 100%);
}
@media (max-width: 900px) {.hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
.movie-title {
    font-size: 26px;
  }
.comments-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }}
@media (max-width: 720px) {.hero {
    grid-template-columns: minmax(0, 1fr);
  }
.hero-poster-col {
    max-width: 240px;
  }
.synopsis-body {
    columns: 1;
  }
.episodes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.comments-stack {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-card {
    margin-right: 4px;
  }
.recommend-region {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 8px;
  }
.recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.cast-card {
    width: 72px;
  }}
@media (max-width: 480px) {.site-header {
    padding: 7px 12px;
  }
.hero, .player-section, .episodes-section, .comments-section, .recommend-region, .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
.timeline-section .section-heading {
    margin: 0 12px;
  }
.timeline-strip {
    padding-left: 12px;
    padding-right: 12px;
  }
.movie-title {
    font-size: 22px;
  }
.movie-tagline {
    font-size: 12px;
  }
.recommend-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.ctrl-progress {
    flex-basis: 100%;
  }
.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}
