:root {
  --ink: #0d0d0c;
  --coal: #11100f;
  --panel: #191715;
  --paper: #efe2ca;
  --paper-dim: rgba(239, 226, 202, 0.67);
  --paper-faint: rgba(239, 226, 202, 0.34);
  --orange: #e7a23b;
  --red-orange: #c94534;
  --silver: #b8bab9;
  --blue-green: #113b49;
  --ochre: #aa7a2d;
  --earth: #70452e;
  --green: #123525;
  --navy: #132943;
  --line: rgba(239, 226, 202, 0.18);
  --mono: "Courier New", Courier, monospace;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --display: Impact, Haettenschweiler, "Arial Black", "Arial Narrow", sans-serif;
  --script: "Segoe Script", "Brush Script MT", cursive;
  --active-theme: var(--orange);
  --active-contrast: #16120d;
  --motion-speed: 0.62s;
  --page-fade-speed: 0.32s;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 1180px;
  min-height: 100%;
  background: #050504;
  color: var(--paper);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  overflow-x: auto;
}

.page {
  position: relative;
  width: 1440px;
  min-height: 900px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% -20%, rgba(226, 132, 64, 0.11), transparent 34%),
    linear-gradient(180deg, #151312 0%, #0d0d0c 100%);
  overflow: hidden;
}

.scroll-page {
  --scroll-progress: 0;
  --transition-progress: 0;
  --chapter-progress: 0;
  --grain-opacity: calc(0.34 - (var(--transition-progress) * 0.24));
  --noise-opacity: calc(var(--transition-progress) * 0.46);
  --neon-progress: 0;
  background:
    radial-gradient(circle at 72% 63%, rgba(19, 222, 255, calc(var(--transition-progress) * 0.24)), transparent 34%),
    radial-gradient(circle at 18% 77%, rgba(255, 42, 159, calc(var(--transition-progress) * 0.2)), transparent 30%),
    linear-gradient(180deg,
      #151312 0%,
      color-mix(in srgb, #0d0d0c calc(100% - (var(--transition-progress) * 100%)), #071a39 calc(var(--transition-progress) * 100%)) 48%,
      #06142c 100%);
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page::before {
  opacity: var(--grain-opacity, 0.33);
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 18px 24px, rgba(255, 255, 255, 0.11) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88px 60px, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.5px),
    radial-gradient(circle at 140px 12px, rgba(0, 0, 0, 0.2) 0 1.2px, transparent 1.7px);
  background-size: 160px 120px, 190px 130px, 210px 170px;
}

.scroll-page::after {
  box-shadow:
    inset 0 0 calc(120px - (var(--scroll-progress) * 42px)) rgba(0, 0, 0, 0.76),
    inset 0 0 24px rgba(0, 0, 0, 0.9);
}

.scroll-page .home-grid::after,
.scroll-page .neon-packages::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 42, 159, 0.13) 0 1px, transparent 1px 7px);
}

.page::after {
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.76), inset 0 0 24px rgba(0, 0, 0, 0.9);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: grid;
  grid-template-columns: 520px 1fr 300px;
  align-items: center;
  padding: 0 38px;
  background: #080807;
  border-bottom: 1px solid rgba(239, 226, 202, 0.12);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scanner-left {
  white-space: nowrap;
}

.scanner-progress {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(12, 22px);
  gap: 12px;
  align-items: center;
}

.scanner-progress span {
  display: block;
  height: 12px;
  background: #292827;
  border: 1px solid rgba(239, 226, 202, 0.08);
}

.scanner-progress .active {
  background: var(--orange);
  box-shadow: 0 0 14px rgba(231, 162, 59, 0.34);
}

.scanner-right {
  justify-self: end;
  word-spacing: 18px;
}

.home-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 45% 55%;
  height: 836px;
}

.archive-section {
  min-height: 836px;
  transform: translateY(calc(var(--chapter-progress) * -180px));
  opacity: calc(1 - (var(--chapter-progress) * 0.28));
  filter: saturate(calc(1 - (var(--transition-progress) * 0.28))) sepia(calc(0.12 + (var(--transition-progress) * 0.18)));
  will-change: transform, opacity, filter;
}

.left-panel {
  position: relative;
  padding: 48px 62px 42px 58px;
  border-right: 1px solid rgba(239, 226, 202, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(231, 162, 59, 0.05)),
    #11100f;
}

.left-panel::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 24px;
  top: 286px;
  bottom: 24px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    radial-gradient(ellipse at 58% 48%, color-mix(in srgb, var(--active-theme) 34%, transparent) 0%, color-mix(in srgb, var(--active-theme) 18%, transparent) 34%, transparent 74%),
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--active-theme) 12%, transparent) 34%, color-mix(in srgb, var(--active-theme) 18%, transparent) 62%, transparent 100%);
  filter: blur(18px) saturate(0.92);
  transition: background var(--motion-speed) ease, opacity var(--motion-speed) ease;
}

.left-panel > * {
  position: relative;
  z-index: 1;
}

.side-type {
  position: absolute;
  left: 20px;
  top: 190px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(239, 226, 202, 0.32);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
}

.roll-meta,
.chapter-meta,
.tiny-mono,
.exif,
.card-meta,
.card-name,
.frame-id,
.footer-strip,
.district-label {
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.roll-meta {
  color: var(--paper-dim);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 26px;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: 122px;
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--paper);
  transform: scaleX(0.78);
  transform-origin: left center;
}

body.is-ready .left-panel .roll-meta,
body.is-ready .left-panel .title-switch,
body.is-ready .left-panel .hero-year,
body.is-ready .left-panel .cn-subtitle,
body.is-ready .left-panel .script-note,
body.is-ready .left-panel .orange-rule {
  animation: homeTitleSlide var(--motion-speed) ease both;
}

body.is-ready .left-panel .title-switch {
  animation-delay: 0.06s;
}

body.is-ready .left-panel .hero-year {
  animation-delay: 0.12s;
}

body.is-ready .left-panel .cn-subtitle,
body.is-ready .left-panel .script-note {
  animation-delay: 0.18s;
}

body.is-ready .left-panel .orange-rule {
  animation-delay: 0.24s;
}

