/* 碰书 · 红色戏曲先锋的「新秦腔」 */
:root {
  --cinnabar: #b42318;
  --cinnabar-deep: #7a140e;
  --ink: #1a0f0c;
  --ink-soft: #2c1b16;
  --brass: #c4a35a;
  --brass-soft: #e2c988;
  --paper: #f3e6d4;
  --paper-deep: #e8d4b8;
  --smoke: rgba(243, 230, 212, 0.72);
  --line: rgba(196, 163, 90, 0.35);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: #1a0f0c;
  overflow: hidden;
}

body.app-shell {
  overscroll-behavior: none;
  touch-action: pan-y;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 100;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cinnabar), var(--brass));
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  color: var(--paper);
  background: rgba(26, 15, 12, 0.78);
  backdrop-filter: blur(12px);
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.topbar-meta #pageIndicator {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.topbar-meta #pageCount {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(243, 230, 212, 0.55);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.25);
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-btn.is-open span:first-child { transform: translateY(3.75px) rotate(40deg); }
.menu-btn.is-open span:last-child { transform: translateY(-3.75px) rotate(-40deg); }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(78vw, 300px);
  z-index: 95;
  padding: 96px 28px 40px;
  background: var(--ink);
  color: var(--paper);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.drawer.is-open { transform: translateX(0); }

.drawer-label {
  margin: 0 0 20px;
  color: var(--brass);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}

.drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 230, 212, 0.1);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(10, 6, 4, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ========== 全屏分页壳 ========== */
.pager {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #1a0f0c;
}

.page-slot {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 28%, 0);
  transition:
    transform 0.55s var(--ease),
    opacity 0.45s var(--ease),
    visibility 0.45s;
  will-change: transform, opacity;
  pointer-events: none;
}

.page-slot.is-prev {
  transform: translate3d(0, -18%, 0);
}

.page-slot.is-next {
  transform: translate3d(0, 28%, 0);
}

.page-slot.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  z-index: 2;
}

.page-slot.no-anim {
  transition: none !important;
}

.page-panel {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: rgba(26, 15, 12, 0.45);
  backdrop-filter: blur(4px);
}

.page-loader[hidden] { display: none; }

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
}

.page-loader-inner i {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(243, 230, 212, 0.25);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.swipe-hint {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(243, 230, 212, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.swipe-hint.is-hidden { opacity: 0; }

.swipe-hint i {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, var(--brass), transparent);
  animation: hintDrop 1.8s ease-in-out infinite;
}

.drawer a.is-active,
.dock a.is-active {
  color: var(--brass-soft);
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100%;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  overflow: hidden;
}

.cover-page .cover-stack {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding:
    calc(96px + env(safe-area-inset-top)) 28px
    calc(108px + env(safe-area-inset-bottom));
  min-height: 100%;
}

.cover-seal {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--brass-soft);
  text-indent: 0.42em;
}

.cover-spacer {
  flex: 1 1 48px;
  min-height: 48px;
}

.cover-spacer.sm {
  flex: 0 0 28px;
  min-height: 28px;
}

.cover-foot {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: rgba(243, 230, 212, 0.55);
}

/* 献辞 / 封底 */
.dedicate-page,
.finale-page {
  position: relative;
  min-height: 100%;
  color: var(--paper);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.dedicate-bg,
.finale-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat var(--bg, #1a0f0c);
  transform: scale(1.06);
  animation: stageDrift 20s ease-in-out infinite alternate;
}

.dedicate-veil,
.finale-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 15, 12, 0.35), rgba(26, 15, 12, 0.88) 70%),
    linear-gradient(180deg, rgba(26, 15, 12, 0.55), rgba(74, 18, 12, 0.72));
}

.dedicate-frame,
.finale-frame {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding:
    calc(100px + env(safe-area-inset-top)) 32px
    calc(110px + env(safe-area-inset-bottom));
  text-align: center;
  min-height: 100%;
}

