/* ==========================================================================
   Nuno & Miha — 06.06.2026 • Wedding Celebration Web Application
   Editorial Luxury Wedding Aesthetic (Ivory, Deep Espresso, Sage & Champagne Gold)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Editorial Light (Alabaster / Ivory / Espresso) */
  --bg-primary: #fcfbf9;
  --bg-secondary: #f6f3ec;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f9f7f2;
  --bg-glass: rgba(252, 251, 249, 0.88);
  
  --text-primary: #1e1c19;
  --text-secondary: #5e5851;
  --text-muted: #8c857b;
  --text-light: #b5afa6;
  
  /* Wedding Signature Accents */
  --color-sage: #5c6b57;          /* Nuno's tie & lush Chiajna gardens */
  --color-sage-light: #7b8b76;
  --color-sage-soft: #edf2eb;
  --color-sage-dark: #3f4a3b;
  
  --color-gold: #c8a97e;          /* Golden hour lakeside glow & crowns */
  --color-gold-light: #dfcaa7;
  --color-gold-soft: #faf5ec;
  --color-gold-dark: #9f7d4e;
  
  --color-heart: #c94b4b;
  --color-heart-soft: #fdf0f0;

  --border-subtle: #eae5dc;
  --border-medium: #d8d0c2;
  --border-gold: rgba(200, 169, 126, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 28, 25, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 28, 25, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 28, 25, 0.12);
  --shadow-gold: 0 8px 30px rgba(200, 169, 126, 0.25);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Layout & Radii */
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark / Cinema Mode Theme --- */
[data-theme="dark"] {
  --bg-primary: #0f0e0d;
  --bg-secondary: #161513;
  --bg-surface: #1e1c19;
  --bg-card: #1f1d1a;
  --bg-card-subtle: #262320;
  --bg-glass: rgba(15, 14, 13, 0.88);
  
  --text-primary: #f8f6f0;
  --text-secondary: #aba397;
  --text-muted: #736c61;
  --text-light: #4f4941;
  
  --color-sage-soft: #232b21;
  --color-gold-soft: #282218;
  --color-heart-soft: #2b1717;

  --border-subtle: #2d2924;
  --border-medium: #3d3831;
  --border-gold: rgba(200, 169, 126, 0.3);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 8px 30px rgba(200, 169, 126, 0.18);
}

/* --- Reset & Global Baseline --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* --- Cinema Backdrop Dimming Layer --- */
.cinema-backdrop {
  position: fixed;
  inset: 0;
  background-color: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  z-index: 80;
}
.cinema-backdrop.active {
  opacity: 0.95;
  pointer-events: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-smooth);
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Monogram Brand */
.brand-monogram {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.monogram-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 3px 12px rgba(92, 107, 87, 0.3);
  border: 1px solid rgba(200, 169, 126, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.brand-monogram:hover .monogram-emblem {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(200, 169, 126, 0.45);
}

.brand-details {
  display: flex;
  flex-direction: column;
}
.brand-names {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text-primary);
}
.brand-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Primary Navigation Modes */
.nav-modes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card-subtle);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(200, 169, 126, 0.1);
}
.nav-tab.active {
  background: var(--color-sage);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(92, 107, 87, 0.35);
}
.nav-tab.active svg {
  color: var(--color-gold-light);
}

/* Right Utility Controls */
.nav-utilities {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.util-btn:hover {
  color: var(--text-primary);
  border-color: var(--color-gold);
  background: var(--bg-card-subtle);
}

/* Audio Ambiance Bars */
.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.audio-bars .bar {
  width: 2.5px;
  background: var(--color-gold-dark);
  border-radius: 1px;
  transition: height var(--transition-fast);
}
.bar-1 { height: 4px; }
.bar-2 { height: 10px; }
.bar-3 { height: 6px; }

.audio-toggle.playing .bar-1 {
  animation: audioWave 0.8s ease-in-out infinite alternate;
}
.audio-toggle.playing .bar-2 {
  animation: audioWave 1.1s ease-in-out infinite alternate 0.2s;
}
.audio-toggle.playing .bar-3 {
  animation: audioWave 0.9s ease-in-out infinite alternate 0.4s;
}
@keyframes audioWave {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Favorites Badge */
.favorites-btn {
  position: relative;
  color: var(--color-heart);
}
.fav-count {
  background: var(--color-heart);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

/* Theme Toggle Icons */
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; color: var(--color-gold); }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO COVER SECTION
   ========================================================================== */
.hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 2rem 4rem;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  max-width: 100vw;
}

.hero-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 4%;
  transform: scale(1.02);
  transition: transform 12s ease-out;
  filter: brightness(0.92) contrast(1.04);
}
.hero-cover:hover .hero-image-layer {
  transform: scale(1.06);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 14, 13, 0.45) 0%,
    rgba(15, 14, 13, 0.35) 40%,
    rgba(15, 14, 13, 0.75) 85%,
    rgba(15, 14, 13, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  color: #ffffff;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-badge-line {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}
.hero-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-light);
  margin: 0 0.35rem;
  display: inline-block;
  line-height: 1;
}

