:root {
  --wheat: #c8963e;
  --wheat-deep: #a8762a;
  --wheat-light: #e3c07a;
  --soil: #3d2b1f;
  --soil-deep: #2a1d14;
  --brick: #9a5a4a;
  --brick-fade: #b07868;
  --cloth: #7d8a9c;
  --cloth-deep: #5c6879;
  --paper: #f4ead8;
  --paper-warm: #efe3cc;
  --ink: #2f2418;
  --ink-soft: #5a4a38;
  --line: #c9b593;
  --line-soft: #dcc9a8;
  --shadow: rgba(42, 29, 20, 0.18);
  --radius-sq: 3px;
  --radius-round: 10px;
  --gap-tight: 8px;
  --gap: 12px;
  --gap-wide: 18px;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "SimHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(200, 150, 62, 0.06) 0%, rgba(61, 43, 31, 0.04) 100%),
    repeating-linear-gradient(90deg, rgba(168, 118, 42, 0.03) 0 1px, transparent 1px 9px);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--wheat-deep);
  text-decoration: none;
}
button, input, select {
  font: inherit;
  color: inherit;
}
ul, ol, dl, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1, h2, h3, p {
  margin: 0;
}
h1, h2, h3, .section-heading, .movie-title {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, var(--soil) 0%, var(--soil-deep) 100%);
  border-bottom: 3px solid var(--wheat-deep);
  box-shadow: 0 2px 8px var(--shadow);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
  justify-content: space-between;
}
a[data-contract="site-name"] {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--wheat-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
a[data-contract="site-name"]:hover {
  color: #fff;
}
.header-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12.5px;
  color: var(--paper);
  background: rgba(200, 150, 62, 0.22);
  border: 1px solid var(--wheat-deep);
  border-radius: var(--radius-round);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
a.runtime-category:hover {
  background: var(--wheat);
  color: var(--soil-deep);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 14px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: var(--gap-wide);
  align-items: start;
  padding-bottom: 6px;
}
.hero-poster-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}
.poster-frame {
  border: 3px solid var(--soil);
  border-radius: var(--radius-sq);
  overflow: hidden;
  background: var(--soil-deep);
  box-shadow: 4px 4px 0 rgba(168, 118, 42, 0.35);
}
.poster-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.poster-slogan {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--brick);
  text-align: center;
  line-height: 1.45;
  padding: 0 2px;
}
.hero-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}
.hero-title-block {
  border-left: 5px solid var(--wheat);
  padding-left: 10px;
}
.movie-title {
  font-size: 26px;
  line-height: 1.25;
  color: var(--soil-deep);
  text-shadow: 1px 1px 0 rgba(200, 150, 62, 0.25);
}
.movie-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.player-shell {
  position: relative;
  width: 100%;
  background: var(--soil-deep);
  border: 2px solid var(--soil);
  border-radius: var(--radius-sq);
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(61, 43, 31, 0.28);
}
.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: linear-gradient(180deg, rgba(42, 29, 20, 0.92), rgba(42, 29, 20, 1));
  border-top: 2px solid var(--wheat-deep);
}
.player-btn {
  padding: 3px 9px;
  font-size: 12px;
  color: var(--paper);
  background: rgba(200, 150, 62, 0.18);
  border: 1px solid var(--wheat-deep);
  border-radius: var(--radius-round);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.player-btn:hover {
  background: var(--wheat);
  color: var(--soil-deep);
}
.player-btn:active {
  transform: translateY(1px);
}
.player-progress {
  flex: 1 1 140px;
  min-width: 90px;
  height: 6px;
  accent-color: var(--wheat);
  cursor: pointer;
}
.player-volume {
  flex: 0 1 80px;
  min-width: 56px;
  height: 6px;
  accent-color: var(--brick-fade);
  cursor: pointer;
}
.player-speed {
  padding: 2px 6px;
  font-size: 12px;
  color: var(--paper);
  background: var(--soil);
  border: 1px solid var(--wheat-deep);
  border-radius: var(--radius-round);
  cursor: pointer;
}
.player-shell.is-playing .player-btn[data-player-action="play"] {
  background: var(--wheat);
  color: var(--soil-deep);
}
.player-shell.is-muted .player-volume {
  opacity: 0.45;
}
.player-shell.lights-off {
  background: #000;
}
.player-shell.lights-off .player-controls {
  background: #000;
  border-top-color: #111;
}
.player-shell.theater-mode {
  border-color: var(--wheat-light);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.4), 0 6px 22px rgba(0, 0, 0, 0.5);
}
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.meta-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12.5px;
  color: var(--soil-deep);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  white-space: nowrap;
}
.meta-chip:first-child {
  background: var(--wheat);
  border-color: var(--wheat-deep);
  color: var(--soil-deep);
  font-weight: 600;
}
.section-heading {
  font-size: 17px;
  color: var(--soil-deep);
  margin-bottom: 8px;
  padding-left: 9px;
  position: relative;
  line-height: 1.3;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: linear-gradient(180deg, var(--wheat), var(--brick));
  border-radius: 2px;
}
.cast-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 62px;
  padding: 6px 3px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sq);
  text-align: center;
}
.cast-avatar {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--wheat-light), var(--wheat-deep) 70%, var(--brick) 100%);
  border: 2px solid var(--soil);
  flex: none;
}
.cast-name {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
}
.synopsis-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.synopsis-paragraph {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
  text-indent: 2em;
  padding: 8px 11px;
  background: var(--paper-warm);
  border-left: 3px solid var(--line-soft);
  border-radius: 0 var(--radius-sq) var(--radius-sq) 0;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 14px;
  padding: 10px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sq);
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line-soft);
  min-width: 0;
}
.detail-key {
  flex: none;
  font-size: 12.5px;
  color: var(--brick);
  font-weight: 600;
  white-space: nowrap;
}
.detail-value {
  font-size: 12.5px;
  color: var(--ink);
  min-width: 0;
}
.timeline-section {
  padding: 14px 0 4px;
}
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px 8px;
  padding-top: 16px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 3px;
  background: linear-gradient(90deg, var(--wheat-deep), var(--wheat), var(--brick), var(--wheat));
  border-radius: 2px;
  opacity: 0.65;
}
.timeline-node {
  position: relative;
  padding: 12px 8px 8px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sq);
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wheat);
  border: 2px solid var(--soil);
  box-shadow: 0 0 0 2px var(--paper);
}
.timeline-timecode {
  display: block;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 3px;
}
.timeline-label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--gap-tight);
  align-items: start;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px 9px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wheat);
  border-radius: var(--radius-sq);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.episode-card:hover {
  border-left-color: var(--brick);
  box-shadow: 2px 2px 0 rgba(168, 118, 42, 0.28);
}
.episode-wheat {
  position: absolute;
  top: 8px;
  right: 9px;
  font-size: 14px;
  opacity: 0.75;
  line-height: 1;
}
.episode-number {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.05em;
}
.episode-title {
  font-size: 14px;
  line-height: 1.35;
  color: var(--soil-deep);
  padding-right: 20px;
}
.episode-summary {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 1px;
}
.episode-duration {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--cloth-deep);
  background: rgba(125, 138, 156, 0.14);
  border: 1px solid rgba(125, 138, 156, 0.4);
  border-radius: var(--radius-round);
  padding: 1px 8px;
}
.rec-strip {
  display: flex;
  gap: var(--gap-tight);
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.rec-strip::-webkit-scrollbar {
  height: 7px;
}
.rec-strip::-webkit-scrollbar-track {
  background: var(--paper-warm);
  border-radius: 4px;
}
.rec-strip::-webkit-scrollbar-thumb {
  background: var(--wheat-deep);
  border-radius: 4px;
}
a.rec-card {
  flex: 0 0 148px;
  width: 148px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sq);
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.rec-card:hover {
  transform: translateY(-2px);
  border-color: var(--wheat);
  box-shadow: 3px 3px 0 rgba(168, 118, 42, 0.3);
}
[data-runtime="recommendation"] img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sq);
  border: 1px solid var(--soil);
  background: var(--soil-deep);
}
.rec-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soil-deep);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-blurb {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
  align-items: start;
  padding-top: 6px;
}
.comment-note {
  position: relative;
  padding: 10px 11px 11px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sq);
  box-shadow: 2px 3px 0 rgba(61, 43, 31, 0.12);
}
.comment-note:nth-child(3n + 1) {
  transform: rotate(-0.6deg);
  background: #f6eeda;
}
.comment-note:nth-child(3n + 2) {
  transform: rotate(0.5deg);
  background: #f1e6cf;
}
.comment-note:nth-child(3n) {
  transform: rotate(-0.3deg);
  background: #f3ebd9;
}
.comment-note::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 16px;
  width: 34px;
  height: 10px;
  background: rgba(200, 150, 62, 0.4);
  border: 1px solid rgba(168, 118, 42, 0.35);
  transform: rotate(-3deg);
}
.comment-nickname {
  display: inline-block;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 4px;
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.site-footer {
  background: linear-gradient(180deg, var(--soil) 0%, var(--soil-deep) 100%);
  border-top: 3px solid var(--wheat-deep);
  color: var(--paper);
  margin-top: 6px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 234, 216, 0.72);
  max-width: 720px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 13px;
  color: var(--wheat-light);
  text-decoration: none;
  border-bottom: 1px dotted rgba(227, 192, 122, 0.5);
  padding-bottom: 1px;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed rgba(200, 150, 62, 0.35);
}
.friend-links-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--wheat);
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 12px;
  color: rgba(244, 234, 216, 0.68);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dotted transparent;
}
a.runtime-friend-link:hover {
  color: var(--wheat-light);
  border-bottom-color: var(--wheat-light);
}
@media (max-width: 900px) {.timeline-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
  }
.timeline-track::before {
    display: none;
  }
.timeline-node::before {
    top: 10px;
    left: -5px;
  }}
@media (max-width: 760px) {.hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
  }
.hero-poster-column {
    max-width: 190px;
  }
.movie-title {
    font-size: 21px;
  }
.page-main {
    gap: 20px;
    padding: 12px 12px 24px;
  }
.episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
.comment-wall {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
a.rec-card {
    flex: 0 0 132px;
    width: 132px;
  }}
@media (max-width: 560px) {.header-inner {
    padding: 7px 10px;
  }
a[data-contract="site-name"] {
    font-size: 17px;
  }
.page-main {
    padding: 10px 10px 20px;
    gap: 16px;
  }
.timeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
.detail-list {
    grid-template-columns: 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) {
    transform: none;
  }
.movie-title {
    font-size: 19px;
  }
.player-controls {
    gap: 5px;
    padding: 6px;
  }
.player-progress {
    flex: 1 1 100%;
    order: -1;
  }}

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}
