*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --wall-dark: #1a1f26;
  --wall-mid: #232a33;
  --wall-slab: #2b333d;
  --damp-blue: #3d4a58;
  --damp-blue-soft: #4a5a6b;
  --rust: #8c3a2b;
  --rust-bright: #b04a34;
  --sodium: #d9a441;
  --sodium-dim: #a67c2e;
  --bone: #c8c2b4;
  --bone-dim: #8f8a7e;
  --crack: #0d1014;
  --seam: rgba(140, 58, 43, 0.35);
  --hairline: rgba(200, 194, 180, 0.14);
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--wall-dark);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(61, 74, 88, 0.35), transparent 42%),
    radial-gradient(circle at 82% 62%, rgba(140, 58, 43, 0.14), transparent 38%),
    linear-gradient(180deg, #171b21 0%, #1a1f26 30%, #1c222a 70%, #15181d 100%);
  color: var(--bone);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}
body.is-lights-off {
  background: #07090c;
}
body.is-lights-off .overview-block, body.is-lights-off .timeline-wall, body.is-lights-off .episode-block, body.is-lights-off .comment-wall, body.is-lights-off .recommend-region {
  filter: brightness(0.55);
}
body.is-lights-off .player-shell {
  filter: brightness(1.15);
}
a { color: var(--bone); text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 900; line-height: 1.22; letter-spacing: 0.02em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(13, 16, 20, 0.96), rgba(13, 16, 20, 0.82));
  border-bottom: 1px solid var(--seam);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  justify-content: space-between;
}
.brand-mark {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--sodium);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(217, 164, 65, 0.28);
  position: relative;
  padding-left: 12px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--rust-bright);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.5);
}
a[data-contract="site-name"] { color: var(--sodium); text-decoration: none; }
a[data-contract="site-name"]:hover { color: #f0c05f; text-decoration: underline; text-underline-offset: 3px; }
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  padding: 3px 10px;
  color: var(--bone-dim);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: rgba(43, 51, 61, 0.55);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
a.runtime-category:hover {
  color: var(--sodium);
  border-color: var(--sodium-dim);
  background: rgba(166, 124, 46, 0.14);
  text-decoration: none;
}
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.overview-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "headline poster"
    "shell    poster"
    "shell    status"
    "shell    details"
    "cast     cast"
    "synopsis synopsis";
  gap: 12px 18px;
  align-items: start;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(43, 51, 61, 0.92), rgba(30, 37, 45, 0.96)),
    repeating-linear-gradient(96deg, rgba(13, 16, 20, 0.35) 0 2px, transparent 2px 9px);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--rust);
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), inset 0 0 60px rgba(13, 16, 20, 0.6);
  overflow: hidden;
}
.overview-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 42%, rgba(13, 16, 20, 0.55) 43%, transparent 44.5%),
    linear-gradient(78deg, transparent 66%, rgba(13, 16, 20, 0.45) 66.7%, transparent 68%);
  opacity: 0.75;
}
.overview-block > * { position: relative; z-index: 1; }
.overview-headline {
  grid-area: headline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.overview-title {
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 900;
  color: #e8e2d4;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 var(--crack), 0 0 22px rgba(140, 58, 43, 0.45);
  transform: translateY(-2px);
}
.overview-tagline {
  margin-top: 6px;
  font-size: 13px;
  color: var(--sodium);
  letter-spacing: 0.18em;
  font-weight: 700;
}
.overview-seo {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.78;
  color: var(--bone-dim);
  max-width: 60ch;
}
.overview-poster-media {
  grid-area: poster;
  position: relative;
  align-self: start;
  width: 100%;
  max-width: 280px;
  justify-self: end;
  background: var(--crack);
  border: 1px solid var(--seam);
  padding: 5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.overview-poster-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.78) contrast(1.08) brightness(0.9);
}
.overview-poster-caption {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  padding: 5px 2px 1px;
  border-top: 1px solid var(--hairline);
  margin-top: 5px;
}
.player-shell {
  grid-area: shell;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.player-shell video {
  background: #000;
  border: 1px solid var(--seam);
  border-radius: 2px;
  display: block;
  width: 100%;
}
.player-shell.is-theater {
  box-shadow: 0 0 0 2px var(--sodium-dim), 0 20px 50px rgba(0, 0, 0, 0.7);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: rgba(13, 16, 20, 0.72);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--rust);
  border-radius: 2px;
}
.control-chip {
  font: inherit;
  font-size: 11.5px;
  padding: 3px 10px;
  color: var(--bone);
  background: rgba(61, 74, 88, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.control-chip:hover {
  background: rgba(140, 58, 43, 0.4);
  border-color: var(--rust-bright);
  color: #f0e9d8;
}
.control-chip.is-active {
  background: var(--sodium-dim);
  color: #14100a;
  border-color: var(--sodium);
  font-weight: 700;
}
.control-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--damp-blue);
  border-radius: 2px;
  cursor: pointer;
  flex: 1 1 90px;
  min-width: 70px;
  outline: none;
}
.control-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 15px;
  background: var(--sodium);
  border: 1px solid #14100a;
  border-radius: 1px;
  cursor: pointer;
}
.control-range::-moz-range-thumb {
  width: 11px;
  height: 15px;
  background: var(--sodium);
  border: 1px solid #14100a;
  border-radius: 1px;
  cursor: pointer;
}
.control-speed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--bone-dim);
}
.control-speed select {
  font: inherit;
  font-size: 11.5px;
  padding: 3px 5px;
  color: var(--bone);
  background: rgba(61, 74, 88, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
}
.status-rail {
  grid-area: status;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: start;
  justify-content: flex-end;
}
.status-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  color: var(--bone);
  background: rgba(61, 74, 88, 0.5);
  border: 1px solid var(--hairline);
  border-radius: 1px;
}
.status-chip:first-child {
  color: #1a1208;
  background: var(--sodium);
  border-color: var(--sodium);
}
.detail-grid {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 14px;
  align-self: start;
  border-top: 1px solid var(--hairline);
  padding-top: 8px;
}
.detail-pair {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(200, 194, 180, 0.16);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--bone-dim);
  letter-spacing: 0.08em;
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: #ddd6c6;
  overflow-wrap: anywhere;
}
.cast-rail {
  grid-area: cast;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}