.hero-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero-dot {
  color: var(--color-gold);
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.cta-btn.primary {
  background: var(--color-sage);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(92, 107, 87, 0.4);
}
.cta-btn.primary:hover {
  background: var(--color-sage-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 107, 87, 0.5);
}

.cta-btn.secondary {
  background: var(--color-gold);
  color: #1e1c19;
  border: 1px solid var(--color-gold-light);
  box-shadow: 0 4px 18px rgba(200, 169, 126, 0.35);
}
.cta-btn.secondary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 169, 126, 0.5);
}

.cta-btn.outline {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-btn.outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Stats Ribbon */
.hero-stats-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(15, 14, 13, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 169, 126, 0.3);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold-light);
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  margin-top: 3px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}
.hero-scroll-indicator:hover {
  color: #ffffff;
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheelAnim 1.8s ease-in-out infinite;
}
@keyframes scrollWheelAnim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}
.scroll-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   APP SECTION ARCHITECTURE & SHARED COMPONENTS
   ========================================================================== */
.app-section {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 4.5rem 0 5.5rem;
  transition: opacity var(--transition-smooth);
}

.section-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 3.5rem;
}
.section-header.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.6rem;
}
[data-theme="dark"] .section-tag {
  color: var(--color-gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   MODE 1: "OUR STORY" (Editorial Scrollytelling)
   ========================================================================== */
.chapter-scrubber-wrapper {
  position: sticky;
  top: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  z-index: 50;
  margin-bottom: 3.5rem;
  transition: background-color var(--transition-fast);
}

.chapter-scrubber-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.scrubber-lead {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--color-gold-dark);
}

.scrubber-scroll-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.scrubber-scroll-track::-webkit-scrollbar {
  display: none;
}

.scrubber-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.scrubber-pill:hover {
  border-color: var(--color-gold);
  color: var(--text-primary);
}
.scrubber-pill.active {
  background: var(--color-sage);
  color: #ffffff;
  border-color: var(--color-sage);
  box-shadow: 0 2px 8px rgba(92, 107, 87, 0.3);
}
.pill-roman {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-gold);
}
.scrubber-pill.active .pill-roman {
  color: var(--color-gold-light);
}
.pill-time {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Editorial Story Chapter Block */
.story-chapter-block {
  margin-bottom: 7rem;
  scroll-margin-top: calc(var(--header-height) + 80px);
}

.chapter-intro-header {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.chapter-numeral-badge {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-gold);
  border-right: 1px solid var(--border-subtle);
  padding-right: 2rem;
}
.chapter-info-text {
  max-width: 800px;
}
.chapter-meta-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.chapter-time-badge {
  background: var(--color-sage-soft);
  color: var(--color-sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}
[data-theme="dark"] .chapter-time-badge {
  color: var(--color-sage-light);
}
.chapter-subtitle-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.chapter-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}
.chapter-story-prose {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Editorial Spreads, Diptychs & Triptychs */
.editorial-spread {
  margin-bottom: 2.5rem;
}

/* Hero Spread (Full Width) */
.editorial-hero-spread {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  group: "";
}
.hero-spread-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hero-spread-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.editorial-hero-spread:hover .hero-spread-img {
  transform: scale(1.03);
}

.hero-spread-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 14, 13, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  color: #ffffff;
}
.hero-spread-caption {
  max-width: 650px;
}
.spread-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.spread-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.spread-exif {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Diptych Layout (2 Images Asymmetric) */
.editorial-diptych {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.editorial-diptych.reversed {
  grid-template-columns: 0.8fr 1.2fr;
}

/* Triptych Layout (3 Images) */
.editorial-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Editorial Card Common */
.editorial-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}
.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.editorial-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.editorial-card-media.portrait {
  aspect-ratio: 2 / 3;
}
.editorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.editorial-card:hover .editorial-card-img {
  transform: scale(1.04);
}

/* Floating Actions on Cards */
.card-hover-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: all var(--transition-fast);
  z-index: 5;
}
.editorial-card:hover .card-hover-actions,
.editorial-hero-spread:hover .card-hover-actions,
.gallery-photo-card:hover .card-hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(15, 14, 13, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.card-action-btn:hover {
  background: var(--color-sage);
  transform: scale(1.1);
}
.card-action-btn.active-heart {
  color: var(--color-heart);
  background: rgba(255, 255, 255, 0.95);
}

/* Master Pick Ribbon Badge */
.master-pick-ribbon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.editorial-card-caption {
  padding: 1.25rem;
}
.editorial-card-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.editorial-card-caption p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.editorial-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODE 2: "FULL GALLERY" (Archive by Chapter)
   ========================================================================== */
.gallery-section .section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.header-left {
  max-width: 600px;
}

/* Deduplicated Curation Card */
.curation-badge-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 580px;
}
.curation-badge-card .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-sage-soft);
  color: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.curation-badge-card .badge-content strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.curation-badge-card .badge-content span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: block;
}

.badge-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.25rem;
  flex-shrink: 0;
}
.switch-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  white-space: nowrap;
}

