:root {
  --paper: #d9cfbe;
  --paper-deep: #cbbfaa;
  --soil: #b58a3d;
  --soil-dark: #8a6522;
  --muted-red: #a94b3c;
  --muted-red-deep: #7f3428;
  --corn: #e8c04a;
  --ink: #2c2620;
  --ink-soft: #4d453b;
  --line: #a2957f;
  --card: #e3d9c8;
  --gap: 10px;
  --pad: 12px;
  --radius: 3px;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232, 192, 74, 0.10), transparent 55%),
    radial-gradient(circle at 85% 60%, rgba(169, 75, 60, 0.08), transparent 60%);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "WenQuanYi Micro Hei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
img, video {
  display: block;
  max-width: 100%;
}
h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}
ol, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input {
  font: inherit;
  color: inherit;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(217, 207, 190, 0.94);
  border-bottom: 2px solid var(--soil-dark);
  backdrop-filter: blur(3px);
}
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 7px 14px;
  max-width: 1180px;
  margin: 0 auto;
}
a[data-contract="site-name"] {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--muted-red-deep);
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(232, 192, 74, 0.55);
  white-space: nowrap;
}
a[data-contract="site-name"]:hover {
  color: var(--soil-dark);
}
.categories-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--soil);
  color: #fdf7ea;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--soil-dark);
}
a.runtime-category:hover {
  background: var(--muted-red);
  border-color: var(--muted-red-deep);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-heading {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--muted-red-deep);
  padding-left: 9px;
  border-left: 5px solid var(--soil);
  margin-bottom: 8px;
}
.block-heading {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--soil-dark);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: 4px 5px 0 rgba(44, 38, 32, 0.22);
}
.hero-figure {
  margin: 0;
  position: relative;
}
.hero-still {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
  filter: sepia(0.28) saturate(0.92) contrast(1.04);
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(44, 38, 32, 0.86) 0%,
    rgba(44, 38, 32, 0.52) 26%,
    rgba(44, 38, 32, 0.06) 52%,
    rgba(232, 192, 74, 0.10) 100%
  );
}
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px 16px;
  color: #fbf4e6;
}
.hero-title {
  font-size: clamp(22px, 4.6vw, 40px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  transform: rotate(-1.1deg);
  text-shadow: 2px 2px 0 rgba(127, 52, 40, 0.85), 0 0 12px rgba(44, 38, 32, 0.6);
}
.hero-tagline {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 46ch;
  color: #f0e2c6;
  text-shadow: 1px 1px 0 rgba(44, 38, 32, 0.7);
}
.timeline-section {
  min-width: 0;
}
.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 236px);
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.timeline-track::-webkit-scrollbar {
  height: 8px;
}
.timeline-track::-webkit-scrollbar-track {
  background: var(--paper-deep);
  border-radius: 999px;
}
.timeline-track::-webkit-scrollbar-thumb {
  background: var(--soil);
  border-radius: 999px;
}
.timeline-card {
  scroll-snap-align: start;
  background: var(--soil);
  background-image: linear-gradient(155deg, rgba(232, 192, 74, 0.22), transparent 60%);
  border: 1px solid var(--soil-dark);
  border-radius: var(--radius);
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  box-shadow: 3px 3px 0 rgba(44, 38, 32, 0.18);
}
.timeline-code {
  align-self: flex-start;
  background: #fdf7ea;
  color: var(--soil-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.timeline-label {
  font-size: 12.5px;
  line-height: 1.45;
  color: #fdf7ea;
}
.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.episode-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted-red);
  border-radius: var(--radius);
}
.episode-number {
  font-size: 30px;
  font-weight: 900;
  line-height: 0.9;
  color: var(--muted-red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.episode-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.episode-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.episode-summary {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.episode-duration {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--soil-dark);
  background: rgba(232, 192, 74, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
}
.overview-section {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 4px 5px 0 rgba(44, 38, 32, 0.16);
}
.poster-column {
  min-width: 0;
}
.poster-wrap {
  margin: 0;
  border: 1px solid var(--soil-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}
img[data-contract="main-poster"] {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.2) saturate(0.95);
}
.overview-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overview-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--muted-red-deep);
  line-height: 1.15;
}
.overview-tagline {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--soil-dark);
  background: rgba(232, 192, 74, 0.32);
  border: 1px solid var(--soil);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.cast-block, .synopsis-block, .details-block {
  min-width: 0;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  min-width: 0;
}
.cast-avatar {
  margin: 0;
  width: 100%;
  max-width: 66px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--soil);
  background: var(--paper-deep);
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.25) saturate(0.9);
}
.cast-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.cast-nickname {
  font-size: 10.5px;
  color: var(--muted-red);
  line-height: 1.2;
  font-style: italic;
}
.synopsis-para {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.synopsis-para:last-child {
  margin-bottom: 0;
}
.details-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
}
.detail-key {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--soil-dark);
  white-space: nowrap;
}
.detail-value {
  font-size: 12.5px;
  color: var(--ink);
  min-width: 0;
}
.player-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.player-frame {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #17130f;
}
.player-frame.is-theater {
  box-shadow: 0 0 0 3px var(--corn);
}
.player-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ctrl-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fdf7ea;
  background: var(--soil-dark);
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ctrl-btn:hover {
  background: var(--muted-red);
}
.ctrl-btn.is-active, .ctrl-btn.play.is-active, .ctrl-btn.mute.is-active, .ctrl-btn.speed.is-active, .ctrl-btn.pip.is-active, .ctrl-btn.fullscreen.is-active, .ctrl-btn.theater.is-active, .ctrl-btn.light.is-active {
  background: var(--corn);
  color: var(--ink);
  border-color: var(--muted-red-deep);
}
.ctrl-progress, .ctrl-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--soil);
  cursor: pointer;
  min-width: 0;
}
.ctrl-progress {
  flex: 3 1 140px;
}
.ctrl-volume {
  flex: 1 1 70px;
  max-width: 160px;
}
.ctrl-progress::-webkit-slider-thumb, .ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted-red);
  border: 2px solid #fdf7ea;
}
.ctrl-progress::-moz-range-thumb, .ctrl-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fdf7ea;
  border-radius: 50%;
  background: var(--muted-red);
}
body.lights-off {
  background-color: #1b1712;
  background-image: none;
}
body.lights-off .site-header {
  background: rgba(27, 23, 18, 0.94);
}
body.lights-off .page-main {
  filter: brightness(0.9);
}
body.lights-off .player-frame {
  filter: none;
  box-shadow: 0 0 0 3px var(--corn);
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.comment-bubble {
  position: relative;
  padding: 9px 11px;
  background: #f2e9d7;
  border: 1px solid var(--line);
  border-left: 4px solid var(--soil);
  border-radius: var(--radius);
  box-shadow: 2px 3px 0 rgba(44, 38, 32, 0.14);
}
.comment-bubble-alt {
  background: #e6d5b8;
  border-left-color: var(--muted-red);
  transform: translateY(6px);
}
.comment-nick {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--muted-red-deep);
  margin-bottom: 3px;
  letter-spacing: 0.03em;
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.rec-region {
  position: relative;
  padding-left: 12px;
  min-width: 0;
}
.rec-region::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--soil), var(--muted-red));
  border-radius: 999px;
}
.rec-heading {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--soil-dark);
  margin-bottom: 7px;
}
.rec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.rec-item {
  min-width: 0;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  color: var(--ink);
  text-decoration: none;
  height: 100%;
}
a[data-runtime="recommendation"]:hover {
  border-color: var(--muted-red);
  background: #eee2cb;
  box-shadow: 3px 3px 0 rgba(127, 52, 40, 0.28);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.22) saturate(0.92);
}
a[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 14px 26px;
  border-top: 2px solid var(--soil-dark);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted-red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--soil-dark);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}
