*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, dl, dd, dt, figure, ol, ul, li { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input[type="range"] { width: 100%; }
:root {
  --bg: #0c0d0f;
  --bg-raise: #14161a;
  --bg-card: #191c21;
  --line: #2b2f36;
  --line-soft: #22252b;
  --ink: #f2f4f7;
  --ink-soft: #b9c0c9;
  --ink-dim: #7c848f;
  --red: #8e1f26;
  --red-bright: #c0353d;
  --steel: #4a545f;
  --gap: 10px;
  --pad: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  background-image:
    linear-gradient(180deg, rgba(20,22,26,0.9) 0%, rgba(12,13,15,0) 340px),
    repeating-linear-gradient(102deg, rgba(255,255,255,0.014) 0 1px, rgba(255,255,255,0) 1px 7px);
  background-repeat: no-repeat, repeat;
}
body.lights-off { background-color: #050506; }
body.lights-off .site-header, body.lights-off .site-footer { opacity: 0.35; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12,13,15,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px var(--pad);
}
a[data-contract="site-name"] {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px 3px 0;
  border-right: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  padding-right: 14px;
}
a[data-contract="site-name"]:hover { color: var(--red-bright); }
.categories-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  flex: 1 1 auto;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 2px 9px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
a.runtime-category:hover {
  color: var(--ink);
  border-color: var(--red);
  background: #1d1416;
}
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad) 20px;
}
.section-heading {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 14px 0 7px 12px;
  margin-top: 6px;
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 4px;
  height: 14px;
  background: var(--red);
  transform: skewX(-16deg);
}
.hero-rain {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  grid-template-areas:
    "figure copy"
    "synopsis details"
    "cast cast";
  gap: 12px 20px;
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--line);
}
.hero-rain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(74deg, rgba(190,205,220,0.07) 0 1px, rgba(190,205,220,0) 1px 26px);
  mix-blend-mode: screen;
  z-index: 0;
}
.hero-rain > * { position: relative; z-index: 1; }
.hero-figure {
  grid-area: figure;
  align-self: start;
  justify-self: start;
  width: 100%;
  max-width: 260px;
}
.poster-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(196deg, rgba(142,31,38,0.22) 0%, rgba(12,13,15,0.42) 70%);
  mix-blend-mode: multiply;
}
.poster-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.94);
}
.hero-figure-note {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  border-left: 2px solid var(--red);
  padding-left: 7px;
  transform: skewX(-8deg);
}
.hero-copy {
  grid-area: copy;
  align-self: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-title {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}
.hero-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  padding-left: 10px;
  border-left: 2px solid var(--red-bright);
  max-width: 46ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 2px;
}
.status-chip {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--bg-raise);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  white-space: nowrap;
}
.status-chip--episodes { color: var(--ink); border-color: var(--steel); }
.status-chip--current { color: #f0d7d9; border-color: var(--red); background: #1e1214; }
.status-chip--rating { color: var(--ink); border-color: var(--steel); }
.status-chip--form { color: var(--ink-dim); }
.player-shell {
  position: relative;
  width: 100%;
  margin-top: 2px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}
.player-shell video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-shell.is-theater {
  box-shadow: 0 0 0 1px var(--red), 0 18px 40px rgba(0,0,0,0.8);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  padding: 6px 8px;
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
}
.player-controls input[type="range"] {
  flex: 1 1 90px;
  min-width: 70px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--steel);
  border-radius: 0;
  cursor: pointer;
}
.player-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 13px;
  background: var(--red-bright);
  border: 0;
  clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
}
.player-controls input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 13px;
  background: var(--red-bright);
  border: 0;
  border-radius: 0;
}
.player-controls [data-player-action="volume"] { flex: 0 1 70px; }
.player-controls button {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: #1b1e23;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  white-space: nowrap;
}
.player-controls button:hover {
  color: var(--ink);
  border-color: var(--red-bright);
  background: #221518;
}
.synopsis-block {
  grid-area: synopsis;
  align-self: start;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--red);
  padding: 0 var(--pad) 10px;
}
.synopsis-paragraph {
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-soft);
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  letter-spacing: 0.01em;
}
.synopsis-paragraph:first-of-type { border-top: 0; }
.synopsis-paragraph + .synopsis-paragraph { margin-top: 0; }
.details-block {
  grid-area: details;
  align-self: start;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--steel);
  padding: 0 var(--pad) 8px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 14px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line-soft);
  min-width: 0;
}
.detail-row:first-child { border-top: 0; }
.detail-key {
  flex: 0 0 62px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: break-word;
}
.cast-block {
  grid-area: cast;
  min-width: 0;
}
.cast-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.cast-card {
  flex: 0 0 104px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 6px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.cast-card:hover { border-color: var(--red); }
.cast-figure {
  width: 100%;
  overflow: hidden;
  background: #0f1013;
  border: 1px solid var(--line-soft);
  aspect-ratio: 1 / 1;
}
.cast-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.08) brightness(0.92);
}
.cast-card:hover .cast-avatar { filter: grayscale(0.1) contrast(1.05); }
.cast-name {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-role {
  font-size: 11px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-block { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.timeline-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px 6px;
  padding-top: 14px;
}
.timeline-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, var(--steel) 40%, var(--line) 100%);
}
.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 8px 7px;
  background: var(--bg-raise);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--steel);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  transform-origin: center top;
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--steel);
  transform: rotate(45deg);
}
.timeline-node:hover, .timeline-node:focus-within {
  z-index: 3;
  transform: scale(1.07);
  border-color: var(--red);
  border-top-color: var(--red-bright);
  background: #1d1417;
}
.timeline-node:hover::before, .timeline-node:focus-within::before { border-color: var(--red-bright); background: var(--red); }
.timeline-timecode {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--red-bright);
  white-space: nowrap;
}
.timeline-label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}
.episodes-block { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}
.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  padding: 7px 10px 8px;
  min-width: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.episode-card:hover { border-left-color: var(--red); background: #1b1e23; }
.episode-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.episode-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-top: 1px;
}
.episode-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease, margin-top 0.22s ease;
}
.episode-card:hover .episode-summary, .episode-card:focus-within .episode-summary {
  max-height: 12em;
  opacity: 1;
  margin-top: 6px;
}
.comments-block { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.comment-list {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}
.comment-item {
  display: grid;
  grid-template-columns: minmax(88px, 140px) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.comment-item:last-child { border-bottom: 0; }
.comment-nickname {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  border-left: 2px solid var(--red);
  padding-left: 7px;
  overflow-wrap: break-word;
}
.comment-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}
.rec-region { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rec-row {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  align-items: start;
}
.rec-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rec-row--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rec-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.rec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
a.rec-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}
[data-runtime="recommendation"] img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0f1013;
  filter: saturate(0.7) contrast(1.06) brightness(0.9);
}
a.rec-card:hover img { filter: saturate(0.95) contrast(1.05); }
a.rec-card [data-runtime="name"] {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: break-word;
}
a.rec-card [data-runtime="blurb"] {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-dim);
  overflow-wrap: break-word;
}
.rec-region--three .rec-row--three {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.rec-region--three .rec-row--three > a.rec-card { grid-column: span 2; }
.rec-region--three .rec-row--three > a.rec-card:nth-child(1) { grid-column: 1 / span 2; }
.rec-region--three .rec-row--three > a.rec-card:nth-child(2) { grid-column: 3 / span 2; margin-top: 14px; }
.rec-region--three .rec-row--three > a.rec-card:nth-child(3) { grid-column: 5 / span 2; }
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px var(--pad) 26px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 90ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
a[data-contract="footer-home"]:hover { color: var(--ink); border-bottom-color: var(--red-bright); }
a[data-contract="footer-sitemap"]:hover { color: var(--ink); border-bottom-color: var(--steel); }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.friend-links-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  border-left: 2px solid var(--red);
  padding-left: 7px;
}
a.runtime-friend-link {
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 1px 7px;
  border: 1px solid var(--line-soft);
  background: var(--bg-raise);
  white-space: nowrap;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
a.runtime-friend-link:hover {
  color: var(--ink);
  border-color: var(--red);
  background: #1d1417;
}
.player-shell.is-theater, .player-shell.theater {
  position: relative;
  z-index: 5;
  box-shadow: 0 0 0 1px var(--red-bright), 0 20px 46px rgba(0,0,0,0.85);
  background: #000;
}
.player-shell.fullscreen { width: 100%; }
.player-shell .pip { position: relative; }
.player-shell .player { position: relative; }
.player-shell .play { color: var(--ink); }
.player-shell .progress { cursor: pointer; }
.player-shell .input { accent-color: var(--red-bright); }
.player-shell .click { outline: 1px solid var(--red-bright); }
.player-shell .timeupdate { color: var(--ink-soft); }
.player-shell .volume { accent-color: var(--red-bright); }
.player-shell .mute { color: var(--red-bright); }
.player-shell .speed { color: var(--ink); }
.player-shell .light { color: var(--ink-soft); }
body.lights-off .player-shell { box-shadow: 0 0 0 1px var(--red), 0 0 60px rgba(0,0,0,1); }
@media (max-width: 1080px) {.hero-rain {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas:
      "figure copy"
      "synopsis details"
      "cast cast";
  }
.rec-row--five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rec-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
@media (max-width: 900px) {.hero-rain {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "figure"
      "copy"
      "synopsis"
      "details"
      "cast";
    gap: 12px;
  }
.hero-figure { max-width: 220px; justify-self: start; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-row--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rec-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-region--three .rec-row--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-region--three .rec-row--three > a.rec-card:nth-child(1), .rec-region--three .rec-row--three > a.rec-card:nth-child(2), .rec-region--three .rec-row--three > a.rec-card:nth-child(3) {
    grid-column: auto;
    margin-top: 0;
  }
.rec-region--three .rec-row--three > a.rec-card:nth-child(2) { margin-top: 10px; }}
@media (max-width: 680px) {.header-inner { padding: 7px 10px; }
.page-main { padding: 0 10px 16px; }
.hero-title { font-size: clamp(26px, 9vw, 38px); }
.hero-figure { max-width: 180px; }
.hero-meta { gap: 4px; }
.status-chip { font-size: 10px; padding: 2px 6px; }
.player-controls button { font-size: 10px; padding: 2px 6px; }
.player-controls input[type="range"] { flex: 1 1 70px; }
.player-controls [data-player-action="volume"] { flex: 0 1 50px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
.rec-row--five, .rec-row--four, .rec-row--three, .rec-region--three .rec-row--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.rec-region--three .rec-row--three > a.rec-card:nth-child(2) { margin-top: 0; }
.timeline-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-rail::before { display: none; }
.detail-list { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 420px) {.rec-row--five, .rec-row--four, .rec-row--three, .rec-region--three .rec-row--three { grid-template-columns: minmax(0, 1fr); }
.cast-card { flex: 0 0 92px; }
.hero-tagline { font-size: 12px; letter-spacing: 0.08em; }
.footer-nav { gap: 4px 10px; }}
@media (prefers-reduced-motion: reduce) {* { transition: none !important; }}

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}