/* Switch Toggle Slider */
.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-medium);
  transition: var(--transition-fast);
  border-radius: var(--radius-pill);
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition-fast);
  border-radius: 50%;
}
.switch-control input:checked + .switch-slider {
  background-color: var(--color-sage);
}
.switch-control input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Gallery Controls & Filtering Card */
.gallery-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.filter-categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}
.filter-categories::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.filter-pill:hover {
  border-color: var(--color-gold);
  color: var(--text-primary);
}
.filter-pill.active {
  background: var(--color-sage);
  color: #ffffff;
  border-color: var(--color-sage);
  box-shadow: 0 2px 8px rgba(92, 107, 87, 0.3);
}
.filter-pill.highlight-pill {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}
.filter-pill.highlight-pill.active {
  background: var(--color-gold);
  color: #1e1c19;
}

.gallery-subcontrols {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Search Wrap */
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input-wrap input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 2.5rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  transition: border-color var(--transition-fast);
}
.search-input-wrap input:focus {
  border-color: var(--color-gold);
}
.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  display: none;
}

/* Orientation Select */
.orientation-select-wrap select {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Density Toggles */
.density-toggles {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
}
.density-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.density-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.results-counter {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.results-counter strong {
  color: var(--color-sage);
}

/* Photo Grid Layouts */
.gallery-grid-flow {
  width: 100%;
  transition: all var(--transition-smooth);
}

/* Masonry Layout */
.gallery-grid-flow.masonry-layout {
  column-count: 3;
  column-gap: 1.5rem;
}
@media (max-width: 1024px) {
  .gallery-grid-flow.masonry-layout { column-count: 2; }
}
@media (max-width: 640px) {
  .gallery-grid-flow.masonry-layout { column-count: 1; }
}

/* Square Grid Layout */
.gallery-grid-flow.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Photo Card in Gallery */
.gallery-photo-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}
.gallery-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.photo-card-media {
  position: relative;
  width: 100%;
  background: var(--bg-secondary);
  overflow: hidden;
}
.grid-layout .photo-card-media {
  aspect-ratio: 1 / 1;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-photo-card:hover .photo-img {
  transform: scale(1.04);
}

.photo-card-info {
  padding: 1rem;
}
.photo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.photo-chapter-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-sage);
}
.photo-time-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.photo-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.photo-exif-line {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODE 3: "CINEMA & CARICATURES THEATER"
   ========================================================================== */
.cinema-theater-box {
  position: relative;
  z-index: 90;
  background: #11100f;
  color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 5rem;
  position: relative;
}

.theater-stage {
  padding: 2.5rem 2.5rem 1.5rem;
}

.theater-screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.master-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-ambient-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(200, 169, 126, 0.25) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.theater-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.current-film-meta .current-film-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}
.current-film-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.current-film-duration {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.theater-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theater-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.theater-btn:hover {
  background: var(--color-gold);
  color: #11100f;
  border-color: var(--color-gold);
}

/* Film Playlist Cards */
.film-playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 2.5rem 2.5rem;
  background: #181614;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 900px) {
  .film-playlist-grid { grid-template-columns: 1fr; }
}

.film-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.film-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
}
.film-card.active {
  background: rgba(200, 169, 126, 0.12);
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(200, 169, 126, 0.15);
}

.film-thumb-wrap {
  position: relative;
  width: 120px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.film-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-length-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
.film-quality-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.film-card-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.film-card-info p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

/* ==========================================================================
   CARICATURE SPOTLIGHT WALL
   ========================================================================== */
.caricatures-showcase-section {
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.caricature-narrative-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.narrative-left {
  max-width: 720px;
}
.narrative-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
}
.narrative-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.narrative-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
}
.badge-huge-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  line-height: 1;
}
.badge-huge-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Side-by-side featured viewer */
.caricature-featured-dual {
  scroll-margin-top: calc(var(--header-height, 70px) + 16px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

@keyframes caricatureFocusGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.75), var(--shadow-md);
    border-color: var(--color-gold);
  }
  40% {
    box-shadow: 0 0 28px 6px rgba(212, 175, 55, 0.55), var(--shadow-lg);
    border-color: var(--color-gold);
  }
  100% {
    box-shadow: var(--shadow-md);
    border-color: var(--border-subtle);
  }
}
.caricature-viewer-focus {
  animation: caricatureFocusGlow 1.4s ease-out;
}

/* Mobile Segmented View Tabs */
.caricature-mobile-view-tabs {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mobile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mobile-tab-btn.active {
  background: var(--color-gold);
  color: #111;
  border-color: var(--color-gold);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* Active Tile Card in Wall */
.caricature-tile-card.active-caricature-tile {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 2px var(--color-gold), var(--shadow-md) !important;
  transform: translateY(-4px);
}
.caricature-active-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-gold);
  color: #111;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 3;
}

