:root {
  --ink: #f4ead2;
  --muted: #b5a98f;
  --line: rgba(231, 193, 119, 0.22);
  --gold: #d6a94f;
  --gold-2: #f4d58a;
  --red: #9a3131;
  --teal: #2d9188;
  --paper: #18120d;
  --panel: #24190f;
  --panel-2: #2e2115;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(circle at 20% 0%, rgba(214, 169, 79, 0.15), transparent 32%),
    linear-gradient(135deg, #100b08 0%, #1d120c 42%, #0d0b0a 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 22px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1a1009;
  background: var(--gold-2);
  border: 2px solid #8a6228;
  font-family: Georgia, serif;
  font-weight: 900;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.nav a,
.search-link,
.btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(36, 25, 15, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav a {
  padding: 10px 15px;
  font-size: 14px;
}

.nav a.active,
.nav a:hover,
.search-link:hover,
.btn:hover {
  border-color: var(--gold);
  background: rgba(214, 169, 79, 0.12);
  transform: translateY(-2px);
}

.search-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 30px;
  align-items: stretch;
  min-width: 0;
  padding: 44px 0 26px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border-top: 4px double var(--line);
  border-bottom: 4px double var(--line);
  padding: 36px 0;
}

.eyebrow,
.section-title p {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d9c9a8;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn.primary {
  color: #1a1009;
  background: var(--gold-2);
}

.showtime-board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(46,33,21,0.95), rgba(16,11,8,0.92));
  box-shadow: var(--shadow);
}

.showtime-board::before,
.showtime-board::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(to bottom, rgba(244,213,138,0.32) 0 9px, transparent 9px 18px);
}

.showtime-board::before {
  left: 0;
}

.showtime-board::after {
  right: 0;
}

.feature-inner {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  padding: 28px 36px;
}

.feature-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: #0d0b0a;
}

.feature-poster img,
.poster-mini img,
.archive-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  min-width: 0;
}

.feature-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.1;
}

.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.meta-line span,
.score-badge {
  border: 1px solid var(--line);
  padding: 6px 9px;
  color: #e8d8b8;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 800;
}

.feature-copy p {
  color: #d7c7a7;
  line-height: 1.75;
}

.film-strip {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.strip-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.ticket {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 96px;
  padding: 9px;
  border: 1px dashed rgba(244, 213, 138, 0.34);
  background: rgba(24, 18, 13, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ticket:hover {
  transform: translateY(-5px);
  border-color: var(--gold-2);
  background: rgba(154, 49, 49, 0.22);
}

.poster-mini {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0d0b0a;
}

.ticket h3 {
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.25;
}

.ticket p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 48px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 24px;
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 16px;
}

.section-title.compact {
  display: block;
}

.section-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.show-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(36, 25, 15, 0.72);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.show-row:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.show-time {
  display: grid;
  place-items: center;
  color: #1a1009;
  background: var(--gold-2);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.show-content {
  min-width: 0;
  padding: 15px 16px 15px 0;
}

.show-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.show-films {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.show-film {
  position: relative;
  min-width: 0;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f0b08;
}

.show-film img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.show-film span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 10px #000;
}

.show-film:hover img {
  transform: scale(1.08);
  opacity: 0.92;
}

.rank-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(14, 11, 9, 0.62);
  padding: 18px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(231,193,119,0.14);
}

.rank-no {
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item small {
  color: var(--muted);
}

.theme-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.theme-column {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(36, 25, 15, 0.64);
  padding: 16px;
}

.theme-column h3 {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 18px;
}

.theme-column a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(231,193,119,0.14);
  transition: color 0.25s ease, transform 0.25s ease;
}

.theme-column a:hover {
  color: var(--gold-2);
  transform: translateX(5px);
}

.theme-column b,
.theme-column span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(231,193,119,0.18);
  background: rgba(24, 18, 13, 0.72);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.line-card:hover {
  border-color: var(--teal);
  background: rgba(45, 145, 136, 0.14);
}

.line-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.line-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 54px 0 0;
}

.info-band article {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 20px;
  background: rgba(46,33,21,0.64);
}

.info-band h2 {
  margin: 0 0 10px;
  color: var(--gold-2);
}

.info-band p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 54px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.copyright {
  align-self: end;
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: end;
  min-width: 0;
  padding: 46px 0 24px;
  border-bottom: 4px double var(--line);
}

.library-hero h1 {
  max-width: 860px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
}

.library-meter {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  background: rgba(214, 169, 79, 0.11);
}

.library-meter span {
  font-family: Georgia, serif;
  color: var(--gold-2);
  font-size: 58px;
  font-weight: 900;
}

.library-meter small {
  color: var(--muted);
}

.filter-deck {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
  gap: 12px;
  min-width: 0;
  margin: 22px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 11, 8, 0.9);
  backdrop-filter: blur(14px);
}

.filter-deck label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-deck input,
.filter-deck select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(231,193,119,0.28);
  color: var(--ink);
  background: #1b130d;
  padding: 0 12px;
  outline: none;
}

.archive-shell {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(24, 18, 13, 0.55);
}

.archive-head,
.archive-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.9fr) minmax(130px, 0.55fr) 82px;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.archive-head {
  padding: 12px 18px;
  color: var(--gold-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.archive-list {
  min-width: 0;
}

.archive-row {
  position: relative;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(231,193,119,0.13);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.archive-row:hover {
  z-index: 2;
  background: rgba(214, 169, 79, 0.1);
  border-color: var(--gold);
  transform: scale(1.006);
}

.archive-title {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.archive-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0d0b0a;
}

.archive-title strong,
.archive-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-title small {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  min-width: 0;
  padding: 48px 0 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.detail-main {
  min-width: 0;
  border-top: 4px double var(--line);
  padding-top: 22px;
}

.detail-main h1 {
  font-size: clamp(42px, 6vw, 84px);
}

.detail-main p {
  color: #d8c8a8;
  line-height: 1.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 24px;
  min-width: 0;
  padding-top: 34px;
}

.story-box,
.fact-box {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(36, 25, 15, 0.66);
  padding: 20px;
}

.story-box h2,
.fact-box h2 {
  margin: 0 0 14px;
  color: var(--gold-2);
}

.fact-box dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.fact-box dt {
  color: var(--muted);
}

.fact-box dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .split,
  .library-hero,
  .detail-hero,
  .detail-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding-top: 24px;
  }

  .feature-inner {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .strip-track,
  .show-films,
  .theme-board,
  .catalog-lines,
  .info-band,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-deck {
    position: static;
    grid-template-columns: 1fr;
  }

  .archive-head {
    display: none;
  }

  .archive-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .archive-row span {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  main,
  .topbar,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    gap: 12px;
  }

  .search-link {
    display: none;
  }

  .feature-inner,
  .show-row {
    grid-template-columns: 1fr;
  }

  .show-time {
    min-height: 62px;
  }

  .show-content {
    padding: 0 14px 14px;
  }

  .strip-track,
  .show-films,
  .theme-board,
  .catalog-lines,
  .info-band,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .library-meter {
    width: 150px;
  }

  .detail-poster {
    width: min(260px, 100%);
  }
}


/* stable responsive guards */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, canvas, svg { max-width: 100%; }
h1, h2, h3, h4, p, a, span, strong, small, b, em, li { min-width: 0; overflow-wrap: anywhere; }
main, header, footer, section, article, aside, nav, div { min-width: 0; }
.poster-grid, .feature-grid, .movie-grid, .library-grid, .library-list, .related-grid, .content-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
