*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:root {
  --ink: #1c2126;
  --ink-soft: #3a434c;
  --paper: #e7e2d8;
  --paper-dim: #d6cfc1;
  --case: #14181d;
  --case-2: #1b2027;
  --amber: #c08a3e;
  --amber-dim: #8d6631;
  --cyan: #7d99a0;
  --line: #4a5157;
  --typewriter: "Courier New", "Songti SC", "SimSun", ui-monospace, monospace;
  --serif: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  --heading: "Heiti SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 90% at 8% 0%, #232b31 0%, #14181d 60%, #0e1115 100%);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  padding: 0 12px 40px;
  min-height: 100vh;
}
.site-header {
  display: flex;
  align-items: baseline;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 10px 4px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
a[data-contract="site-name"] {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-decoration: none;
  text-transform: none;
}
a[data-contract="site-name"]:hover { color: #e0a95a; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
a.runtime-category {
  white-space: nowrap;
  font-family: var(--heading);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cyan);
  text-decoration: none;
  background: rgba(125, 153, 160, 0.06);
}
a.runtime-category:hover {
  color: var(--paper);
  border-color: var(--amber-dim);
  background: rgba(192, 138, 62, 0.14);
}
.archive-main { display: block; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 6px 0 4px;
  margin-bottom: 18px;
}
.hero-tape {
  position: relative;
  min-width: 0;
}
.tape-shell {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: 6px;
  background:
    linear-gradient(150deg, rgba(231, 226, 216, 0.12), rgba(125, 153, 160, 0.08) 55%, rgba(20, 24, 29, 0.4)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 7px);
  border: 1px solid rgba(192, 138, 62, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 40px -22px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(2px);
}
.tape-shell::before, .tape-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px dashed rgba(192, 138, 62, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}
.tape-shell::before { top: 8px; }
.tape-shell::after { bottom: 8px; }
.tape-label {
  position: relative;
  z-index: 1;
  background: rgba(20, 24, 29, 0.45);
  border: 1px solid rgba(231, 226, 216, 0.14);
  padding: 10px;
  border-radius: 3px;
}
.poster-wrap {
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.poster-wrap img {
  width: auto;
  height: auto;
  max-height: 62vh;
  max-width: 100%;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.72) contrast(1.06) sepia(0.12);
  box-shadow: 0 0 0 1px rgba(231, 226, 216, 0.16), 0 14px 30px -18px #000;
}
.hero-file {
  min-width: 0;
  padding: 14px 14px 16px;
  border: 1px solid rgba(74, 81, 87, 0.7);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(231,226,216,0.035) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #1b2027, #12161b);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.hero-title {
  font-family: var(--heading);
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #f0e9dc;
  margin-bottom: 8px;
}
.hero-tagline {
  font-family: var(--typewriter);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--amber);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(192, 138, 62, 0.4);
}
.hero-desc {
  font-size: 12.5px;
  line-height: 1.75;
  color: #c3c8c9;
  margin-bottom: 14px;
}
.player-shell {
  position: relative;
  width: 100%;
  border: 1px solid rgba(125, 153, 160, 0.35);
  background: #0b0e11;
  border-radius: 3px;
  overflow: hidden;
}
.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}
.player-shell.is-lights-off video { filter: brightness(0.62) contrast(1.1); }
.player-shell.is-theater { box-shadow: 0 0 0 1px var(--amber-dim), 0 20px 50px -24px #000; }
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(180deg, #171c22, #10141a);
  border-top: 1px solid rgba(74, 81, 87, 0.6);
}
.player-controls button {
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #b9c0c2;
  background: rgba(125, 153, 160, 0.05);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.player-controls button:hover {
  color: var(--paper);
  border-color: var(--amber-dim);
}
.player-controls button.is-active {
  color: #f2e7d4;
  border-color: var(--amber);
  background: rgba(192, 138, 62, 0.22);
}
.player-controls button.is-muted {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(125, 153, 160, 0.18);
}
.section-heading {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: none;
  padding-bottom: 5px;
  margin-bottom: 9px;
  border-bottom: 1px solid rgba(192, 138, 62, 0.32);
  position: relative;
}
.section-heading::before {
  content: "▍";
  color: var(--amber-dim);
  margin-right: 5px;
  font-size: 10px;
}
.overview-cast, .overview-status, .overview-synopsis, .overview-details {
  margin-top: 16px;
}
.overview-cast .section-heading, .overview-status .section-heading { margin-bottom: 8px; }
.cast-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}
.cast-card {
  min-width: 0;
  border: 1px solid rgba(74, 81, 87, 0.65);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(125, 153, 160, 0.09), rgba(20, 24, 29, 0.5));
  overflow: hidden;
}
.cast-silhouette {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(60% 55% at 50% 34%, #2c343b 0%, #1a1f25 58%, #12161b 100%);
  border-bottom: 1px solid rgba(74, 81, 87, 0.6);
}
.cast-silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 62%;
  height: 58%;
  transform: translateX(-50%);
  border-radius: 46% 46% 12% 12% / 62% 62% 8% 8%;
  background: linear-gradient(180deg, rgba(192, 138, 62, 0.24), rgba(125, 153, 160, 0.1));
  filter: blur(0.4px);
}
.cast-name {
  font-family: var(--typewriter);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #d8d2c6;
  text-align: center;
  padding: 6px 4px 7px;
}
.status-line {
  font-family: var(--typewriter);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #cfd4d3;
  padding: 7px 10px;
  border-left: 2px solid var(--amber);
  background: rgba(125, 153, 160, 0.08);
}
.synopsis-para {
  font-size: 13px;
  line-height: 1.78;
  color: #c6cbc9;
  text-indent: 2em;
}
.synopsis-para + .synopsis-para { margin-top: 5px; }
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(74, 81, 87, 0.45);
  border: 1px solid rgba(74, 81, 87, 0.45);
}
.detail-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 9px;
  background: #191e24;
  min-width: 0;
}
.detail-item dt {
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  flex: 0 0 auto;
}
.detail-item dd {
  font-size: 12.5px;
  color: #d5d9d7;
  margin: 0;
  min-width: 0;
  word-break: break-word;
}
.timeline-section {
  margin-top: 22px;
}
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 14px;
  align-items: start;
  padding-left: 4px;
}
.timeline-node {
  position: relative;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px dashed rgba(125, 153, 160, 0.4);
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(20, 24, 29, 0.9), 0 0 8px rgba(192, 138, 62, 0.6);
}
.timeline-timecode {
  display: block;
  font-family: var(--typewriter);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 4px;
}
.timeline-frame {
  border: 1px solid rgba(74, 81, 87, 0.6);
  border-radius: 2px;
  padding: 6px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(231,226,216,0.05) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #1a1f26, #14181d);
}
.timeline-label {
  font-size: 12px;
  line-height: 1.62;
  color: #c4c9c8;
}
.episodes-section {
  margin-top: 22px;
}
.episode-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--amber-dim) transparent;
  scroll-snap-type: x proximity;
}
.episode-scroll::-webkit-scrollbar { height: 7px; }
.episode-scroll::-webkit-scrollbar-thumb {
  background: var(--amber-dim);
  border-radius: 4px;
}
.episode-scroll::-webkit-scrollbar-track { background: rgba(74, 81, 87, 0.25); }
.episode-card {
  position: relative;
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 11px 11px;
  border: 1px solid rgba(192, 138, 62, 0.3);
  border-radius: 3px;
  background:
    linear-gradient(180deg, #1e242b, #161b21 70%, #12161b);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.episode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-dim), transparent 85%);
}
.episode-card::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 153, 160, 0.35);
  pointer-events: none;
}
.episode-number {
  font-family: var(--heading);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.episode-title {
  font-family: var(--heading);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #efe8db;
  margin-bottom: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(74, 81, 87, 0.5);
}
.episode-summary {
  font-size: 12px;
  line-height: 1.68;
  color: #bcc2c1;
  flex: 1 1 auto;
  margin-bottom: 8px;
}
.episode-duration {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--amber);
  padding-top: 6px;
  border-top: 1px dashed rgba(192, 138, 62, 0.3);
}
.comments-section {
  margin-top: 22px;
}
.comment-columns {
  column-count: 2;
  column-gap: 12px;
}
.comment-note {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 10px 10px;
  background: linear-gradient(170deg, #eee8da, #ded6c4);
  color: var(--ink);
  border-radius: 2px 2px 2px 0;
  box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative;
}
.comment-note:nth-child(odd) { transform: rotate(-0.5deg); }
.comment-note:nth-child(even) { transform: rotate(0.6deg); }
.comment-note::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 14px;
  width: 34px;
  height: 10px;
  background: rgba(192, 138, 62, 0.4);
  border: 1px solid rgba(141, 102, 49, 0.5);
  transform: rotate(-2deg);
}
.comment-nickname {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6b4a1d;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: #2b3238;
}
.recommend-region {
  margin-top: 20px;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid var(--amber-dim);
  color: #cfd4d3;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
a[data-runtime="recommendation"]:hover {
  color: var(--amber);
  border-color: var(--amber);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  background: #0d1013;
  filter: saturate(0.7) contrast(1.05);
  margin-bottom: 6px;
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-family: var(--heading);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #e6dfd2;
  margin-bottom: 3px;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 11.5px;
  line-height: 1.6;
  color: #a7aeae;
}
.site-footer {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  font-size: 11.5px;
}
.footer-disclaimer {
  flex: 1 1 320px;
  min-width: 0;
  color: #8c949a;
  line-height: 1.68;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-family: var(--heading);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.friend-links {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(74, 81, 87, 0.6);
}
.friend-links-label {
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber-dim);
  margin-right: 2px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: #99a1a3;
  text-decoration: none;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {.hero { grid-template-columns: minmax(0, 1fr); }
.poster-wrap img { max-height: none; width: auto; max-width: min(320px, 100%); }
.hero-tape { max-width: 420px; margin: 0 auto; }}
@media (max-width: 640px) {body { padding: 0 9px 32px; font-size: 13.5px; }
.site-header { padding: 8px 2px 10px; margin-bottom: 12px; }
.hero { gap: 12px; margin-bottom: 14px; }
.tape-shell { padding: 12px 12px 14px; }
.hero-file { padding: 12px 11px 13px; }
.hero-desc { font-size: 12px; }
.player-controls button { font-size: 10.5px; padding: 3px 7px; }
.cast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-list { grid-template-columns: minmax(0, 1fr); }
.timeline-track { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.episode-scroll { grid-auto-columns: minmax(205px, 80%); }
.comment-columns { column-count: 1; }
.recommend-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.site-footer { gap: 8px 14px; }}
@media (max-width: 420px) {.cast-row { grid-template-columns: minmax(0, 1fr); }
.episode-scroll { grid-auto-columns: minmax(180px, 88%); }
.recommend-grid { grid-template-columns: minmax(0, 1fr); }
.player-controls { gap: 3px; }
.player-controls button { font-size: 10px; padding: 3px 6px; }}
@media (min-width: 1100px) {.recommend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comment-columns { column-count: 2; }}

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}
