*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, dt, ul {
  margin: 0;
  padding: 0;
}
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:root {
  --wall: #cfc4b6;
  --wall-deep: #b7a894;
  --wood: #6d5643;
  --wood-dark: #4a392c;
  --wood-light: #8a7259;
  --ink: #2c241d;
  --ink-soft: #5c4d3f;
  --glow: #e8a54b;
  --glow-soft: #d98f3f;
  --paper: #efe6d6;
  --paper-dim: #e4d8c3;
  --line: rgba(74, 57, 44, 0.28);
  --shadow: 0 2px 0 rgba(74, 57, 44, 0.18), 0 6px 14px rgba(44, 36, 29, 0.12);
  --radius: 4px;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--wall);
  background-image:
    linear-gradient(180deg, rgba(232, 165, 75, 0.10), rgba(232, 165, 75, 0) 34%),
    repeating-linear-gradient(90deg, rgba(74, 57, 44, 0.045) 0 1px, rgba(0, 0, 0, 0) 1px 46px),
    repeating-linear-gradient(0deg, rgba(74, 57, 44, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 52px);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, var(--wood-dark), var(--wood));
  border-bottom: 3px solid var(--glow-soft);
  box-shadow: 0 4px 12px rgba(44, 36, 29, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 12px;
  max-width: 1180px;
  margin: 0 auto;
}
a[data-contract="site-name"] {
  color: #f6ecdb;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 10px 3px;
  background: rgba(232, 165, 75, 0.2);
  border-left: 3px solid var(--glow);
  border-radius: 2px;
}
a[data-contract="site-name"]:hover, a[data-contract="site-name"]:focus-visible {
  color: var(--glow);
  background: rgba(232, 165, 75, 0.32);
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  white-space: nowrap;
  display: inline-block;
  color: #e9dcc7;
  text-decoration: none;
  font-size: 13px;
  padding: 3px 10px;
  border: 1px solid rgba(246, 236, 219, 0.32);
  border-radius: 999px;
  background: rgba(44, 36, 29, 0.22);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
a.runtime-category:hover, a.runtime-category:focus-visible {
  color: #2c241d;
  background: var(--glow);
  border-color: var(--glow);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 12px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--wood-dark);
  padding-left: 10px;
  border-left: 4px solid var(--glow);
  margin-bottom: 8px;
  line-height: 1.2;
}
.hero-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  grid-template-areas:
    "poster title"
    "player player"
    "cast cast"
    "synopsis status"
    "details details";
  gap: 12px;
  padding: 14px;
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(232, 165, 75, 0.30), rgba(232, 165, 75, 0) 60%),
    linear-gradient(160deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-overview::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 6%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232, 165, 75, 0.55), rgba(232, 165, 75, 0) 68%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.hero-poster {
  grid-area: poster;
  align-self: start;
  position: relative;
  z-index: 1;
  width: 100%;
}
.poster-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 3px solid var(--wood-dark);
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(44, 36, 29, 0.34);
  background: var(--wall-deep);
}
.hero-title-block {
  grid-area: title;
  align-self: start;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 2px 0 6px;
}
.movie-title {
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--wood-dark);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}
.movie-tagline {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 3px solid var(--glow);
  line-height: 1.35;
}
.hero-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.score-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--wood-dark);
  background: rgba(232, 165, 75, 0.24);
  border: 1px solid rgba(217, 143, 63, 0.55);
  white-space: nowrap;
}
.hero-seo {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 7px;
}
.player-shell {
  grid-area: player;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 8px;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(44, 36, 29, 0.3);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.player-video {
  width: 100%;
  height: auto;
  display: block;
  background: #16110c;
  border-radius: 2px;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ctrl-btn {
  cursor: pointer;
  font-size: 12px;
  line-height: 1.1;
  padding: 5px 9px;
  border-radius: 3px;
  color: #f1e5d2;
  background: rgba(44, 36, 29, 0.55);
  border: 1px solid rgba(246, 236, 219, 0.28);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ctrl-btn:hover, .ctrl-btn:focus-visible {
  background: var(--glow);
  color: var(--wood-dark);
  border-color: var(--glow);
}
.ctrl-btn.is-playing { background: var(--glow); color: var(--wood-dark); border-color: var(--glow); }
.ctrl-btn.is-muted { background: #7a3a2a; color: #fbeede; border-color: #a45a44; }
.ctrl-btn.is-active { background: var(--glow-soft); color: var(--wood-dark); border-color: var(--glow); }
.ctrl-btn.is-changed { border-color: var(--glow); }
.ctrl-progress {
  flex: 1 1 160px;
  min-width: 120px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(246, 236, 219, 0.24);
  border-radius: 999px;
  cursor: pointer;
}
.ctrl-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--glow);
  border: 2px solid var(--wood-dark);
}
.ctrl-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glow);
  border: 2px solid var(--wood-dark);
}
.ctrl-volume {
  flex: 0 1 90px;
  width: 90px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(246, 236, 219, 0.24);
  border-radius: 999px;
  cursor: pointer;
}
.ctrl-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f1e5d2;
  border: 2px solid var(--wood-dark);
}
.ctrl-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f1e5d2;
  border: 2px solid var(--wood-dark);
}
.player-shell.is-lights-off {
  background: #100c08;
  box-shadow: 0 0 0 1px rgba(232, 165, 75, 0.4), 0 0 26px rgba(232, 165, 75, 0.3);
}
.player-shell.is-theater {
  background: linear-gradient(180deg, #1a130d, #0d0a07);
}
.cast-strip {
  grid-area: cast;
  position: relative;
  z-index: 1;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.cast-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px 0 0;
  overflow: hidden;
}
.cast-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  font-size: 14px;
  font-weight: 800;
  color: #fdf5e8;
  background: linear-gradient(150deg, var(--glow-soft), var(--wood));
  border-right: 1px solid rgba(74, 57, 44, 0.4);
}
.cast-name {
  font-size: 13px;
  color: var(--ink);
  padding-left: 8px;
  white-space: nowrap;
}
.synopsis-block {
  grid-area: synopsis;
  position: relative;
  z-index: 1;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.synopsis-para {
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--ink-soft);
  margin-bottom: 6px;
  text-indent: 2em;
}
.synopsis-para:last-child { margin-bottom: 0; }
.episode-status {
  grid-area: status;
  position: relative;
  z-index: 1;
  align-self: start;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.status-line {
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(232, 165, 75, 0.16);
  border: 1px solid rgba(217, 143, 63, 0.45);
  border-radius: 3px;
  padding: 8px 10px;
}
.status-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--glow-soft);
  line-height: 1;
  padding: 0 2px;
}
.details-block {
  grid-area: details;
  position: relative;
  z-index: 1;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 12px;
  align-items: start;
}
.detail-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(74, 57, 44, 0.22);
}
.detail-item dt {
  flex: 0 0 auto;
  color: var(--wood-light);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.detail-item dd {
  color: var(--ink);
  margin: 0;
}
.timeline-section {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(74, 57, 44, 0.94), rgba(58, 44, 34, 0.96));
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow);
}
.timeline-section .section-heading {
  color: #f2e4cd;
  border-left-color: var(--glow);
}
.timeline-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--glow) rgba(255, 255, 255, 0.12);
  background-image: repeating-linear-gradient(90deg, rgba(246, 236, 219, 0.28) 0 6px, rgba(0, 0, 0, 0) 6px 14px);
  background-repeat: repeat-x;
  background-position: 0 26px;
  background-size: auto 2px;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 999px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--glow); border-radius: 999px; }
