*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0e1418;
  --ink-2: #131b21;
  --ink-3: #1b252d;
  --line: #26333c;
  --line-soft: #1e2931;
  --cold: #7fa6bd;
  --cold-bright: #a9c9dc;
  --fog: #8b9aa5;
  --text: #cfd9df;
  --text-dim: #8d9ba4;
  --warm: #e8873f;
  --warm-soft: #f0a35e;
  --warm-deep: #b85f22;
  --radius-sharp: 2px;
  --radius-soft: 14px;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(127, 166, 189, 0.13), transparent 62%),
    radial-gradient(760px 420px at 6% 12%, rgba(232, 135, 63, 0.07), transparent 60%),
    linear-gradient(178deg, #0c1216 0%, #0f171d 48%, #0b1014 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 17, 21, 0.96), rgba(11, 17, 21, 0.82));
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #eaf2f7;
  white-space: nowrap;
  padding-left: 12px;
  position: relative;
}
a[data-contract="site-name"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: linear-gradient(180deg, var(--cold-bright), var(--warm));
}
a[data-contract="site-name"]:hover { color: #fff; }
.category-nav { flex: 1 1 auto; min-width: 0; }
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  padding: 3px 11px;
  color: var(--cold-bright);
  border: 1px solid var(--line);
  background: rgba(127, 166, 189, 0.06);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
  transition: color .18s, background .18s, border-color .18s;
}
a.runtime-category:hover, a.runtime-category:focus-visible {
  color: #0e1418;
  background: var(--cold-bright);
  border-color: var(--cold-bright);
}
.page-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 16px 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.movie-overview { position: relative; }
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  background:
    linear-gradient(150deg, rgba(127, 166, 189, 0.07), rgba(14, 20, 24, 0) 44%),
    linear-gradient(0deg, #121a20, #101a20);
  border: 1px solid var(--line);
  padding: 20px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.overview-hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 135, 63, 0.16), transparent 66%);
  pointer-events: none;
}
.poster-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  align-self: start;
}
.poster-frame {
  position: relative;
  border: 1px solid var(--line);
  background: #0b1115;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.poster-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.06);
}
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 20, 0.44) 0%, transparent 34%, rgba(232, 135, 63, 0.14) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.action-button {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--cold-bright);
  background: rgba(127, 166, 189, 0.06);
  transition: background .18s, color .18s, border-color .18s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.action-button:hover { background: rgba(127, 166, 189, 0.16); color: #eaf2f7; }
.action-play {
  color: #1a0f06;
  background: linear-gradient(140deg, var(--warm-soft), var(--warm-deep));
  border-color: var(--warm-deep);
}
.action-play:hover { background: linear-gradient(140deg, #ffb072, var(--warm)); color: #180c04; }
.action-theater { color: var(--cold-bright); }
.action-light { color: var(--warm-soft); border-color: rgba(232, 135, 63, 0.34); }
.action-light:hover { background: rgba(232, 135, 63, 0.16); }
.action-button.is-active {
  background: var(--cold-bright);
  color: #0e1418;
  border-color: var(--cold-bright);
}
.action-play.is-active {
  background: linear-gradient(140deg, var(--warm-soft), var(--warm-deep));
  color: #180c04;
  border-color: var(--warm-deep);
}
.overview-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.title-block { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.movie-title {
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.03em;
  color: #f2f7fa;
  margin-bottom: 6px;
}
.movie-tagline {
  font-size: 13.5px;
  color: var(--warm-soft);
  border-left: 2px solid var(--warm);
  padding-left: 9px;
  margin-bottom: 8px;
}
.movie-seo-note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 74ch;
}
.player-shell {
  width: 100%;
  border: 1px solid var(--line);
  background: #070c0f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.player-video {
  display: block;
  width: 100%;
  height: auto;
  background: #05090b;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  background: linear-gradient(180deg, #111a20, #0d1519);
  border-top: 1px solid var(--line-soft);
}
.player-control {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 5px 10px;
  color: var(--cold);
  border: 1px solid var(--line-soft);
  background: rgba(127, 166, 189, 0.05);
  transition: background .16s, color .16s, border-color .16s;
}
.player-control:hover { color: #eaf2f7; border-color: var(--cold); background: rgba(127, 166, 189, 0.14); }
.player-control.is-active {
  color: #0e1418;
  background: var(--cold-bright);
  border-color: var(--cold-bright);
}
.block-heading {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--cold-bright);
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.block-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.cast-block, .synopsis-block, .episode-status-block, .details-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 13px;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
}
.cast-card {
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--cold);
  background: rgba(127, 166, 189, 0.05);
  padding: 6px 9px;
  min-width: 0;
  transition: border-color .18s, background .18s;
}
.cast-card:hover { border-left-color: var(--warm); background: rgba(232, 135, 63, 0.07); }
.cast-name {
  font-size: 13px;
  font-weight: 700;
  color: #dbe6ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.synopsis-paragraph {
  font-size: 13px;
  color: #a9b6be;
  line-height: 1.78;
  margin-bottom: 8px;
  text-align: justify;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.status-list, .details-list {
  display: grid;
  gap: 5px;
}
.status-list { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.status-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(127, 166, 189, 0.04);
  padding: 5px 9px;
  min-width: 0;
}
.status-key {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}
.status-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--cold-bright);
  margin-left: auto;
  white-space: nowrap;
}
.details-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--line-soft);
  min-width: 0;
}
.detail-key {
  font-size: 12px;
  color: var(--text-dim);
  flex: 0 0 auto;
  white-space: nowrap;
}
.detail-value {
  font-size: 12.5px;
  color: #c3cfd6;
  margin-left: auto;
  text-align: right;
  min-width: 0;
}
.section-heading {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #eaf2f7;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-left: 11px;
  position: relative;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, var(--warm), var(--cold));
}
.section-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 82%);
}
.timeline-section { position: relative; }
.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  position: relative;
  padding-top: 16px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--warm-deep), var(--cold) 42%, var(--line) 100%);
}
.timeline-node {
  position: relative;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(127, 166, 189, 0.055), rgba(14, 20, 24, 0.2));
  padding: 12px 11px 10px;
  min-width: 0;
  transition: border-color .18s, transform .18s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 11px;
  width: 7px;
  height: 7px;
  background: var(--cold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(169, 201, 220, 0.14);
}
.timeline-node:hover { border-color: var(--cold); transform: translateY(-2px); }
.timeline-timecode {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--warm-soft);
  margin-bottom: 5px;
}
.timeline-label {
  display: block;
  font-size: 12.5px;
  color: #a8b5bd;
  line-height: 1.62;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.episode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num title dur"
    "num summary summary";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  background: linear-gradient(120deg, rgba(127, 166, 189, 0.05), rgba(14, 20, 24, 0.18));
  padding: 10px 12px;
  min-width: 0;
  transition: border-color .18s, background .18s;
}
.episode-card:hover {
  border-left-color: var(--warm);
  background: linear-gradient(120deg, rgba(232, 135, 63, 0.08), rgba(14, 20, 24, 0.2));
}
.episode-number {
  grid-area: num;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cold-bright);
  white-space: nowrap;
  padding-top: 2px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
  padding-right: 8px;
}
.episode-title {
  grid-area: title;
  font-size: 14px;
  color: #eef4f8;
  min-width: 0;
}
.episode-summary {
  grid-area: summary;
  font-size: 12.5px;
  color: #9dabb4;
  line-height: 1.66;
  min-width: 0;
}
.episode-duration {
  grid-area: dur;
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  border: 1px solid var(--line-soft);
  padding: 1px 7px;
  align-self: start;
}
.comment-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 9px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.comment-strip::-webkit-scrollbar { height: 5px; }
.comment-strip::-webkit-scrollbar-track { background: var(--line-soft); }
.comment-strip::-webkit-scrollbar-thumb { background: var(--cold); }
.comment-card {
  flex: 0 0 auto;
  width: 268px;
  scroll-snap-align: start;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--cold);
  background: linear-gradient(180deg, rgba(127, 166, 189, 0.06), rgba(13, 19, 23, 0.4));
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-top-color .18s, transform .18s;
}
.comment-card:hover { border-top-color: var(--warm); transform: translateY(-2px); }
.comment-nickname {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cold-bright);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comment-text {
  font-size: 12.5px;
  color: #a6b3bc;
  line-height: 1.68;
}
.recommend-region { min-width: 0; }
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 9px;
  align-items: start;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-soft);
  background: #0f171d;
  padding: 7px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s, transform .18s, background .18s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