.friend-links-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--soil-dark);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: var(--muted-red);
  border-bottom-color: var(--muted-red);
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0.85;
  max-width: 90ch;
}
@media (max-width: 900px) {.overview-section {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  }
.cast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }}
@media (max-width: 720px) {.overview-section {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-column {
    max-width: 190px;
  }
.cast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
.details-list {
    grid-template-columns: auto minmax(0, 1fr);
  }
.comment-bubble-alt {
    transform: none;
  }}
@media (max-width: 560px) {body {
    font-size: 13.5px;
  }
.page-main {
    padding: 8px 10px 20px;
    gap: 16px;
  }
.header-bar {
    padding: 6px 10px;
  }
.hero-still {
    max-height: 48vh;
  }
.hero-caption {
    padding: 10px 12px 12px;
  }
.timeline-track {
    grid-auto-columns: minmax(170px, 78vw);
  }
.episode-list {
    grid-template-columns: minmax(0, 1fr);
  }
.overview-section {
    padding: 10px;
  }
.cast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
.comment-stack {
    grid-template-columns: minmax(0, 1fr);
  }
.rec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.ctrl-btn {
    padding: 4px 8px;
    font-size: 11.5px;
  }}
@media (max-width: 380px) {.cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.rec-list {
    grid-template-columns: 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}
