*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure, dl, dd, dt { 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 {
  --bg: #14171d;
  --bg-2: #1b1f27;
  --panel: #20252e;
  --panel-2: #262c37;
  --line: #333a46;
  --line-soft: #2b313b;
  --ink: #d7dee8;
  --ink-dim: #8b95a4;
  --ink-faint: #616b7a;
  --steel: #7f8b9c;
  --red: #8f2a2f;
  --red-bright: #c0393f;
  --amber: #d99a3c;
  --amber-dim: #a8792c;
  --radius: 3px;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Heiti SC", "WenQuanYi Micro Hei", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background:
    linear-gradient(180deg, #171b22 0%, #12151a 60%, #101318 100%);
  background-attachment: fixed;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 22, 28, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e7edf5;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  position: relative;
}
.site-brand::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--red-bright);
}
a[data-contract="site-name"] { color: #e7edf5; text-decoration: none; }
a[data-contract="site-name"]:hover { color: var(--amber); }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.runtime-category {
  white-space: nowrap;
  font-size: 12px;
  padding: 3px 9px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-2);
  transition: color .15s, border-color .15s, background .15s;
}
a.runtime-category { color: var(--ink-dim); text-decoration: none; }
a.runtime-category:hover {
  color: #f0f4f9;
  border-color: var(--steel);
  background: #2a313c;
}
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--steel);
  text-transform: none;
  padding-left: 9px;
  border-left: 2px solid var(--red);
  line-height: 1.2;
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poster-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1014;
  overflow: hidden;
}
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(143, 42, 47, 0.22) 0%, rgba(143, 42, 47, 0) 42%),
    linear-gradient(0deg, rgba(10, 12, 15, 0.78) 0%, rgba(10, 12, 15, 0) 46%);
}
.poster-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.82) contrast(1.06);
}
.hero-slogan {
  padding: 8px 10px 9px;
  background: var(--panel);
  border-left: 2px solid var(--amber);
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.hero-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #eef3f9;
}
.hero-tagline {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
  line-height: 1.4;
}
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.player-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.player-video {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0c0f;
  border-bottom: 1px solid var(--line);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
}
.ctrl-btn {
  white-space: nowrap;
  font-size: 11px;
  padding: 3px 8px;
  color: var(--ink-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color .15s, border-color .15s, background .15s;
}
.ctrl-btn:hover { color: #eef3f9; border-color: var(--steel); }
.ctrl-btn.is-active, .ctrl-btn.click, .ctrl-btn.change, .ctrl-btn.input {
  color: var(--amber);
  border-color: var(--amber-dim);
  background: #2c2417;
}
.ctrl-progress {
  flex: 1 1 130px;
  min-width: 90px;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.ctrl-progress::-webkit-slider-runnable-track {
  height: 3px;
  background: #39404c;
  border-radius: 2px;
}
.ctrl-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--red-bright);
  border: none;
}
.ctrl-progress::-moz-range-track { height: 3px; background: #39404c; border-radius: 2px; }
.ctrl-progress::-moz-range-thumb { width: 9px; height: 9px; border: none; border-radius: 50%; background: var(--red-bright); }
.ctrl-volume {
  flex: 0 1 78px;
  min-width: 60px;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.ctrl-volume::-webkit-slider-runnable-track { height: 3px; background: #39404c; border-radius: 2px; }
.ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--amber);
}
.ctrl-volume::-moz-range-track { height: 3px; background: #39404c; border-radius: 2px; }
.ctrl-volume::-moz-range-thumb { width: 8px; height: 8px; border: none; border-radius: 50%; background: var(--amber); }
.ctrl-speed {
  font-size: 11px;
  padding: 3px 4px;
  color: var(--ink-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.ctrl-speed.is-active, .ctrl-speed.change { color: var(--amber); border-color: var(--amber-dim); }
.player-panel.is-theater, .player-panel.theater {
  border-color: var(--amber-dim);
  box-shadow: 0 0 0 1px rgba(217, 154, 60, 0.25);
}
body.is-lights-off .player-panel {
  border-color: var(--red);
  box-shadow: 0 0 22px rgba(143, 42, 47, 0.35);
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-item {
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  color: var(--ink-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--steel);
  border-radius: 2px;
}
.status-item:nth-child(2) { border-left-color: var(--red); color: #cdd5e0; }
.status-item:nth-child(3) { border-left-color: var(--amber); color: var(--amber); }
.synopsis-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.synopsis-line {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.synopsis-line:first-of-type { color: #c3ccd8; }
.cast-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px 10px;
}
.cast-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cast-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  max-width: 100%;
}
.cast-avatar {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #59636f 0 34%, transparent 35%),
    radial-gradient(circle at 50% 96%, #3d454f 0 46%, transparent 47%),
    linear-gradient(160deg, #2b313b, #20252e);
  border: 1px solid #454d59;
}
.cast-name {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #c6ced9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.details-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px 10px;
}
.details-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line-soft);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  color: #c6ced9;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-section {
  padding: 0;
}
.timeline-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 6px;
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 20px 62px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 0 9px 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-node:first-child::before { top: 18px; }
.timeline-node:last-child::before { bottom: calc(100% - 18px); }
.node-marker {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  background:
    radial-gradient(circle at 50% 50%, #0d1014 0 42%, #454d59 43% 100%);
  box-shadow: inset 0 0 0 2px #14171d;
}
.timeline-node:last-child .node-marker {
  border-color: var(--red-bright);
  background: radial-gradient(circle at 50% 50%, #0d1014 0 42%, var(--red) 43% 100%);
}
.node-timecode {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  padding-top: 2px;
  white-space: nowrap;
}
.node-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  padding-top: 1px;
}
.timeline-node:hover .node-label { color: #ced6e1; }
.episodes-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
.episode-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px 8px;
  transition: border-color .15s, background .15s;
}
.episode-card:hover {
  border-color: var(--steel);
  border-left-color: var(--red-bright);
  background: var(--panel-2);
}
.episode-number {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 2px;
}
.episode-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #d5dce6;
  letter-spacing: 0.02em;
}
.episode-summary {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .28s ease, opacity .22s ease, margin-top .28s ease;
  margin-top: 0;
}
.episode-card:hover .episode-summary, .episode-card:focus-within .episode-summary {
  max-height: 200px;
  opacity: 1;
  margin-top: 6px;
}
.episode-summary p {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.episode-duration {
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding-left: 8px;
  border-left: 2px solid var(--amber-dim);
}
.comment-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  max-width: 640px;
}
.comment-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid #3b434f;
  border-radius: var(--radius);
  padding: 6px 10px 7px;
}
.comment-item:hover { border-left-color: var(--red); }
.comment-nickname {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 2px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.recommend-region {
  padding: 0;
}
.recommend-cards {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  align-items: start;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  transition: border-color .15s, background .15s, transform .15s;
}
a.recommend-card { color: inherit; text-decoration: none; }
a.recommend-card:hover {
  border-color: var(--steel);
  background: var(--panel-2);
  transform: translateY(-1px);
}
.recommend-card[data-runtime="recommendation"] { align-self: start; }
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #0d1014;
  border: 1px solid var(--line-soft);
  filter: saturate(0.8) contrast(1.04);
}
.recommend-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.recommend-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #d5dce6;
  letter-spacing: 0.02em;
  display: block;
}
.recommend-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
a.recommend-card:hover .recommend-name { color: var(--amber); }
.site-footer {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  background: #101318;
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 900px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-link {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
a[data-contract="footer-home"] { color: var(--ink-dim); text-decoration: none; }
a[data-contract="footer-sitemap"] { color: var(--ink-dim); text-decoration: none; }
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--amber);
  border-bottom-color: var(--amber-dim);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}
.friend-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.runtime-friend-link {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #6f798a;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
a.runtime-friend-link { color: #6f798a; text-decoration: none; }
a.runtime-friend-link:hover { color: var(--red-bright); }
.is-active.play { color: var(--amber); }
.player .pause, .player .play { color: var(--amber); }
.progress, .timeupdate { color: var(--amber); }
.volume, .mute { color: var(--amber); }
.speed, .fullscreen, .pip, .theater, .light { color: var(--amber); }
@media (max-width: 1024px) {.hero-shell {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }
.details-list { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 820px) {.hero-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
.hero-visual {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    align-items: end;
    gap: 12px;
  }
.poster-frame { width: 100%; }
.episodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 640px) {body { font-size: 12.5px; }
.page-main { padding: 10px 12px 8px; gap: 12px; }
.header-shell { padding: 7px 12px; gap: 10px; }
.hero-visual {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
.poster-frame { max-width: 230px; }
.episodes-grid { grid-template-columns: minmax(0, 1fr); }
.episode-summary {
    max-height: none;
    opacity: 1;
    margin-top: 6px;
  }
.timeline-node {
    grid-template-columns: 20px 56px minmax(0, 1fr);
    gap: 8px;
  }
.comment-list { max-width: none; }
.recommend-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.player-controls { gap: 5px; padding: 6px; }
.ctrl-btn { font-size: 10.5px; padding: 3px 7px; }
.ctrl-progress { flex: 1 1 100%; }}
@media (max-width: 420px) {.recommend-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.hero-title { font-size: 15px; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.timeline-node {
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-areas: "marker time" "marker label";
    row-gap: 2px;
  }
.timeline-node .node-marker { grid-area: marker; }
.timeline-node .node-timecode { grid-area: time; }
.timeline-node .node-label { grid-area: label; }}

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}
