:root {
  --bg: #0b0f17;
  --bg-deep: #06090f;
  --surface: rgba(20, 26, 39, 0.72);
  --ink: #f3ece0;
  --ink-soft: #cfc6b8;
  --muted: #938b7f;
  --gold: #e7b96b;
  --gold-soft: rgba(231, 185, 107, 0.18);
  --crimson: #8f3142;
  --rose: #df9aa7;
  --border: rgba(243, 236, 224, 0.12);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-lamp="off"] {
  --bg: #050810;
  --surface: rgba(10, 14, 24, 0.78);
  --ink: #b9c3d8;
  --ink-soft: #8592ad;
  --muted: #5a6680;
  --gold: #6e84ad;
  --gold-soft: rgba(110, 132, 173, 0.12);
  --rose: #7c90b5;
  --border: rgba(185, 195, 216, 0.09);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 460px at 56% 18%, rgba(231, 185, 107, 0.16), transparent 68%),
    radial-gradient(960px 640px at 14% 4%, rgba(143, 49, 66, 0.12), transparent 70%);
  opacity: 1;
  transition: opacity 0.95s var(--ease);
}

html[data-lamp="off"] .ambient-glow {
  opacity: 0.06;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 15, 23, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.8s var(--ease), border-color 0.8s var(--ease);
}

html[data-lamp="off"] .site-header {
  background: rgba(5, 8, 16, 0.84);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-en {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold);
  transition: color 0.8s var(--ease);
}

.brand-zh {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

.lamp-button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.5s ease;
}

.lamp-button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.lamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(231, 185, 107, 0.85);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

html[data-lamp="off"] .lamp-dot {
  background: #3d4861;
  box-shadow: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.8s var(--ease);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.8vw, 3.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.85;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.25s var(--ease), background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.btn-primary {
  background: var(--gold);
  color: #14100b;
  border: 1px solid transparent;
  font-weight: 600;
}

html[data-lamp="off"] .btn-primary {
  background: #273248;
  color: #dbe3f4;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stage {
  margin: 0;
}

.stage-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.stage-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(1) saturate(1.03);
  transition: filter 1.1s var(--ease), transform 1.2s var(--ease);
}

html[data-lamp="off"] .stage-frame img {
  filter: brightness(0.22) saturate(0.45) contrast(1.08);
  transform: scale(1.015);
}

.stage-curtain-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(231, 185, 107, 0.14), transparent 52%),
    linear-gradient(to top, rgba(6, 9, 15, 0.42), transparent 34%);
  transition: opacity 0.9s var(--ease);
}

html[data-lamp="off"] .stage-curtain-veil {
  opacity: 0;
}

.whisper-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 10px);
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.82);
  border: 1px solid rgba(185, 195, 216, 0.18);
  color: #cfd8ec;
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html[data-lamp="off"] .whisper-caption {
  opacity: 1;
  transform: translate(-50%, 0);
}

.stage-caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 28px;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.3;
}

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

.scene-meta {
  max-width: 680px;
  margin: 0 0 42px;
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  background: var(--surface);
  display: grid;
  gap: 12px;
  transition: border-color 0.8s var(--ease), background-color 0.8s var(--ease);
}

.scene-meta div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  font-size: 14px;
}

