:root {
  --bg:#141821;
  --bg-deep:#0e1118;
  --surface:#1c2230;
  --surface-2:#232b3b;
  --line:#333d52;
  --red:#b83a34;
  --red-bright:#d94a42;
  --red-dark:#7d2622;
  --warm:#e3c48a;
  --warm-soft:#c9a96a;
  --blue:#3d5f8f;
  --yellow:#c99a2e;
  --gray-region:#4a5261;
  --ink:#e9e6df;
  --ink-dim:#a7a49c;
  --ink-faint:#6f7686;
  --radius:10px;
  --radius-sm:6px;
  --gap:10px;
  --font-hei:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Heiti SC",sans-serif;
  --font-song:"Songti SC","SimSun","Noto Serif SC",serif;
}
*, *::before, *::after {box-sizing:border-box;}
html, body {margin:0;padding:0;}
body {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(184,58,52,.16), transparent 60%),
    linear-gradient(180deg,#161b26 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-attachment:fixed;
  color:var(--ink);
  font-family:var(--font-song);
  font-size:14px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img {display:block;max-width:100%;}
a {color:inherit;text-decoration:none;}
h1, h2, h3, p, ol, dl, dd, dt, figure {margin:0;padding:0;}
ol {list-style:none;}
button, input, select {font:inherit;color:inherit;}
.site-header {
  display:flex;
  align-items:center;
  gap:14px;
  padding:9px 14px;
  background:linear-gradient(90deg,#10141c 0%,#1a2130 55%,#10141c 100%);
  border-bottom:2px solid var(--red-dark);
  position:sticky;
  top:0;
  z-index:60;
  box-shadow:0 4px 14px rgba(0,0,0,.5);
}
a[data-contract="site-name"] {
  font-family:var(--font-hei);
  font-weight:900;
  font-size:18px;
  letter-spacing:1px;
  color:var(--warm);
  text-decoration:none;
  white-space:nowrap;
  text-shadow:0 0 12px rgba(227,196,138,.25);
  border-left:3px solid var(--red-bright);
  padding-left:8px;
}
a[data-contract="site-name"]:hover {color:#fff;}
.category-bar {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}
a.runtime-category {
  display:inline-block;
  white-space:nowrap;
  font-family:var(--font-hei);
  font-weight:700;
  font-size:12px;
  padding:3px 10px;
  border-radius:999px;
  color:var(--ink-dim);
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  text-decoration:none;
  transition:background .18s,color .18s,border-color .18s;
}
a.runtime-category:hover {
  color:#fff;
  background:var(--red);
  border-color:var(--red-bright);
}
.page-main {
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:12px 12px 0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hero-panel {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,2.4fr);
  gap:14px;
  align-items:start;
  background:
    linear-gradient(160deg,rgba(184,58,52,.10),transparent 45%),
    var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  position:relative;
  overflow:hidden;
}
.hero-panel::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--red-bright),var(--red-dark) 60%,transparent);
}
.poster-frame {
  position:relative;
  width:100%;
  border-radius:var(--radius-sm);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--bg-deep);
  box-shadow:0 6px 18px rgba(0,0,0,.55);
}
.poster-frame img {
  width:100%;
  aspect-ratio:9 / 16;
  object-fit:cover;
  filter:saturate(.85) contrast(1.05);
}
.poster-caption {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  font-family:var(--font-hei);
  font-size:11px;
  letter-spacing:.5px;
  padding:14px 8px 6px;
  color:var(--warm);
  background:linear-gradient(180deg,transparent,rgba(8,10,15,.92));
}
.hero-info {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.movie-title {
  font-family:var(--font-hei);
  font-weight:900;
  font-size:clamp(20px,3.2vw,30px);
  line-height:1.2;
  letter-spacing:.5px;
  color:#fff;
  text-shadow:0 2px 0 rgba(184,58,52,.45);
}
.movie-tagline {
  font-family:var(--font-hei);
  font-weight:700;
  font-size:13px;
  color:var(--warm);
  padding-left:9px;
  border-left:3px solid var(--red-bright);
}
.movie-seo {
  font-size:12.5px;
  color:var(--ink-dim);
  line-height:1.7;
  text-align:justify;
}
.player-shell {
  position:relative;
  width:100%;
  border-radius:var(--radius-sm);
  overflow:hidden;
  background:#000;
  border:1px solid var(--line);
}
.player-shell video {
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
  object-fit:contain;
}
.player-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  background:linear-gradient(180deg,#1b2230,#12161f);
  border-top:1px solid var(--line);
}
.ctrl-btn {
  font-family:var(--font-hei);
  font-size:11px;
  font-weight:700;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--ink-dim);
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s,color .15s,border-color .15s;
}
.ctrl-btn:hover {background:var(--red);color:#fff;border-color:var(--red-bright);}
.ctrl-progress {
  flex:1 1 120px;
  min-width:80px;
  height:4px;
  accent-color:var(--red-bright);
  cursor:pointer;
}
.ctrl-volume {
  flex:0 1 72px;
  min-width:56px;
  height:4px;
  accent-color:var(--warm-soft);
  cursor:pointer;
}
.ctrl-speed-wrap {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-family:var(--font-hei);
  font-size:11px;
  color:var(--ink-faint);
  white-space:nowrap;
}
.ctrl-speed {
  background:#1b2230;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  font-size:11px;
  padding:2px 4px;
  cursor:pointer;
}
.player-shell.is-playing .ctrl-btn[data-player-action="play"] {background:var(--red);color:#fff;border-color:var(--red-bright);}
.player-shell.is-paused .ctrl-btn[data-player-action="play"] {background:rgba(227,196,138,.15);color:var(--warm);border-color:var(--warm-soft);}
.player-shell.is-muted .ctrl-btn[data-player-action="mute"] {background:var(--yellow);color:#1a1a1a;border-color:var(--yellow);}
.player-shell.is-theater {border-color:var(--red-bright);box-shadow:0 0 0 2px rgba(217,74,66,.4);}
.player-shell.is-theater .ctrl-btn[data-player-action="theater"] {background:var(--red);color:#fff;border-color:var(--red-bright);}
.player-shell.is-lights-off {background:#000;box-shadow:inset 0 0 60px 20px rgba(0,0,0,.9);}
.player-shell.is-lights-off .ctrl-btn[data-player-action="light"] {background:var(--warm);color:#1a1a1a;border-color:var(--warm);}
.episode-status {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.status-line {
  font-family:var(--font-hei);
  font-size:12.5px;
  color:var(--ink-dim);
}
.status-current, .status-total {
  font-size:15px;
  color:var(--warm);
}
.status-track {
  position:relative;
  width:100%;
  height:20px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  overflow:hidden;
}
.status-fill {
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  width:100%;
  font-family:var(--font-hei);
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  color:#fff;
  background:linear-gradient(90deg,var(--red-dark),var(--red-bright));
  text-shadow:0 1px 2px rgba(0,0,0,.5);
}
.cast-block {
  border-top:1px dashed var(--line);
  padding-top:9px;
}
.cast-heading, .synopsis-heading, .details-heading, .timeline-heading, .episodes-heading, .comments-heading {
  font-family:var(--font-hei);
  font-weight:900;
  font-size:14px;
  letter-spacing:1px;
  color:var(--warm);
  margin-bottom:8px;
  display:inline-block;
  padding-bottom:2px;
  border-bottom:2px solid var(--red);
}
.cast-columns {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:var(--gap);
  align-items:start;
}
.cast-card {
  position:relative;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.cast-card + .cast-card::before {
  content:"";
  position:absolute;
  left:-6px;
  top:50%;
  width:5px;
  border-top:2px dashed var(--red-dark);
}
.cast-photo {
  width:100%;
  border-radius:4px;
  overflow:hidden;
  background:var(--bg-deep);
}
.cast-photo img {
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  filter:sepia(.25) contrast(1.05);
}
.cast-name {
  font-family:var(--font-hei);
  font-weight:700;
  font-size:12.5px;
  color:#fff;
}
.cast-role {
  font-size:11.5px;
  line-height:1.55;
  color:var(--ink-dim);
}
.synopsis-block {
  border-top:1px dashed var(--line);
  padding-top:9px;
}
.synopsis-para {
  font-size:12.5px;
  line-height:1.75;
  color:var(--ink-dim);
  text-align:justify;
  text-indent:2em;
}
.synopsis-para + .synopsis-para {margin-top:4px;}
.details-block {
  border-top:1px dashed var(--line);
  padding-top:9px;
}
.details-list {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);
  gap:2px 8px;
}
.details-key {
  font-family:var(--font-hei);
  font-size:11.5px;
  color:var(--ink-faint);
  white-space:nowrap;
  padding:2px 0;
}
.details-value {
  font-size:12px;
  color:var(--ink);
  padding:2px 0;
  border-bottom:1px dotted rgba(255,255,255,.07);
}
.timeline-section {
  background:
    linear-gradient(180deg,rgba(227,196,138,.05),transparent 70%),
    var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  margin-top:4px;
}
.timeline-strip {
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:10px 4px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.timeline-strip::-webkit-scrollbar {height:6px;}
.timeline-strip::-webkit-scrollbar-track {background:rgba(255,255,255,.05);border-radius:999px;}
.timeline-strip::-webkit-scrollbar-thumb {background:var(--red-dark);border-radius:999px;}
.timeline-cell {
  flex:0 0 auto;
  width:170px;
  scroll-snap-align:start;
  background:#f3ead8;
  color:#2b2620;
  border-radius:3px;
  padding:9px 9px 22px;
  box-shadow:0 5px 14px rgba(0,0,0,.6);
  position:relative;
  transform:rotate(-.7deg);
  border:1px solid #d8cbb0;
}
.timeline-cell:nth-child(even) {transform:rotate(.8deg);}
.timeline-cell::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:5px;
  width:64px;
  height:12px;
  transform:translateX(-50%);
  background:rgba(0,0,0,.12);
  border-radius:2px;
}
.timeline-code {
  display:block;
  font-family:var(--font-hei);
  font-size:11px;
  font-weight:700;
  color:var(--red-dark);
  letter-spacing:1px;
  margin-bottom:4px;
}
.timeline-label {
  font-family:var(--font-song);
  font-style:italic;
  font-size:12.5px;
  line-height:1.55;
  color:#332c22;
}
.episodes-section {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
}
.episodes-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  align-items:start;
}
.episode-item {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:
    "no title"
    "sum sum"
    "dur dur";
  gap:3px 8px;
  align-items:center;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-left:3px solid var(--line);
  border-radius:var(--radius-sm);
  padding:7px 9px;
}
.episode-no {
  grid-area:no;
  font-family:var(--font-hei);
  font-weight:700;
  font-size:11px;
  color:var(--ink-faint);
  white-space:nowrap;
  padding:1px 6px;
  border-radius:3px;
  background:rgba(255,255,255,.05);
}
.episode-title {
  grid-area:title;
  font-family:var(--font-hei);
  font-weight:700;
  font-size:13px;
  color:var(--ink);
  line-height:1.35;
}
.episode-summary {
  grid-area:sum;
  font-size:11.5px;
  line-height:1.6;
  color:var(--ink-dim);
}
.episode-duration {
  grid-area:dur;
  font-family:var(--font-hei);
  font-size:10.5px;
  color:var(--ink-faint);
  letter-spacing:.5px;
}
.episode-watched {
  border-left-color:var(--red-bright);
  background:linear-gradient(90deg,rgba(184,58,52,.14),rgba(255,255,255,.03) 55%);
}
.episode-watched .episode-no {
  color:#fff;
  background:var(--red);
}
.episode-watched .episode-title {color:#fff;}
.episode-watched .episode-duration {color:var(--warm-soft);}
.episode-item:not(.episode-watched) {
  opacity:.55;
  filter:grayscale(.4);
}
.comments-section {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
}
.comments-chat {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.comment-bubble {
  width:min(88%,560px);
  border-radius:14px;
  padding:8px 12px;
  border:1px solid var(--line);
  background:var(--surface-2);
  position:relative;
  box-shadow:0 3px 10px rgba(0,0,0,.4);
}
.comment-left {
  align-self:flex-start;
  border-bottom-left-radius:3px;
  background:linear-gradient(135deg,rgba(184,58,52,.22),var(--surface-2) 70%);
  border-color:rgba(217,74,66,.45);
}
.comment-right {
  align-self:flex-end;
  margin-top:-4px;
  border-bottom-right-radius:3px;
  background:linear-gradient(225deg,rgba(227,196,138,.18),var(--surface-2) 70%);
  border-color:rgba(201,169,106,.45);
}
.comment-nick {
  font-family:var(--font-hei);
  font-weight:700;
  font-size:11.5px;
  color:var(--warm);
  margin-bottom:2px;
}
.comment-right .comment-nick {color:var(--warm-soft);}
.comment-text {
  font-size:12.5px;
  line-height:1.65;
  color:var(--ink);
}
.rec-region {
  border-radius:var(--radius);
  padding:10px 12px 12px;
  border:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.rec-heading {
  font-family:var(--font-hei);
  font-weight:900;
  font-size:13.5px;
  letter-spacing:1px;
  color:#fff;
  margin-bottom:8px;
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
}
.rec-rail {
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.rec-rail::-webkit-scrollbar {height:6px;}
.rec-rail::-webkit-scrollbar-track {background:rgba(0,0,0,.25);border-radius:999px;}
.rec-rail::-webkit-scrollbar-thumb {background:rgba(255,255,255,.28);border-radius:999px;}
a.rec-card {
  flex:0 0 auto;
  width:172px;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  gap:5px;
  background:rgba(10,13,19,.55);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-sm);
  padding:6px;
  text-decoration:none;
  color:var(--ink);
  transition:transform .16s,border-color .16s,box-shadow .16s;
}
a.rec-card:hover {
  transform:translateY(-3px);
  border-color:var(--warm);
  box-shadow:0 8px 18px rgba(0,0,0,.6);
}
[data-runtime="recommendation"] img {
  width:100%;
  aspect-ratio:16 / 10;
  height:auto;
  object-fit:cover;
  border-radius:4px;
  background:#000;
}
.rec-name {
  font-family:var(--font-hei);
  font-weight:700;
  font-size:12px;
  color:#fff;
  line-height:1.35;
}
.rec-blurb {
  font-size:11px;
  line-height:1.5;
  color:var(--ink-dim);
}
.rec-region-red {
  background:linear-gradient(160deg,rgba(184,58,52,.32),rgba(125,38,34,.14) 60%,transparent),var(--surface);
  border-color:rgba(217,74,66,.5);
}
.rec-region-red .rec-heading {background:var(--red);border:1px solid var(--red-bright);}
.rec-region-yellow {
  background:linear-gradient(160deg,rgba(201,154,46,.28),rgba(201,154,46,.08) 60%,transparent),var(--surface);
  border-color:rgba(201,154,46,.5);
}
.rec-region-yellow .rec-heading {background:var(--yellow);color:#1a1a1a;border:1px solid #e0b348;}
.rec-region-blue {
  background:linear-gradient(160deg,rgba(61,95,143,.32),rgba(61,95,143,.08) 60%,transparent),var(--surface);
  border-color:rgba(61,95,143,.55);
}
.rec-region-blue .rec-heading {background:var(--blue);border:1px solid #5b81b8;}
.rec-region-gray {
  background:linear-gradient(160deg,rgba(74,82,97,.34),rgba(74,82,97,.1) 60%,transparent),var(--surface);
  border-color:rgba(120,130,150,.45);
}
.rec-region-gray .rec-heading {background:var(--gray-region);border:1px solid #6b7484;}
.site-footer {
  margin-top:16px;
  padding:14px 14px 20px;
  background:linear-gradient(180deg,#10141c,#0a0d13);
  border-top:2px solid var(--red-dark);
  display:flex;
  flex-direction:column;
  gap:9px;
  align-items:center;
  text-align:center;
}
.footer-disclaimer {
  max-width:760px;
  font-size:11.5px;
  line-height:1.7;
  color:var(--ink-faint);
}
.footer-nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-family:var(--font-hei);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  padding:2px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  transition:background .15s,color .15s;
}
a[data-contract="footer-home"] {color:var(--warm);}
a[data-contract="footer-home"]:hover {background:var(--warm);color:#1a1a1a;}
a[data-contract="footer-sitemap"] {color:var(--ink-dim);}
a[data-contract="footer-sitemap"]:hover {background:var(--red);color:#fff;border-color:var(--red-bright);}
.friend-links {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:5px 8px;
  max-width:900px;
}
.friend-links-label {
  font-family:var(--font-hei);
  font-size:11px;
  color:var(--ink-faint);
  letter-spacing:1px;
}
a.runtime-friend-link {
  font-size:11px;
  color:var(--ink-dim);
  text-decoration:none;
  padding:1px 7px;
  border-radius:3px;
  border:1px dashed rgba(255,255,255,.12);
  transition:color .15s,border-color .15s;
}
a.runtime-friend-link:hover {
  color:var(--warm);
  border-color:var(--warm-soft);
}
@media (max-width:900px){.hero-panel {grid-template-columns:minmax(0,1fr);}
.poster-frame {max-width:260px;margin:0 auto;}
.cast-columns {grid-template-columns:repeat(3,minmax(0,1fr));}
.cast-card + .cast-card::before {display:none;}
.details-list {grid-template-columns:auto minmax(0,1fr);}
.episodes-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.page-main {padding:10px 9px 0;gap:12px;}
.hero-panel {padding:10px;gap:10px;}
.movie-title {font-size:19px;}
.cast-columns {grid-template-columns:repeat(2,minmax(0,1fr));}
.details-list {grid-template-columns:auto minmax(0,1fr);}
.episodes-grid {grid-template-columns:minmax(0,1fr);}
.timeline-cell {width:150px;}
.comment-bubble {width:94%;}
a.rec-card {width:148px;}
.player-controls {gap:5px;padding:6px;}
.ctrl-btn {font-size:10.5px;padding:3px 7px;}
.ctrl-progress {flex:1 1 100%;order:9;}}
@media (max-width:420px){.cast-columns {grid-template-columns:minmax(0,1fr);}
.site-brand {font-size:16px;}
a.rec-card {width:132px;}
.timeline-cell {width:135px;}}

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}