@keyframes homeTitleSlide {
  from {
    opacity: 0;
    translate: -34px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.title-switch {
  position: relative;
  min-height: 104px;
}

.film-title {
  opacity: calc(1 - var(--transition-progress));
}

.cyber-title {
  position: absolute;
  inset: 0 auto auto 0;
  color: #9efcff;
  opacity: var(--transition-progress);
  text-shadow:
    0 0 calc(10px + (var(--transition-progress) * 18px)) rgba(34, 233, 255, 0.82),
    0 0 calc(18px + (var(--transition-progress) * 36px)) rgba(255, 36, 170, 0.46);
}

.hero-year {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 106px;
  line-height: 0.78;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(239, 226, 202, 0.78);
  text-stroke: 2px rgba(239, 226, 202, 0.78);
  transform: scaleX(0.82);
  transform-origin: left center;
}

.cn-subtitle {
  margin-top: 15px;
  color: var(--paper);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 8px;
}

.script-note {
  margin-top: 10px;
  color: var(--orange);
  font-family: var(--script);
  font-size: 20px;
  line-height: 1.3;
}

.orange-rule {
  width: 345px;
  height: 4px;
  margin: 18px 0 36px;
  background: var(--orange);
}

.directory {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.6px;
  color: var(--paper);
  transition: filter var(--motion-speed) ease;
}

.directory th {
  padding: 0 0 12px;
  color: color-mix(in srgb, var(--active-theme, var(--orange)) 72%, rgba(239, 226, 202, 0.5));
  font-size: 10px;
  text-align: left;
  font-weight: 700;
  transition: color var(--motion-speed) ease;
}

.directory td {
  padding: 8px 11px;
  border-top: 1px solid color-mix(in srgb, var(--active-theme, var(--orange)) 28%, rgba(239, 226, 202, 0.09));
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  background: color-mix(in srgb, var(--active-theme, var(--orange)) 15%, rgba(42, 39, 36, 0.72));
  transition: background var(--motion-speed) ease, border-color var(--motion-speed) ease, color var(--motion-speed) ease;
}

.directory tr:first-of-type td {
  background: linear-gradient(90deg, rgba(231, 162, 59, 0.78), rgba(231, 162, 59, 0.18));
  color: #16120d;
  font-weight: 800;
}

.directory .cn {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 1.6px;
  white-space: nowrap;
}

.directory .tag {
  color: rgba(239, 226, 202, 0.72);
  font-size: 11px;
}

.directory tr:first-of-type .tag {
  color: rgba(239, 226, 202, 0.72);
}

.enter-roll {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 34px;
  border: 1px solid rgba(239, 226, 202, 0.45);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  background: color-mix(in srgb, var(--active-theme, var(--orange)) 8%, transparent);
}

.detail-back-roll {
  position: absolute;
  left: 66px;
  bottom: 38px;
  z-index: 4;
  margin-top: 0;
  background: rgba(8, 7, 6, 0.18);
}

.detail-next-roll {
  position: absolute;
  left: 292px;
  bottom: 38px;
  z-index: 4;
  margin-top: 0;
  background: rgba(8, 7, 6, 0.18);
}

.lab-line {
  position: absolute;
  right: 62px;
  bottom: 38px;
  color: color-mix(in srgb, var(--active-theme, var(--orange)) 60%, rgba(239, 226, 202, 0.62));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  transition: color var(--motion-speed) ease;
}

.stamp {
  position: absolute;
  right: 76px;
  bottom: 92px;
  width: 104px;
  height: 104px;
  border: 3px double color-mix(in srgb, var(--active-theme, #c94534) 72%, rgba(201, 69, 52, 0.58));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--active-theme, #c94534) 80%, rgba(201, 69, 52, 0.76));
  font-family: var(--mono);
  text-align: center;
  letter-spacing: 2px;
  transform: rotate(-8deg);
  transition: border-color var(--motion-speed) ease, color var(--motion-speed) ease;
}

.stamp strong {
  display: block;
  font-size: 22px;
  letter-spacing: 2px;
}

.stamp span {
  display: block;
  font-size: 9px;
}

.cards-panel {
  position: relative;
  padding: 34px 48px 42px;
  background:
    radial-gradient(circle at 38% 22%, rgba(231, 162, 59, 0.08), transparent 30%),
    linear-gradient(180deg, #10100f 0%, #090909 100%);
}

.contact-mark {
  position: absolute;
  top: 25px;
  left: 42px;
  color: rgba(239, 226, 202, 0.56);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
}

.vertical-roll {
  position: absolute;
  left: 16px;
  top: 210px;
  writing-mode: vertical-rl;
  color: rgba(239, 226, 202, 0.28);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
}

.film-stack {
  position: relative;
  width: 660px;
  height: 742px;
  margin: 32px auto 0;
}

.film-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  width: 610px;
  height: 138px;
  padding: 21px 18px 16px;
  background: #111;
  border: 1px solid rgba(239, 226, 202, 0.15);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.film-card.highlight {
  border: 3px solid var(--card-theme, var(--orange));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-theme, var(--orange)) 34%, transparent), 0 22px 42px rgba(0, 0, 0, 0.72);
}

.film-card::before,
.detail-photo::before,
.thumb-strip::before,
.chapter-image::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 15px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(239, 226, 202, 0.42) 14px 20px, transparent 20px 32px),
    #080807;
  opacity: 0.88;
}

.scroll-page .film-card::before {
  opacity: calc(0.88 - (var(--transition-progress) * 0.7));
  transform: translateY(calc(var(--transition-progress) * -14px)) scaleX(calc(1 + (var(--transition-progress) * 0.18)));
}

.scroll-page .cards-panel::after,
.scroll-page .left-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc(var(--transition-progress) * 0.62);
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(0, 238, 255, 0.48) 9.2%, transparent 9.8% 89%, rgba(255, 42, 159, 0.42) 90%, transparent 91%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(32, 243, 255, 0.18) 47px 48px, transparent 49px 120px);
  mix-blend-mode: screen;
}

.film-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) sepia(0.14) brightness(0.82);
}

.film-card .film-img-wrap {
  position: absolute;
  inset: 21px 18px 16px 18px;
  overflow: hidden;
}

.film-img-wrap::after,
.chapter-image::after,
.detail-photo::after,
.thumb-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.card-meta {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10px;
}