.scene-meta dt {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.scene-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

.scene-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.script-body {
  max-width: 680px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
  color: var(--ink);
}

.script-body p {
  margin: 0 0 1.35em;
}

.script-body .stage-dir {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  font-style: italic;
  margin: 1.9em 0;
}

.dialogue-line {
  line-height: 1.95;
}

.speaker {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.speaker-marcel {
  color: var(--gold);
}

.speaker-celine {
  color: var(--rose);
}

.cue {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.pull-quote {
  margin: 2.2em 0;
  padding: 20px 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--gold);
  font-size: 20px;
  line-height: 1.85;
  transition: color 0.8s var(--ease);
}

.script-end {
  margin-top: 2.4em !important;
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 14px;
  color: var(--muted);
}

.patisserie-stage,
.comedy-stage {
  margin: 0 0 42px;
}

.patisserie-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.patisserie-lead {
  margin: 0;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

.curtain-all-btn {
  flex-shrink: 0;
}

.pastry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 48px;
}

.pastry-card {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.45s var(--ease);
}

.pastry-card[data-view="backstage"] {
  border-top-color: rgba(201, 102, 120, 0.52);
}

html[data-lamp="off"] .pastry-card[data-view="backstage"] {
  border-top-color: rgba(110, 132, 173, 0.45);
}

.pastry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pastry-en {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  transition: color 0.5s var(--ease);
}

.pastry-card[data-view="backstage"] .pastry-en {
  color: #df8b9a;
}

html[data-lamp="off"] .pastry-card[data-view="backstage"] .pastry-en {
  color: var(--gold);
}

.pastry-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.pastry-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.pastry-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.pastry-tab:hover {
  color: var(--ink);
}

.pastry-tab[aria-selected="true"] {
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

.pastry-card[data-view="backstage"] .pastry-tab[data-target="backstage"][aria-selected="true"] {
  background: rgba(143, 49, 66, 0.28);
  color: #f4b7c2;
}

html[data-lamp="off"] .pastry-card[data-view="backstage"] .pastry-tab[data-target="backstage"][aria-selected="true"] {
  background: rgba(110, 132, 173, 0.2);
  color: #cdd8ee;
}

.pastry-panel p,
.audition-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  animation: panelFade 0.38s var(--ease);
}

.pastry-panel strong {
  color: var(--ink);
  font-weight: 600;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pastry-note {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.pastry-note span {
  color: var(--gold);
  font-style: normal;
}

.inline-jump {
  display: inline-block;
  margin-left: 6px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 185, 107, 0.35);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.inline-jump:hover {
  border-bottom-color: var(--gold);
}

.patisserie-closing {
  max-width: 760px;
  margin-top: 52px;
  margin-bottom: 0;
}

/* Act II: Proust comedy dossier & prop audition box */
.comedy-dossier {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.comedy-dossier .scene-meta {
  max-width: none;
  margin: 0;
}

.audition-box {
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.6s var(--ease), box-shadow 0.7s var(--ease), background-color 0.6s var(--ease);
}

.audition-box[data-prop="madeleine"] {
  border-color: rgba(231, 185, 107, 0.55);
  box-shadow: 0 18px 50px rgba(231, 185, 107, 0.12), inset 0 1px 0 rgba(231, 185, 107, 0.18);
  background: linear-gradient(155deg, rgba(44, 34, 21, 0.55), rgba(20, 26, 39, 0.78));
}

html[data-lamp="off"] .audition-box[data-prop="madeleine"] {
  border-color: rgba(110, 132, 173, 0.45);
  box-shadow: none;
  background: var(--surface);
}

.audition-head .eyebrow {
  margin-bottom: 8px;
}

.audition-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.audition-hint {
  margin: 6px 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.audition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.audition-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.audition-tab span {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.7;
}

.audition-tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.audition-tab[aria-selected="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

.audition-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.audition-french {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
}

.audition-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-cut {
  background: rgba(143, 49, 66, 0.24);
  color: #f0b2bd;
}

.badge-cast {
  background: rgba(231, 185, 107, 0.22);
  color: var(--gold);
  font-weight: 600;
}

html[data-lamp="off"] .badge-cut,
html[data-lamp="off"] .badge-cast {
  background: rgba(110, 132, 173, 0.2);
  color: #cdd8ee;
}

.director-notes {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px dashed var(--border);
}

.director-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 18px;
}

.director-item h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.director-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.note-entry {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.note-tag {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.note-entry h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.note-entry p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.programme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}

.programme-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.prog-status {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.programme-list li.done .prog-status {
  color: #7ca88b;
}

.programme-list li.active .prog-status {
  color: var(--gold);
}

.prog-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.prog-info span {
  font-size: 14.5px;
  color: var(--ink-soft);
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 28px 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .comedy-dossier,
  .director-grid,
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 14px 18px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 42px 18px 64px;
  }

  .section {
    padding: 60px 18px;
  }

  .pastry-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .patisserie-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pastry-head {
    flex-direction: column;
    gap: 12px;
  }

  .programme-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .whisper-caption {
    white-space: normal;
    text-align: center;
    width: calc(100% - 32px);
    font-size: 13px;
  }
}
