*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, p, ul, ol, li, dl, dt, dd, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:root {
  --paper: #ece7dd;
  --paper-deep: #e2dcd0;
  --ink: #2b2723;
  --ink-soft: #5c554c;
  --ink-faint: #8a8175;
  --red: #d0402a;
  --red-deep: #a82f1d;
  --line: rgba(43, 39, 35, 0.16);
  --rule: rgba(43, 39, 35, 0.28);
  --title-font: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --body-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.55), rgba(255,255,255,0) 45%);
  background-attachment: fixed;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(236, 231, 221, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 16px;
  max-width: 1440px;
  margin: 0 auto;
}
a[data-contract="site-name"] {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-left: 4px solid var(--red);
  padding-left: 8px;
  line-height: 1.1;
}
a[data-contract="site-name"]:hover { color: var(--red-deep); }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
a.runtime-category:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.page-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: block;
}
.module-title {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-top: 10px;
  margin-bottom: 8px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.module-title::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--red);
}
.hero { padding-top: 14px; }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.hero-poster-wrap {
  position: relative;
  display: block;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 6px 6px 0;
  align-self: start;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 6px 18px -12px rgba(43,39,35,0.5);
}
.hero-poster-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.hero-poster-caption {
  font-size: 11px;
  color: var(--ink-faint);
  padding: 5px 2px 7px;
  letter-spacing: 0.04em;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}