@media (max-width: 800px) {
  .caricature-mobile-view-tabs {
    display: flex;
  }
  /* Default Mobile: Clean Side-by-Side */
  .caricature-featured-dual {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 2.5rem;
  }
  .caricature-featured-dual .dual-pane .pane-header {
    margin-bottom: 0.5rem;
  }
  .caricature-featured-dual .dual-pane h4 {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .caricature-featured-dual .pane-tag {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }
  .caricature-featured-dual .pane-media-wrap {
    max-height: 290px;
    border-radius: var(--radius-sm);
  }
  .caricature-dl-overlay-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    bottom: 0.5rem;
    gap: 0.35rem;
  }
  .caricature-dl-overlay-btn svg {
    width: 13px;
    height: 13px;
  }

  /* Switched Views */
  .caricature-featured-dual.mobile-view-video {
    grid-template-columns: 1fr;
  }
  .caricature-featured-dual.mobile-view-video .portrait-pane {
    display: none;
  }
  .caricature-featured-dual.mobile-view-video .pane-media-wrap {
    max-height: 440px;
  }

  .caricature-featured-dual.mobile-view-art {
    grid-template-columns: 1fr;
  }
  .caricature-featured-dual.mobile-view-art .video-pane {
    display: none;
  }
  .caricature-featured-dual.mobile-view-art .pane-media-wrap {
    max-height: 440px;
  }
}

.dual-pane .pane-header {
  margin-bottom: 1rem;
}
.pane-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-sage);
}
.dual-pane h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
}

.pane-media-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto;
}
.pane-media-wrap video,
.pane-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.caricature-dl-overlay-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-sage);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}
.caricature-dl-overlay-btn:hover {
  background: var(--color-sage-light);
  transform: translateX(-50%) translateY(-2px);
}

.caricature-wall-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* 14 Caricature Cards Grid Wall */
.caricature-cards-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.caricature-tile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.caricature-tile-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.caricature-tile-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
}
.caricature-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.caricature-tile-card:hover .caricature-tile-thumb img {
  transform: scale(1.05);
}
.play-badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}
.play-badge-center svg {
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.caricature-tile-info {
  padding: 0.85rem;
}
.caricature-tile-info h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.caricature-tile-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODE 4: "MY FAVORITES & DOWNLOAD CENTER"
   ========================================================================== */
.favorites-manager-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4rem;
}

.fav-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}
.fav-manager-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-heart);
}
.fav-manager-title h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
}
.fav-manager-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ZIP Progress Bar */
.zip-progress-container {
  margin-bottom: 2rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.zip-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.zip-progress-bar {
  height: 8px;
  background: var(--border-medium);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.zip-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sage), var(--color-gold));
  transition: width 0.2s ease;
}

/* Favorites Empty State */
.fav-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.fav-empty-state svg {
  margin-bottom: 1rem;
  color: var(--border-medium);
}
.fav-empty-state h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.fav-empty-state p {
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Pre-Built Packs Grid */
.prebuilt-packs-wrapper .subhead-bar {
  margin-bottom: 2rem;
}
.subhead-bar h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.subhead-bar p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.download-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}
.pack-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.pack-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.pack-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}
.pack-badge {
  background: var(--color-gold-soft);
  color: var(--color-gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pack-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pack-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.pack-dl-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-sage);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}
.pack-dl-btn:hover {
  background: var(--color-sage-light);
}

/* ==========================================================================
   LIGHTBOX MODAL & AMBIENT SLIDESHOW
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-topbar {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-meta-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.lightbox-counter {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-gold-light);
}
.lightbox-chapter-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.lightbox-pick-badge {
  background: var(--color-gold);
  color: #111;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-gold-light);
}
.lightbox-btn.active-heart {
  color: var(--color-heart);
}
.lightbox-btn.close-btn:hover {
  background: rgba(200, 50, 50, 0.8);
  color: #fff;
}

.slideshow-speed-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4rem;
  overflow: hidden;
}

.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}
.stage-nav-btn:hover {
  background: var(--color-gold);
  color: #111;
  transform: translateY(-50%) scale(1.08);
}
.prev-btn { left: 1.5rem; }
.next-btn { right: 1.5rem; }

.lightbox-image-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Bottom Bar */
.lightbox-bottombar {
  padding: 1rem 2rem;
  background: rgba(15, 14, 13, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.caption-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: #ffffff;
}
.lightbox-exif-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.exif-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Lightbox Filmstrip */
.lightbox-filmstrip-bar {
  background: #080706;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1rem;
  overflow-x: auto;
}
.filmstrip-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin: 0 auto;
}
.filmstrip-thumb {
  width: 60px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.5;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filmstrip-thumb:hover {
  opacity: 0.85;
}
.filmstrip-thumb.active {
  opacity: 1;
  border-color: var(--color-gold);
  transform: scale(1.08);
}
.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 300;
  pointer-events: none;
}
.toast-card {
  pointer-events: auto;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideToast {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}
.footer-monogram {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  background: var(--color-sage);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--color-gold);
}
.footer-names {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.footer-nav-links a:hover {
  color: var(--color-sage);
}
.footer-heart-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }
  .header-inner {
    padding: 0 1.25rem;
  }
  .brand-names {
    font-size: 1.1rem;
  }
  .nav-modes {
    display: none; /* Handled via drawer on mobile */
  }
  .nav-modes.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 101;
  }
  .mobile-menu-btn {
    display: flex;
    flex-shrink: 0;
  }
  .brand-date {
    display: none;
  }
  .nav-utilities {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .nav-utilities .util-btn {
    padding: 0.4rem;
    min-width: 34px;
    height: 34px;
    justify-content: center;
  }
  #launchSlideshowBtn {
    display: none;
  }
  .util-btn-text {
    display: none;
  }
  .hero-stats-ribbon {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  .stat-divider {
    display: none;
  }
  .chapter-intro-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .chapter-numeral-badge {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
  }
  .editorial-diptych,
  .editorial-triptych {
    grid-template-columns: 1fr !important;
  }
  .stage-nav-btn {
    width: 42px;
    height: 42px;
  }
}