.card-number {
  position: absolute;
  left: 24px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--display);
  font-size: 44px;
  line-height: 0.9;
  color: var(--paper);
  -webkit-text-stroke: 0.7px rgba(239, 226, 202, 0.76);
  paint-order: stroke fill;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.88);
  transition: color var(--motion-speed) ease, transform var(--motion-speed) ease;
}

.card-name {
  position: absolute;
  right: 22px;
  bottom: 19px;
  z-index: 2;
  font-size: 24px;
  color: var(--paper);
  -webkit-text-stroke: 0.55px rgba(239, 226, 202, 0.76);
  paint-order: stroke fill;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.86);
  transition: color var(--motion-speed) ease, transform var(--motion-speed) ease;
}

.frame-id {
  position: absolute;
  right: 50px;
  bottom: 17px;
  color: rgba(231, 162, 59, 0.74);
  font-size: 11px;
}

.kodak {
  position: absolute;
  right: 54px;
  top: 31px;
  padding: 6px 10px;
  background: rgba(231, 162, 59, 0.88);
  color: #16110b;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.detail-page {
  --theme: var(--red-orange);
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 45% 55%;
  height: 836px;
}

.chapter-left {
  position: relative;
  padding: 56px 62px 42px 66px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2)),
    var(--theme);
  color: #120f0c;
}

.chapter-left.light {
  color: #151515;
}

.chapter-left.dark-text {
  color: #17120e;
}

.chapter-left .roll-meta,
.chapter-left .tiny-mono,
.chapter-left .district-label {
  color: rgba(18, 15, 12, 0.72);
}

.chapter-left .cn-subtitle {
  color: rgba(18, 15, 12, 0.44);
}

.chapter-left .script-note {
  color: #f6db80;
}

.chapter-title {
  margin: 28px 0 0;
  font-family: var(--display);
  font-size: 128px;
  line-height: 0.84;
  letter-spacing: 0;
  color: #110f0d;
  transform: scaleX(0.78);
  transform-origin: left center;
}

.chapter-left.inverse {
  color: var(--paper);
}

.chapter-left.inverse .chapter-title {
  color: var(--paper);
}

.chapter-left.inverse .roll-meta,
.chapter-left.inverse .tiny-mono,
.chapter-left.inverse .district-label {
  color: rgba(239, 226, 202, 0.72);
}

.chapter-left.inverse .cn-subtitle {
  color: rgba(239, 226, 202, 0.42);
}

.chapter-left.inverse .orange-rule {
  background: var(--orange);
}

.chapter-info {
  position: absolute;
  left: 66px;
  right: 72px;
  bottom: 88px;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 46px;
  align-items: start;
}

.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.4px;
}

.chapter-copy {
  margin: 0;
  max-width: 240px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.75;
}

.spot-actions {
  position: absolute;
  left: 80px;
  top: 332px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spot-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(239, 226, 202, 0.45);
  background: rgba(8, 7, 6, 0.22);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
}

.spot-map-link:hover,
.spot-map-link:focus {
  border-color: var(--orange);
  color: var(--orange);
  outline: none;
}

.mobile-spot-title,
.mobile-frame-number {
  display: none;
}

.chapter-right {
  position: relative;
  background: #080807;
}

.chapter-image {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #080807;
}

.chapter-image img {
  width: auto;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.74) contrast(1.06) sepia(0.15) brightness(0.82);
}

.film-card[data-slug="nanan"] img,
.theme-nanan .chapter-image img[src$="nanan/nanshan/01.jpg"] {
  object-position: center 78%;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 54px;
  margin-top: -27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 226, 202, 0.24);
  background: rgba(0, 0, 0, 0.42);
  color: var(--paper);
  font: 700 22px/1 var(--mono);
  cursor: pointer;
  opacity: 0.78;
}

.gallery-nav:hover {
  opacity: 1;
  border-color: var(--orange);
  color: var(--orange);
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 122px;
}

.image-top-code {
  position: absolute;
  top: 28px;
  right: 38px;
  z-index: 2;
  padding: 6px 11px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
}

.chapter-frame-number {
  position: absolute;
  right: 48px;
  bottom: 70px;
  z-index: 2;
  color: var(--paper);
  font-family: var(--display);
  font-size: 116px;
  line-height: 0.78;
}

.caption-script {
  position: absolute;
  left: 44px;
  bottom: 72px;
  z-index: 2;
  color: var(--paper);
  font-family: var(--script);
  font-size: 30px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.footer-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 44px;
  display: grid;
  grid-template-columns: 110px 130px 190px 1fr 210px;
  align-items: center;
  padding: 0 34px;
  background: rgba(4, 4, 4, 0.72);
  border-top: 1px solid rgba(239, 226, 202, 0.28);
  color: var(--paper);
  font-size: 11px;
}

.thumb-strip {
  position: absolute;
  right: 16px;
  top: 90px;
  z-index: 2;
  width: 46px;
  height: 500px;
  padding-top: 14px;
  background: #050504;
  border: 1px solid rgba(239, 226, 202, 0.22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.78);
}

.thumb-strip span {
  display: block;
  width: 34px;
  height: 50px;
  margin: 8px auto;
  background: var(--thumb);
  border: 1px solid rgba(239, 226, 202, 0.18);
  filter: saturate(0.75) brightness(0.78);
}

.photo-tabs {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 12px);
  gap: 6px;
}

