*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, dl, dd, dt, ul, ol, li { 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 {
  --ink: #1a1c1e;
  --ink-soft: #3a3d40;
  --grey: #6d7276;
  --grey-line: #c3c6c2;
  --paper: #e7e4dc;
  --paper-2: #dcd8cd;
  --cold: #b9c0c1;
  --amber: #e0a13a;
  --amber-deep: #b8791f;
  --amber-soft: #f0cf8f;
  --drift: #8d9490;
  --shadow: rgba(20, 22, 24, 0.22);
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --mono: "DejaVu Sans Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
}
html { scroll-behavior: smooth; }
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(185, 192, 193, 0.55), transparent 58%),
    radial-gradient(circle at 82% 6%, rgba(224, 161, 58, 0.10), transparent 46%),
    repeating-linear-gradient(90deg, rgba(26, 28, 30, 0.028) 0 1px, transparent 1px 7px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #17191b, #22262a);
  border-bottom: 2px solid var(--amber-deep);
}
.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber-soft);
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  border-left: 3px solid var(--amber);
  padding-left: 9px;
}
a[data-contract="site-name"]:hover { color: #fff; text-decoration: none; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #cfd3d0;
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid rgba(224, 161, 58, 0.35);
  background: rgba(224, 161, 58, 0.06);
}
a.runtime-category:hover {
  color: #1a1c1e;
  background: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}
