:root {
  --bg: #e8e2d8;
  --bg-deep: #ded7cb;
  --surface: #f4efe6;
  --surface-2: #ece5d9;
  --ink: #2c2723;
  --ink-soft: #5d554c;
  --ink-faint: #8b8177;
  --accent: #b04a26;
  --accent-deep: #8e3618;
  --accent-soft: #d98a63;
  --line: #cfc6b7;
  --line-soft: #ddd5c8;
  --cool: #7d8794;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 12% -8%, #f2ece1 0%, rgba(242, 236, 225, 0) 58%),
    radial-gradient(120% 80% at 100% 0%, #e6ddcd 0%, rgba(230, 221, 205, 0) 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
h1, h2, p, dl, dd, dt, ul, ol, li {
  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;
}
button {
  cursor: pointer;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 10px clamp(14px, 3.2vw, 40px);
  background: rgba(244, 239, 230, 0.86);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
}
a[data-contract="site-name"] {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-right: 14px;
  border-right: 2px solid var(--accent);
  line-height: 1.2;
}
a[data-contract="site-name"]:hover {
  color: var(--accent-deep);
}
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
a.runtime-category:hover, a.runtime-category:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.page-main {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(12px, 2.4vw, 26px) clamp(14px, 3.2vw, 40px) 8px;
}
.movie-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 30px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 22px);
  box-shadow: 0 2px 0 rgba(44, 39, 35, 0.04), 0 18px 40px -34px rgba(44, 39, 35, 0.5);
}
.poster-frame {
  position: relative;
  align-self: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 14px 34px -22px rgba(44, 39, 35, 0.65);
}
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(125, 135, 148, 0.18) 0%, rgba(176, 74, 38, 0.14) 100%);
  pointer-events: none;
}
.main-poster {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.overview-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.movie-title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.02em;
}
.movie-tagline {
  position: relative;
  font-size: 15px;
  color: var(--accent-deep);
  font-weight: 600;
  padding-left: 16px;
}
.movie-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  bottom: 0.34em;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.movie-seo {
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 62ch;
}
.player-shell {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  background: #201c19;
  border: 1px solid #35302b;
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: background 0.25s, box-shadow 0.25s;
}
.player-video {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.player-btn {
  background: #35302b;
  color: #ece5d9;
  border: 1px solid #453f38;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.player-btn:hover {
  background: #453f38;
}
.player-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.player-range {
  flex: 1 1 90px;
  min-width: 70px;
  height: 4px;
  appearance: none;
  background: #4b453d;
  border-radius: 999px;
  outline: none;
}
.player-range::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid #201c19;
  cursor: pointer;
}
.player-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #201c19;
  border-radius: 50%;
  background: var(--accent-soft);
  cursor: pointer;
}
.player-select {
  background: #35302b;
  color: #ece5d9;
  border: 1px solid #453f38;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12.5px;
}
.player-shell.is-playing {
  box-shadow: 0 0 0 1px rgba(176, 74, 38, 0.55);
}
.player-shell.is-muted .player-btn[data-player-action="mute"], .player-shell.is-speed-changed .player-select {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}
.player-shell.is-lights-off {
  background: #0b0a09;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.player-shell.is-theater {
  background: #17130f;
}
.player-shell.is-fullscreen {
  border-radius: 0;
  padding: 4px;
}
.cast-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.cast-heading, .synopsis-heading, .status-heading, .details-heading, .timeline-heading, .episodes-heading, .comments-heading, .recommend-heading {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cast-heading::before, .synopsis-heading::before, .status-heading::before, .details-heading::before, .timeline-heading::before, .episodes-heading::before, .comments-heading::before, .recommend-heading::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  flex: none;
}
.cast-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  align-items: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: start;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}
.cast-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.cast-relation {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.synopsis-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.synopsis-para {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 7px;
  max-width: 78ch;
}
.synopsis-para:last-child {
  margin-bottom: 0;
}
.episode-status {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: baseline;
}
.status-heading {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}
.status-progress {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.status-meta {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.details-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px 16px;
}
.detail-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 4px;
  min-width: 0;
}
.detail-key {
  font-size: 12px;
  color: var(--ink-faint);
  flex: none;
  letter-spacing: 0.04em;
}
.detail-key::after {
  content: "·";
  margin-left: 4px;
  color: var(--line);
}
.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-left: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.timeline-block {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
}
.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px 22px;
  align-items: start;
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding-left: 4px;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  bottom: -10px;
  width: 1px;
  background: linear-gradient(180deg, var(--line) 0%, rgba(207, 198, 183, 0) 100%);
}
.timeline-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.timeline-label {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 4px;
  line-height: 1.55;
}
.timeline-node-current .timeline-marker {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(176, 74, 38, 0.14);
}
.timeline-node-current .timeline-label {
  color: var(--ink);
  font-weight: 600;
}
.timeline-node-current::before {
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(217, 138, 99, 0) 100%);
}
.episodes-block {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  min-width: 0;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.episode-card:hover {
  border-color: var(--accent-soft);
  background: #f1eadf;
}
.episode-number {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.episode-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.episode-summary {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.episode-duration {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line-soft);
}
.episode-card-current {
  border: 2px solid var(--accent);
  background: #f6ede2;
  box-shadow: 0 0 0 3px rgba(176, 74, 38, 0.09);
}
.episode-card-current .episode-number {
  color: var(--accent);
}
.comments-block {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  align-items: start;
}
.comment-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-self: start;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px 11px;
  min-width: 0;
}
.comment-card:nth-child(even) {
  background: #efe7da;
  transform: rotate(-0.25deg);
}
.comment-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
  opacity: 0.6;
}
.comment-avatar {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #a8a196 0%, #7d8794 70%);
  flex: none;
  align-self: start;
}
.comment-card:nth-child(2n) .comment-avatar {
  background: radial-gradient(circle at 34% 30%, #c08a6d 0%, #b04a26 78%);
}
.comment-card:nth-child(3n) .comment-avatar {
  background: radial-gradient(circle at 34% 30%, #b3a894 0%, #8b8177 78%);
}
.comment-nickname {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  align-self: center;
}
.comment-text {
  grid-column: 2;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-bottom: 6px;
}
.recommend-region {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
}
.recommend-heading {
  position: sticky;
  top: 64px;
  margin-bottom: 0;
  align-self: start;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  line-height: 1.4;
}
.recommend-heading::before {
  display: none;
}
.recommend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 18px;
  min-width: 0;
}
.recommend-item {
  min-width: 0;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}
a[data-runtime="recommendation"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  border-radius: var(--radius-sm);
  transition: color 0.16s, transform 0.16s;
}
a[data-runtime="recommendation"] img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-deep);
  filter: saturate(0.9);
  transition: filter 0.2s;
}
a[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: block;
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
  display: block;
}
a[data-runtime="recommendation"]:hover {
  color: var(--accent-deep);
  transform: translateY(-1px);
}
a[data-runtime="recommendation"]:hover img {
  filter: saturate(1.05);
}
a[data-runtime="recommendation"]:hover [data-runtime="name"] {
  color: var(--accent-deep);
}
.site-footer {
  margin-top: 24px;
  padding: 18px clamp(14px, 3.2vw, 40px) 26px;
  background: #2c2723;
  color: #cfc6b7;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 13px;
  text-decoration: none;
  color: #ece5d9;
  border-bottom: 1px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}