.cast-title {
  font-size: 13px;
  color: var(--rust-bright);
  letter-spacing: 0.2em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cast-bar {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 14px 4px 12px;
  background: rgba(61, 74, 88, 0.42);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--rust-bright);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.cast-bar:hover {
  background: rgba(140, 58, 43, 0.28);
  border-color: var(--rust);
}
.cast-name {
  font-size: 13px;
  font-weight: 700;
  color: #e2dbca;
  letter-spacing: 0.04em;
}
.cast-role {
  font-size: 11.5px;
  color: var(--bone-dim);
}
.synopsis-block {
  grid-area: synopsis;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}
.synopsis-title {
  font-size: 13px;
  color: var(--sodium);
  letter-spacing: 0.2em;
  margin-bottom: 7px;
}
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.8;
  color: #b9b3a5;
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 2px solid rgba(140, 58, 43, 0.4);
}
.synopsis-para:last-child { margin-bottom: 0; }
.timeline-wall {
  position: relative;
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(35, 42, 51, 0.82), rgba(24, 29, 36, 0.9));
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}
.timeline-wall::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  height: 6px;
  background:
    linear-gradient(180deg, #5a6472 0%, #2d343d 48%, #14181d 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.timeline-heading {
  font-size: 15px;
  color: #e0d9c8;
  letter-spacing: 0.16em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--seam);
  margin-bottom: 20px;
}
.timeline-ruler {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  position: relative;
}
.timeline-node {
  position: relative;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 34% 30%, #cfd6de, #5b6472 55%, #2a313a);
  border-radius: 50%;
  border: 1px solid #0d1014;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.7);
  z-index: 2;
}
.timeline-node::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, var(--rust-bright), transparent);
  transform: translateX(-50%);
}
.timeline-timecode {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sodium);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.timeline-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  color: #b7b1a3;
  max-height: 168px;
  padding: 6px 2px;
  border-top: 1px solid var(--hairline);
}
.episode-block {
  padding: 14px 16px 16px;
  background: rgba(26, 31, 38, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 3px;
}
.episode-heading {
  font-size: 15px;
  color: #e0d9c8;
  letter-spacing: 0.16em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--seam);
  margin-bottom: 10px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  background: rgba(31, 37, 45, 0.92);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.15s;
}
.episode-card:hover {
  background: rgba(48, 58, 70, 0.95);
}
.episode-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ddd6c6;
  letter-spacing: 0.03em;
  border-left: 2px solid var(--rust);
  padding-left: 7px;
}
.episode-card-summary {
  font-size: 12px;
  line-height: 1.66;
  color: var(--bone-dim);
}
.episode-card-duration {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--sodium-dim);
  border-top: 1px dotted rgba(217, 164, 65, 0.35);
  padding-top: 3px;
}
.comment-wall {
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(35, 42, 51, 0.7), rgba(22, 27, 33, 0.86));
  border: 1px solid var(--hairline);
  border-radius: 3px;
}
.comment-heading {
  font-size: 15px;
  color: #e0d9c8;
  letter-spacing: 0.16em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--seam);
  margin-bottom: 14px;
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}
.comment-note {
  position: relative;
  padding: 10px 12px 12px;
  background: linear-gradient(160deg, #d8d2c0 0%, #bdb6a2 100%);
  color: #23262b;
  border-radius: 1px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(120, 110, 90, 0.25);
  transform: rotate(-1.2deg);
  transition: transform 0.18s, box-shadow 0.18s;
  min-width: 0;
}
.comment-note:nth-child(2n) { transform: rotate(1.1deg); }
.comment-note:nth-child(3n) { transform: rotate(-0.6deg); }
.comment-note:nth-child(5n) { transform: rotate(1.6deg); }
.comment-note:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.comment-note::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 44px;
  height: 12px;
  background: rgba(217, 164, 65, 0.55);
  border: 1px solid rgba(140, 58, 43, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.comment-nickname {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--rust);
  margin-bottom: 4px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.7;
  color: #2c3037;
}
.recommend-region {
  padding: 12px 14px 14px;
  background: rgba(26, 31, 38, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  min-width: 0;
}
.recommend-region-1 { border-top: 2px solid var(--rust); }
.recommend-region-2 { border-top: 2px solid var(--sodium-dim); }
.recommend-region-3 { border-top: 2px solid var(--damp-blue-soft); }
.recommend-heading {
  font-size: 13.5px;
  color: #ded7c6;
  letter-spacing: 0.12em;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--seam);
  margin-bottom: 10px;
}
.recommend-column {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  align-items: start;
}
a.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  color: var(--bone);
  text-decoration: none;
  background: rgba(43, 51, 61, 0.5);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  min-width: 0;
}
a.recommend-item:hover {
  background: rgba(140, 58, 43, 0.3);
  border-color: var(--rust-bright);
  transform: translateY(-2px);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  filter: saturate(0.8) brightness(0.92);
}
.recommend-name {
  font-size: 12px;
  font-weight: 700;
  color: #ded7c6;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.recommend-blurb {
  font-size: 11px;
  line-height: 1.58;
  color: var(--bone-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 26px;
  border-top: 1px solid var(--seam);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
}
a[data-contract="footer-home"] { color: var(--sodium); text-decoration: none; }
a[data-contract="footer-home"]:hover { color: #f0c05f; text-decoration: underline; text-underline-offset: 3px; }
a[data-contract="footer-sitemap"] { color: var(--damp-blue-soft); text-decoration: underline; text-underline-offset: 3px; }
a[data-contract="footer-sitemap"]:hover { color: #7d93a8; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  padding: 7px 0;
  border-top: 1px dotted var(--hairline);
  border-bottom: 1px dotted var(--hairline);
}
.friend-links-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rust-bright);
  font-weight: 700;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a.runtime-friend-link:hover {
  color: var(--sodium);
  border-bottom-color: var(--sodium-dim);
  text-decoration: none;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(143, 138, 126, 0.8);
}
@media (min-width: 900px) {.page-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }}
@media (min-width: 1000px) {main.page-main {
    display: block;
  }
.recommend-region {
    display: inline-block;
    vertical-align: top;
    width: calc((100% - 24px) / 3);
    margin-right: 10px;
  }
.recommend-region:last-of-type { margin-right: 0; }}
@media (max-width: 999px) {.recommend-region { display: block; margin-bottom: 12px; }
.recommend-region:last-of-type { margin-bottom: 0; }}
@media (max-width: 820px) {.overview-block {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "headline"
      "poster"
      "shell"
      "status"
      "details"
      "cast"
      "synopsis";
    gap: 12px;
  }
.overview-poster-media {
    justify-self: start;
    max-width: 220px;
  }
.status-rail { justify-content: flex-start; }
.comment-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 640px) {body { font-size: 12.5px; }
.page-main { padding: 12px 11px 22px; gap: 13px; }
.header-inner { padding: 8px 11px; }
.overview-block { padding: 12px; }
.overview-title { font-size: 26px; }
.overview-poster-media { max-width: 180px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.timeline-ruler { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
.timeline-wall::before { display: none; }
.timeline-node { padding-top: 8px; }
.timeline-node::before { position: static; transform: none; margin: 0 auto; display: block; }
.timeline-node::after { display: none; }
.timeline-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    max-height: none;
    letter-spacing: 0.12em;
    border-top: 1px solid var(--hairline);
    border-left: 1px solid var(--hairline);
    padding: 5px 8px;
    width: 100%;
  }
.detail-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }}
@media (max-width: 400px) {.timeline-ruler { grid-template-columns: minmax(0, 1fr); }
.recommend-column { grid-template-columns: repeat(auto-fill, minmax(104px, 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}
