*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, p, ul, ol, li, dl, dt, dd, nav, header, footer, section, aside, main { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:root {
  --ink: #0a1018;
  --deep: #101a26;
  --slate: #17232f;
  --slate-2: #1d2c3a;
  --line: #26394b;
  --mist: #9fb4c6;
  --mist-2: #7d95aa;
  --text: #dbe6ef;
  --gold: #f0c169;
  --gold-soft: #e0a94e;
  --cyan: #8fd8d6;
  --rain: rgba(159, 180, 198, 0.16);
  --rain-strong: rgba(143, 216, 214, 0.13);
  --radius: 6px;
  --gap: 10px;
  --pad: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(103deg, var(--rain) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(103deg, var(--rain-strong) 0 1px, transparent 1px 27px),
    radial-gradient(120% 60% at 78% -5%, rgba(240, 193, 105, 0.11), transparent 58%),
    radial-gradient(90% 50% at 20% 0%, rgba(143, 216, 214, 0.07), transparent 60%),
    linear-gradient(180deg, #0c141d 0%, #0a1018 46%, #0d1620 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  min-height: 100%;
}
h1, h2 { font-weight: 800; letter-spacing: -0.02em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(9, 15, 22, 0.96), rgba(9, 15, 22, 0.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 14px;
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(240, 193, 105, 0.35);
}
a[data-contract="site-name"] { color: var(--gold); text-decoration: none; }
a[data-contract="site-name"]:hover { color: var(--cyan); text-decoration: none; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mist);
  background: rgba(29, 44, 58, 0.5);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
a.runtime-category { color: var(--mist); }
a.runtime-category:hover {
  color: var(--gold);
  border-color: rgba(240, 193, 105, 0.5);
  background: rgba(240, 193, 105, 0.08);
}
.rain-harbor {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.panel-title, .strip-title, .rail-title, .grid-title, .rec-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 10px;
  position: relative;
}
.panel-title::before, .strip-title::before, .rail-title::before, .grid-title::before, .rec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  transform: skewX(-14deg);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  grid-template-areas:
    "figure info"
    "player info"
    "cast cast"
    "synopsis synopsis";
  gap: var(--gap);
  align-items: start;
}
.hero-figure {
  grid-area: figure;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  background: linear-gradient(150deg, rgba(29, 44, 58, 0.72), rgba(16, 26, 38, 0.86));
  border: 1px solid var(--line);
  border-left: 3px solid rgba(240, 193, 105, 0.55);
  border-radius: 2px;
  padding: var(--pad);
  position: relative;
  overflow: hidden;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(103deg, rgba(143, 216, 214, 0.05) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.poster-wrap {
  width: 100%;
  max-width: 148px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #0c141d;
  align-self: start;
}
.poster-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.hero-copy { min-width: 0; }
.hero-title {
  font-size: clamp(24px, 3.4vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: #f3f8fc;
  text-shadow: 0 2px 26px rgba(10, 16, 24, 0.9);
}
.hero-tagline {
  margin-top: 6px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.hero-seo {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.hero-player {
  grid-area: player;
  background: linear-gradient(160deg, rgba(16, 26, 38, 0.9), rgba(10, 16, 24, 0.96));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060a10;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: block;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ctrl-btn, .ctrl-select {
  font-size: 11.5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 44, 58, 0.62);
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ctrl-btn:hover, .ctrl-select:hover {
  color: var(--gold);
  border-color: rgba(240, 193, 105, 0.5);
  background: rgba(240, 193, 105, 0.08);
}
.ctrl-btn.is-active, .ctrl-select.is-active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.ctrl-range {
  flex: 1 1 100px;
  min-width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--cyan), var(--line));
  border-radius: 3px;
  outline: none;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}
.ctrl-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.ctrl-select { flex: 0 0 auto; }
.hero-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
  background: linear-gradient(200deg, rgba(23, 35, 47, 0.85), rgba(13, 21, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
}
.details-panel, .status-panel { min-width: 0; }
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(38, 57, 75, 0.85);
  font-size: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt {
  color: var(--mist-2);
  flex: 0 0 auto;
  letter-spacing: 0.02em;
}
.detail-row dd {
  color: var(--text);
  text-align: right;
  min-width: 0;
  word-break: break-word;
}
.status-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.status-current {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.status-total {
  margin-top: 3px;
  font-size: 12px;
  color: var(--mist);
}
.cast-strip {
  grid-area: cast;
  background: linear-gradient(120deg, rgba(23, 35, 47, 0.7), rgba(13, 21, 30, 0.8));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  min-width: 0;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cast-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 170px;
  min-width: 0;
  padding: 5px 9px 5px 5px;
  background: rgba(29, 44, 58, 0.42);
  border: 1px solid rgba(38, 57, 75, 0.9);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.cast-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(240, 193, 105, 0.85), rgba(143, 216, 214, 0.35) 62%, rgba(16, 26, 38, 0.9));
  border: 1px solid rgba(143, 216, 214, 0.45);
}
.cast-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.cast-role {
  font-size: 11px;
  color: var(--mist-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.synopsis-panel {
  grid-area: synopsis;
  background: linear-gradient(200deg, rgba(23, 35, 47, 0.68), rgba(13, 21, 30, 0.82));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  min-width: 0;
}
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
  padding-left: 10px;
  border-left: 2px solid rgba(38, 57, 75, 0.9);
}
.timeline-rail {
  background: linear-gradient(120deg, rgba(16, 26, 38, 0.86), rgba(10, 16, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  min-width: 0;
}
.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-2) transparent;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-track { background: rgba(38, 57, 75, 0.4); border-radius: 3px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }
.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 10px 10px 16px;
  background: linear-gradient(150deg, rgba(29, 44, 58, 0.62), rgba(16, 26, 38, 0.72));
  border: 1px solid var(--line);
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 9px;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  border-radius: 60% 60% 60% 60% / 80% 80% 40% 40%;
  transform: skewX(-10deg);
}
.node-timecode {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}
.node-label {
  font-size: 12px;
  line-height: 1.45;
  color: var(--mist);
}
.episode-grid-shell {
  background: linear-gradient(120deg, rgba(16, 26, 38, 0.86), rgba(10, 16, 24, 0.9));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  min-width: 0;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  background: rgba(29, 44, 58, 0.45);
  border: 1px solid rgba(38, 57, 75, 0.9);
  border-left: 2px solid rgba(143, 216, 214, 0.35);
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color 0.15s, background 0.15s;
}
.episode-card:hover {
  background: rgba(38, 57, 75, 0.6);
  border-left-color: var(--gold);
}
.ep-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.ep-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ep-summary {
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--mist-2);
}
.ep-duration {
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(240, 193, 105, 0.75);
}
.comment-rail {
  background: linear-gradient(200deg, rgba(23, 35, 47, 0.72), rgba(13, 21, 30, 0.86));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  min-width: 0;
}
.comment-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: start;
}
.comment-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: linear-gradient(150deg, rgba(29, 44, 58, 0.6), rgba(16, 26, 38, 0.7));
  border: 1px solid rgba(38, 57, 75, 0.9);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: transform 0.18s, border-color 0.18s;
}
.comment-item:nth-child(2n) { transform: translateY(9px); }
.comment-item:nth-child(3n) { transform: translateY(-4px); }
.comment-item:hover {
  border-color: rgba(240, 193, 105, 0.5);
  transform: translateY(0);
}
.comment-nick {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.comment-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--mist);
}
.rec-region {
  background: linear-gradient(120deg, rgba(16, 26, 38, 0.82), rgba(10, 16, 24, 0.9));
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--pad);
  min-width: 0;
}
.rec-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.rec-stagger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  background: rgba(29, 44, 58, 0.45);
  border: 1px solid rgba(38, 57, 75, 0.9);
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
  min-width: 0;
}
a.rec-card { color: var(--text); text-decoration: none; }
a.rec-card:hover {
  border-color: rgba(240, 193, 105, 0.55);
  background: rgba(38, 57, 75, 0.62);
  transform: translateY(-2px);
}
a.rec-card.rec-card-high { color: var(--text); text-decoration: none; }
a.rec-card.rec-card-low { color: var(--text); text-decoration: none; }
[data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: #060a10;
  border: 1px solid rgba(38, 57, 75, 0.7);
}
.rec-card [data-runtime="name"] {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.rec-card [data-runtime="blurb"] {
  font-size: 11px;
  line-height: 1.4;
  color: var(--mist-2);
}
.rec-card-high {
  padding: 9px;
  background: linear-gradient(160deg, rgba(240, 193, 105, 0.12), rgba(29, 44, 58, 0.6));
  border-color: rgba(240, 193, 105, 0.4);
}
.rec-card-high [data-runtime="name"] { color: var(--gold); }
.rec-card-low {
  background: rgba(23, 35, 47, 0.4);
  border-color: rgba(38, 57, 75, 0.75);
}
.rec-card-low [data-runtime="name"] { color: var(--mist); }
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.7), rgba(6, 10, 16, 0.95));
  margin-top: var(--gap);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-link {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
a[data-contract="footer-home"] { color: var(--mist); text-decoration: none; }
a[data-contract="footer-sitemap"] { color: var(--mist); text-decoration: none; }
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--gold);
  border-color: rgba(240, 193, 105, 0.55);
  text-decoration: none;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.friend-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist-2);
  text-transform: uppercase;
  margin-right: 2px;
}
.runtime-friend-link {
  font-size: 11.5px;
  color: var(--mist-2);
  text-decoration: none;
  padding: 2px 7px;
  border: 1px solid rgba(38, 57, 75, 0.8);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
a.runtime-friend-link { color: var(--mist-2); text-decoration: none; }
a.runtime-friend-link:hover {
  color: var(--cyan);
  border-color: rgba(143, 216, 214, 0.5);
  text-decoration: none;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(125, 149, 170, 0.8);
  border-top: 1px dashed rgba(38, 57, 75, 0.8);
  padding-top: 10px;
}
.lights-off { filter: brightness(0.72) saturate(0.85); }
.theater-mode { grid-template-areas: "player player" "info info" "cast cast" "synopsis synopsis"; }
.theater-mode .hero-figure { grid-area: auto; }
.light { color: var(--gold); }
@media (max-width: 1100px) {.hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 258px);
  }
.episode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rec-stagger { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 860px) {.hero-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "figure"
      "player"
      "info"
      "cast"
      "synopsis";
  }
.hero-info { flex-direction: column; }
.hero-figure { grid-template-columns: 124px minmax(0, 1fr); }
.poster-wrap { max-width: 124px; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.synopsis-body { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 620px) {.rain-harbor { padding: 10px 10px 14px; }
.header-inner { padding: 7px 10px; }
.brand { font-size: 15px; }
.hero-figure {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-wrap { max-width: 46%; }
.hero-title { font-size: clamp(22px, 7vw, 32px); }
.comment-list { grid-template-columns: minmax(0, 1fr); }
.comment-item:nth-child(2n), .comment-item:nth-child(3n) { transform: none; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.rec-row { grid-template-columns: minmax(0, 1fr); }
.rec-stagger { grid-template-columns: minmax(0, 1fr); }
.rec-card-high { padding: 7px; }
.timeline-track { grid-auto-columns: minmax(200px, 84%); }
.footer-inner { padding: 12px 10px 16px; }}
@media (max-width: 420px) {.cast-item { flex: 1 1 100%; }
.ctrl-range { flex: 1 1 100%; }}

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}
