*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, dt, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:root {
  --night-0: #0a0e16;
  --night-1: #0f1520;
  --night-2: #151d2b;
  --night-3: #1d2839;
  --line: #263349;
  --line-soft: #1b2433;
  --screen: #cfe3ff;
  --screen-dim: #8fa8c8;
  --ink: #e8eef8;
  --ink-dim: #9dadc4;
  --ink-faint: #6b7c95;
  --lamp: #f0a martial;
  --lamp: #f2a13c;
  --lamp-soft: #c97d22;
  --sticky: #f4d55a;
  --sticky-deep: #d9b53a;
}
body.night-office {
  background:
    radial-gradient(1100px 620px at 78% -6%, rgba(207, 227, 255, 0.10), rgba(10, 14, 22, 0) 62%),
    radial-gradient(560px 420px at 6% 96%, rgba(242, 161, 60, 0.10), rgba(10, 14, 22, 0) 68%),
    var(--night-0);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
.page-shell {
  display: block;
  width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 14, 22, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  color: var(--screen);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
a[data-contract="site-name"]:hover, a[data-contract="site-name"]:focus-visible { color: #ffffff; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 0;
}
a.runtime-category {
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12.5px;
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(29, 40, 57, 0.5);
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
a.runtime-category:hover, a.runtime-category:focus-visible {
  color: var(--night-0);
  background: var(--screen);
  border-color: var(--screen);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  display: block;
}
.section-heading, .panel-heading, .reco-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--screen);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-heading::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--lamp);
  border-radius: 1px;
  flex: none;
}
.panel-heading {
  font-size: 12.5px;
  color: var(--lamp);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.movie-block {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  grid-template-areas:
    "media info"
    "player player";
  gap: 16px 22px;
  align-items: start;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(207, 227, 255, 0.05), rgba(207, 227, 255, 0) 40%),
    var(--night-1);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.movie-block::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(242, 161, 60, 0.16), rgba(242, 161, 60, 0) 68%);
  pointer-events: none;
}
.overview-media {
  grid-area: media;
  align-self: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(207, 227, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.overview-info {
  grid-area: info;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.overview-heading {
  position: relative;
  padding-left: 14px;
  border-left: 3px solid var(--lamp);
}
.hero-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f4f8ff;
  text-shadow: 0 0 22px rgba(207, 227, 255, 0.28);
}
.hero-tagline {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--sticky);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.overview-seo {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  padding: 9px 11px;
  background: rgba(29, 40, 57, 0.42);
  border-left: 2px solid var(--line);
  border-radius: 0 3px 3px 0;
}
.detail-panel {
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
}
.detail-pair {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(38, 51, 73, 0.7);
}
.detail-pair dt {
  flex: 0 0 60px;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.detail-pair dd {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}
.episode-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.status-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--night-0);
  background: var(--screen);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 14px rgba(207, 227, 255, 0.32);
}
.status-total {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.cast-panel {
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
}
.cast-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.cast-avatar {
  width: 100%;
  max-width: 54px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  background:
    radial-gradient(circle at 34% 30%, rgba(207, 227, 255, 0.5), rgba(207, 227, 255, 0) 60%),
    linear-gradient(160deg, var(--night-3), var(--night-2));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px rgba(10, 14, 22, 0.6);
}
.cast-name {
  font-size: 11px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.synopsis-panel {
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
}
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-dim);
  margin-bottom: 7px;
}
.synopsis-para:last-child { margin-bottom: 0; }
.hero-player-shell {
  grid-area: player;
  position: relative;
  width: 100%;
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hero-player-shell video {
  display: block;
  width: 100%;
  height: auto;
  background: #05080d;
}
.player-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(21, 29, 43, 0.6), rgba(10, 14, 22, 0.95));
  border-top: 1px solid var(--line-soft);
}
.player-btn {
  flex: none;
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 10px;
  color: var(--ink-dim);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.player-btn:hover, .player-btn:focus-visible {
  color: var(--night-0);
  background: var(--screen);
  border-color: var(--screen);
}
.player-btn.is-active {
  color: var(--night-0);
  background: var(--lamp);
  border-color: var(--lamp);
}
.player-btn.is-playing { color: var(--sticky); border-color: var(--sticky-deep); }
.player-btn.is-muted { color: var(--lamp); border-color: var(--lamp-soft); }
.player-range {
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--night-3);
  cursor: pointer;
  flex: 1 1 120px;
  min-width: 80px;
}
.player-progress { flex: 3 1 220px; }
.player-volume { flex: 1 1 90px; }
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--screen);
  border: none;
  box-shadow: 0 0 8px rgba(207, 227, 255, 0.6);
}
.player-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--screen);
}
.player-select {
  flex: none;
  font-size: 11.5px;
  padding: 5px 8px;
  color: var(--ink-dim);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.hero-player-shell.is-lights-off {
  border-color: var(--lamp-soft);
  box-shadow: 0 0 0 1px rgba(242, 161, 60, 0.35), 0 0 48px rgba(0, 0, 0, 0.9);
}
.hero-player-shell.is-theater {
  border-color: var(--screen-dim);
  box-shadow: 0 0 0 1px rgba(207, 227, 255, 0.3), 0 16px 44px rgba(0, 0, 0, 0.68);
}
.timeline-section {
  margin-top: 26px;
}
.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  padding-left: 2px;
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 52px 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 58px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-node:first-child::before { top: 50%; }
.timeline-node:last-child::before { bottom: 50%; }
.node-timecode {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.node-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--night-3);
  border: 1px solid var(--line);
  justify-self: center;
}
.node-done .node-dot {
  background: var(--lamp);
  border-color: var(--lamp);
  box-shadow: 0 0 10px rgba(242, 161, 60, 0.6);
}
.node-done .node-timecode { color: var(--lamp); }
.node-upcoming .node-dot { background: var(--night-3); border-color: var(--line); }
.node-upcoming .node-label { color: var(--ink-faint); }
.node-label {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
  min-width: 0;
}
.episodes-section {
  margin-top: 26px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.episode-card {
  position: relative;
  padding: 10px 12px 10px 14px;
  background: var(--night-1);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.episode-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  border-radius: 3px 0 0 3px;
  transition: background-color .16s ease;
}
.episode-card:hover {
  border-color: var(--line);
  background: var(--night-2);
}
.episode-card:hover::before, .episode-card.episode-active::before { background: var(--lamp); }
.episode-card.episode-active {
  border-color: var(--lamp-soft);
  background: var(--night-2);
}
.episode-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--screen);
  background: rgba(207, 227, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 7px;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.episode-card:hover .episode-badge {
  color: var(--night-0);
  background: var(--sticky);
  border-color: var(--sticky);
}
.episode-card.episode-active .episode-badge {
  color: var(--night-0);
  background: var(--lamp);
  border-color: var(--lamp);
}
.episode-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.episode-summary {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.episode-duration {
  font-size: 11px;
  color: var(--screen-dim);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.comments-section {
  margin-top: 26px;
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.comment-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: var(--night-1);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  border-radius: 0 3px 3px 0;
  min-width: 0;
}
.comment-card:nth-child(3n + 2) { margin-top: 12px; }
.comment-card:nth-child(3n) { margin-top: 6px; }
.comment-nickname {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sticky);
  letter-spacing: 0.03em;
}
.comment-nickname::before {
  content: "◎ ";
  color: var(--lamp);
}
.comment-text {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.reco-region {
  margin-top: 22px;
}
.reco-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}
.reco-heading::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--sticky);
  border-radius: 1px;
  flex: none;
  transform: rotate(45deg);
}
.reco-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.reco-item {
  min-width: 0;
  display: flex;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  background: var(--night-1);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
a[data-runtime="recommendation"]:hover, a[data-runtime="recommendation"]:focus-visible {
  border-color: var(--lamp-soft);
  background: var(--night-2);
  color: var(--ink);
}
[data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  background: var(--night-3);
  filter: saturate(0.72) brightness(0.86);
  transition: filter .18s ease;
}
a[data-runtime="recommendation"]:hover img, a[data-runtime="recommendation"]:focus-visible img {
  filter: saturate(1) brightness(1);
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--screen);
  line-height: 1.4;
  display: block;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-faint);
  display: block;
}
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 760px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--screen-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover, a[data-contract="footer-home"]:focus-visible, a[data-contract="footer-sitemap"]:focus-visible {
  color: var(--lamp);
  border-bottom-color: var(--lamp);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}
