*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
:root {
  --bg: #2b2d30;
  --bg-deep: #232527;
  --surface: #33363a;
  --surface-2: #3a3e42;
  --line: #4a4e53;
  --line-soft: #41454a;
  --ink: #e6e3de;
  --ink-dim: #a8a49d;
  --ink-faint: #807c76;
  --warm: #e8873c;
  --warm-soft: #f0a05a;
  --warm-deep: #c96a24;
  --cool: #6e7378;
  --pad: 10px;
  --gap: 8px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
a[data-contract="site-name"] {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: var(--warm-soft); }
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px var(--pad) 8px;
}
a.runtime-category {
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
a.runtime-category:hover {
  color: #1e1f21;
  background: var(--warm);
  border-color: var(--warm);
}
.page-main {
  display: block;
  width: 100%;
  padding: var(--gap) var(--pad) 5px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--pad);
}
.hero-media {
  position: relative;
  overflow: hidden;
  background: #1c1e20;
  border: 1px solid var(--line-soft);
  align-self: start;
  max-width: 260px;
}
.hero-poster {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.movie-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.movie-tagline {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  border-left: 2px solid var(--warm);
  padding-left: 7px;
}
.episode-status-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 11.5px;
  padding: 5px 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.status-label {
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.status-current {
  color: var(--warm);
  font-weight: 700;
  font-size: 13px;
}
.status-sep { color: var(--ink-faint); }
.status-total { color: var(--ink-dim); }
.player-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #1c1e20;
  border: 1px solid var(--line);
  padding: 5px;
  width: 100%;
}
.player-shell video {
  display: block;
  width: 100%;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.player-btn {
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  color: var(--ink-dim);
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.player-btn:hover {
  color: var(--ink);
  border-color: var(--warm-deep);
}
.player-btn.is-active {
  color: #1e1f21;
  background: var(--warm);
  border-color: var(--warm);
}
.player-progress, .player-volume {
  height: 16px;
  cursor: pointer;
  background: transparent;
}
.player-progress {
  flex: 1 1 120px;
  min-width: 90px;
}
.player-volume {
  flex: 0 1 70px;
  min-width: 54px;
}
.player-progress::-webkit-slider-runnable-track, .player-volume::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--line);
}
.player-progress::-webkit-slider-thumb, .player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  background: var(--warm);
  border: 0;
}
.player-progress::-moz-range-track, .player-volume::-moz-range-track {
  height: 3px;
  background: var(--line);
}
.player-progress::-moz-range-thumb, .player-volume::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--warm);
}
.player-shell.is-theater {
  border-color: var(--warm-deep);
  box-shadow: 0 0 0 1px var(--warm-deep) inset;
}
.player-shell.is-lights-off {
  background: #0c0d0e;
  border-color: #0c0d0e;
}
.player-shell.is-lights-off .player-controls { opacity: 0.55; }
.cast-band {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.cast-heading, .synopsis-heading, .details-heading, .timeline-heading, .episodes-heading, .comments-heading, .rec-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.cast-heading::before, .synopsis-heading::before, .details-heading::before, .timeline-heading::before, .episodes-heading::before, .comments-heading::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--warm);
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cast-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: center;
  width: calc(33.333% - 4px);
  min-width: 118px;
}
.cast-avatar {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(140deg, var(--warm-soft) 0%, var(--warm) 42%, #4a4e53 43%, #3a3e42 100%);
  border: 1px solid var(--line);
  display: block;
}
.cast-name {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-role {
  font-size: 10.5px;
  color: var(--ink-faint);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.synopsis-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.synopsis-para {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  text-align: justify;
}
.details-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  padding: 2px 0;
  border-bottom: 1px dotted var(--line-soft);
  min-width: 0;
}
.detail-key {
  flex: 0 0 56px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.detail-value {
  flex: 1 1 auto;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-score {
  color: var(--warm);
  font-weight: 700;
  font-size: 13px;
}
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--pad);
}
.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 14px;
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--warm);
}
.timeline-timecode {
  font-size: 11px;
  font-weight: 700;
  color: var(--warm);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.timeline-label {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.episodes-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--pad);
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  transition: background 0.16s ease, border-color 0.16s ease;
  align-self: start;
}
.episode-card:hover {
  background: #4a3c30;
  border-color: var(--warm-deep);
}
.episode-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.episode-summary {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.episode-duration {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-top: 1px;
}
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--pad);
}
.comments-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: start;
}
.comment-card {
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--cool);
  align-self: start;
  transition: border-left-color 0.16s ease, background 0.16s ease;
}
.comment-card:hover {
  border-left-color: var(--warm);
  background: #3d4045;
}
.comment-nickname {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.comment-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment-card:hover .comment-text, .comment-card:focus-within .comment-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.rec-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--pad);
}
.rec-heading {
  color: var(--ink);
}
.rec-heading::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--warm);
}
.rec-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
a.rec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-dim);
  text-decoration: none;
  align-self: start;
  transition: background 0.16s ease, border-color 0.16s ease;
}
a.rec-item:hover {
  background: #4a3c30;
  border-color: var(--warm-deep);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1c1e20;
  border: 1px solid var(--line);
}
.rec-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-blurb {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
a.rec-item:hover .rec-name { color: var(--warm-soft); }
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px var(--pad) 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  margin-top: 4px;
}
.footer-disclaimer {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-faint);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.05em;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--warm-soft);
  text-decoration: underline;
}
.footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.friends-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
a.runtime-friend-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 10.5px;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: var(--warm-soft);
  text-decoration: underline;
}
@media (max-width: 1024px) {.timeline-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comments-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cast-item { width: calc(50% - 3px); }}
@media (max-width: 860px) {.hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
.hero-media {
    max-width: 200px;
  }
.details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 700px) {.page-main { gap: 10px; }
.timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.episodes-grid { grid-template-columns: minmax(0, 1fr); }
.comments-stack { grid-template-columns: minmax(0, 1fr); }
.rec-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cast-item { width: calc(50% - 3px); }}
@media (max-width: 480px) {body { font-size: 11.5px; }
.page-main { padding: 6px 7px 4px; }
.header-bar { padding: 7px; }
.category-strip { padding: 5px 7px 7px; }
.hero-panel, .timeline-section, .episodes-section, .comments-section, .rec-strip { padding: 7px; }
.hero-media { max-width: 150px; }
.movie-title { font-size: 16px; }
.cast-item { width: 100%; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.detail-key { flex-basis: 50px; }
.timeline-list { grid-template-columns: minmax(0, 1fr); }
.rec-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.player-btn { padding: 5px 6px; font-size: 10.5px; }
.site-footer { padding: 8px 7px 14px; }}

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}