.timeline-stop {
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  padding: 0 12px 0 0;
  margin-right: 14px;
}
.timeline-stop::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.28);
}
.timeline-code {
  display: inline-block;
  margin-left: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--wood-dark);
  background: var(--glow);
  border-radius: 2px;
  padding: 1px 6px;
  transform: rotate(-1.4deg);
}
.timeline-label {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e7dac5;
}
.episodes-section {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px 9px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wood-light);
  border-radius: 3px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.episode-card:hover {
  background: #fffaf0;
  border-left-color: var(--glow);
  transform: translateY(-2px);
}
.episode-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--glow-soft);
}
.episode-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--wood-dark);
}
.episode-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.episode-duration {
  font-size: 11px;
  color: var(--wood-light);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.episode-card:hover .episode-duration, .episode-card:focus-within .episode-duration {
  max-height: 24px;
  opacity: 1;
  margin-top: 2px;
}
.comments-section {
  padding: 10px 12px 14px;
  background:
    linear-gradient(180deg, rgba(183, 168, 148, 0.5), rgba(183, 168, 148, 0.24));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.comment-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 12px;
  align-items: start;
}
.comment-note {
  position: relative;
  padding: 10px 11px 12px;
  background: linear-gradient(170deg, #fdf6e4, #f2e6cd);
  border: 1px solid rgba(74, 57, 44, 0.24);
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(44, 36, 29, 0.16);
}
.comment-note::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow-soft);
  box-shadow: 0 1px 2px rgba(44, 36, 29, 0.4);
}
.comment-note:nth-child(3n + 1) { transform: rotate(-1.3deg); }
.comment-note:nth-child(3n + 2) { transform: rotate(1.1deg); }
.comment-note:nth-child(3n + 3) { transform: rotate(-0.5deg); }
.comment-nickname {
  display: block;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", cursive;
  font-size: 13px;
  font-weight: 700;
  color: var(--wood-dark);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(74, 57, 44, 0.3);
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.recommend-region {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.recommend-region .section-heading {
  margin-bottom: 6px;
}
.recommend-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}
a.recommend-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "pic name"
    "pic blurb";
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 6px 4px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dotted rgba(74, 57, 44, 0.28);
  border-radius: 2px;
  transition: background 0.15s ease;
}
a.recommend-item:last-child { border-bottom: none; }
a.recommend-item:hover, a.recommend-item:focus-visible {
  background: rgba(232, 165, 75, 0.2);
}
[data-runtime="recommendation"] img, .recommend-pic {
  grid-area: pic;
  width: 100%;
  height: 100%;
  min-height: 46px;
  max-height: 62px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(74, 57, 44, 0.35);
  border-radius: 2px;
  background: var(--wall-deep);
}
.recommend-name {
  grid-area: name;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--wood-dark);
}
.recommend-blurb {
  grid-area: blurb;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 12px 26px;
  border-top: 3px solid var(--wood);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--wood-dark);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover, a[data-contract="footer-home"]:focus-visible, a[data-contract="footer-sitemap"]:focus-visible {
  color: var(--glow-soft);
  border-bottom-color: var(--glow-soft);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.friend-links-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--wood-light);
  padding-right: 6px;
  border-right: 1px solid var(--line);
}
a.runtime-friend-link {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
}
a.runtime-friend-link:hover, a.runtime-friend-link:focus-visible {
  color: var(--glow-soft);
  text-decoration: underline;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(92, 77, 63, 0.85);
  border-top: 1px dashed var(--line);
  padding-top: 7px;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--glow-soft);
  outline-offset: 2px;
}
@media (max-width: 900px) {.hero-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "poster"
      "title"
      "player"
      "cast"
      "synopsis"
      "status"
      "details";
  }
.hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }
.episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }}
@media (max-width: 720px) {body { font-size: 14px; }
.page-main { padding: 10px 8px 20px; gap: 12px; }
.site-header { position: static; }
.header-inner { padding: 7px 8px; gap: 10px; }
.episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.comment-wall {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-note:nth-child(3n + 1), .comment-note:nth-child(3n + 2), .comment-note:nth-child(3n + 3) {
    transform: none;
  }
.details-list {
    grid-template-columns: minmax(0, 1fr);
  }
.episode-duration {
    max-height: 24px;
    opacity: 1;
    margin-top: 2px;
  }}
@media (max-width: 480px) {.hero-overview { padding: 10px; gap: 10px; }
.hero-poster { max-width: 100%; }
.movie-title { font-size: 26px; }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.ctrl-btn { font-size: 11.5px; padding: 4px 7px; }
.ctrl-volume { flex: 1 1 70px; width: auto; }
.timeline-stop { width: 165px; }}

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}