.dedicate-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 6.2vw, 2.2rem);
  line-height: 2.05;
  letter-spacing: 0.12em;
}

.dedicate-quote p { margin: 0; }

.dedicate-rule {
  width: 48px;
  height: 1px;
  margin: 0 auto;
  background: var(--brass);
  opacity: 0.7;
}

.dedicate-sub {
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2;
  letter-spacing: 0.18em;
  color: rgba(243, 230, 212, 0.78);
}

.dedicate-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: rgba(243, 230, 212, 0.48);
}

.finale-frame .brand-hero {
  color: var(--brass-soft);
}

.finale-frame h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.7rem, 6.5vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.finale-frame .finale-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 2;
  color: rgba(243, 230, 212, 0.86);
}

.finale-frame .hero-cta {
  justify-content: center;
}

/* 章扉页 */
.page-mast {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding:
    calc(92px + env(safe-area-inset-top)) 28px
    36px;
  min-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-mast.dark {
  color: var(--paper);
}

.mast-no {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--cinnabar);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.page-mast.dark .mast-no { color: var(--brass-soft); }

.mast-label {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--cinnabar);
  text-indent: 0.42em;
}

.page-mast.dark .mast-label { color: var(--brass-soft); }

.page-mast h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.mast-lead {
  margin: 22px 0 0;
  max-width: 22em;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(26, 15, 12, 0.68);
  font-weight: 300;
}

.page-mast.dark .mast-lead {
  color: rgba(243, 230, 212, 0.7);
}

.page-body {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.page-breath {
  margin: 56px 0 24px;
  padding: 48px 8px;
  text-align: center;
  border-top: 1px solid rgba(26, 15, 12, 0.1);
}

.page-breath p {
  margin: 0 auto;
  max-width: 16em;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: rgba(26, 15, 12, 0.72);
}

.page-breath.dark {
  border-top-color: rgba(243, 230, 212, 0.12);
}

.page-breath.dark p {
  color: rgba(243, 230, 212, 0.72);
}

.reco-points {
  margin-top: 40px;
  display: grid;
  gap: 0;
}

.reco-points article {
  padding: 28px 0;
  border-top: 1px solid rgba(26, 15, 12, 0.12);
}

.reco-points article:last-child {
  border-bottom: 1px solid rgba(26, 15, 12, 0.12);
}

.reco-points em {
  font-style: normal;
  color: var(--cinnabar);
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
}

.reco-points h3 {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.reco-points p {
  margin: 0;
  line-height: 1.75;
  color: rgba(26, 15, 12, 0.68);
}

.hero-visual { position: absolute; inset: 0; }

.hero-stage {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 15, 12, 0.3) 0%, rgba(26, 15, 12, 0.2) 35%, rgba(26, 15, 12, 0.9) 100%),
    var(--hero) center/cover no-repeat;
  transform: scale(1.05);
  animation: stageDrift 18s ease-in-out infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 16%;
  background: linear-gradient(90deg, #5c0f0a, #9a1a12 55%, rgba(154, 26, 18, 0));
  opacity: 0.7;
  animation: curtainBreath 7s ease-in-out infinite;
}

.hero-curtain.left { left: 0; }
.hero-curtain.right { right: 0; transform: scaleX(-1); animation-delay: -2s; }

.hero-light {
  position: absolute;
  left: 50%; top: -10%;
  width: 70%; height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(226, 201, 136, 0.25), transparent 70%);
  animation: lightPulse 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px 24px;
  padding-top: calc(88px + env(safe-area-inset-top));
}

.brand-hero {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.hero h1,
.finale h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.85rem, 7.2vw, 2.85rem);
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.hero-lead,
.section-lead {
  margin: 16px 0 0;
  max-width: 30em;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--smoke);
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cinnabar);
  color: #fff8f2;
}

.btn-primary:hover { background: var(--cinnabar-deep); }

.btn-ghost {
  border-color: rgba(243, 230, 212, 0.45);
  color: var(--paper);
}

.btn-ghost:hover { background: rgba(243, 230, 212, 0.08); }