a.recommend-card:hover {
  border-color: var(--warm);
  background: #121c22;
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: #080d10;
  filter: saturate(0.9) contrast(1.04);
}
.recommend-name {
  font-size: 13px;
  font-weight: 800;
  color: #e6eef3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-blurb {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0c1216, #090e11);
  margin-top: 10px;
}
.footer-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 26px;
  align-items: start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cold-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}
.footer-disclaimer {
  font-size: 12px;
  color: #71808a;
  line-height: 1.7;
  grid-column: 1 / -1;
}
.friend-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.friend-links-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
a.runtime-friend-link {
  font-size: 12px;
  color: #93a3ad;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s;
}
a.runtime-friend-link:hover { color: var(--warm-soft); text-decoration: underline; }
body.lights-off .movie-overview, body.lights-off .timeline-section, body.lights-off .episodes-section, body.lights-off .comments-section, body.lights-off .recommend-region { opacity: 0.42; transition: opacity .25s; }
body.lights-off .player-shell { opacity: 1; box-shadow: 0 0 0 1px var(--warm), 0 0 34px rgba(232, 135, 63, 0.28); }
body.theater-mode .overview-hero { grid-template-columns: minmax(0, 1fr); }
body.theater-mode .poster-column { flex-direction: row; align-items: flex-start; gap: 12px; }
body.theater-mode .poster-frame { flex: 0 0 150px; }
body.theater-mode .poster-actions { flex: 1 1 auto; }
.player .progress { position: relative; }
.function .is-active { color: var(--warm-soft); }
.click, .play, .mute, .volume, .speed, .pip, .fullscreen, .light, .theater { transition: color .16s, background .16s; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--warm-soft);
  outline-offset: 2px;
}
@media (max-width: 1080px) {.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 900px) {.overview-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
.poster-column {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
.poster-frame { flex: 0 1 190px; }
.poster-actions { flex: 1 1 150px; }
.footer-bar { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 720px) {.page-main { padding: 16px 12px 26px; gap: 24px; }
.header-bar { padding: 8px 12px; gap: 12px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.timeline-track { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.comment-card { width: 232px; }
.recommend-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }}
@media (max-width: 520px) {body { font-size: 13.5px; }
.movie-title { font-size: 24px; }
.poster-column { flex-direction: column; }
.poster-frame { flex: none; width: 100%; max-width: 210px; }
.poster-actions { width: 100%; }
.status-list { grid-template-columns: minmax(0, 1fr); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.comment-card { width: 210px; }
.episode-number { writing-mode: horizontal-tb; border-right: 0; padding-right: 0; }
.episode-card {
    grid-template-areas:
      "num dur"
      "title title"
      "summary summary";
    grid-template-columns: minmax(0, 1fr) auto;
  }
.recommend-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 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}