/* ==========================================================================
   ENHANCEMENT 1 & 2: HERO SPLIT CONTAINER & 9:16 INTRO STORY REEL CARD
   ========================================================================== */
.hero-split-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-reel-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-intro-reel-card {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9/16;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(200, 169, 126, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hero-intro-reel-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 25px rgba(200, 169, 126, 0.5);
}

.reel-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-top-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 17, 16, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(200, 169, 126, 0.35);
  z-index: 5;
}

.reel-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e05656;
  box-shadow: 0 0 8px #e05656;
  animation: reelPulse 1.6s infinite ease-in-out;
}

@keyframes reelPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.reel-overlay-controls {
  position: absolute;
  bottom: 60px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.reel-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 19, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 169, 126, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reel-ctrl-btn:hover {
  background: var(--color-gold);
  color: #1c1a18;
}

.reel-right-btns {
  display: flex;
  gap: 6px;
}

.reel-ctrl-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 19, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 169, 126, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reel-ctrl-icon-btn:hover {
  background: var(--color-gold);
  color: #1c1a18;
}

.reel-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  z-index: 4;
}

.reel-film-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.reel-film-meta {
  font-size: 0.7rem;
  color: var(--color-gold-light);
}

/* ==========================================================================
   ENHANCEMENT 3: FLOATING RESTORE LIGHTS BADGE FOR CINEMA THEATER
   ========================================================================== */
.cinema-restore-floating-pill {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(20, 19, 18, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-gold);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(200, 169, 126, 0.45);
  transition: all 0.25s ease;
}

.cinema-restore-floating-pill:hover {
  background: var(--color-gold);
  color: #1c1a18;
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   ENHANCEMENT 5: LIGHTBOX BUTTON TOOLTIPS & SLIDESHOW GLASS PILL
   ========================================================================== */
.lightbox-btn .btn-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 17, 16, 0.95);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  border: 1px solid rgba(200, 169, 126, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) {
  .lightbox-btn:hover .btn-tooltip {
    display: block;
  }
}

.slideshow-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.slideshow-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.slideshow-pill-btn.is-playing {
  background: rgba(200, 169, 126, 0.25);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  box-shadow: 0 0 12px rgba(200, 169, 126, 0.35);
}

/* Touch device action buttons & smooth scrollers */
@media (hover: none), (max-width: 768px) {
  .card-hover-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
  .card-hover-actions .card-action-btn {
    background: rgba(20, 19, 18, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }
  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-intro-reel-card {
    max-width: 270px;
  }
}

.filter-categories,
.chapter-scrubber-inner,
.filmstrip-track,
.download-packs-grid {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ==========================================================================
   ENHANCEMENT 6: PERSISTENT ADMIN STUDIO MODAL & CURATION WORKSPACE
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-container {
  background: var(--bg-card);
  color: var(--text-primary);
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 169, 126, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-header-title h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-primary);
}

.admin-header-title p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
}

.admin-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.admin-close-btn:hover {
  color: var(--color-heart);
}

