*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #14161a;
  --bg-2: #1a1d22;
  --surface: #1e2127;
  --surface-2: #24282f;
  --line: #2c313a;
  --line-2: #353b45;
  --ink: #d7dbe1;
  --ink-2: #9aa1ac;
  --ink-3: #6d747f;
  --orange: #c2581f;
  --orange-2: #e0703a;
  --orange-dim: #8a3f16;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: 0.02em; }
button, input, select { font: inherit; color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 22, 26, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
}
a[data-contract="site-name"] {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
  line-height: 1.1;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: var(--orange-2); }
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 0 18px 10px;
}
a.runtime-category {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: color .15s, border-color .15s, background .15s;
}
a.runtime-category:hover {
  color: var(--orange-2);
  border-color: var(--orange-dim);
  background: rgba(194, 88, 31, 0.12);
}
.page-main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 18px 32px;
}
.hero {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 12% 30%, rgba(194, 88, 31, 0.16) 0%, rgba(194, 88, 31, 0) 55%),
    linear-gradient(180deg, #1c2027 0%, #14161a 100%);
  overflow: hidden;
}
.hero-player {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: block;
}
.player-video {
  display: block;
  width: 100%;
  background: #0c0e11;
  filter: saturate(0.92) contrast(1.04);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.player-btn {
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.player-btn:hover { color: var(--ink); border-color: var(--line-2); background: #2b3038; }
.player-btn-play { color: var(--ink); border-color: var(--orange-dim); }
.player-btn-play.is-playing { color: var(--orange-2); border-color: var(--orange); background: rgba(194, 88, 31, 0.18); }
.player-btn-mute.is-muted { color: var(--orange-2); border-color: var(--orange-dim); }
.player-btn.is-active { color: var(--orange-2); border-color: var(--orange); }
.player-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}
.player-range-progress { flex: 1 1 120px; min-width: 90px; }
.player-range-volume { flex: 0 1 90px; min-width: 60px; }
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange-2);
  border: none;
  cursor: pointer;
}
.player-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange-2);
  border: none;
  cursor: pointer;
}
.player-range-progress { accent-color: var(--orange); }
.player-select {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 12px;
  padding: 4px 6px;
  cursor: pointer;
}
.hero.is-theater {
  border-color: var(--orange-dim);
  background: #0e1013;
}
.hero.is-light-off .player-video { filter: brightness(0.62) saturate(0.8) contrast(1.06); }
.movie-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "poster title title"
    "poster synopsis cast"
    "status details cast";
  gap: 0 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
}
.overview-poster {
  grid-area: poster;
  position: relative;
  align-self: start;
  width: 100%;
  border: 1px solid var(--line-2);
  background: #0c0e11;
  overflow: hidden;
}
.overview-poster-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}
.overview-title-group {
  grid-area: title;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.overview-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #eef0f3;
  line-height: 1.15;
}
.overview-tagline {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-2);
  letter-spacing: 0.06em;
}
.overview-seo {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 78ch;
}
.synopsis-panel { grid-area: synopsis; }
.cast-panel { grid-area: cast; }
.episode-status-panel { grid-area: status; }
.details-panel { grid-area: details; }
.synopsis-heading, .cast-heading, .episode-status-heading, .details-heading, .episodes-heading, .timeline-heading, .comments-heading, .recommend-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding-left: 9px;
  border-left: 3px solid var(--orange);
  margin-bottom: 9px;
  line-height: 1.2;
}
.synopsis-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.synopsis-text:last-child { margin-bottom: 0; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-2);
  min-width: 0;
}
.cast-name {
  font-size: 13px;
  font-weight: 700;
  color: #e6e9ee;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-role {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-status-list { display: flex; flex-direction: column; gap: 0; }
.episode-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.episode-status-row:last-child { border-bottom: none; }
.episode-status-key {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.episode-status-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-align: right;
}
.episode-status-row:last-child .episode-status-value {
  color: var(--orange-2);
  font-size: 15px;
}
.details-list { columns: 2; column-gap: 22px; }
.details-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  break-inside: avoid;
}
.details-key {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.details-value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  min-width: 0;
}
.episodes-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px 16px;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.episode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num title dur"
    "sum sum sum";
  align-items: baseline;
  gap: 3px 9px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.episode-number {
  grid-area: num;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  white-space: nowrap;
}
.episode-title {
  grid-area: title;
  font-size: 13.5px;
  font-weight: 700;
  color: #e6e9ee;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-duration {
  grid-area: dur;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.episode-summary {
  grid-area: sum;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.episode-card-current {
  background: var(--orange-dim);
  border-color: var(--orange);
}
.episode-card-current .episode-number, .episode-card-current .episode-duration { color: #f2d9c8; }
.episode-card-current .episode-title { color: #fff; }
.episode-card-current .episode-summary { color: #f4e2d6; }
.timeline-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px 16px;
  min-width: 0;
}
.timeline-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.timeline-scroller::-webkit-scrollbar { height: 6px; }
.timeline-scroller::-webkit-scrollbar-track { background: transparent; }
.timeline-scroller::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 100%;
  width: max-content;
  padding: 4px 2px 2px;
}
.timeline-node {
  position: relative;
  flex: 1 0 auto;
  width: 84px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--orange);
}
.timeline-node::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 6px);
  right: calc(-50% + 6px);
  height: 1px;
  background: var(--line-2);
}
.timeline-node:last-child::after { display: none; }
.timeline-timecode {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--orange-2);
  white-space: nowrap;
}
.timeline-label {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink-2);
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.02em;
  max-height: 96px;
  overflow: hidden;
}
.comments-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px 16px;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.comment-item {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.comment-item:last-child { border-bottom: none; }
.comment-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.comment-nickname {
  color: var(--orange-2);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-left: 8px;
  white-space: nowrap;
}
.comment-nickname::before { content: "— "; color: var(--ink-3); }
.recommend-region {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 13px 14px 14px;
  min-width: 0;
}
.recommend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
a.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px;
  min-width: 0;
  transition: border-color .15s, background .15s;
}
a.recommend-item:hover { border-color: var(--orange-dim); background: #2a2f37; }
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #0c0e11;
  display: block;
  filter: saturate(0.9) contrast(1.04);
}
.recommend-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #e6e9ee;
  letter-spacing: 0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-blurb {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 92ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--orange-2);
  border-bottom-color: var(--orange-dim);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.friend-links-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