/* Sections */
.section {
  position: relative;
  min-height: 100%;
  padding: 0 0 calc(72px + env(safe-area-inset-bottom));
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(180, 35, 24, 0.1), transparent 55%),
    linear-gradient(180deg, #f7efe3 0%, #efe0ca 45%, #f4ebdd 100%);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
}

.section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 6.5vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section .section-lead {
  color: rgba(26, 15, 12, 0.72);
  margin-top: 14px;
}

/* Author */
.author {
  background:
    linear-gradient(180deg, rgba(243, 230, 212, 0.2), rgba(232, 212, 184, 0.55)),
    repeating-linear-gradient(-12deg, transparent, transparent 11px, rgba(180, 35, 24, 0.03) 11px, rgba(180, 35, 24, 0.03) 12px);
}

.author-block {
  margin-top: 8px;
  display: grid;
  gap: 32px;
}

.author-portrait {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  min-height: 240px;
}

.author-portrait img { filter: contrast(1.05) saturate(0.9); }

.portrait-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(196, 163, 90, 0.65);
  pointer-events: none;
}

.portrait-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(26, 15, 12, 0.85));
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.author-meta h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.author-meta .role {
  margin: 10px 0 18px;
  color: var(--cinnabar);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.author-meta > p {
  margin: 0 0 14px;
  line-height: 1.9;
  color: rgba(26, 15, 12, 0.82);
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.author-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.book-spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
}

.book-spec div {
  padding-top: 12px;
  border-top: 1px solid rgba(26, 15, 12, 0.12);
}

.book-spec dt {
  font-size: 0.72rem;
  color: rgba(26, 15, 12, 0.45);
  letter-spacing: 0.12em;
}

.book-spec dd {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 0.92rem;
}

/* Figures */
.figures {
  background: var(--ink);
  color: var(--paper);
}

.figures .eyebrow { color: var(--brass-soft); }
.figures .section-lead { color: rgba(243, 230, 212, 0.7); }

.figure-rail {
  position: relative;
  margin-top: 36px;
  min-height: 420px;
}

.figure-item {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 20px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.figure-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.figure-img {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.figure-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(26, 15, 12, 0.75));
}

.figure-text { text-align: center; }
.figure-text span {
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.figure-text h3 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
}

.figure-text p {
  margin: 0 auto;
  max-width: 34em;
  line-height: 1.8;
  color: rgba(243, 230, 212, 0.78);
}

.figure-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.figure-dots button {
  width: 28px;
  height: 3px;
  background: rgba(243, 230, 212, 0.25);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}

.figure-dots button.is-active {
  width: 42px;
  background: var(--brass);
}

.cert-strip {
  margin-top: 48px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(196, 163, 90, 0.28);
  background: rgba(243, 230, 212, 0.04);
}

.cert-strip img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  background: #1f1512;
}

.cert-strip p {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(243, 230, 212, 0.65);
  letter-spacing: 0.06em;
}

/* Timeline works */
.works { padding-bottom: 40px; }

.timeline-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 28px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline-rail::-webkit-scrollbar { display: none; }

.tl-card {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  background: rgba(26, 15, 12, 0.04);
  border: 1px solid rgba(26, 15, 12, 0.08);
}

.tl-card img {
  aspect-ratio: 4 / 3;
  background: #2c1b16;
  min-height: 180px;
}

.tl-card > div { padding: 14px 14px 16px; }

