*, *::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, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:root {
  --iron: #23262b;
  --iron-deep: #17191d;
  --iron-panel: #2b2f36;
  --iron-edge: #3a3f48;
  --rust: #4a3a2e;
  --rust-deep: #2e241c;
  --amber: #e0a53d;
  --amber-soft: #f0c675;
  --neon: #e33b3b;
  --neon-soft: #ff6a5e;
  --bone: #d8d2c6;
  --bone-dim: #9a948a;
  --bone-faint: #6d6a63;
  --ink: #101215;
  --track-h: 2px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--iron-deep);
  background-image:
    linear-gradient(180deg, rgba(224, 165, 61, 0.06), rgba(0, 0, 0, 0) 340px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, rgba(0, 0, 0, 0) 1px 5px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 2px, rgba(0, 0, 0, 0) 2px 6px);
  color: var(--bone);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Heiti SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-stretch: condensed;
  letter-spacing: 0.02em;
  padding-bottom: 0;
}
body.lights-off {
  background-image:
    linear-gradient(180deg, rgba(224, 165, 61, 0.03), rgba(0, 0, 0, 0) 340px);
  filter: brightness(0.55) contrast(1.08);
}
body.theater-mode .page-main {
  background-color: #06070a;
}
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.section-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  padding: 0 0 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--iron-edge);
  position: relative;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background: var(--neon);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 20, 24, 0.94);
  border-bottom: 1px solid var(--iron-edge);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
}
a[data-contract="site-name"].site-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber-soft);
  text-decoration: none;
  padding: 2px 8px 2px 10px;
  border-left: 3px solid var(--neon);
  background: linear-gradient(90deg, rgba(227, 59, 59, 0.14), rgba(227, 59, 59, 0) 70%);
  white-space: nowrap;
}
a[data-contract="site-name"].site-name:hover { color: var(--bone); }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-left: auto;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 4px 9px;
  background: var(--iron-panel);
  border: 1px solid var(--iron-edge);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}