a.runtime-friend-link:hover { color: var(--orange-2); }
@media (max-width: 1080px) {.movie-overview {
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    grid-template-areas:
      "poster title"
      "poster synopsis"
      "status cast"
      "details details";
  }
.details-list { columns: 2; }
.cast-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 820px) {.page-main { padding: 12px 12px 26px; gap: 16px; }
.movie-overview {
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
    gap: 0 14px;
    padding: 13px;
  }
.overview-title { font-size: 22px; }
.episodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 640px) {.movie-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "poster"
      "synopsis"
      "cast"
      "status"
      "details";
    gap: 14px 0;
  }
.overview-poster { max-width: 190px; }
.overview-title { font-size: 21px; }
.overview-seo { font-size: 12px; }
.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details-list { columns: 1; }
.episodes-grid { grid-template-columns: minmax(0, 1fr); }
.episode-card { grid-template-columns: auto minmax(0, 1fr) auto; }
.recommend-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-node { width: 76px; }
.timeline-label { max-height: 82px; font-size: 10px; }
.player-range-progress { flex: 1 1 100%; order: -1; }
.player-btn { padding: 4px 7px; font-size: 11.5px; }}
@media (max-width: 400px) {.page-main { padding: 10px 10px 22px; gap: 14px; }
.header-bar { padding: 9px 12px; }
.categories { padding: 0 12px 9px; }
.overview-title { font-size: 19px; }
.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.recommend-list { grid-template-columns: minmax(0, 1fr); }
.timeline-node { width: 68px; }
.comment-text { font-size: 12px; }
.comment-nickname { display: inline-block; margin-left: 6px; }}

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}