.hero-info { min-width: 0; }
.hero-title {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero-tagline {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 42em;
  border-left: 3px solid var(--red);
  padding-left: 9px;
  line-height: 1.5;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255,255,255,0.42);
}
.chip-year { color: var(--red-deep); border-color: rgba(208,64,42,0.45); font-weight: 700; }
.chip-region { background: rgba(255,255,255,0.62); }
.chip-genre { border-style: dashed; }
.hero-player {
  margin-top: 12px;
  position: relative;
  background: #1b1815;
  border: 1px solid rgba(43,39,35,0.5);
}
.hero-player video {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  background: #221e1a;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ctrl {
  font-size: 11px;
  line-height: 1.2;
  padding: 3px 8px;
  border: 1px solid rgba(236,231,221,0.24);
  background: rgba(236,231,221,0.06);
  color: #ddd6c9;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.ctrl:hover { background: rgba(236,231,221,0.16); }
.ctrl:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.ctrl-play { font-weight: 700; color: #fff; border-color: rgba(236,231,221,0.4); }
.ctrl-play.is-playing, .ctrl-play.play { background: var(--red); border-color: var(--red); color: #fff; }
.ctrl-play.pause { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.ctrl-progress { flex: 1 1 160px; min-width: 90px; height: 5px; padding: 0; accent-color: var(--red); cursor: pointer; }
.ctrl-volume { flex: 0 1 84px; min-width: 56px; height: 5px; padding: 0; accent-color: var(--red); cursor: pointer; }
.ctrl-mute.is-muted, .ctrl-mute.mute { background: var(--red); border-color: var(--red); color: #fff; }
.ctrl-speed { background: rgba(236,231,221,0.06); color: #ddd6c9; }
.ctrl-speed option { background: #221e1a; color: #ddd6c9; }
.ctrl-pip.is-active, .ctrl-pip.pip { background: var(--red); border-color: var(--red); color: #fff; }
.ctrl-theater.is-active, .ctrl-theater.theater { background: var(--red); border-color: var(--red); color: #fff; }
.ctrl-light.is-active, .ctrl-light.light { background: var(--red); border-color: var(--red); color: #fff; }
.ctrl-fullscreen.is-active, .ctrl-fullscreen.fullscreen { background: var(--red); border-color: var(--red); color: #fff; }
.hero-player.is-theater {
  width: 100%;
  margin-left: 0;
  box-shadow: 0 0 0 1px var(--red), 0 22px 40px -26px rgba(0,0,0,0.8);
}
body.is-theater { background: #17140f; }
body.is-theater .hero-player { box-shadow: 0 0 0 1px var(--red); }
.hero-player.is-lights-off::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  pointer-events: none;
}
.hero-player.is-lights-off .player-controls { position: relative; z-index: 2; }
.hero-player.is-lights-off video { opacity: 0.55; }
.hero-player.is-lights-off::before {
  content: "关灯";
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
  pointer-events: none;
}
.cast-strip { margin-top: 14px; }
.cast-strip .module-title { font-size: 13px; padding-top: 8px; margin-bottom: 7px; }
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cast-card {
  flex: 0 1 128px;
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  row-gap: 1px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255,255,255,0.46);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(208,64,42,0.55);
}
.cast-avatar {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.75), rgba(255,255,255,0) 55%),
    linear-gradient(140deg, #cfc6b6, #a89c88);
  border: 1px solid rgba(43,39,35,0.25);
  box-shadow: inset 0 -3px 6px rgba(43,39,35,0.22);
}
.cast-name {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-tag {
  font-size: 10.5px;
  color: var(--ink-faint);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.synopsis { margin-top: 14px; }
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 5px;
  text-align: justify;
}
.synopsis-para:last-child { margin-bottom: 0; }
.episode-status { margin-top: 14px; }
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-item {
  flex: 0 1 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--line);
}
.status-key {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.status-value {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--red-deep);
}
.details { margin-top: 14px; }
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 2px 12px;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(43,39,35,0.14);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.detail-key::after { content: "·"; margin-left: 4px; color: rgba(43,39,35,0.3); }
.detail-value {
  min-width: 0;
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline { margin-top: 22px; }
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43,39,35,0.35) transparent;
}
.timeline-scroll::-webkit-scrollbar { height: 7px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: rgba(43,39,35,0.3); }
.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  min-width: max-content;
  padding: 0 2px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 16px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px);
}
.timeline-node {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  padding: 30px 10px 8px;
  margin-right: 10px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line);
  
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transform: rotate(45deg);
}
.timeline-node::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--paper-deep) 50%, rgba(43,39,35,0.18) 50%);
}
.timeline-node:hover { background: rgba(255,255,255,0.66); }
.timeline-timecode {
  display: block;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 3px;
}
.timeline-label {
  display: block;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--ink-soft);
}
.timeline-node.current, .timeline-node.is-active {
  background: var(--red);
  border-color: var(--red-deep);
  transform: translateY(-2px);
}
.timeline-node.current .timeline-timecode, .timeline-node.is-active .timeline-timecode { color: #fff; }
.timeline-node.current .timeline-label, .timeline-node.is-active .timeline-label { color: rgba(255,255,255,0.9); }
.timeline-node.current::before, .timeline-node.is-active::before { background: #fff; border-color: #fff; }
.timeline-node.current::after, .timeline-node.is-active::after { background: linear-gradient(135deg, var(--red-deep) 50%, rgba(255,255,255,0.35) 50%); }
.episodes { margin-top: 22px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
.episode-cell {
  position: relative;
  min-width: 0;
  padding: 7px 9px 8px;
  background: rgba(255,255,255,0.44);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(208,64,42,0.45);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 6px;
  cursor: default;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.episode-cell:hover {
  background: rgba(255,255,255,0.72);
  box-shadow: 0 6px 16px -12px rgba(43,39,35,0.6);
}
.episode-number {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 12px;
  color: var(--red-deep);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.episode-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-duration {
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.episode-summary {
  grid-column: 1 / -1;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.18s ease, margin-top 0.22s ease;
  margin-top: 0;
  border-top: 1px dashed transparent;
}
.episode-cell:hover .episode-summary, .episode-cell:focus-within .episode-summary {
  max-height: 8em;
  opacity: 1;
  margin-top: 5px;
  padding-top: 5px;
  border-top-color: var(--line);
}
.comments { margin-top: 22px; }
.comment-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.comment-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.comment-column-left { margin-top: 0; }
.comment-column-right { margin-top: 16px; }
.comment-card {
  position: relative;
  padding: 7px 10px 8px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(208,64,42,0.4);
  min-width: 0;
}
.comment-card:nth-child(even) { margin-left: 12px; }
.comment-card:nth-child(3n) { margin-left: 5px; }
.comment-card::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: rgba(208,64,42,0.28);
  transform: rotate(45deg);
}
.comment-nickname {
  display: block;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--red-deep);
  margin-bottom: 2px;
}
.comment-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.recommend-region { margin-top: 22px; }
.recommend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px;
  background: rgba(255,255,255,0.46);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
a.recommend-card:hover {
  background: rgba(255,255,255,0.78);
  border-color: rgba(208,64,42,0.6);
  transform: translateY(-2px);
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: var(--paper-deep);
  filter: saturate(0.9);
}
[data-runtime="recommendation"] [data-runtime="name"] {
  display: block;
  margin-top: 5px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.42;
  color: var(--ink-faint);
}
.recommend-region-1 a.recommend-card { border-top: 2px solid rgba(208,64,42,0.5); }
.recommend-region-2 a.recommend-card { border-top: 2px solid rgba(43,39,35,0.35); }
.recommend-region-3 a.recommend-card { border-top: 2px dashed rgba(208,64,42,0.45); }
.site-footer {
  margin-top: 26px;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 14px 16px 22px;
}
.footer-disclaimer {
  max-width: 1440px;
  margin: 0 auto 10px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-faint);
}
.footer-nav {
  max-width: 1440px;
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.14s ease, border-color 0.14s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--red-deep);
  border-bottom-color: var(--red-deep);
}
.friend-links {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  font-size: 11.5px;
}
.friend-links-label {
  font-family: var(--title-font);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
a.runtime-friend-link {
  color: var(--ink-faint);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dotted rgba(43,39,35,0.28);
  transition: color 0.14s ease, border-color 0.14s ease;
}
a.runtime-friend-link:hover {
  color: var(--red-deep);
  border-bottom-color: var(--red-deep);
}
@media (max-width: 1080px) {.episode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 900px) {.hero-shell { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 14px; }
.hero-title { font-size: 26px; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cast-card { flex: 0 1 118px; }}
@media (max-width: 680px) {.page-main { padding: 0 12px 20px; }
.hero-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hero-poster-wrap { max-width: 220px; }
.hero-title { font-size: 23px; }
.cast-card { flex: 1 1 132px; }
.comment-columns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.comment-column-right { margin-top: 0; }
.comment-card:nth-child(even), .comment-card:nth-child(3n) { margin-left: 0; }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-list { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.timeline-node { flex-basis: 150px; width: 150px; }}
@media (max-width: 460px) {.episode-grid { grid-template-columns: minmax(0, 1fr); }
.recommend-strip { grid-template-columns: minmax(0, 1fr); }
.hero-title { font-size: 21px; }
.hero-poster-wrap { max-width: 180px; }
.ctrl { padding: 3px 6px; font-size: 10.5px; }
.ctrl-progress { flex-basis: 100%; }
.detail-list { grid-template-columns: minmax(0, 1fr); }
.friend-links { gap: 4px 9px; }}
@media (min-width: 1240px) {.episode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recommend-strip { grid-template-columns: repeat(auto-fit, minmax(0, 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}