a.runtime-category:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.player-shell {
  position: relative;
  background: var(--iron);
  border: 1px solid var(--iron-edge);
  border-top: 2px solid var(--rust);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-shell::before {
  content: "REC ● 底舱信号";
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--neon-soft);
  background: rgba(10, 11, 13, 0.6);
  padding: 2px 7px;
  pointer-events: none;
}
.player-frame {
  width: 100%;
  background: #000;
  border: 1px solid var(--iron-edge);
  position: relative;
  overflow: hidden;
}
.player-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  object-fit: cover;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  background: linear-gradient(180deg, var(--rust-deep), var(--iron-deep));
  border: 1px solid var(--iron-edge);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.player-btn {
  appearance: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  color: var(--bone);
  background: var(--iron-panel);
  border: 1px solid var(--iron-edge);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.player-btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.player-btn.is-active, .player-btn.is-playing {
  background: var(--neon);
  border-color: var(--neon-soft);
  color: #fff;
}
.player-range {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  height: 6px;
  background: var(--iron-deep);
  border: 1px solid var(--iron-edge);
  flex: 1 1 90px;
  min-width: 70px;
  max-width: 220px;
  margin: 0;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 16px;
  background: var(--amber);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.player-range::-moz-range-thumb {
  width: 10px;
  height: 16px;
  border-radius: 0;
  background: var(--amber);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.player-range::-moz-range-track {
  height: 4px;
  background: var(--iron-deep);
}
.player-range:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 2px;
}
.movie-info {
  background: linear-gradient(180deg, var(--iron) 0%, var(--iron-deep) 100%);
  border: 1px solid var(--iron-edge);
  border-left: 3px solid var(--rust);
  padding: 12px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.info-header { margin-bottom: 4px; }
.info-body {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}
.info-poster {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  background: var(--ink);
  border: 1px solid var(--iron-edge);
  padding: 3px;
  position: relative;
}
.info-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(224, 165, 61, 0.22);
  pointer-events: none;
}
.hero-poster {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
.info-title-block {
  grid-column: 2 / span 2;
  grid-row: 1;
  border-bottom: 1px solid var(--iron-edge);
  padding-bottom: 8px;
}
.hero-title {
  font-size: 30px;
  letter-spacing: 0.1em;
  color: var(--bone);
  text-shadow: 0 0 18px rgba(227, 59, 59, 0.35), 0 2px 0 #000;
  position: relative;
  display: inline-block;
}
.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), rgba(227, 59, 59, 0));
}
.hero-tagline {
  margin-top: 12px;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--amber);
  padding: 3px 12px 3px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.info-cast {
  grid-column: 2 / span 2;
  grid-row: 2;
}
.info-synopsis {
  grid-column: 2;
  grid-row: 3;
}
.info-status {
  grid-column: 3;
  grid-row: 3;
}
.info-details {
  grid-column: 2 / span 2;
  grid-row: 4;
}
.info-subheading {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 7px;
  padding-left: 8px;
  border-left: 2px solid var(--neon);
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  align-items: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--iron-edge);
  border-top: 2px solid var(--rust);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cast-card:hover {
  border-color: var(--amber);
  border-top-color: var(--neon);
  background: rgba(224, 165, 61, 0.08);
}
.cast-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.cast-relation {
  font-size: 11px;
  line-height: 1.4;
  color: var(--bone-dim);
}
.synopsis-lead {
  font-size: 13px;
  line-height: 1.65;
  color: var(--amber-soft);
  padding-left: 9px;
  border-left: 2px solid var(--rust);
  margin-bottom: 8px;
}
.synopsis-body {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--bone-dim);
  margin-bottom: 6px;
  text-indent: 2em;
}
.synopsis-body:last-child { margin-bottom: 0; }
.status-list, .detail-list {
  display: grid;
  gap: 3px;
}
.status-list {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.status-row, .detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.28);
  border-left: 2px solid var(--iron-edge);
}
.status-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border-left-color: var(--neon);
}
.status-key, .detail-key {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bone-faint);
  white-space: nowrap;
}
.status-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.detail-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.detail-value {
  font-size: 12px;
  color: var(--bone);
  text-align: right;
  letter-spacing: 0.03em;
}
.timeline-panel {
  background: var(--iron);
  border: 1px solid var(--iron-edge);
  border-top: 2px solid var(--rust);
  padding: 12px 14px 16px;
}
.timeline-track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  position: relative;
  padding-top: 4px;
}
.timeline-node {
  flex: 1 1 160px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(46, 36, 28, 0.85), rgba(0, 0, 0, 0.45));
  border: 1px solid var(--iron-edge);
  border-top: 2px solid var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.timeline-timecode {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--neon-soft);
}
.timeline-label {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--bone);
}
.timeline-anchor {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--amber);
  opacity: 0.75;
  padding: 0 2px;
}
.episodes-panel {
  background: var(--iron);
  border: 1px solid var(--iron-edge);
  border-left: 3px solid var(--rust);
  padding: 12px 14px 14px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px 9px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--iron-edge);
  border-bottom: 2px solid var(--iron-edge);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.episode-card:hover {
  background: rgba(224, 165, 61, 0.1);
  border-color: var(--amber);
  border-bottom-color: var(--neon);
}
.episode-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--neon-soft);
}
.episode-title {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--bone);
}
.episode-summary {
  font-size: 12px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
  margin: 0;
}
.episode-card:hover .episode-summary, .episode-card:focus-within .episode-summary {
  max-height: 160px;
  opacity: 1;
  margin-top: 4px;
}
.episode-duration {
  align-self: flex-start;
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bone-faint);
  border: 1px solid var(--iron-edge);
  padding: 1px 6px;
}
.comments-panel {
  background: var(--iron);
  border: 1px solid var(--iron-edge);
  border-top: 2px solid var(--rust);
  padding: 12px 14px 14px;
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.comment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--iron-edge);
  border-left: 3px solid var(--rust);
}
.comment-card:nth-child(odd) {
  transform: translateX(0);
}
.comment-card:nth-child(3n) {
  border-left-color: var(--amber);
}
.comment-nickname {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber-soft);
}
.comment-nickname::before {
  content: "▍";
  color: var(--neon);
  margin-right: 2px;
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--bone-dim);
}
.rec-region {
  background: var(--iron);
  border: 1px solid var(--iron-edge);
  border-left: 3px solid var(--rust);
  padding: 12px 14px 14px;
}
.rec-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-items: start;
}
.rec-item {
  display: block;
  min-width: 0;
}
a.rec-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 5px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--iron-edge);
  color: var(--bone-dim);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.rec-link:hover {
  background: rgba(224, 165, 61, 0.1);
  border-color: var(--amber);
  color: var(--bone);
  text-decoration: none;
}
[data-runtime="recommendation"] img, .rec-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--ink);
  border: 1px solid var(--iron-edge);
  filter: saturate(0.8) contrast(1.06);
}
.rec-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bone);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: var(--bone-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  margin-top: 8px;
  background: #0e1013;
  border-top: 2px solid var(--rust);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 10px 18px;
  align-items: start;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.footer-meta { min-width: 0; }
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--bone-faint);
  border-left: 2px solid var(--iron-edge);
  padding-left: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
a.footer-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 3px 7px;
  background: var(--iron-panel);
  border: 1px solid var(--iron-edge);
  border-left: 2px solid var(--rust);
}
a.footer-link:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.footer-friends {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  min-width: 0;
}
.footer-friends-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  width: 100%;
  margin-bottom: 2px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--bone-faint);
  text-decoration: none;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--iron-edge);
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: var(--neon-soft);
  border-color: var(--neon);
}
@media (max-width: 1024px) {.info-body {
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  }
.info-synopsis { grid-column: 2; grid-row: 3; }
.info-status { grid-column: 2; grid-row: 4; }
.info-details { grid-column: 2; grid-row: 5; }
.site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
.footer-friends { grid-column: 1 / -1; }}
@media (max-width: 760px) {.header-inner { padding: 8px 10px; }
.page-main { padding: 10px 10px 20px; gap: 16px; }
.info-body {
    grid-template-columns: minmax(0, 1fr);
  }
.info-poster {
    grid-column: 1;
    grid-row: 1;
    max-width: 190px;
  }
.info-title-block, .info-cast, .info-synopsis, .info-status, .info-details {
    grid-column: 1;
    grid-row: auto;
  }
.hero-title { font-size: 24px; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.site-footer { grid-template-columns: minmax(0, 1fr); }
.footer-friends { grid-column: 1; }
.timeline-anchor { display: none; }
.timeline-node { flex: 1 1 100%; }}
@media (max-width: 520px) {.hero-title { font-size: 21px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.rec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.player-btn { font-size: 10px; padding: 4px 7px; }
.player-range { flex: 1 1 100%; max-width: none; }
.cast-list { grid-template-columns: minmax(0, 1fr); }
.detail-list { grid-template-columns: minmax(0, 1fr); }
.detail-value { text-align: left; }}
@media (max-width: 380px) {.rec-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}