.page-main {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 14px 30px;
}
.section-heading, .block-heading {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: 0.14em;
}
.block-heading {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  margin-bottom: 10px;
}
.block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 46px;
  height: 2px;
  background: var(--amber-deep);
}
.section-heading {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--amber-deep);
  line-height: 1.25;
}
.section-heading::first-letter { font-size: 1.05em; }
.hero-ink {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "backdrop titles player"
    "backdrop detail cast"
    "synopsis synopsis status";
  gap: 12px 18px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--ink);
}
.hero-ink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-soft) 0 9px, transparent 9px 15px);
  opacity: 0.4;
}
.hero-backdrop {
  grid-area: backdrop;
  position: relative;
  align-self: start;
  background:
    linear-gradient(180deg, #2b3033 0%, #171a1c 62%, #0f1113 100%);
  border: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-silhouette {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
}
.poster-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.72) contrast(1.12) brightness(0.94) sepia(0.14);
  mix-blend-mode: luminosity;
  border: 0;
}
.hero-ink-ghost {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(78deg, rgba(231, 228, 220, 0.055) 0 2px, transparent 2px 13px),
    repeating-linear-gradient(-64deg, rgba(224, 161, 58, 0.07) 0 1px, transparent 1px 17px),
    radial-gradient(ellipse at 50% 108%, rgba(224, 161, 58, 0.28), transparent 62%),
    radial-gradient(circle at 22% 20%, rgba(231, 228, 220, 0.14), transparent 40%);
  mix-blend-mode: screen;
}
.hero-titles { grid-area: titles; align-self: start; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow:
    1px 1px 0 var(--paper-2),
    2px 2px 0 rgba(26, 28, 30, 0.14),
    -1px 0 0 rgba(231, 228, 220, 0.6);
  -webkit-mask-image: linear-gradient(94deg, #000 0 70%, rgba(0,0,0,0.72) 82%, rgba(0,0,0,0.9) 100%);
  mask-image: linear-gradient(94deg, #000 0 70%, rgba(0,0,0,0.72) 82%, rgba(0,0,0,0.9) 100%);
}
.hero-tagline {
  margin-top: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--amber-deep);
  letter-spacing: 0.05em;
  border-left: 3px solid var(--amber);
  padding-left: 9px;
}
.hero-seo {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 62ch;
  text-align: justify;
}
.hero-player-slot {
  grid-area: player;
  align-self: start;
  position: relative;
  width: 100%;
  background: #101214;
  border: 1px solid var(--ink);
  padding: 0;
}
.main-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  background: linear-gradient(180deg, #1f2326, #14171a);
  border-top: 1px solid var(--amber-deep);
}
.ctrl {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: rgba(224, 161, 58, 0.10);
  color: #dfe2df;
  border: 1px solid rgba(224, 161, 58, 0.42);
  cursor: pointer;
  line-height: 1.35;
}
.ctrl:hover { background: var(--amber); color: #16181a; border-color: var(--amber); }
.ctrl:active { transform: translateY(1px); }
.ctrl.ctrl-progress {
  flex: 1 1 130px;
  min-width: 90px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(224, 161, 58, 0.4);
  background: #0c0e10;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ctrl.ctrl-volume {
  flex: 0 1 88px;
  min-width: 64px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(224, 161, 58, 0.4);
  background: #0c0e10;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ctrl.ctrl-progress::-webkit-slider-thumb, .ctrl.ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 14px;
  background: var(--amber);
  border: 0;
}
.ctrl.ctrl-progress::-moz-range-thumb, .ctrl.ctrl-volume::-moz-range-thumb {
  width: 9px;
  height: 14px;
  border-radius: 0;
  background: var(--amber);
  border: 0;
}
.ctrl.is-active { background: var(--amber); color: #16181a; border-color: var(--amber); }
.ctrl-play { font-weight: 700; }
.ctrl-theater, .ctrl-light { margin-left: auto; }
.detail-block {
  grid-area: detail;
  align-self: start;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
  border-top: 1px solid var(--grey-line);
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--grey-line);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  text-align: right;
  letter-spacing: 0.01em;
}
.cast-block {
  grid-area: cast;
  align-self: start;
}
.cast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--grey-line);
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.28);
}
.cast-portrait {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: #2a2e30;
}
.cast-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18);
}
.cast-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-role {
  font-size: 11px;
  color: var(--grey);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.synopsis-block { grid-area: synopsis; align-self: start; }
.synopsis-body { columns: 2; column-gap: 22px; column-rule: 1px solid var(--grey-line); }
.synopsis-para {
  font-size: 13px;
  line-height: 1.82;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 9px;
  break-inside: avoid;
}
.status-block { grid-area: status; align-self: start; }
.status-meter {
  border: 1px solid var(--ink);
  border-left: 5px solid var(--amber-deep);
  background: linear-gradient(180deg, rgba(224, 161, 58, 0.13), rgba(224, 161, 58, 0.03));
  padding: 9px 11px;
}
.status-line {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-deep);
  letter-spacing: 0.02em;
}
.status-note {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--grey);
  letter-spacing: 0.06em;
}
.timeline-section {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 18px;
}
.timeline-rail {
  position: relative;
  padding-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
}
.timeline-rail::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 14px);
  opacity: 0.55;
}
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 10px;
  min-width: 720px;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 4px 6px;
  position: relative;
}
.node-bowl {
  width: 17px;
  height: 11px;
  position: relative;
  background: var(--grey);
  border-radius: 0 0 40% 40% / 0 0 68% 68%;
  border: 1px solid var(--ink);
  margin-top: 8px;
}
.node-bowl::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  right: -3px;
  height: 2px;
  background: var(--ink);
}
.node-timecode {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.node-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 15ch;
}
.timeline-node-current .node-bowl {
  background: var(--amber);
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 4px rgba(224, 161, 58, 0.22);
}
.timeline-node-current .node-bowl::after { background: var(--amber-deep); }
.timeline-node-current .node-timecode { color: var(--amber-deep); font-weight: 700; }
.timeline-node-current .node-label {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.episodes-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 18px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  border-top: 1px solid var(--grey-line);
}
.episode-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num summary"
    "num dur";
  column-gap: 10px;
  align-items: start;
  padding: 8px 0 9px;
  border-bottom: 1px dotted var(--grey-line);
}
.ep-number {
  grid-area: num;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--grey);
  letter-spacing: -0.02em;
  border-right: 2px solid var(--grey-line);
  padding-right: 8px;
  text-align: right;
}
.ep-title {
  grid-area: title;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.ep-summary {
  grid-area: summary;
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
  margin-top: 2px;
}
.ep-duration {
  grid-area: dur;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-deep);
  letter-spacing: 0.05em;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.22s ease;
}
.episode-card:hover .ep-duration, .episode-card:focus-within .ep-duration {
  max-height: 2.2em;
  opacity: 1;
  margin-top: 3px;
}
.episode-card:hover { background: rgba(224, 161, 58, 0.07); }
.episode-card:hover .ep-number { color: var(--amber-deep); border-color: var(--amber); }
.episode-card-current { background: rgba(224, 161, 58, 0.12); }
.episode-card-current .ep-number { color: var(--amber-deep); border-color: var(--amber-deep); }
.episode-card-current .ep-title { color: var(--amber-deep); }
.comments-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 18px;
}
.comment-masonry {
  columns: 2;
  column-gap: 22px;
  column-rule: 1px solid var(--grey-line);
}
.comment-card {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px 0 10px;
  border-bottom: 1px dotted var(--grey-line);
}
.comment-avatar {
  margin: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2e30;
  border: 1px solid var(--ink);
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
}
.comment-body { min-width: 0; }
.comment-nickname {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-deep);
  letter-spacing: 0.05em;
}
.comment-text {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  text-align: left;
}
.recommend-region {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--grey-line);
}
.region-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  padding-left: 9px;
  border-left: 4px solid var(--amber);
  line-height: 1.3;
}
.region-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.rec-item {
  display: flex;
  align-items: start;
  min-width: 0;
}
a.rec-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "thumb name"
    "thumb blurb";
  column-gap: 8px;
  align-items: start;
  width: 100%;
  padding: 5px;
  border: 1px solid var(--grey-line);
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  text-decoration: none;
}
a.rec-link:hover {
  border-color: var(--amber-deep);
  background: rgba(224, 161, 58, 0.10);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  grid-area: thumb;
  width: 46px;
  max-width: 100%;
  height: 62px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.12);
}
.rec-name {
  grid-area: name;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
.rec-blurb {
  grid-area: blurb;
  font-size: 11px;
  line-height: 1.5;
  color: var(--grey);
  margin-top: 2px;
}
.site-footer {
  max-width: 1340px;
  margin: 0 auto;
  padding: 14px 14px 26px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  background: linear-gradient(180deg, rgba(26, 28, 30, 0.05), transparent);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  flex: 1 1 320px;
}
.friend-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--grey);
  border-right: 1px solid var(--grey-line);
  padding-right: 10px;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--drift);
  text-decoration: none;
  border-bottom: 1px dotted var(--drift);
}
a.runtime-friend-link:hover { color: var(--amber-deep); border-color: var(--amber-deep); text-decoration: none; }
.footer-links {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
a.footer-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-soft);
}
a.footer-link:hover { color: var(--amber-deep); border-color: var(--amber-deep); text-decoration: none; }
.footer-disclaimer {
  flex: 1 1 100%;
  font-size: 11px;
  line-height: 1.7;
  color: var(--grey);
  border-top: 1px dotted var(--grey-line);
  padding-top: 8px;
  letter-spacing: 0.02em;
}
body.lights-off .page-main { background: rgba(10, 12, 14, 0.55); }
body.lights-off .hero-ink, body.lights-off .episodes-section, body.lights-off .comments-section { opacity: 0.82; }
.hero-player-slot.is-theater {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  background: #08090a;
}
.hero-player-slot.is-theater .main-player {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}
.player .data-player-action.click .input .timeupdate .progress .volume .speed .play .mute .pip .fullscreen .theater .light .is-active { transition: background-color 0.18s ease, color 0.18s ease; }
@media (max-width: 1080px) {.hero-ink {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas:
      "backdrop titles"
      "player player"
      "detail cast"
      "synopsis synopsis"
      "status status";
  }
.timeline-track { grid-template-columns: repeat(6, minmax(104px, 1fr)); min-width: 660px; }
.region-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }}
@media (max-width: 760px) {body { font-size: 14.5px; }
.page-main { padding: 0 11px 22px; }
.hero-ink {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "backdrop"
      "titles"
      "player"
      "detail"
      "cast"
      "synopsis"
      "status";
    gap: 14px;
    padding-top: 14px;
  }
.hero-backdrop { max-width: 260px; }
.hero-title { font-size: clamp(26px, 8.2vw, 38px); }
.hero-seo { text-align: left; }
.detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.synopsis-body { columns: 1; column-rule: none; }
.episode-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.comment-masonry { columns: 1; column-rule: none; }
.timeline-track { grid-template-columns: repeat(6, minmax(96px, 1fr)); min-width: 600px; }
.region-list { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ctrl-theater, .ctrl-light { margin-left: 0; }
.site-footer { padding: 12px 11px 22px; }}
@media (max-width: 460px) {.header-inner { padding: 6px 10px; gap: 8px; }
a[data-contract="site-name"] { font-size: 16.5px; }
.hero-backdrop { max-width: 200px; }
.detail-list { grid-template-columns: minmax(0, 1fr); }
.cast-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.region-list { grid-template-columns: minmax(0, 1fr); }
.ctrl { font-size: 11px; padding: 3px 6px; }
.rec-item { width: 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}
