*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:root {
  --mud-deep: #17110c;
  --mud: #241a12;
  --mud-soft: #2f2318;
  --mud-line: #3d2d1e;
  --ash: #8b8377;
  --ash-soft: #b3ab9d;
  --bone: #d9d3c6;
  --light: #eef2f0;
  --flash: #ff7a1a;
  --flash-soft: #ffa149;
  --radius: 2px;
  --gap: 10px;
}
html { background: var(--mud-deep); }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(120, 96, 66, 0.22) 0%, rgba(23, 17, 12, 0) 62%),
    linear-gradient(180deg, #1d150e 0%, #17110c 40%, #120d09 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -0.01em;
}
.status-num, .node-timecode, .ep-num, .ep-duration, .rec-region .rec-name, .detail-val, .footer-note, .ctrl-select, .ctrl-range { font-variant-numeric: tabular-nums; }
.status-num, .node-timecode, .ep-num, .ep-duration, .detail-val {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(23, 17, 12, 0.97) 0%, rgba(23, 17, 12, 0.88) 100%);
  border-bottom: 1px solid var(--mud-line);
  backdrop-filter: blur(6px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 8px 12px 6px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  color: var(--light);
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  padding-left: 12px;
  position: relative;
  white-space: nowrap;
}
a[data-contract="site-name"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 16px;
  transform: translateY(-50%) skewX(-14deg);
  background: var(--flash);
  box-shadow: 0 0 8px rgba(255, 122, 26, 0.75);
}
a[data-contract="site-name"]:hover { color: var(--flash-soft); }
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
a.nav-link {
  color: var(--ash-soft);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 8px;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  white-space: nowrap;
}
a.nav-link:hover {
  color: var(--light);
  background: var(--mud-soft);
  border-color: var(--mud-line);
}
.categories-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 12px 8px;
}
a.runtime-category {
  display: inline-block;
  color: var(--ash);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  background: rgba(61, 45, 30, 0.55);
  border: 1px solid var(--mud-line);
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
a.runtime-category:hover { color: var(--flash-soft); border-color: var(--flash); }
.page-main {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 9px 12px 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.player-shell {
  position: relative;
  background: #000;
  border: 1px solid var(--mud-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  overflow: hidden;
}
.player-shell video { width: 100%; background: #000; }
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: linear-gradient(180deg, rgba(36, 26, 18, 0.95), rgba(18, 13, 9, 0.98));
  border-top: 1px solid var(--mud-line);
}
.ctrl-btn {
  font-size: 12px;
  line-height: 1;
  padding: 6px 9px;
  color: var(--bone);
  background: var(--mud-soft);
  border: 1px solid var(--mud-line);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}
.ctrl-btn:hover { color: var(--light); border-color: var(--ash); }
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--mud-line);
  border: none;
  cursor: pointer;
}
.ctrl-progress { flex: 1 1 160px; min-width: 90px; }
.ctrl-volume { flex: 0 1 90px; }
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: var(--flash);
  border: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ctrl-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  background: var(--flash);
  border-radius: 0;
}
.ctrl-select {
  font-size: 12px;
  line-height: 1;
  padding: 5px 6px;
  color: var(--bone);
  background: var(--mud-soft);
  border: 1px solid var(--mud-line);
  cursor: pointer;
}
.player-shell.is-muted .ctrl-volume { opacity: 0.42; }
.player-shell.is-theater {
  border-color: var(--flash);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.35), 0 0 34px rgba(255, 122, 26, 0.16);
}
.player-shell.is-light-off { background: #000; }
.player-shell.is-light-off .player-controls { background: #050403; border-top-color: #0d0a07; }
.overview-shell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(47, 35, 24, 0.92) 0%, rgba(29, 21, 14, 0.95) 100%);
  border: 1px solid var(--mud-line);
  padding: 12px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.overview-head { position: relative; padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px dashed var(--mud-line); }
.overview-title {
  font-size: clamp(26px, 5.4vw, 44px);
  line-height: 1.02;
  color: var(--light);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8), 0 0 2px rgba(238, 242, 240, 0.28);
  transform: skewX(-4deg);
  transform-origin: left bottom;
  display: inline-block;
  padding: 2px 6px 2px 10px;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.2) 0%, rgba(255, 122, 26, 0) 70%);
  border-left: 3px solid var(--flash);
}
.overview-tagline {
  margin-top: 7px;
  font-size: 13px;
  color: var(--ash-soft);
  letter-spacing: 0.08em;
}
.overview-seo {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ash);
  max-width: 78ch;
}
.overview-body {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}
.overview-poster-col { min-width: 0; }
.poster-wrap {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--mud-line);
  background: #100b07;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  overflow: hidden;
}
.poster-wrap img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.92);
}
.poster-collar-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 46%;
  height: 10px;
  transform: translateX(-50%) skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0) 0%, var(--flash) 45%, var(--flash-soft) 60%, rgba(255, 122, 26, 0) 100%);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.8);
  pointer-events: none;
}
.overview-info-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.episode-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 6px 9px;
  background: rgba(61, 45, 30, 0.5);
  border-left: 3px solid var(--flash);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.status-label { font-size: 11.5px; color: var(--ash); letter-spacing: 0.1em; }
