*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, p, ul, ol, li, dl, dt, dd {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img, video {
  display: block;
  max-width: 100%;
}
button, input, select {
  font: inherit;
  color: inherit;
}
a { color: inherit; }
:root {
  --ink-deep: #12171d;
  --ink: #1b232c;
  --panel: #1f2a35;
  --panel-2: #253140;
  --line: #33414f;
  --line-soft: #2a3643;
  --blue: #6d859c;
  --blue-dim: #8ea3b6;
  --paper: #c9d4de;
  --paper-dim: #93a3b3;
  --warm: #d98241;
  --warm-soft: #c47a45;
  --warm-deep: #b5642c;
  --rule: rgba(255, 255, 255, 0.07);
  --gap: 10px;
  --pad: 12px;
}
body {
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(180deg, #161d25 0%, #12171d 40%, #10151a 100%);
  color: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(18, 23, 29, 0.97), rgba(18, 23, 29, 0.88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 16px;
  max-width: 1320px;
  margin: 0 auto;
}
a[data-contract="site-name"] {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-dim);
  text-decoration: none;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover {
  color: var(--paper);
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
}
a.runtime-category {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
a.runtime-category:hover {
  color: var(--warm);
  border-bottom-color: var(--warm-deep);
}
.page-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px 8px;
}
.section-heading, .block-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: none;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.section-heading::before, .block-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 9px;
  margin-right: 7px;
  vertical-align: -1px;
  background: var(--warm);
  opacity: 0.75;
}
.movie-overview {
  padding: 34px 0 26px;
}
.overview-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.overview-title {
  font-size: clamp(22px, 4.6vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: #e3ebf2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.overview-tagline {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--warm-soft);
  padding-left: 2px;
}
.overview-body {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.poster-wrap {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.poster-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.94);
}
.overview-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.player-wrap {
  position: relative;
  width: 100%;
  background: #0c1014;
  border: 1px solid var(--line);
}
.player-wrap video {
  display: block;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px;
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
}
.ctrl-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--paper-dim);
  font-size: 12px;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.ctrl-btn:hover {
  color: var(--paper);
  border-color: var(--blue);
}
.ctrl-btn.is-active, .ctrl-btn.play, .ctrl-btn.pause, .ctrl-btn.mute, .ctrl-btn.pip, .ctrl-btn.fullscreen, .ctrl-btn.theater, .ctrl-btn.light, .ctrl-btn.speed {
  border-color: var(--line);
}
.ctrl-play.is-active {
  background: var(--warm-deep);
  border-color: var(--warm);
  color: #1a1109;
}
.ctrl-mute.is-active, .ctrl-light.is-active, .ctrl-theater.is-active {
  background: #33475a;
  border-color: var(--blue);
  color: #e6eef5;
}
.ctrl-progress {
  flex: 1 1 140px;
  min-width: 90px;
  height: 4px;
  margin: 0 4px;
  appearance: none;
  background: #2b3743;
  border-radius: 2px;
  cursor: pointer;
}
.ctrl-progress::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warm);
  border: none;
}
.ctrl-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--warm);
}
.ctrl-progress.progress { background: #2b3743; }
.ctrl-volume {
  flex: 0 0 74px;
  width: 74px;
  height: 4px;
  appearance: none;
  background: #2b3743;
  border-radius: 2px;
  cursor: pointer;
}
.ctrl-volume::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.ctrl-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
}
.ctrl-volume.volume { background: #2b3743; }
.ctrl-speed {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--paper-dim);
  font-size: 12px;
  padding: 5px 6px;
  cursor: pointer;
}
.ctrl-speed.speed { color: var(--paper-dim); }
.ctrl-speed:hover { color: var(--paper); }
.synopsis-block { min-width: 0; }
.synopsis-para {
  font-size: 13px;
  line-height: 1.62;
  color: var(--paper-dim);
  margin-bottom: 7px;
}
.synopsis-para:last-child { margin-bottom: 0; }
.cast-block { min-width: 0; }
.cast-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 7px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  align-self: start;
}
.cast-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0e1319;
  border: 1px solid var(--line);
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  transition: filter 0.25s;
}
.cast-card:hover .cast-avatar img {
  filter: grayscale(0.35) contrast(1.05) brightness(1);
}
.cast-name {
  font-size: 13px;
  font-weight: 600;
  color: #dbe4ec;
  line-height: 1.3;
}
.cast-role {
  font-size: 11px;
  line-height: 1.35;
  color: var(--blue);
}
.episode-status { min-width: 0; }
.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-chip {
  font-size: 12px;
  line-height: 1.3;
  padding: 4px 9px;
  color: var(--paper-dim);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.status-chip-current {
  color: #f3d9c4;
  background: rgba(217, 130, 65, 0.14);
  border-color: var(--warm-deep);
}
.details-block { min-width: 0; }
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0 18px;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(147, 163, 179, 0.22);
}
.detail-key {
  flex: 0 0 62px;
  font-size: 12px;
  color: var(--blue);
}
.detail-value {
  font-size: 12.5px;
  color: var(--paper);
  min-width: 0;
  word-break: break-word;
}
.timeline-section {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line-soft);
}
.timeline-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.timeline-node {
  position: relative;
  flex: 0 0 auto;
  min-width: 128px;
  padding: 4px 16px 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline-node::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 18px;
  border-top: 1px dashed rgba(109, 133, 156, 0.5);
  transform: translateY(-50%);
}
.timeline-node:last-child::after { display: none; }
.timeline-time {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.timeline-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--paper);
}
.timeline-node-current::before {
  width: 2px;
  background: var(--warm);
}
.timeline-node-current .timeline-time {
  color: var(--warm);
  font-weight: 700;
}
.timeline-node-current .timeline-label {
  color: #f4e3d4;
}
.timeline-node-current::after {
  border-top-color: var(--warm-deep);
}
.episodes-section {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line-soft);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  position: relative;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px 8px;
  cursor: default;
  transition: background-color 0.18s, border-color 0.18s;
}
.episode-card:hover {
  background: var(--panel-2);
  border-left-color: var(--warm-deep);
}
.episode-number {
  font-size: 11.5px;
  color: var(--blue);
  white-space: nowrap;
}
.episode-title {
  font-size: 13px;
  font-weight: 600;
  color: #dbe4ec;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-duration {
  font-size: 11px;
  color: var(--paper-dim);
  white-space: nowrap;
}
.episode-summary {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.55;
  color: var(--paper-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
}
.episode-card:hover .episode-summary, .episode-card:focus-within .episode-summary {
  max-height: 140px;
  opacity: 1;
  margin-top: 3px;
}
.comments-section {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line-soft);
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  align-items: start;
}
.comment-card {
  display: flex;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.comment-band {
  flex: 0 0 4px;
  background: var(--blue);
}
.comment-card-warm .comment-band { background: var(--warm); }
.comment-card-cold .comment-band { background: #4a6076; }
.comment-body {
  padding: 8px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.comment-nickname {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--blue);
}
.comment-card-warm .comment-nickname { color: var(--warm-soft); }
.comment-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper-dim);
}
.recommend-region {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line-soft);
}
.recommend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-items: start;
}
.recommend-item { min-width: 0; }
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--paper);
  height: 100%;
  transition: background-color 0.18s, border-color 0.18s;
}
a[data-runtime="recommendation"]:hover {
  background: var(--panel-2);
  border-color: var(--warm-deep);
}
[data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: #0e1319;
  filter: saturate(0.8) contrast(1.03);
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 12.5px;
  font-weight: 600;
  color: #dbe4ec;
  line-height: 1.35;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--blue);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: #10151a;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: #6f8091;
  max-width: 760px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--warm);
  border-bottom-color: var(--warm-deep);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.friend-links-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-right: 2px;
}
a.runtime-friend-link {
  font-size: 12px;
  color: #6f8091;
  text-decoration: none;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: var(--warm-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.lights-off {
  background-image: none;
  background-color: #05070a;
}
body.lights-off .site-header {
  background: rgba(5, 7, 10, 0.96);
}
body.theater-mode .movie-overview {
  padding-top: 18px;
}
body.theater-mode .overview-body {
  grid-template-columns: minmax(0, 1fr);
}
body.theater-mode .poster-wrap {
  display: none;
}
.ctrl-btn.play.is-active, .ctrl-btn.pause.is-active {
  background: var(--warm-deep);
  border-color: var(--warm);
  color: #1a1109;
}
.ctrl-btn.light.is-active, .ctrl-btn.theater.is-active, .ctrl-btn.mute.is-active, .ctrl-btn.pip.is-active, .ctrl-btn.fullscreen.is-active {
  background: #33475a;
  border-color: var(--blue);
  color: #e6eef5;
}
.player-wrap.fullscreen {
  width: 100%;
  height: 100%;
  background: #000;
  border: none;
}
.player-wrap.theater {
  border-color: var(--warm-deep);
}
.ctrl-progress.timeupdate, .ctrl-progress.change, .ctrl-progress.input {
  background: #2b3743;
}
.ctrl-volume.volume.change, .ctrl-volume.input { background: #2b3743; }
.ctrl-speed.change, .ctrl-speed.input, .ctrl-speed.click { color: var(--paper); }
@media (max-width: 900px) {.overview-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
.poster-wrap {
    width: 100%;
    max-width: 220px;
  }
.episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}
@media (max-width: 620px) {body { font-size: 13px; }
.page-main { padding: 0 10px 6px; }
.header-inner { padding: 7px 10px; gap: 10px; }
.movie-overview { padding: 20px 0 16px; }
.overview-head { padding-bottom: 14px; margin-bottom: 14px; }
.overview-title { font-size: clamp(20px, 6.4vw, 28px); }
.poster-wrap { max-width: 180px; }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.episode-summary {
    max-height: none;
    opacity: 1;
    margin-top: 3px;
  }
.comment-stack {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-list {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }
.detail-list {
    grid-template-columns: minmax(0, 1fr);
  }
.ctrl-btn {
    font-size: 11.5px;
    padding: 5px 7px;
  }
.ctrl-volume { flex-basis: 58px; width: 58px; }
.footer-inner { padding: 20px 10px 30px; }}
@media (max-width: 400px) {.cast-row {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }
.recommend-list {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }}
@media (min-width: 1100px) {.episode-grid {
    grid-template-columns: repeat(3, 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}