.photo-tabs span {
  height: 12px;
  background: var(--orange);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.photo-tabs span:nth-child(1) { background: #40a7c5; }
.photo-tabs span:nth-child(2) { background: #dd4f64; }
.photo-tabs span:nth-child(3) { background: #f1c84d; }
.photo-tabs span:nth-child(4) { background: #2c2c2b; }

.district-label {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
}

.small-stamp {
  position: absolute;
  right: 86px;
  bottom: 132px;
  width: 98px;
  height: 98px;
  border: 3px double rgba(18, 15, 12, 0.46);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  text-align: center;
  transform: rotate(-7deg);
}

.inverse .small-stamp {
  border-color: rgba(239, 226, 202, 0.42);
}

.small-stamp strong {
  display: block;
  font-size: 21px;
}

.small-stamp span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.theme-yuzhong { --theme: var(--red-orange); }
.theme-jiangbei { --theme: var(--silver); }
.theme-nanan { --theme: var(--blue-green); }
.theme-jiulongpo { --theme: var(--ochre); }
.theme-dazu { --theme: var(--earth); }
.theme-wulong { --theme: var(--green); }
.theme-fengjie { --theme: var(--navy); }

.detail-grid {
  grid-template-columns: 50% 50%;
}

.chapter-left {
  padding: 42px 66px 42px 66px;
  background: var(--theme);
  transition: background var(--motion-speed) ease, color var(--motion-speed) ease;
}

.chapter-header-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 24px;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.chapter-header-line .chapter-kicker {
  justify-self: end;
  text-align: right;
}

.chapter-title {
  margin: 0;
  font-size: 126px;
  line-height: 0.8;
  transform: scaleX(0.78);
}

.chapter-title.long {
  font-size: 104px;
  transform: scaleX(0.74);
}

.chapter-left .orange-rule {
  width: 328px;
  height: 4px;
  margin: 24px 0 18px;
}

.chapter-left .cn-subtitle {
  margin-top: 0;
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 8px;
}

.chapter-left .script-note {
  margin-top: 12px;
  font-size: 21px;
}

.detail-page.title-entering .chapter-header-line,
.detail-page.title-entering .chapter-title,
.detail-page.title-entering .chapter-left .orange-rule,
.detail-page.title-entering .chapter-left .cn-subtitle,
.detail-page.title-entering .chapter-left .script-note {
  animation: chapterTitleRise var(--motion-speed) ease both;
}

.detail-page.title-entering .chapter-title {
  animation-delay: 0.12s;
}

.detail-page.title-entering .chapter-left .orange-rule {
  animation-delay: 0.24s;
}

.detail-page.title-entering .chapter-left .cn-subtitle {
  animation-delay: 0.36s;
}

.detail-page.title-entering .chapter-left .script-note {
  animation-delay: 0.48s;
}

.detail-page.title-entering .chapter-info {
  animation: chapterOverviewIn var(--motion-speed) ease both;
  animation-delay: 0.62s;
}

.detail-page.title-entering .thumb-strip img {
  animation: thumbRiseIn var(--motion-speed) ease both;
}

.detail-page.title-entering .thumb-strip img:nth-last-child(1) { animation-delay: 0.62s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(2) { animation-delay: 0.68s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(3) { animation-delay: 0.74s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(4) { animation-delay: 0.80s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(5) { animation-delay: 0.86s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(6) { animation-delay: 0.92s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(7) { animation-delay: 0.98s; }
.detail-page.title-entering .thumb-strip img:nth-last-child(8) { animation-delay: 1.04s; }

@keyframes chapterTitleRise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes thumbRiseIn {
  from {
    opacity: 0;
    translate: 0 34px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes chapterOverviewIn {
  from {
    opacity: 0;
    translate: -28px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.chapter-info {
  left: 66px;
  right: 82px;
  bottom: 96px;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.chapter-list {
  font-size: 12px;
  line-height: 1.78;
  letter-spacing: 1px;
}

.has-scenic-gallery .chapter-list li {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 1.1px;
  transform-origin: left center;
  transition: transform var(--motion-speed) ease, color var(--motion-speed) ease, margin var(--motion-speed) ease, font-size var(--motion-speed) ease;
}

.has-scenic-gallery .chapter-list li:hover,
.has-scenic-gallery .chapter-list li:focus {
  color: var(--orange);
  outline: none;
}

.has-scenic-gallery .chapter-list li.is-active {
  margin: 13px 0;
  color: currentColor;
  font-family: var(--display);
  font-size: 34px;
  line-height: 0.88;
  letter-spacing: 0;
  transform: scaleX(0.86);
}

.chapter-copy {
  max-width: none;
  padding-top: 2px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.9;
  letter-spacing: 2px;
}

.has-scenic-gallery .chapter-copy {
  padding-top: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 1.1px;
  text-transform: none;
}

.footer-strip span:empty {
  display: none;
}

.small-stamp {
  right: 72px;
  bottom: 52px;
}

.chapter-right {
  overflow: hidden;
}

.detail-grid {
  transition: opacity var(--page-fade-speed) ease;
}

.detail-grid.is-fading {
  opacity: 0;
}

.chapter-image img {
  filter: saturate(0.68) contrast(1.08) sepia(0.16) brightness(0.82);
}

.image-top-code {
  top: 36px;
  right: 86px;
  background: transparent;
  padding: 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86);
}

.thumb-strip {
  right: 18px;
  top: 82px;
  bottom: 58px;
  width: 72px;
  height: auto;
  padding: 34px 11px 24px;
  background:
    repeating-linear-gradient(180deg, rgba(239, 226, 202, 0.36) 0 9px, transparent 9px 24px) left 7px top 10px / 7px 24px repeat-y,
    repeating-linear-gradient(180deg, rgba(239, 226, 202, 0.36) 0 9px, transparent 9px 24px) right 7px top 10px / 7px 24px repeat-y,
    linear-gradient(180deg, #030302 0%, #0a0908 48%, #020202 100%);
  border: 2px solid rgba(0, 0, 0, 0.86);
  outline: 1px solid rgba(239, 226, 202, 0.2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.86), inset 0 0 0 1px rgba(239, 226, 202, 0.08);
}

.thumb-card {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 54px;
  margin: 8px auto;
}

.thumb-strip img {
  display: block;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 54px;
  margin: 0;
  object-fit: cover;
  border: 2px solid rgba(239, 226, 202, 0.28);
  background: #111;
  filter: saturate(0.78) contrast(1.1) sepia(0.1) brightness(0.86);
  box-shadow: 0 0 0 2px #050504, 0 5px 12px rgba(0, 0, 0, 0.72);
}

.thumb-strip::before {
  display: none;
}

.thumb-strip.compact .thumb-card,
.thumb-strip.compact img {
  height: 82px;
}

.thumb-strip.compact .thumb-card {
  margin: 12px auto;
}

.chapter-frame-number {
  right: 54px;
  bottom: 70px;
  font-size: 124px;
  transition: opacity var(--motion-speed) ease;
}

.footer-strip {
  grid-template-columns: 1fr;
  padding: 0 34px;
}

.page {
  opacity: 0;
  transition: opacity var(--page-fade-speed) ease;
}

body.is-ready .page {
  opacity: 1;
}

.page.is-leaving {
  opacity: 0;
}

.directory tbody tr,
.film-card,
.thumb-card,
.thumb-strip img,
.chapter-image img,
.enter-roll,
.detail-back-roll,
.detail-next-roll,
.detail-favorite,
.favorites-entry,
.scanner-right button {
  transition: opacity var(--motion-speed) ease, transform var(--motion-speed) ease, border-color var(--motion-speed) ease, background var(--motion-speed) ease, color var(--motion-speed) ease;
}

.directory tbody tr {
  cursor: pointer;
}

.enter-roll,
.detail-back-roll,
.detail-next-roll {
  cursor: pointer;
}

.enter-roll:hover,
.enter-roll:focus,
.detail-back-roll:hover,
.detail-back-roll:focus,
.detail-next-roll:hover,
.detail-next-roll:focus {
  border-color: var(--active-theme, var(--orange));
  color: var(--active-theme, var(--orange));
  outline: none;
}

.directory tbody tr:first-of-type td {
  background: color-mix(in srgb, var(--active-theme, var(--orange)) 15%, rgba(42, 39, 36, 0.72));
  color: var(--paper);
  font-weight: 400;
}

.directory tbody tr.is-active td {
  background: linear-gradient(90deg, var(--row-theme, var(--orange)), color-mix(in srgb, var(--row-theme, var(--orange)) 42%, #1a1714));
  color: var(--row-contrast, #16120d);
  font-weight: 800;
}

.directory tbody tr.is-active .tag {
  color: color-mix(in srgb, var(--row-contrast, #16120d) 86%, transparent);
}

.film-stack.is-focused .film-card {
  opacity: 0.78;
  transform: translateY(6px) scale(0.992);
}

.film-stack.is-focused .film-card.is-active {
  z-index: 20 !important;
  opacity: 1;
  transform: translateY(-9px) scale(1.024);
  border: 3px solid var(--card-theme, var(--active-theme, var(--orange)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-theme, var(--active-theme, var(--orange))) 36%, transparent), 0 24px 44px rgba(0, 0, 0, 0.75);
}

.film-stack.is-focused .film-card.is-active .card-number,
.film-stack.is-focused .film-card.is-active .card-name {
  color: var(--card-theme, var(--active-theme, var(--orange)));
}

.scanner-right {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  word-spacing: normal;
}

.scanner-right button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--paper-dim);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.scanner-right button:hover {
  color: var(--orange);
}

.thumb-card {
  cursor: pointer;
  transform-origin: center center;
}

.thumb-card:hover,
.thumb-card:has(img.is-active) {
  transform: scale(1.08);
}

.thumb-card:hover img,
.thumb-card:has(img.is-active) img {
  border-color: var(--orange);
  opacity: 1;
  box-shadow: 0 0 0 2px #050504, 0 0 0 4px rgba(231, 162, 59, 0.42), 0 7px 16px rgba(0, 0, 0, 0.82);
}

.detail-favorite {
  position: absolute;
  left: 28px;
  bottom: 98px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  min-width: 74px;
  padding: 0 12px;
  border: 1px solid rgba(239, 226, 202, 0.48);
  border-radius: 999px;
  background: rgba(5, 5, 4, 0.86);
  color: rgba(239, 226, 202, 0.82);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.68);
}

.favorite-icon {
  font-size: 18px;
  line-height: 1;
}

.favorite-count {
  min-width: 18px;
  text-align: right;
}

.detail-favorite:hover,
.detail-favorite:focus {
  border-color: #e34a44;
  color: #ff6259;
  outline: none;
}

.detail-favorite.is-favorite {
  background: #e34a44;
  border-color: #ffe0d0;
  color: #fff1e6;
}

.favorites-entry {
  appearance: none;
  border: 1px solid rgba(239, 226, 202, 0.38);
  border-radius: 3px;
  padding: 7px 10px;
  background: rgba(239, 226, 202, 0.08);
  color: var(--paper);
  font: inherit;
  font-size: 11px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  cursor: pointer;
}

.favorites-entry:hover,
.favorites-entry:focus {
  border-color: #e34a44;
  color: #ff6259;
  outline: none;
}

.favorites-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--motion-speed) ease;
}

body.favorites-open .favorites-drawer {
  pointer-events: auto;
  opacity: 1;
}

.favorites-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.favorites-panel {
  position: absolute;
  top: 82px;
  right: 46px;
  width: 520px;
  max-height: calc(100vh - 124px);
  overflow: auto;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(239, 226, 202, 0.12) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #151311 0%, #080807 100%);
  border: 1px solid rgba(239, 226, 202, 0.32);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78), inset 0 0 0 1px rgba(239, 226, 202, 0.08);
  color: var(--paper);
  transform: translateX(24px);
  transition: transform var(--motion-speed) ease;
}

body.favorites-open .favorites-panel {
  transform: translateX(0);
}

.favorites-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--paper-dim);
}

.favorites-panel h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 54px;
  line-height: 0.9;
  letter-spacing: 0;
}

.favorites-close,
.favorite-remove {
  appearance: none;
  border: 1px solid rgba(239, 226, 202, 0.32);
  background: rgba(0, 0, 0, 0.3);
  color: var(--paper);
  cursor: pointer;
}

.favorites-close {
  padding: 6px 10px;
  font: inherit;
}

.favorites-empty {
  margin: 0;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

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

.favorite-card {
  display: grid;
  grid-template-columns: 94px 1fr 34px;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--fav-theme, var(--orange)) 42%, rgba(239, 226, 202, 0.18));
  background: rgba(239, 226, 202, 0.06);
  cursor: pointer;
}

.favorite-card img {
  width: 94px;
  height: 68px;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.1) sepia(0.12) brightness(0.84);
}

.favorite-card span {
  display: block;
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--fav-theme, var(--orange)) 78%, var(--paper));
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.favorite-card strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  line-height: 0.95;
  letter-spacing: 0;
}

.favorite-card p {
  margin: 5px 0 0;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.favorite-remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e34a44;
  color: #fff1e6;
}

.transition-band {
  position: relative;
  z-index: 2;
  height: 980px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 48%, rgba(31, 236, 255, calc(var(--chapter-progress) * 0.16)), transparent 34%),
    radial-gradient(circle at 18% 76%, rgba(255, 45, 170, calc(var(--chapter-progress) * 0.12)), transparent 30%),
    linear-gradient(180deg,
      color-mix(in srgb, rgba(13, 13, 12, 0.98) calc(100% - (var(--chapter-progress) * 100%)), rgba(7, 26, 57, 0.98) calc(var(--chapter-progress) * 100%)),
      rgba(6, 19, 40, 0.96));
}

.digital-field {
  position: absolute;
  inset: 0;
  opacity: calc(var(--chapter-progress) * 0.75);
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(98, 222, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 22%, rgba(255, 83, 188, 0.58) 0 1px, transparent 1.5px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(36, 242, 255, 0.13) 35px 36px, transparent 37px 92px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 55, 178, 0.08) 19px 20px, transparent 21px 72px);
  background-size: 120px 80px, 160px 110px, 100% 100%, 100% 100%;
  transform: translateY(calc((1 - var(--chapter-progress)) * 46px));
}

.film-sprocket {
  position: absolute;
  top: 36px;
  bottom: 36px;
  width: calc(62px + (var(--chapter-progress) * 80px));
  opacity: calc(0.8 - (var(--chapter-progress) * 0.62));
  background:
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(239, 226, 202, calc(0.72 - (var(--chapter-progress) * 0.44))) 18px 40px, transparent 40px 58px),
    rgba(10, 10, 9, 0.76);
  filter: blur(calc(var(--chapter-progress) * 7px));
  transform: scaleY(calc(1 + (var(--chapter-progress) * 0.28)));
}

.film-sprocket.left { left: 58px; }
.film-sprocket.right { right: 58px; }

.neon-wire {
  position: absolute;
  left: 130px;
  right: 130px;
  height: 2px;
  opacity: calc(var(--chapter-progress) * 0.95);
  background: linear-gradient(90deg, transparent, #18f4ff, #ff2bb2, transparent);
  box-shadow:
    0 0 calc(10px + (var(--chapter-progress) * 18px)) rgba(26, 243, 255, 0.86),
    0 0 calc(18px + (var(--chapter-progress) * 32px)) rgba(255, 43, 178, 0.58);
  transform: scaleX(calc(0.18 + (var(--chapter-progress) * 0.82)));
}

.neon-wire.one {
  top: 164px;
  transform-origin: left center;
}

.neon-wire.two {
  bottom: 132px;
  transform-origin: right center;
}

.transition-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 3px;
  transform: translateY(calc((1 - var(--chapter-progress)) * 42px));
}

.transition-copy span {
  color: rgba(239, 226, 202, calc(var(--chapter-progress) * 0.72));
  font-size: 12px;
  opacity: var(--chapter-progress);
}

.transition-copy strong {
  color: #bffcff;
  font-family: var(--display);
  font-size: 64px;
  letter-spacing: 0;
  opacity: calc(0.28 + (var(--chapter-progress) * 0.72));
  text-shadow:
    0 0 calc(8px + (var(--chapter-progress) * 22px)) rgba(29, 241, 255, 0.82),
    0 0 calc(18px + (var(--chapter-progress) * 48px)) rgba(255, 48, 176, 0.42);
}

.next-chapter {
  position: absolute;
  left: 50%;
  bottom: 84px;
  z-index: 2;
  padding: 11px 24px;
  border: 1px solid rgba(72, 236, 255, 0.82);
  color: #8dfbff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.8px;
  opacity: var(--next-opacity, 0);
  transform: translate(-50%, calc((1 - var(--next-opacity, 0)) * 18px));
  box-shadow: 0 0 18px rgba(34, 243, 255, calc(var(--next-opacity, 0) * 0.5));
}

.neon-packages {
  position: relative;
  z-index: 2;
  min-height: 900px;
  padding: 78px 78px 96px;
  background:
    repeating-radial-gradient(circle at 50% 22%, rgba(100, 207, 255, 0.22) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(44, 238, 255, 0.07) 87px 88px, transparent 89px 172px),
    radial-gradient(circle at 22% 22%, rgba(255, 41, 166, 0.2), transparent 28%),
    radial-gradient(circle at 80% 14%, rgba(32, 235, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #071a39 0%, #040b19 100%);
}

.neon-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}

.neon-kicker,
.package-copy span {
  margin: 0 0 12px;
  color: #48ecff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.neon-header h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    -5px 0 0 rgba(39, 244, 255, 0.78),
    5px 0 0 rgba(255, 70, 183, 0.7),
    0 0 22px rgba(255, 43, 178, 0.5);
}

.neon-header p:last-child {
  justify-self: end;
  margin: 0 0 4px;
  padding: 10px 18px;
  border: 1px solid rgba(72, 236, 255, 0.8);
  color: #78f8ff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 0 16px rgba(26, 243, 255, 0.28);
}

.package-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 1fr 1fr 1.06fr;
  grid-template-rows: repeat(2, 310px);
  gap: 22px;
}

.package-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 2px solid rgba(72, 236, 255, 0.82);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(12, 29, 55, 0.38));
  clip-path: polygon(24px 0, calc(100% - 34px) 0, 100% 28px, 100% calc(100% - 24px), calc(100% - 20px) 100%, 24px 100%, 0 calc(100% - 28px), 0 24px);
  box-shadow:
    0 0 0 1px rgba(72, 236, 255, 0.22),
    0 0 24px rgba(34, 243, 255, 0.42),
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 28px rgba(34, 243, 255, 0.14);
  backdrop-filter: blur(18px);
}

.package-card:nth-child(3),
.package-card:nth-child(6) {
  border-color: rgba(255, 63, 181, 0.86);
  box-shadow:
    0 0 0 1px rgba(255, 63, 181, 0.24),
    0 0 24px rgba(255, 63, 181, 0.42),
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 28px rgba(34, 243, 255, 0.12);
}

.package-tall {
  grid-row: span 2;
}

.package-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.1) brightness(0.58);
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.08), rgba(3, 8, 18, 0.78)),
    linear-gradient(120deg, rgba(34, 243, 255, 0.22), transparent 44%, rgba(255, 43, 178, 0.2));
}

