*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #070b14;
  --ink-2: #0c1220;
  --ink-3: #111a2c;
  --line: #1c2740;
  --line-soft: #162034;
  --gold: #c9a45c;
  --gold-dim: #8f7640;
  --gold-soft: rgba(201, 164, 92, 0.12);
  --text: #d6dced;
  --text-dim: #8b95ad;
  --text-mute: #5d6780;
  --radius: 6px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(201, 164, 92, 0.10) 0%, rgba(201, 164, 92, 0) 46%),
    linear-gradient(160deg, #060a12 0%, #0a1020 42%, #070b14 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  color: var(--gold);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(201, 164, 92, 0.35);
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
}
a.runtime-category {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12.5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
a.runtime-category:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-soft);
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 18px 0;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.sidebar-sticky {
  position: sticky;
  top: 60px;
  align-self: start;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar-sticky::-webkit-scrollbar { width: 6px; }
.sidebar-sticky::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.movie-overview {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -28px #000;
}
.poster-wrap {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #05080f;
}
.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(201, 164, 92, 0) 38%, rgba(201, 164, 92, 0.22) 50%, rgba(201, 164, 92, 0) 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.poster-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.overview-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.overview-title {
  font-size: 20px;
  font-weight: 600;
  color: #eef2fb;
  letter-spacing: 0.02em;
}
.overview-tagline {
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.panel-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 8px;
  position: relative;
}
.panel-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--gold);
  opacity: 0.85;
}
.cast-panel { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  align-items: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cast-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background:
    radial-gradient(90% 80% at 30% 20%, rgba(201, 164, 92, 0.22) 0%, rgba(201, 164, 92, 0) 60%),
    linear-gradient(150deg, #1b2540 0%, #0b1120 100%);
  border: 1px solid var(--line);
}
.cast-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #e6ecf9;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cast-role {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.35;
}
.synopsis-panel { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.section-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim) 0%, rgba(201, 164, 92, 0) 100%);
  opacity: 0.5;
}
.synopsis-body { display: flex; flex-direction: column; gap: 7px; }
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--text-dim);
  text-align: justify;
}
.synopsis-para:first-child { color: #b8c2d8; }
.episode-status {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 9px 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 164, 92, 0.24);
  border-radius: 4px;
}
.status-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
}
.status-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.status-total {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-left: auto;
}
.detail-panel { padding-top: 2px; }
.detail-list { display: flex; flex-direction: column; }
.detail-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line-soft);
  align-items: baseline;
}
.detail-row:last-child { border-bottom: none; }
.detail-key {
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.detail-value {
  font-size: 12.5px;
  color: var(--text);
  min-width: 0;
}
.main-scroll {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.player-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #03060c;
  box-shadow: 0 24px 50px -32px #000, 0 0 0 1px rgba(201, 164, 92, 0.06) inset;
}
.player-video {
  display: block;
  width: 100%;
  background: #03060c;
  object-fit: cover;
}
.player-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.96) 0%, rgba(7, 11, 20, 0.96) 100%);
  border-top: 1px solid var(--line);
}
.ctrl-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ctrl-btn:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-soft);
}
.ctrl-btn.is-active, .ctrl-btn.play.is-active, .ctrl-btn.mute.is-active, .ctrl-btn.fullscreen.is-active, .ctrl-btn.pip.is-active, .ctrl-btn.speed.is-active, .ctrl-btn.light.is-active, .ctrl-btn.theater.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-soft);
}
.ctrl-progress {
  flex: 1 1 180px;
  min-width: 120px;
  height: 4px;
  appearance: none;
  background: var(--line);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.ctrl-progress::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 164, 92, 0.7);
  cursor: pointer;
}
.ctrl-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.ctrl-volume {
  flex: 0 1 84px;
  height: 4px;
  appearance: none;
  background: var(--line);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.ctrl-volume::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-dim);
  cursor: pointer;
}
.ctrl-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--gold-dim);
  cursor: pointer;
}
body.lights-off .page-main { background: rgba(3, 5, 10, 0.55); }
body.lights-off .player-wrap { box-shadow: 0 0 90px -20px rgba(201, 164, 92, 0.35), 0 0 0 1px rgba(201, 164, 92, 0.18); }
body.theater-mode .content-layout { grid-template-columns: minmax(0, 1fr); }
body.theater-mode .sidebar-sticky {
  position: static;
  max-height: none;
  overflow: visible;
}
body.theater-mode .movie-overview {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: start;
}
body.theater-mode .poster-wrap { grid-row: span 6; }
.player .progress, .player .volume, .player .input, .player .timeupdate, .player .click { transition: opacity 0.2s; }
.input { accent-color: var(--gold); }
.progress, .volume { accent-color: var(--gold); }
.timeline-panel {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
}
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 14px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dim) 0%, var(--line) 45%, rgba(28, 39, 64, 0) 100%);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 8px 6px 0;
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold-dim);
}
.timeline-item:first-child::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 164, 92, 0.6);
}
.timeline-timecode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
}
.timeline-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  min-width: 0;
}
.episodes-panel {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.episode-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "number duration"
    "title  title"
    "summary summary";
  gap: 3px 10px;
  padding: 10px 11px;
  background: rgba(10, 16, 30, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  opacity: 0.72;
  transition: opacity 0.18s, border-color 0.18s, background 0.18s;
}
.episode-card:hover {
  opacity: 1;
  border-color: var(--gold-dim);
  background: rgba(16, 23, 40, 0.9);
}
.episode-number {
  grid-area: number;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.episode-title {
  grid-area: title;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f7;
  letter-spacing: 0.02em;
}
.episode-summary {
  grid-area: summary;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-mute);
}
.episode-duration {
  grid-area: duration;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
  text-align: right;
}
.episode-card--current {
  opacity: 1;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.10) 0%, rgba(10, 16, 30, 0.9) 100%);
  box-shadow: 0 0 0 1px rgba(201, 164, 92, 0.25), 0 14px 30px -22px rgba(201, 164, 92, 0.6);
}
.episode-card--current .episode-number, .episode-card--current .episode-duration { color: var(--gold); }
.episode-card--current .episode-title { color: #f3e4c0; }
.episode-card--current .episode-summary { color: #a9b3c9; }
.comments-panel {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
}
.comment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  align-items: start;
}
.comment-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.comment-nickname {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
.rec-region {
  margin-top: 22px;
  padding: 16px 18px 18px;
  border-radius: var(--radius);
}
.rec-region--tinted {
  background: linear-gradient(180deg, #e9e5da 0%, #dcd7c9 100%);
  color: #23262e;
  border: 1px solid #cfc9ba;
}
.rec-heading {
  font-size: 14px;
  font-weight: 600;
  color: #2b2f39;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rec-heading::before {
  content: "";
  width: 16px;
  height: 2px;
  background: #b08d47;
}
.rec-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b6ae9b transparent;
}
.rec-track::-webkit-scrollbar { height: 7px; }
.rec-track::-webkit-scrollbar-thumb { background: #b6ae9b; border-radius: 4px; }
a.rec-card {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #f6f3ec;
  border: 1px solid #d5cfc0;
  border-radius: 4px;
  color: #23262e;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
a.rec-card:hover {
  border-color: #b08d47;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(40, 33, 18, 0.7);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  background: #c9c2b2;
}
.rec-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #23262e;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-blurb {
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b6455;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 18px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: var(--gold); }
a[data-contract="footer-home"] { color: var(--gold); }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.friend-links-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-right: 4px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--text-mute);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
a.runtime-friend-link:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: #4a5468;
  max-width: 760px;
}
@media (max-width: 1024px) {.content-layout { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; }
.comment-list { grid-template-columns: minmax(0, 1fr); }
a.rec-card { flex-basis: calc((100% - 24px) / 3); }}
@media (max-width: 860px) {.content-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sidebar-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
.movie-overview { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px 18px; align-items: start; }
.poster-wrap { grid-row: span 6; }
.rec-region { padding: 14px; }
a.rec-card { flex-basis: calc((100% - 24px) / 3); }}
@media (max-width: 640px) {body { font-size: 13.5px; }
.page-main { padding: 14px 12px 0; }
.header-inner { padding: 8px 12px; gap: 12px; }
.movie-overview { grid-template-columns: minmax(0, 1fr); }
.poster-wrap { grid-row: auto; max-width: 240px; }
.cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-list { grid-template-columns: minmax(0, 1fr); }
.timeline-item { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
.detail-row { grid-template-columns: 66px minmax(0, 1fr); }
.player-controls { gap: 5px; padding: 7px 8px; }
.ctrl-progress { flex-basis: 100%; order: 2; }
.ctrl-volume { flex-basis: 70px; }
a.rec-card { flex-basis: calc((100% - 12px) / 2); }
.rec-region { padding: 12px; }
.site-footer { padding: 22px 12px 34px; }}
@media (max-width: 420px) {.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.rec-card { flex-basis: 78%; }
.overview-title { font-size: 18px; }}

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}