a[data-contract="footer-home"] {
  color: #f4efe6;
  font-weight: 700;
}
a[data-contract="footer-sitemap"] {
  color: #a89f93;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding-top: 10px;
  border-top: 1px solid #423b34;
}
.friend-links-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8b8177;
  flex: none;
}
a.runtime-friend-link {
  font-size: 12.5px;
  text-decoration: none;
  color: #cfc6b7;
  white-space: nowrap;
  transition: color 0.16s;
}
a.runtime-friend-link:hover {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: #7f766b;
  max-width: 90ch;
  padding-top: 10px;
  border-top: 1px solid #423b34;
}
@media (max-width: 900px) {.movie-overview {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-frame {
    max-width: 300px;
  }
.episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.recommend-region {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-heading {
    position: static;
    flex-direction: row;
    align-items: center;
    margin-bottom: 8px;
  }}
@media (max-width: 620px) {body {
    font-size: 14.5px;
  }
.site-header {
    gap: 8px 12px;
    padding: 9px 14px;
  }
a[data-contract="site-name"] {
    font-size: 16px;
  }
.poster-frame {
    max-width: 240px;
  }
.movie-overview {
    padding: 12px;
    gap: 14px;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-stack {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-list {
    grid-template-columns: minmax(0, 1fr);
  }
.timeline-list {
    grid-template-columns: minmax(0, 1fr);
  }
.details-list {
    grid-template-columns: minmax(0, 1fr);
  }
.status-progress {
    grid-column: 1 / -1;
  }
.player-controls {
    gap: 5px;
  }
.player-btn {
    padding: 3px 10px;
    font-size: 12px;
  }}
@media (max-width: 420px) {.cast-row {
    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}