.tl-card em {
  font-style: normal;
  color: var(--cinnabar);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.tl-card h3 {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.tl-card p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(26, 15, 12, 0.58);
  line-height: 1.5;
}

/* Clips */
.clips {
  background:
    linear-gradient(180deg, rgba(122, 20, 14, 0.94), rgba(26, 15, 12, 0.96)),
    url("../assets/works/zhongguohun.jpg") center/cover;
  color: var(--paper);
}

.clips .eyebrow { color: var(--brass-soft); }
.clips .section-lead { color: rgba(243, 230, 212, 0.72); }

.clip-grid {
  margin-top: 8px;
  display: grid;
  gap: 16px;
}

.clip-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 10px;
  background: rgba(243, 230, 212, 0.06);
  border: 1px solid rgba(196, 163, 90, 0.22);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.clip-card:hover {
  transform: translateY(-2px);
  background: rgba(243, 230, 212, 0.1);
}

.clip-thumb {
  aspect-ratio: 1;
  background: center/cover no-repeat var(--bg, #2c1b16);
}

.clip-info {
  display: grid;
  gap: 6px;
  padding-right: 36px;
}

.clip-info strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.clip-info span {
  font-size: 0.82rem;
  color: rgba(243, 230, 212, 0.62);
}

.play-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1px solid var(--brass);
  border-radius: 50%;
}

.play-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--brass);
}

.play-icon.lg {
  position: static;
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
}

.play-icon.lg::before {
  left: 22px;
  top: 18px;
  border-width: 10px 0 10px 14px;
}

/* Ebook */
.reader {
  margin-top: 8px;
  position: relative;
  background: #fffaf2;
  border: 1px solid rgba(26, 15, 12, 0.1);
  box-shadow: 18px 24px 0 rgba(122, 20, 14, 0.08);
}

.reader-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(26, 15, 12, 0.12), transparent);
}

.reader-page { padding: 28px 24px 20px 28px; }

.reader-head,
.reader-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(26, 15, 12, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  gap: 12px;
}

.reader-body {
  min-height: 340px;
  margin: 28px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2.05;
  color: var(--ink-soft);
}

.reader-body .drop {
  float: left;
  font-size: 2.8rem;
  line-height: 1;
  margin: 6px 8px 0 0;
  color: var(--cinnabar);
  font-weight: 700;
}

.reader-foot button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(26, 15, 12, 0.18);
  letter-spacing: 0.08em;
}

.reader-foot button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reader-foot button:not(:disabled):hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

/* Audio */
.audio {
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 163, 90, 0.18), transparent 40%),
    linear-gradient(160deg, #2a1712, #1a0f0c 60%, #3a1812);
  color: var(--paper);
}

.audio .eyebrow { color: var(--brass-soft); }
.audio .section-lead { color: rgba(243, 230, 212, 0.7); }

.audio-player {
  margin-top: 8px;
  display: grid;
  gap: 28px;
  padding: 28px 24px;
  border: 1px solid rgba(196, 163, 90, 0.28);
  background: rgba(243, 230, 212, 0.04);
  min-height: 280px;
}

.audio-art { display: grid; place-items: center; }

.vinyl {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(26, 15, 12, 0.55) 19% 100%),
    var(--vinyl, none) center/cover no-repeat,
    #2c1b16;
  border: 4px solid var(--brass);
  transition: transform 0.2s linear;
}

.vinyl.is-spinning { animation: spin 3.2s linear infinite; }

.audio-meta h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
}

.audio-meta > p {
  margin: 0;
  color: rgba(243, 230, 212, 0.62);
  font-size: 0.88rem;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin: 18px 0;
}

.wave i {
  flex: 1;
  background: linear-gradient(180deg, var(--brass-soft), var(--cinnabar));
  opacity: 0.55;
  transform-origin: bottom;
}

.wave.is-playing i { animation: waveBeat 1s ease-in-out infinite; }

.audio-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.audio-play {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--cinnabar);
  color: #fff;
}

.audio-bar input[type="range"] {
  width: 100%;
  accent-color: var(--brass);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(243, 230, 212, 0.55);
}

/* Recommend */
.reco-stage {
  position: relative;
  margin-top: 8px;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 260px;
  overflow: hidden;
  text-align: left;
  color: var(--paper);
}

.reco-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 15, 12, 0.15), rgba(26, 15, 12, 0.82)),
    var(--reco, #2c1b16) center/cover;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease);
}

.page-finale {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(26, 15, 12, 0.12);
  text-align: center;
}