/* Passcode View */
.admin-passcode-view {
  padding: 3.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passcode-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.passcode-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.passcode-card h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.passcode-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.passcode-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.passcode-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.passcode-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.passcode-error {
  margin-top: 0.75rem;
  color: #e05656;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Admin Workspace View */
.admin-workspace-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.admin-tabs-nav {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1rem;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--color-gold);
}

.admin-tab-btn.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.admin-tab-panel {
  display: none;
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-panel.active {
  display: block;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-field-group.full-width {
  grid-column: 1 / -1;
}

.admin-field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.admin-field-group small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-text-input,
.admin-textarea,
.admin-select {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.admin-text-input:focus,
.admin-textarea:focus,
.admin-select:focus {
  outline: none;
  border-color: var(--color-gold);
}

.text-mono {
  font-family: monospace;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker-row input[type="color"] {
  width: 42px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 2px;
  cursor: pointer;
  background: transparent;
}

.btn-subtle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
}

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

.range-slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider-row input[type="range"] {
  flex: 1;
}

.range-val {
  min-width: 60px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-gold);
}

/* Photo Curation Grid */
.photo-curation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.curation-stats-pill {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(200, 169, 126, 0.15);
  color: var(--color-gold);
  border: 1px solid var(--border-gold);
}

.admin-photo-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
}

.admin-photo-row {
  display: grid;
  grid-template-columns: 60px 1.3fr 1.1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.admin-photo-row.is-pick {
  border-color: var(--color-gold);
  background: rgba(200, 169, 126, 0.06);
}

.admin-photo-row img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-photo-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-photo-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-photo-title-input {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
}

.admin-photo-flags {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

/* Chapters Editor List */
.admin-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-chapter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.admin-chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-chapter-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-chapter-numeral {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* Studio Footer */
.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.admin-modal-footer .footer-left,
.admin-modal-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid #e05656;
  color: #e05656;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger-outline:hover {
  background: #e05656;
  color: #ffffff;
}

.btn-secondary-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.save-indicator {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold);
}


/* --- Radio Nav Widget with Sound Level Slider --- */
.radio-nav-widget {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem 0.2rem 0.2rem;
  transition: all var(--transition-fast);
}
.radio-nav-widget:hover {
  border-color: var(--color-gold);
}

.radio-volume-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.4rem;
  border-left: 1px solid var(--border-subtle);
}
.radio-volume-control .vol-icon {
  color: var(--color-gold-dark);
}
.radio-vol-slider {
  width: 65px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--border-medium);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}
.radio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-sage);
  border: 1px solid #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.radio-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--color-gold);
}
.vol-level-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 28px;
}

.radio-station-select {
  border: none;
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  outline: none;
}

/* --- Hero Section Refinement (Clean, Centered, No Buttons) --- */
.hero-cover {
  min-height: calc(100vh - 40px);
  padding: calc(var(--header-height) + 1.5rem) 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-split-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.hero-text-col {
  text-align: left;
}
.hero-intro-reel-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(200, 169, 126, 0.4);
  margin: 0 auto;
}

@media (max-width: 992px) {
  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-text-col {
    text-align: center;
  }
  .hero-intro-reel-card {
    max-width: 280px;
  }
  .radio-volume-control, .radio-station-select {
    display: none; /* Keep clean on small mobile */
  }
}

/* --- Partners & Vendors Footer Section --- */
.footer-partners-card {
  margin: 2.5rem auto 3rem;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}
.partners-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.partner-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
  color: var(--color-sage);
}
.partner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.partner-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}
.partner-details strong {
  font-size: 0.9rem;
  line-height: 1.2;
}
.partner-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.partner-external-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}


/* --- Clean Editorial Hero Architecture --- */
.hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 1rem) 2.5rem 3rem;
  overflow: hidden;
}

.hero-split-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text-col {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.hero-badge-line {
  width: 36px;
  height: 1px;
  background: var(--color-gold);
}
.hero-badge-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hero-ampersand {
  font-style: italic;
  font-weight: 300;
  color: var(--color-gold-light);
  margin: 0 0.3rem;
}

.hero-subline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-reel-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-intro-reel-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(200, 169, 126, 0.45), 0 0 35px rgba(200, 169, 126, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hero-intro-reel-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 0 1.5px var(--color-gold), 0 0 45px rgba(200, 169, 126, 0.4);
}

@media (max-width: 960px) {
  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }
  .hero-text-col {
    text-align: center;
  }
  .hero-subline {
    justify-content: center;
  }
  .hero-intro-reel-card {
    max-width: 275px;
  }
}


/* --- Enhanced Admin Studio Styling --- */
.admin-partners-manager {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.admin-panel-intro h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.admin-panel-intro p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-partners-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.admin-partner-row {
  display: grid;
  grid-template-columns: 48px 1.2fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  transition: border-color var(--transition-fast);
}
.admin-partner-row:hover {
  border-color: var(--color-gold);
}
.admin-del-btn {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.admin-del-btn:hover {
  background: #dc3545;
  color: #fff;
}

.admin-add-partner-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.admin-add-partner-box h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-bottom: 0.85rem;
}

.admin-photo-chapter-select {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}


/* ==========================================================================
   MOBILE & RESPONSIVE UX REFINEMENTS (QA REPAIR CYCLE)
   ========================================================================== */

/* Hide redundant mouse scroll indicator on touch screens */
@media (max-width: 992px) {
  .hero-scroll-indicator {
    display: none !important;
  }
}

/* Mobile Header: Prevent toolbar blowout and ensure Hamburger button is fully in-viewport */
@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }
  .header-inner {
    padding: 0 0.75rem !important;
    gap: 0.5rem !important;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .brand-monogram {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
  .brand-names {
    font-size: 1rem !important;
  }
  .brand-date {
    display: none !important;
  }

  /* Admin button stays in footer and drawer for clean public mobile header */
  #adminStudioNavBtn {
    display: none !important;
  }

  .nav-utilities {
    gap: 0.4rem !important;
  }
  .favorites-btn {
    padding: 0.35rem 0.6rem !important;
    min-width: 36px !important;
    height: 36px !important;
    gap: 0.25rem !important;
  }
  .fav-count {
    min-width: 18px !important;
    padding: 0.05rem 0.35rem !important;
    font-size: 0.68rem !important;
  }
  .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .ambient-sound-toggle-btn {
    height: 36px !important;
    padding: 0.35rem 0.65rem !important;
  }
  .mobile-menu-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin-left: 0.25rem !important;
  }

  /* Mobile Nav Drawer Enhancements */
  .nav-modes.mobile-open {
    top: 64px !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }
  .nav-tab {
    width: 100% !important;
    text-align: left !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-sm) !important;
  }
}