.friend-links-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sticky);
  margin-right: 4px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
a.runtime-friend-link:hover, a.runtime-friend-link:focus-visible {
  color: var(--night-0);
  background: var(--lamp);
  border-color: var(--lamp);
}
.play, .pause, .mute, .volume, .speed, .pip, .theater, .light, .fullscreen, .progress, .timeupdate, .input, .click, .change, .player {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.player-btn.play.is-playing, .player-btn.pause.is-playing { color: var(--sticky); }
@media (max-width: 1000px) {.movie-block {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    gap: 14px 18px;
  }
.hero-title { font-size: 23px; }
.comment-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-card:nth-child(3n + 2), .comment-card:nth-child(3n) { margin-top: 0; }
.comment-card:nth-child(even) { margin-top: 12px; }
.reco-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 820px) {.movie-block {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "info"
      "player";
    gap: 14px;
  }
.overview-media {
    width: 100%;
    max-width: 220px;
  }
.timeline-list { grid-template-columns: minmax(0, 1fr); }
.timeline-node::before { top: 0; bottom: 0; }
.timeline-node:first-child::before { top: 50%; }
.timeline-node:last-child::before { bottom: 50%; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reco-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 640px) {body.night-office { font-size: 13.5px; }
.header-inner { padding: 7px 12px; gap: 10px; }
a[data-contract="site-name"] { font-size: 15px; }
.page-main { padding: 14px 12px 30px; }
.movie-block { padding: 14px 12px; }
.hero-title { font-size: 20px; }
.hero-tagline { font-size: 12.5px; }
.detail-grid { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.cast-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cast-avatar { max-width: 46px; }
.player-control-bar { gap: 6px; padding: 7px 8px; }
.player-btn { font-size: 11px; padding: 5px 8px; }
.player-range { flex: 1 1 100%; }
.player-progress { flex: 1 1 100%; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.comment-card:nth-child(even) { margin-top: 0; }
.reco-list { grid-template-columns: minmax(0, 1fr); }
.site-footer { padding: 16px 12px 26px; }}
@media (max-width: 400px) {.cast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reco-list { grid-template-columns: minmax(0, 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}