.status-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--flash);
  text-shadow: 0 0 14px rgba(255, 122, 26, 0.45);
  padding: 0 2px;
}
.status-total { font-size: 12.5px; color: var(--ash-soft); }
.status-note {
  font-size: 11.5px;
  color: #a9d6b0;
  padding: 2px 7px;
  border: 1px solid rgba(169, 214, 176, 0.35);
  background: rgba(169, 214, 176, 0.08);
  margin-left: auto;
}
.block-heading {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--light);
  padding-left: 9px;
  position: relative;
  margin-bottom: 7px;
}
.block-heading::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 12px;
  transform: translateY(-50%) skewX(-14deg);
  background: var(--flash);
}
.cast-block, .synopsis-block, .details-block { min-width: 0; }
.cast-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 7px;
}
.cast-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas: "avatar name" "avatar role";
  column-gap: 7px;
  align-items: start;
  padding: 6px;
  background: rgba(18, 13, 9, 0.5);
  border: 1px solid var(--mud-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.cast-avatar {
  grid-area: avatar;
  width: 30px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 38%, #4b3a28 0 42%, #2a1e14 43% 100%);
  border: 1px solid var(--mud-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.cast-name { grid-area: name; font-size: 12.5px; font-weight: 500; color: var(--bone); line-height: 1.3; }
.cast-role { grid-area: role; font-size: 11px; line-height: 1.42; color: var(--ash); }
.synopsis-para { font-size: 12.5px; line-height: 1.66; color: var(--ash-soft); }
.synopsis-para + .synopsis-para { margin-top: 5px; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--mud-line);
  border: 1px solid var(--mud-line);
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 7px;
  background: rgba(18, 13, 9, 0.72);
  min-width: 0;
}
.detail-key { font-size: 11px; color: var(--ash); letter-spacing: 0.06em; flex: 0 0 auto; }
.detail-val { font-size: 12px; color: var(--bone); min-width: 0; overflow-wrap: anywhere; }
.section-heading {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--light);
  padding: 0 0 6px 11px;
  position: relative;
  border-bottom: 1px solid var(--mud-line);
  margin-bottom: 8px;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 34px; height: 3px;
  background: var(--flash);
  transform: skewX(-20deg);
}
.timeline-section { min-width: 0; }
.timeline-ruler {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(139, 131, 119, 0.16) 0 1px, rgba(139, 131, 119, 0) 1px 46px),
    linear-gradient(180deg, rgba(36, 26, 18, 0.7), rgba(18, 13, 9, 0.7));
  border: 1px solid var(--mud-line);
  border-top: 2px solid var(--mud-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  scrollbar-width: thin;
}
.timeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
}
.timeline-node {
  position: relative;
  flex: 0 0 186px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px 11px;
  border-right: 1px dashed var(--mud-line);
}
.timeline-node:last-child { border-right: none; }
.timeline-node::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: rgba(139, 131, 119, 0.18);
}
.node-paw {
  width: 12px; height: 12px;
  background: var(--ash);
  clip-path: polygon(50% 6%, 68% 26%, 92% 30%, 78% 52%, 84% 78%, 50% 66%, 16% 78%, 22% 52%, 8% 30%, 32% 26%);
  margin-bottom: 2px;
}
.node-timecode {
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.04em;
}
.node-label { font-size: 12.5px; line-height: 1.45; color: var(--bone); }
.timeline-node:last-child .node-paw { background: var(--flash); box-shadow: 0 0 12px rgba(255, 122, 26, 0.8); }
.timeline-node:last-child .node-timecode { color: var(--flash-soft); }
.timeline-node:last-child .node-label { color: var(--light); }
.episodes-section { min-width: 0; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px 8px;
  background: linear-gradient(160deg, rgba(47, 35, 24, 0.86), rgba(20, 14, 10, 0.9));
  border: 1px solid var(--mud-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  min-width: 0;
}
.episode-card:hover { border-color: var(--ash); }
.ep-num { font-size: 11px; color: var(--flash); letter-spacing: 0.06em; }
.ep-title { font-size: 13.5px; font-weight: 600; color: var(--light); line-height: 1.3; }
.ep-duration { font-size: 10.5px; color: var(--ash); margin-top: 2px; }
.ep-summary {
  display: none;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ash-soft);
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px dashed var(--mud-line);
}
.episode-card:hover .ep-summary { display: block; }
.episode-card:hover .ep-duration { color: var(--ash); }
.comments-section { min-width: 0; }
.comment-columns {
  columns: 2;
  column-gap: 9px;
}
.comment-note {
  break-inside: avoid;
  display: block;
  margin: 0 0 9px;
  padding: 7px 9px 8px 12px;
  background: linear-gradient(180deg, rgba(233, 227, 210, 0.94), rgba(214, 206, 187, 0.9));
  color: #2a2018;
  border-left: 3px solid var(--flash);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transform: rotate(-0.35deg);
}
.comment-note:nth-child(even) { transform: rotate(0.4deg); }
.comment-nickname {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #6b4a1f;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.comment-text { font-size: 12.5px; line-height: 1.55; color: #2f251b; }
.rec-region {
  min-width: 0;
  padding: 9px;
  background: linear-gradient(180deg, rgba(36, 26, 18, 0.68), rgba(18, 13, 9, 0.72));
  border: 1px solid var(--mud-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.rec-heading {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--light);
  padding-left: 9px;
  margin-bottom: 8px;
  position: relative;
}
.rec-heading::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 13px;
  transform: translateY(-50%) skewX(-14deg);
  background: var(--flash);
}
.rec-list-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 7px;
  align-items: start;
}
.rec-item { min-width: 0; }
a.rec-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 6px;
  background: rgba(18, 13, 9, 0.66);
  border: 1px solid var(--mud-line);
  color: var(--ash-soft);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