/* Lightbox Mobile Overhaul: Ensure Close Button and Stage Controls are 100% reachable */
@media (max-width: 768px) {
  .lightbox-topbar {
    padding: 0.6rem 0.85rem !important;
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
  }
  .lightbox-meta-info {
    max-width: 50% !important;
    gap: 0.35rem !important;
    overflow: hidden !important;
  }
  .lightbox-counter {
    font-size: 0.8rem !important;
  }
  .lightbox-chapter-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  /* Hide non-essential desktop buttons on mobile to avoid overcrowding */
  .lightbox-pick-badge,
  .slideshow-speed-select,
  #lightboxFullscreenBtn,
  .slideshow-pill-label {
    display: none !important;
  }

  .lightbox-actions {
    gap: 0.4rem !important;
    margin-left: auto !important;
  }
  .lightbox-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
  .lightbox-btn.close-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Stage Arrow Navigation on Mobile */
  .lightbox-stage-btn {
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  .lightbox-stage-btn.prev {
    left: 8px !important;
  }
  .lightbox-stage-btn.next {
    right: 8px !important;
  }

  /* Filmstrip thumbnail bar scroll */
  .lightbox-filmstrip-bar {
    padding: 0.5rem 0.75rem !important;
  }
  .filmstrip-thumb {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ==========================================================================
   ENHANCEMENTS: CENTERED HERO, INSTAGRAM REELS SHOWCASE, COMPACT PARTNERS, DISCREET STUDIO
   ========================================================================== */

/* --- 1. Centered Editorial Hero --- */
.hero-content-centered {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-romantic-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1.5rem;
  max-width: 680px;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

/* --- 2. Instagram Stories & Reels Showcase Section --- */
.reels-highlight-section, .reels-section {
  display: block;
  opacity: 1;
  padding: 5rem 1.5rem 4rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Story Capsules Tray (Instagram-style horizontal scroll) */
.story-bubbles-tray {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto 2.75rem;
  padding: 0.5rem 1rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.story-bubble-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.story-bubble-btn:hover {
  transform: translateY(-3px);
}

.story-avatar-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(200, 169, 126, 0.35), rgba(92, 107, 87, 0.35));
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.story-bubble-btn.active .story-avatar-ring {
  background: linear-gradient(135deg, #c8a97e, #f3e5ab, #d4af37, #b8860b);
  box-shadow: 0 0 16px rgba(200, 169, 126, 0.6), 0 4px 18px rgba(0, 0, 0, 0.25);
  transform: scale(1.06);
}

.story-avatar-ring.cinema-ring {
  background: linear-gradient(135deg, #5c6b57, #8fbc8f, #2e8b57);
}

.story-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  border: 2px solid var(--bg-card);
}

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

.story-play-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  padding: 2px;
  line-height: 1;
}

.story-bubble-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.story-bubble-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.story-bubble-btn.active .story-bubble-label {
  color: var(--color-gold);
}

/* 9:16 Instagram Story Stage */
.story-stage-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.story-stage-card {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9/16;
  border-radius: 26px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(200, 169, 126, 0.35);
  user-select: none;
}

/* Top Progress Bars & Header */
.story-top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 12px 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-segments-track {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 3px;
}

.story-seg-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  height: 3px;
}

.story-seg-bar.active {
  background: rgba(255, 255, 255, 0.3);
}

.story-seg-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.story-seg-bar.filled .story-seg-fill {
  width: 100%;
}

.story-header-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), #9b7949);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.story-author-text {
  display: flex;
  flex-direction: column;
}

.story-author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.story-author-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
}

.story-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-ctrl-icon {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.story-ctrl-icon:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}

/* Media View Panes */
.story-media-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.story-view-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-video-elem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-slide-elem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0d0d;
  display: block;
}

/* Tap Zones for Next / Prev Navigation */
.story-tap-zone {
  position: absolute;
  top: 60px;
  bottom: 80px;
  z-index: 20;
  cursor: pointer;
}

.story-tap-zone.left {
  left: 0;
  width: 40%;
}

.story-tap-zone.right {
  right: 0;
  width: 60%;
}

/* Bottom Glass Caption Bar */
.story-bottom-glass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 16px 14px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story-caption-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-caption-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  margin: 0;
  flex: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.story-nav-arrows {
  display: flex;
  gap: 4px;
}

.story-arrow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-arrow-btn:hover {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
}

/* Cinema Jump Pill Row */
.cinema-jump-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.cinema-jump-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.cinema-jump-badge:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cinema-jump-icon {
  font-size: 1.1rem;
}

/* --- 3. Compact Partners & Vendors Section --- */
.footer-partners-compact {
  margin: 2rem auto 2.5rem;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.partners-compact-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-gold);
}