.package-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  z-index: 2;
  height: 15px;
  background:
    repeating-linear-gradient(90deg, rgba(116, 212, 255, 0.72) 0 12px, transparent 12px 26px);
  opacity: 0.82;
}

.package-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.package-copy h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.24;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.68), 0 0 20px rgba(35, 240, 255, 0.42);
}

.package-copy p {
  margin: 0;
  color: rgba(231, 244, 255, 0.78);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 1px;
}

.package-copy button {
  margin-top: 20px;
  min-width: 156px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #26f4ff;
  color: #031426;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(38, 244, 255, 0.82), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.package-card:nth-child(6) .package-copy button {
  background: #ff3aa9;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(255, 58, 169, 0.88), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  html,
  body {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    background: #050504;
  }

  body {
    overflow-x: hidden;
  }

  .page {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
  }

  .top-nav {
    position: sticky;
    height: 44px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 13px;
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .scanner-left {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-page .scanner-left {
    font-size: 0;
  }

  .detail-page .scanner-left::before {
    content: attr(data-mobile-chapter);
    font-size: 9px;
  }

  .scanner-progress {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    grid-template-columns: repeat(12, 1fr);
    gap: 7px;
    width: auto;
  }

  .scanner-progress span {
    height: 4px;
    border: 0;
  }

  .scanner-right {
    gap: 10px;
    font-size: 9px;
  }

  .favorites-entry {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--orange);
    font-size: 9px;
  }

  .scroll-page {
    min-height: 100svh;
    background:
      radial-gradient(ellipse at 8% 88%, rgba(201, 69, 52, 0.22), transparent 44%),
      linear-gradient(180deg, #151312 0%, #0d0d0c 100%);
  }

  .home-grid {
    display: block;
    height: auto;
    min-height: 0;
  }

  .archive-section {
    min-height: 0;
    transform: none;
  }

  .left-panel {
    min-height: 0;
    padding: 10px 14px 8px;
    border-right: 0;
    background: transparent;
  }

  .left-panel::before {
    left: -70px;
    right: -80px;
    top: 290px;
    bottom: 60px;
    opacity: 0.5;
    filter: blur(28px) saturate(0.86);
  }

  .side-type,
  .lab-line,
  .enter-roll,
  .stamp {
    display: none;
  }

  .roll-meta {
    margin: 0 0 5px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .title-switch {
    min-height: 48px;
  }

  .hero-title {
    width: 340px;
    font-size: 0;
    line-height: 0.8;
    transform: none;
  }

  .hero-title::before {
    content: "CHONGQING";
    display: block;
    white-space: nowrap;
    font-size: 58px;
    line-height: 0.8;
    transform: scaleX(0.84);
    transform-origin: left center;
  }

  .hero-title::first-line {
    line-height: 0.76;
  }

  .hero-year {
    margin-top: -1px;
    font-size: 54px;
    line-height: 0.8;
    -webkit-text-stroke-width: 1.5px;
    transform: scaleX(0.82);
  }

  .left-panel .cn-subtitle {
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 4px;
  }

  .script-note {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.15;
  }

  .orange-rule {
    width: 128px;
    height: 3px;
    margin: 6px 0 8px;
  }

  .directory {
    display: block;
    font-size: 10px;
  }

  .directory thead {
    display: block;
  }

  .directory thead tr {
    display: block;
  }

  .directory th {
    display: none;
  }

  .directory th:first-child {
    display: block;
    padding: 0 0 8px 4px;
    color: rgba(239, 226, 202, 0.52);
    font-size: 8px;
  }

  .directory th:first-child::after {
    content: " CONTACT SHEET 01 / 07 DISTRICTS";
  }

  .directory tbody {
    display: grid;
    gap: 4px;
  }

  .directory tr {
    position: relative;
    min-height: 48px;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    padding: 6px 104px 6px 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--row-theme, var(--active-theme)) 42%, rgba(239, 226, 202, 0.2));
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--row-theme, var(--active-theme)) 24%, rgba(23, 20, 17, 0.94)), rgba(18, 17, 16, 0.8));
  }

  .directory tr::before,
  .directory tr::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 7px;
    background: repeating-linear-gradient(90deg, rgba(239, 226, 202, 0.82) 0 7px, transparent 7px 15px);
    pointer-events: none;
  }

  .directory tr::before {
    z-index: 2;
  }

  .directory tr::before {
    top: 0;
  }

  .directory tr::after {
    z-index: 2;
    bottom: 0;
  }

  .directory tr td:last-child::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 8px;
    bottom: 7px;
    width: 94px;
    border: 4px solid #070605;
    background-image:
      radial-gradient(circle at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.58) 100%),
      var(--row-image);
    background-size: cover;
    background-position: center;
    filter: saturate(0.72) contrast(1.06) sepia(0.14) brightness(0.82);
    box-shadow: inset 0 0 0 1px rgba(239, 226, 202, 0.14);
  }

  .directory td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .directory td:first-child {
    grid-row: 1 / 3;
    color: var(--row-theme, var(--orange));
    font-family: var(--display);
    font-size: 27px;
    line-height: 1;
    -webkit-text-stroke: 0.7px rgba(239, 226, 202, 0.8);
  }

  .directory td:nth-child(2) {
    display: none;
  }

  .directory .cn {
    grid-column: 2;
    font-family: var(--display);
    font-size: 26px;
    line-height: 0.9;
    letter-spacing: 0;
    transform: scaleX(0.78);
    transform-origin: left center;
  }

  .directory .tag {
    grid-column: 2;
    color: color-mix(in srgb, var(--row-theme, var(--orange)) 78%, var(--paper));
    font-size: 8px;
    line-height: 1;
  }

  .cards-panel {
    display: none;
  }

  .contact-mark,
  .vertical-roll,
  .frame-id {
    display: none;
  }

  .kodak {
    top: 79px;
    right: 17px;
    padding: 7px 4px;
    writing-mode: vertical-rl;
    font-size: 8px;
    letter-spacing: 1px;
    background: transparent;
    color: var(--orange);
    border: 1px solid rgba(231, 162, 59, 0.7);
  }

  .film-stack {
    width: 100%;
    height: auto;
    margin: 0;
    display: grid;
    gap: 8px;
  }

  .film-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 62px;
    padding: 8px 112px 8px 10px;
    border-color: rgba(239, 226, 202, 0.16);
    opacity: 1;
    transform: none !important;
  }

  .film-card.highlight,
  .film-stack.is-focused .film-card.is-active {
    border-width: 1px;
  }

  .film-card .film-img-wrap {
    inset: 8px 8px 8px auto;
    width: 101px;
  }

  .card-meta {
    display: none;
  }

  .card-number {
    left: 12px;
    bottom: 15px;
    font-size: 29px;
  }

  .card-name {
    right: auto;
    left: 76px;
    bottom: 17px;
    font-family: var(--display);
    font-size: 30px;
    letter-spacing: 0;
    transform: scaleX(0.78);
    transform-origin: left center;
  }

  .detail-page {
    min-height: 100svh;
  }

  .detail-page::after {
    box-shadow: none;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left left"
      "right right"
      "info info"
      "thumb thumb"
      "back next"
      "footer footer";
    height: auto;
    min-height: calc(100svh - 44px);
    background: var(--theme);
  }

  .chapter-left {
    grid-area: left;
    min-height: 0;
    padding: 8px 16px 6px;
    background: transparent;
  }

  .chapter-header-line {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    margin-bottom: 3px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .chapter-title {
    margin-top: 6px;
    font-size: 46px;
    line-height: 0.8;
    transform: scaleX(0.66);
  }

  .chapter-title.long {
    font-size: 36px;
    line-height: 0.82;
    transform: scaleX(0.58);
  }

  .chapter-left .orange-rule {
    width: 116px;
    height: 3px;
    margin: 4px 0 4px;
  }

  .chapter-left .cn-subtitle {
    font-size: 14px;
    letter-spacing: 0;
  }

  .chapter-left .script-note {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.1;
  }

  .small-stamp {
    right: 18px;
    top: 46px;
    bottom: auto;
    width: 52px;
    height: 52px;
    border-color: rgba(239, 226, 202, 0.7);
  }

  .small-stamp strong {
    font-size: 13px;
  }

  .small-stamp span {
    font-size: 7px;
  }

  .chapter-info {
    grid-area: info;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: end;
    min-height: 118px;
    margin-top: 6px;
    padding: 0 18px;
  }

  .chapter-list {
    display: none;
  }

  .has-scenic-gallery .chapter-copy {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    z-index: 1;
    max-width: none;
    padding-right: 42px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0.1px;
    align-self: end;
    max-height: none;
    overflow: visible;
  }

  .has-scenic-gallery .chapter-copy::before {
    content: none;
  }

  .spot-actions {
    grid-column: 1;
    grid-row: 1;
    position: static;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
  }

  .spot-map-link {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .spot-map-link .map-name {
    display: none;
  }

  .mobile-spot-title {
    display: block;
    min-width: 0;
    margin: 0 0 6px;
    color: var(--paper);
    font-family: var(--display);
    font-size: 26px;
    line-height: 0.9;
    letter-spacing: 0;
    transform: scaleX(0.78);
    transform-origin: left center;
  }

  .mobile-frame-number {
    position: absolute;
    right: 18px;
    bottom: 4px;
    z-index: 0;
    display: block;
    color: var(--paper);
    font-family: var(--display);
    font-size: 58px;
    line-height: 0.82;
    letter-spacing: 0;
    opacity: 0.42;
  }

  .chapter-right {
    grid-area: right;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: min(62vw, 244px);
    height: auto;
    aspect-ratio: auto;
    justify-self: center;
    margin: 0 auto;
    overflow: visible;
    border: 6px solid #070605;
    background: #070605;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
  }

  .chapter-image {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #070605;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .chapter-image::before {
    height: 0;
  }

  .chapter-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
  }

  .photo-tabs,
  .image-top-code {
    display: none;
  }

  .gallery-nav {
    width: 34px;
    height: 46px;
    margin-top: -23px;
    font-size: 19px;
    background: rgba(0, 0, 0, 0.55);
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .detail-favorite {
    left: 10px;
    bottom: 10px;
    height: 28px;
    min-width: 50px;
    padding: 0 10px;
    gap: 5px;
    font-size: 12px;
  }

  .favorite-icon {
    font-size: 15px;
  }

  .favorite-count {
    min-width: 9px;
  }

  .chapter-frame-number {
    display: none;
  }

  .thumb-strip {
    grid-area: thumb;
    position: static;
    z-index: 6;
    width: auto;
    height: 54px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    padding: 8px 9px 6px;
    overflow: hidden;
    background:
      repeating-linear-gradient(90deg, rgba(239, 226, 202, 0.62) 0 7px, transparent 7px 14px) left top / auto 7px repeat-x,
      repeating-linear-gradient(90deg, rgba(239, 226, 202, 0.62) 0 7px, transparent 7px 14px) left bottom / auto 7px repeat-x,
      color-mix(in srgb, var(--theme) 48%, #050504);
    border: 1px solid rgba(239, 226, 202, 0.22);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(239, 226, 202, 0.08);
    outline: none;
    margin: 8px -8px 0;
  }

  .thumb-strip::after {
    display: none;
  }

  .thumb-card {
    width: auto;
    height: 38px;
    margin: 0;
  }

  .thumb-strip img,
  .thumb-strip.compact img {
    width: 100%;
    height: 38px;
    box-shadow: 0 0 0 2px #050504;
  }

  .thumb-strip.compact .thumb-card {
    height: 38px;
    margin: 0;
  }

  .thumb-strip.compact img {
    margin: 0;
  }

  .footer-strip {
    grid-area: footer;
    position: static;
    height: 24px;
    margin: 8px 0 0;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: 0.4px;
  }

  .detail-back-roll,
  .detail-next-roll {
    position: static;
    display: block;
    width: auto;
    margin: 8px 8px 0;
    padding: 9px 12px;
    font-size: 8px;
    letter-spacing: 1.2px;
    background: rgba(8, 7, 6, 0.72);
    border-color: rgba(239, 226, 202, 0.58);
    color: rgba(239, 226, 202, 0.92);
  }

  .detail-next-roll {
    grid-area: next;
  }

  .detail-back-roll {
    grid-area: back;
  }

  .favorites-panel {
    top: 54px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100svh - 72px);
    padding: 18px;
  }

  .favorites-panel h2 {
    font-size: 42px;
  }

  .favorite-card {
    grid-template-columns: 74px 1fr 30px;
    gap: 10px;
  }

  .favorite-card img {
    width: 74px;
    height: 56px;
  }
}