a.rec-link:hover { border-color: var(--flash); color: var(--bone); }
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--mud-line);
  filter: saturate(0.82) brightness(0.9);
}
[data-runtime="recommendation"]:hover img { filter: saturate(1) brightness(1); }
.rec-name { font-size: 12px; font-weight: 500; color: var(--bone); line-height: 1.32; }
.rec-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ash);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid var(--mud-line);
  background: linear-gradient(180deg, rgba(18, 13, 9, 0.9), rgba(12, 9, 6, 0.96));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-note { font-size: 11px; line-height: 1.6; color: var(--ash); max-width: 90ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--ash-soft);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--flash-soft);
  border-bottom-color: var(--flash);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--mud-line);
}
.friend-links-label { font-size: 11px; color: var(--ash); letter-spacing: 0.12em; }
a.runtime-friend-link {
  color: var(--ash);
  text-decoration: none;
  font-size: 11.5px;
  white-space: nowrap;
}
a.runtime-friend-link:hover { color: var(--flash-soft); text-decoration: underline; }
@media (max-width: 900px) {.overview-body { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-columns { columns: 2; }}
@media (max-width: 680px) {.page-main { padding: 8px 9px 18px; gap: 8px; }
.site-header { position: static; }
.header-bar { padding: 8px 9px 6px; }
.categories-shell { padding: 0 9px 8px; }
.overview-body { grid-template-columns: minmax(0, 1fr); }
.poster-wrap { max-width: 220px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-columns { columns: 1; }
.timeline-node { flex-basis: 164px; }
.ctrl-volume { flex: 1 1 70px; }
.ctrl-progress { flex: 1 1 100%; }}
@media (max-width: 420px) {.overview-title { font-size: 24px; }
.status-num { font-size: 21px; }
.cast-row { grid-template-columns: minmax(0, 1fr); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.rec-list-vertical { grid-template-columns: repeat(auto-fill, minmax(120px, 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}