.partners-compact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.partner-compact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.84rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-compact-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.partner-pill-emoji {
  font-size: 1rem;
  line-height: 1;
}

.partner-pill-name {
  font-weight: 500;
}

.partner-pill-social {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.partner-compact-pill:hover .partner-pill-social {
  color: var(--color-gold);
}

/* --- 4. Discreet Admin Trigger Icon --- */
.secret-admin-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  opacity: 0.18;
  padding: 4px;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 4px;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.secret-admin-btn:hover,
.secret-admin-btn:focus {
  opacity: 0.8;
  color: var(--color-gold);
  outline: none;
}

/* Mobile & Small Screen Responsive Adjustments */
@media (max-width: 600px) {
  .story-bubbles-tray {
    justify-content: flex-start;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 1rem;
  }
  .story-avatar-ring {
    width: 66px;
    height: 66px;
  }
  .story-stage-card {
    max-width: 320px;
    border-radius: 22px;
  }
  .hero-romantic-quote {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

/* --- Global Boundary & Overflow Containment --- */
#mainContent {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.hero-cover {
  overflow: hidden;
  max-width: 100vw;
}

.reels-highlight-section {
  overflow: hidden;
  max-width: 100vw;
}

.story-bubbles-tray {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* --- Hero Photo: Faces in Main Focal Plan --- */
.hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--header-height) + 1.5rem) 2rem 5rem;
  overflow: hidden;
}

.hero-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 4% !important;
  transform: scale(1.02);
  transition: transform 12s ease-out;
  filter: brightness(0.94) contrast(1.03);
}

.hero-content-centered {
  text-align: center;
  max-width: 900px;
  margin: auto auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  background: radial-gradient(ellipse at center, rgba(15, 23, 20, 0.55) 0%, rgba(15, 23, 20, 0.25) 60%, transparent 100%);
  border-radius: 24px;
}

/* Micro-segment bars for exact photo count */
.story-segments-track {
  display: flex;
  gap: 2px !important;
  width: 100%;
  height: 2.5px !important;
}

.story-seg-bar {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  background: rgba(255, 255, 255, 0.28) !important;
  border-radius: 1px !important;
  overflow: hidden;
  height: 2.5px !important;
}

.story-seg-fill {
  width: 0%;
  height: 100%;
  background: #ffffff !important;
  border-radius: 1px !important;
}

@media (max-width: 768px) {
  .hero-image-layer {
    background-position: center 2% !important;
    transform: translateY(28px) scale(1.02) !important;
  }
  .hero-cover {
    padding-bottom: 4rem;
  }
}

/* ==========================================================================
   STORY STAGE CARD FULLSCREEN (PRESERVE TRUE 9:16 VERTICAL PROPORTIONS)
   ========================================================================== */
#storyStageCard:fullscreen,
#storyStageCard:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#storyStageCard:fullscreen .story-media-container,
#storyStageCard:-webkit-full-screen .story-media-container {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000000 !important;
  position: relative !important;
}

#storyStageCard:fullscreen .story-view-pane.active,
#storyStageCard:-webkit-full-screen .story-view-pane.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
#storyStageCard:fullscreen .story-view-pane:not(.active),
#storyStageCard:-webkit-full-screen .story-view-pane:not(.active) {
  display: none !important;
}

#storyStageCard:fullscreen .story-video-elem,
#storyStageCard:-webkit-full-screen .story-video-elem,
#storyStageCard:fullscreen .story-slide-elem,
#storyStageCard:-webkit-full-screen .story-slide-elem,
video.story-video-elem:fullscreen,
video.story-video-elem:-webkit-full-screen {
  width: auto !important;
  height: 100vh !important;
  max-width: calc(100vh * 9 / 16) !important;
  max-height: 100vh !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: #000000 !important;
  border-radius: 0 !important;
}

#storyStageCard:fullscreen .story-top-header,
#storyStageCard:-webkit-full-screen .story-top-header,
#storyStageCard:fullscreen .story-bottom-glass,
#storyStageCard:-webkit-full-screen .story-bottom-glass {
  max-width: calc(100vh * 9 / 16) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
}

#storyStageCard:fullscreen .story-tap-zone,
#storyStageCard:-webkit-full-screen .story-tap-zone {
  max-width: calc(100vh * 9 / 16 * 0.5) !important;
}
#storyStageCard:fullscreen .story-tap-zone.left,
#storyStageCard:-webkit-full-screen .story-tap-zone.left {
  left: calc(50% - (100vh * 9 / 16 * 0.5)) !important;
}
#storyStageCard:fullscreen .story-tap-zone.right,
#storyStageCard:-webkit-full-screen .story-tap-zone.right {
  right: calc(50% - (100vh * 9 / 16 * 0.5)) !important;
}

/* Precision scroll anchor offset for single flow navigation */
.app-section,
.reels-highlight-section,
#hero,
#reelsSection,
#gallerySection,
#cinemaSection,
#downloadsSection {
  scroll-margin-top: calc(var(--header-height) + 15px);
}