.page-finale .finale-quote {
  margin: 0 auto 20px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(26, 15, 12, 0.78);
}

.page-finale .hero-cta {
  justify-content: center;
}

.page-finale .btn-ghost.dark,
.btn-ghost.dark {
  border-color: rgba(26, 15, 12, 0.28);
  color: var(--ink);
}

.page-finale .finale-note {
  margin-top: 24px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(26, 15, 12, 0.45);
}

.reco-stage:hover .reco-bg { transform: scale(1.08); }

.reco-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.reco-content strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.reco-content span {
  margin-top: 8px;
  color: rgba(243, 230, 212, 0.7);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Gallery */
.gallery-mosaic {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-auto-rows: 150px;
  gap: 10px;
}

.g-item {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.g-item img { transition: transform 0.7s var(--ease); }
.g-item:hover img { transform: scale(1.06); }

.g-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(26, 15, 12, 0.8));
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: left;
}

.g1 { grid-row: span 2; grid-auto-rows: unset; min-height: 268px; }
.g5 { grid-column: 1 / -1; min-height: 160px; }
.g8 { grid-column: 1 / -1; min-height: 140px; }

/* Finale */
.finale {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 24px 120px;
  text-align: center;
}

.finale-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.finale .brand-hero { color: var(--brass-soft); }
.finale h2 { margin-top: 10px; }

.finale-quote {
  margin: 22px auto 0 !important;
  max-width: 22em;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(243, 230, 212, 0.8) !important;
}

.finale .hero-cta { justify-content: center; }

.finale-note {
  margin-top: 36px !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.finale p {
  margin: 16px auto 0;
  max-width: 24em;
  line-height: 1.75;
  color: rgba(243, 230, 212, 0.72);
}

/* Dock */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  gap: 2px;
  padding: 6px;
  background: rgba(26, 15, 12, 0.9);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.dock a {
  padding: 10px 12px;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.dock a:hover,
.dock a.is-active {
  opacity: 1;
  color: var(--brass-soft);
}

/* Modal */
.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 4, 0.9);
  padding: 24px;
}

.modal[hidden],
.lightbox[hidden] { display: none; }

.modal-panel {
  width: min(100%, 640px);
  position: relative;
}

.modal-screen {
  aspect-ratio: 16 / 9;
  background: #0d0908;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 163, 90, 0.3);
}

.modal-fakeplay { text-align: center; color: var(--paper); }

.modal-fakeplay p {
  margin: 12px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: 0 16px;
}

.modal-fakeplay span {
  font-size: 0.78rem;
  color: rgba(243, 230, 212, 0.55);
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  color: var(--paper);
}

.lightbox .modal-close { top: 20px; right: 20px; }

.lightbox img {
  width: min(100%, 900px);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes stageDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -2%, 0); }
}

@keyframes curtainBreath {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.82; }
}

@keyframes lightPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

@keyframes hintDrop {
  0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes waveBeat {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@media (min-width: 768px) {
  .page-mast {
    min-height: min(58vh, 480px);
    padding-left: 32px;
    padding-right: 32px;
  }

  .author-block {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }

  .figure-rail { min-height: 420px; }

  .figure-item {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

  .figure-img {
    margin: 0;
    aspect-ratio: 3 / 4;
  }

  .figure-text { text-align: left; }
  .figure-text p { margin: 0; }
  .figure-dots { justify-content: flex-start; }

  .clip-grid { grid-template-columns: 1fr 1fr; }

  .audio-player {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
  }

  .g1 { grid-column: span 2; grid-row: span 2; }
  .g5 { grid-column: span 2; min-height: auto; }
  .g8 { grid-column: span 2; min-height: auto; }

  .tl-card { flex-basis: 300px; }

  .dedicate-quote {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  }
}

@media (max-width: 420px) {
  .dock a:nth-child(3) { display: none; }
  .book-spec { grid-template-columns: 1fr 1fr 1fr; }
  .figure-rail { min-height: 560px; }
}
