/* Component-Specific Premium Cinematic Styles for ALEX Redesign */

/* 1. App Layout and Section Containers */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 275px 40px 130px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.app-section.active {
  display: flex !important;
  animation: sectionFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#vision {
  padding-top: 130px;
}

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

@media (max-width: 768px) {
  .app-section {
    padding: 210px 20px 97px 20px;
  }
}

.section-hero {
  text-align: center;
  margin-bottom: 60px;
  z-index: 5;
}

.section-title-large {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--text-primary);
  text-shadow: var(--text-glow);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-intro-text {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 2px;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  opacity: 0.85;
}

/* Header Nav Menu Links */
/* Header Nav Menu Links (Vogue Style Centered Menu) */
.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fluid);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-lux);
}

/* Sub-navigation Menu system */
.sub-nav-bar {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px 0; /* Padding for buttons to breathe */
}

.sub-nav-bar.active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

/* Header sub-nav expansion state */
.main-header.sub-nav-open {
  height: 180px;
}

@media (max-width: 768px) {
  .main-header.sub-nav-open {
    height: 145px;
  }
  .sub-nav-bar {
    gap: 3vw;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
  }
}

/* Drawer submenus */
.drawer-dropdown {
  display: block;
}

.drawer-dropdown-toggle {
  cursor: pointer;
}

.drawer-submenu {
  list-style: none;
  border-left: 1px solid var(--border-light, rgba(0,0,0,0.08));
}

.theme-obsidian .drawer-submenu,
[data-theme="obsidian"] .drawer-submenu {
  border-left-color: rgba(255, 255, 255, 0.08);
}

/* Overrides for book-pill elements that use the nav-link class */
.book-pill.nav-link {
  border-bottom: 1px solid var(--border-light) !important;
  text-decoration: none;
}
.book-pill.nav-link:hover {
  border-bottom-color: var(--border-medium) !important;
}
.book-pill.nav-link.active {
  border-bottom-color: var(--text-primary) !important;
}

@media (max-width: 768px) {
  .header-nav {
    gap: 20px;
  }
  .nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

.drawer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  display: block;
  padding: 9px 0;
  /* Niemals abschneiden */
  white-space: normal;
  overflow: visible;
  border-bottom: 1px solid transparent;
}

.drawer-link:hover {
  color: var(--text-primary);
  padding-left: 6px;
  border-bottom-color: transparent;
}

/* 2. STORY SECTION: Minimalist Title List */
.story-titles-list-container {
  width: 100%;
  max-width: var(--max-content-width);
  z-index: 5;
}

.story-titles-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-pure);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fluid);
}

.story-title-row:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-premium);
}

.story-title-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-row-chapter {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.story-row-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  transition: var(--transition-fluid);
}

.story-title-row:hover .story-row-title {
  opacity: 0.8;
}

.story-row-arrow {
  color: var(--text-secondary);
  transition: var(--transition-fluid);
}

.story-title-row:hover .story-row-arrow {
  color: var(--text-primary);
  transform: translateX(5px);
}

/* 3. CINEMATIC FULLSCREEN OVERLAY MODAL */
.cinematic-story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 300;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fluid);
}

.cinematic-story-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.08;
  filter: blur(4px) grayscale(10%);
  transition: transform 15s ease-out;
  transform: scale(1.1);
}

.cinematic-story-modal.theme-obsidian .modal-background {
  opacity: 0.16;
  filter: blur(4px) brightness(0.2);
}

.cinematic-story-modal.open .modal-background {
  transform: scale(1);
}

.modal-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, var(--bg-primary) 95%);
  z-index: 2;
  pointer-events: none;
  transition: var(--transition-fluid);
}

.modal-close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-pure);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fluid);
}

.modal-close-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.modal-scroll-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 140px 20px 80px 20px;
  display: flex;
  justify-content: center;
}

.modal-content-container {
  width: 100%;
  max-width: var(--max-content-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-controls-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
  z-index: 5;
}

.modal-scene-sound-badge {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-pure);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fluid);
}

.modal-scene-sound-badge:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Minimalist Lese-Modus Switch */
.reader-theme-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-pure);
  padding: 3px;
  border-radius: 20px;
  transition: var(--transition-fluid);
}

.theme-obsidian .reader-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-geometric);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-fluid);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
}

.theme-toggle-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-text-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-chapter-tag {
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 25px;
  text-shadow: var(--text-glow);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 40px;
  max-width: 600px;
}

.modal-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  margin-bottom: 40px;
}

.modal-body {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 2;
  color: var(--text-primary);
  font-weight: 300;
  text-align: justify;
  text-align-last: center;
  max-width: 700px;
}

.modal-body p {
  margin-bottom: 30px;
}

/* 4. KINO SECTION: Immersive Video Player */
.kino-player-container {
  width: 100%;
  max-width: 900px;
  z-index: 5;
  background: #000;
  border-radius: 16px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.custom-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kino-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* Prevents clicks on Vimeo/YouTube player elements */
  display: none;
}

.kino-video.active {
  display: block;
}

/* Video Custom controls overlay (Minimalist Audio Toggle) */
.custom-video-wrapper {
  cursor: pointer;
}

.kino-audio-toggle-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  opacity: 0.5;
  transition: all var(--transition-fast);
}

.theme-obsidian .kino-audio-toggle-btn,
body.cinema-dimmed .kino-audio-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.custom-video-wrapper:hover .kino-audio-toggle-btn {
  opacity: 1;
}

.kino-audio-toggle-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: scale(1.05);
}

.kino-audio-toggle-btn i {
  width: 18px;
  height: 18px;
  display: block;
}

/* 5. SYMPHONY SECTION: Book Reader & Soundtrack Console */
.symphony-console-layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  z-index: 5;
}

/* Selector pills to pick books */
.symphony-book-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.book-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-medium);
  letter-spacing: 1px;
}

.book-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
}

.book-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

/* Page Reader Container Card */
.symphony-page-reader-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-pure);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: var(--transition-fluid);
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-pure);
  padding-bottom: 15px;
  transition: var(--transition-fluid);
}

.reader-book-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
}

.reader-pdf-download {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fluid);
}

.reader-pdf-download:hover {
  color: var(--text-primary);
}

.reader-pdf-download i {
  width: 14px;
  height: 14px;
}

/* Large page text rendering box */
.reader-page-display {
  min-height: 300px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 400;
  text-align: left;
  padding: 10px 0;
  transition: opacity 0.2s ease;
}

.reader-page-display.fading {
  opacity: 0;
}

/* Poetic Page Sentence Reveal and Spacing */
.reader-sentence {
  font-family: "Courier Prime", Courier, monospace;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 2.2;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-align: left;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reader-sentence.typing-active,
.reader-sentence.typing-done {
  opacity: 1;
  transform: translateY(0);
}

.reader-sentence.typing-active::after {
  content: "▊";
  display: inline-block;
  margin-left: 3px;
  font-size: 0.9em;
  color: var(--text-primary);
  animation: cursor-blink 0.8s infinite steps(2);
  vertical-align: middle;
}

.reader-sentence.typing-done::after {
  content: "";
  display: none;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.reader-spacer {
  height: 2.5rem;
}

/* Reader navigation controls */
.reader-navigation-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border-pure);
  padding-top: 25px;
  transition: var(--transition-fluid);
}

.page-nav-btn {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-pure);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fluid);
}

.page-nav-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.page-nav-btn:disabled {
  opacity: 0.15;
  cursor: not-allowed;
  background: transparent;
  border-color: var(--border-pure);
  color: var(--text-secondary);
}

.reader-page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 70%;
}

.page-num-bubble {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fluid);
}

.page-num-bubble:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.page-num-bubble.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

.reader-page-counter {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Soundtrack Deck in Symphony Section */
.symphony-audio-deck {
  background: var(--bg-secondary);
  border: 1px solid var(--border-pure);
  border-radius: 24px;
  padding: 24px;
  transition: var(--transition-fluid);
}

.deck-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.symphony-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.symphony-track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fluid);
}

.symphony-track-row:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-pure);
}

.symphony-track-row.playing {
  border-color: var(--text-primary);
  background: var(--bg-primary);
}

.track-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-row-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.symphony-track-row.playing .track-row-name {
  color: var(--text-primary);
  font-weight: 600;
}

.track-row-icon {
  color: var(--text-secondary);
}

.symphony-track-row.playing .track-row-icon {
  color: var(--text-primary);
}

/* 6. RADIO SECTION: Brutalist Live Radio */
#radio {
  position: relative;
  overflow: hidden;
  transition: var(--transition-fluid);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.radio-brutalist-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 5;
  position: relative;
  padding: 40px 20px;
}

.radio-brutalist-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 15px 0;
  line-height: 1;
  letter-spacing: -2px;
}

body.theme-obsidian .radio-brutalist-title {
  color: #fff;
}

.radio-brutalist-subtitle {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #333;
  margin-bottom: 60px;
}

body.theme-obsidian .radio-brutalist-subtitle {
  color: #ccc;
}

/* Equalizer */
.radio-brutalist-eq {
  display: flex;
  gap: 6px;
  margin-bottom: 80px;
  height: 45px;
}

.radio-eq-bar {
  width: 16px;
  height: 100%;
  border: 2px solid #000;
  background: transparent;
  transition: all 0.3s ease;
}

body.theme-obsidian .radio-eq-bar {
  border-color: #fff;
}

/* Filled state (left side when paused) */
.radio-eq-bar.filled {
  background: #000;
}

body.theme-obsidian .radio-eq-bar.filled {
  background: #fff;
}

/* Active Neon State (Playing) */
.radio-brutalist-eq.playing .radio-eq-bar {
  border-color: transparent;
  animation: brutalistPulse 1.5s infinite alternate;
}

@keyframes brutalistPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3) contrast(1.2); }
}

/* Rainbow Neon Generation (20 bars) */
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(1) { --neon: #0033ff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(2) { --neon: #0066ff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(3) { --neon: #0099ff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(4) { --neon: #00ccff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(5) { --neon: #00ffcc; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(6) { --neon: #00ff99; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(7) { --neon: #33ff66; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(8) { --neon: #66ff33; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(9) { --neon: #99ff00; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(10) { --neon: #ccff00; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(11) { --neon: #ffff00; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(12) { --neon: #ffcc00; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(13) { --neon: #ff9933; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(14) { --neon: #ff6666; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(15) { --neon: #ff3399; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(16) { --neon: #ff00cc; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(17) { --neon: #ff00ff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(18) { --neon: #cc00ff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(19) { --neon: #9900ff; }
.radio-brutalist-eq.playing .radio-eq-bar:nth-child(20) { --neon: #6600ff; }

.radio-brutalist-eq.playing .radio-eq-bar.filled {
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon);
}

.radio-brutalist-eq.playing .radio-eq-bar:not(.filled) {
  border-color: var(--neon);
  background: transparent;
  box-shadow: inset 0 0 5px var(--neon), 0 0 5px var(--neon);
}

/* Controls Wrapper */
.radio-brutalist-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

/* Play Button */
.radio-brutalist-play-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  border: none;
  width: 100px;
  height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.radio-brutalist-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

body.theme-obsidian .radio-brutalist-play-btn {
  background: #222;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.radio-brutalist-play-btn.playing {
  background: #0033ff; /* Deep bold blue */
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 51, 255, 0.6), 0 10px 30px rgba(0,0,0,0.2);
}

body.theme-obsidian .radio-brutalist-play-btn.playing {
  background: #0033ff;
  box-shadow: 0 0 30px rgba(0, 51, 255, 0.8);
}

/* 7. CONTACT SECTION & SafePlace Redesign */
.about-me-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  z-index: 5;
}

.about-me-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 45px;
  text-transform: lowercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.about-me-content {
  display: none; /* Controlled dynamically by JS */
  animation: aboutMeFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-me-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.08em;
}

.about-me-content p {
  font-family: var(--font-geometric);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  letter-spacing: normal;
  text-transform: lowercase;
  margin-bottom: 20px;
}

.about-me-content p:last-child {
  margin-bottom: 0;
}

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

.contact-details-container {
  width: 100%;
  max-width: 800px;
  margin: 70px auto 0 auto;
  border-top: 1px solid var(--border-pure);
  padding-top: 40px;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 5;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

body.theme-obsidian .contact-detail-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-detail-row:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .contact-detail-row {
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
  }
}

.detail-label {
  flex: 0 0 200px;
  font-family: var(--font-geometric);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .detail-label {
    flex: none;
  }
}

.detail-content {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.detail-separator {
  color: var(--border-pure);
  font-size: 0.85rem;
}

/* Lowercase Links & Buttons */
.lowercase-link {
  font-family: var(--font-geometric);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: normal;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.lowercase-link:hover {
  border-bottom-color: var(--text-primary);
}

.lowercase-btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-geometric);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: lowercase;
  letter-spacing: normal;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.lowercase-btn-link:hover {
  border-bottom-color: var(--text-primary);
}

.lowercase-link-btn {
  display: inline-block;
  font-family: var(--font-geometric);
  font-size: 0.78rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border: 1px solid var(--border-pure);
  border-radius: 20px;
  background: transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.lowercase-link-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Collapsible Form Styling */
.contact-form-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  width: 100%;
}

.contact-form-wrapper.open {
  max-height: 400px;
  padding: 10px 0 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

body.theme-obsidian .contact-form-wrapper.open {
  border-bottom-color: rgba(255, 255, 255, 0.03);
}

.minimalist-contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 580px;
  margin-left: 200px;
}

@media (max-width: 768px) {
  .minimalist-contact-form {
    margin-left: 0;
    max-width: 100%;
  }
}

.minimalist-contact-form .form-row {
  display: flex;
  gap: 15px;
}

@media (max-width: 500px) {
  .minimalist-contact-form .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

.minimalist-contact-form .form-input-group {
  flex: 1;
}

.minimalist-contact-form input[type="text"],
.minimalist-contact-form input[type="email"],
.minimalist-contact-form textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-pure);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-geometric);
  font-size: 0.85rem;
  letter-spacing: normal;
  outline: none;
  transition: border-color var(--transition-fast);
}

.minimalist-contact-form input[type="text"]:focus,
.minimalist-contact-form input[type="email"]:focus,
.minimalist-contact-form textarea:focus {
  border-bottom-color: var(--text-primary);
}

.minimalist-contact-form textarea {
  resize: vertical;
}

.minimalist-contact-form .form-submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 6px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-geometric);
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  margin-top: 5px;
}

.minimalist-contact-form .form-submit-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Portfolio Note styling */
.portfolio-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.portfolio-text {
  font-family: var(--font-geometric);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  letter-spacing: normal;
  text-transform: lowercase;
  margin: 0;
  max-width: 580px;
}

.portfolio-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-geometric);
  font-size: 0.78rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border: 1px solid var(--border-pure);
  border-radius: 20px;
  background: transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.portfolio-pdf-link:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.portfolio-pdf-link i {
  width: 12px;
  height: 12px;
}

/* 8. Creator Dashboard Modifications */
.creator-dashboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
  padding: 20px;
}

.creator-dashboard-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* 9. Mobile Reader Responsive Styling */
@media (max-width: 600px) {
  .symphony-page-reader-container {
    padding: 20px;
    gap: 15px;
  }
  .reader-page-display {
    min-height: 250px;
    line-height: 1.7;
    font-size: 1.05rem;
  }
  .reader-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .reader-navigation-bar {
    padding-top: 15px;
    gap: 10px;
  }
}

/* 10. Minimalist High-End Form Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-pure);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-geometric);
  transition: var(--transition-fluid);
  outline: none;
  letter-spacing: normal;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--text-primary);
}

body.cinema-dimmed input[type="text"],
body.cinema-dimmed input[type="email"],
body.cinema-dimmed input[type="url"],
body.cinema-dimmed textarea,
body.cinema-dimmed select {
  background: var(--bg-secondary);
  border-color: var(--border-pure);
  color: var(--text-primary);
}

/* Play Script Download Card */
.story-play-download-container {
  max-width: var(--max-content-width);
  margin: 40px auto 0 auto;
  padding: 0 20px;
  width: 100%;
}

.play-download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-pure);
  border-radius: 16px;
  transition: var(--transition-fluid);
  box-shadow: var(--shadow-premium);
}

.play-download-card:hover {
  border-color: var(--text-primary);
}

.play-download-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.play-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 500;
}

.play-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.play-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: normal;
}

.play-download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fluid);
  white-space: nowrap;
}

.play-download-btn:hover {
  background: transparent;
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .play-download-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }
  .play-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Floating Ambient Audio Player Widget */
.ambient-audio-player {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 320px;
  background: var(--drawer-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-pure);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-premium);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition-fluid);
  cursor: pointer;
  overflow: hidden;
}

/* Collapsed state (minimal tab) */
.ambient-audio-player.collapsed {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.ambient-audio-player.collapsed .player-info-section,
.ambient-audio-player.collapsed .player-volume-container {
  display: none;
}

.ambient-audio-player.collapsed .player-controls {
  margin: 0;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ambient-audio-player.collapsed #player-play-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  border-radius: 50%;
}

/* Info section */
.player-info-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.player-chap {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 500;
}

.player-track {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.player-control-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fluid);
}

.player-control-btn:hover {
  background: transparent;
  color: var(--text-primary);
}

.player-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.vol-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.player-vol-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-pure);
  outline: none;
  transition: background 0.3s;
}

.player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s;
}

.player-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Ambient player shimmers when playing */
.ambient-audio-player.playing {
  border-color: var(--text-primary);
  animation: playerPulseBorder 3s infinite alternate ease-in-out;
}

@keyframes playerPulseBorder {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0,0,0,0.02);
  }
  100% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05), 0 0 8px rgba(0, 0, 0, 0.08);
  }
}

body.cinema-dimmed .ambient-audio-player {
  border-color: var(--border-pure);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Page loading states for elegant emergence from white */
body.page-loading {
  overflow: hidden !important;
}

body.page-loading .main-header,
body.page-loading .app-container {
  opacity: 0 !important;
}

body:not(.page-loading) .main-header,
body:not(.page-loading) .app-container {
  opacity: 1;
  transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 19. LOADER OVERLAY (YOU CONNECT Loading Screen) */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff; /* White background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999; /* Higher than everything else */
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}



.loader-content {
  text-align: center;
}

.loader-text {
  font-family: var(--font-serif), serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #000000; /* Black text */
  text-transform: uppercase;
}

.loader-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite steps(1);
}

@keyframes loadingDots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* 20. CLICK MEMORY FLASH BACKGROUND */
.click-flash-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* Behind the app-container (z-index 2) */
  overflow: hidden;
}

.click-flash-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s ease, transform 4s cubic-bezier(0.16, 1, 0.3, 1);
}

.click-flash-image.visible {
  opacity: 0.07; /* Subtle visual watermark to maintain readability */
  transform: scale(1);
}

.theme-obsidian .click-flash-image.visible,
body.cinema-dimmed .click-flash-image.visible {
  opacity: 0.12; /* Slightly more visible for cinematic black backgrounds */
}

/* 22. STORY LIVE STREAM FEED */
.story-stream-container {
  width: 100%;
  max-width: 750px; /* Centered elegant column width */
  margin: 40px auto; /* Center on screen and give breathing room */
  padding: 0 20px;
  overflow: visible; /* Let it flow naturally */
}

.story-stream-feed {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack vertically from top to bottom */
  align-items: stretch; /* Allow individual bubbles to use align-self */
  gap: 24px; /* Premium spacing between bubbles */
  padding: 20px 0 100px 0; /* Add bottom padding for scroll space */
}

.story-chat-bubble {
  flex-shrink: 0;
  width: fit-content; /* Bubble size dynamically fits the text length */
  max-width: 75%; /* Max 75% column width */
  min-height: auto;
  max-height: 45vh; /* Max height limit */
  overflow-y: auto; /* Inner scrollbar */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 30px; /* Spacious but clean */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
  opacity: 0;
  transform: translateY(20px) scale(0.98); /* Fly up from bottom */
  animation: streamBubbleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background-color 0.6s var(--transition-fluid), border-color 0.6s var(--transition-fluid), transform 0.6s var(--transition-fluid), opacity 0.6s var(--transition-fluid);
}

/* Alternating Left-Right Bubbles */
.story-chat-bubble.bubble-left {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.75); /* Elegant glassmorphic white */
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px 24px 24px 4px; /* Tail on bottom-left */
}

.story-chat-bubble.bubble-right {
  align-self: flex-end;
  background: rgba(235, 234, 230, 0.75); /* Minimal darker soft-grey/off-white */
  border: 1px solid rgba(220, 220, 215, 0.5);
  border-radius: 24px 24px 4px 24px; /* Tail on bottom-right */
}

.story-chat-bubble.bubble-center {
  align-self: center;
}

/* Dark Theme Overrides */
.theme-obsidian .story-chat-bubble.bubble-left,
body.cinema-dimmed .story-chat-bubble.bubble-left {
  background: rgba(255, 255, 255, 0.08); /* Translucent glass-black */
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-obsidian .story-chat-bubble.bubble-right,
body.cinema-dimmed .story-chat-bubble.bubble-right {
  background: rgba(20, 20, 22, 0.75); /* Darker translucent charcoal/matte black */
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.story-chat-bubble:hover {
  border-color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.story-chat-bubble p {
  font-family: var(--font-geometric), sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--story-bubble-text); /* Deep Schwarz in light mode, pure white in dark mode */
  font-weight: 400;
  letter-spacing: 0.06em; /* Wide noble spacing */
  margin: 0;
  text-align: left; /* Left-align text inside bubbles */
}

/* Responsive Overrides (Smartphone vertical stack) */
@media (max-width: 768px) {
  .story-stream-container {
    max-width: 100%;
    padding: 0 20px;
    margin: 20px 0;
  }
  
  .story-stream-feed {
    gap: 16px;
    padding: 10px 0 60px 0;
  }

  .story-chat-bubble {
    padding: 16px 24px;
    max-width: 85%; /* Keeps a 15% gutter to make alternating rhythm visible */
  }

  .story-chat-bubble p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 360px) {
  .story-chat-bubble {
    padding: 12px 18px;
  }
  .story-chat-bubble p {
    font-size: 0.85rem;
  }
}

/* Typing bubble style */
.story-chat-bubble.typing-bubble {
  background: rgba(245, 242, 235, 0.2);
  border: 1px dashed var(--border-pure);
  box-shadow: none;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-obsidian .story-chat-bubble.typing-bubble,
[data-theme="obsidian"] .story-chat-bubble.typing-bubble,
.kino-section-active .story-chat-bubble.typing-bubble,
body.cinema-dimmed .story-chat-bubble.typing-bubble {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Three pulsing typing dots */
.typing-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: typingDotPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDotPulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes streamBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* Clickable Hero Header for STORY section */
.story-hero-clickable {
  cursor: pointer;
  transition: transform 0.6s var(--transition-fluid), opacity 0.6s var(--transition-fluid), margin-bottom 0.8s var(--transition-fluid);
}

.story-hero-clickable:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.story-hero-clickable .section-intro-text {
  transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, margin-top 0.6s ease;
  max-height: 100px;
  overflow: hidden;
}

/* When story stream feed is active: collapse subtext and reduce margin */
#story.feed-active .story-hero-clickable {
  margin-bottom: 20px;
}

#story.feed-active .story-hero-clickable .section-intro-text {
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
}

/* Entry-level flow animation for story container */
.story-stream-container {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-stream-container.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Styling Webkit Scrollbars globally for luxury minimalist aesthetic */
::-webkit-scrollbar {
  width: 3px !important;
  height: 3px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08) !important;
  border-radius: 99px !important;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25) !important;
}

/* Dark mode scrollbar support */
.theme-obsidian ::-webkit-scrollbar-thumb,
[data-theme="obsidian"] ::-webkit-scrollbar-thumb,
.kino-section-active ::-webkit-scrollbar-thumb,
body.theme-obsidian ::-webkit-scrollbar-thumb,
html.theme-obsidian ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08) !important;
}
.theme-obsidian ::-webkit-scrollbar-thumb:hover,
[data-theme="obsidian"] ::-webkit-scrollbar-thumb:hover,
.kino-section-active ::-webkit-scrollbar-thumb:hover,
body.theme-obsidian ::-webkit-scrollbar-thumb:hover,
html.theme-obsidian ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* Sharp Edged Image Bubble inside STORY stream */
.story-chat-bubble.story-image-bubble {
  align-self: center !important;
  padding: 0 !important; /* No padding around the image container for maximum frame edge symmetry */
  overflow: hidden;
  background: transparent !important;
  border: 1px solid var(--border-pure);
  box-shadow: var(--shadow-premium);
  max-width: 60%; /* Slightly smaller for images to breathe */
  cursor: zoom-in;
}

.story-chat-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-chat-image:hover {
  transform: scale(1.02);
}

/* High-End Lightbox Overlay */
.story-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95); /* Deep cinematic black backdrop */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-out;
}

.story-lightbox.active {
  opacity: 1;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0; /* Strict sharp corners */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.story-lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 36px;
  font-family: var(--font-sans), sans-serif;
  transition: opacity 0.3s ease;
  opacity: 0.6;
  z-index: 10001;
}

.lightbox-close:hover {
  opacity: 1;
}

/* 8. Theater Play Selector */
.theater-selector-container {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  z-index: 5;
}

.theater-select-dropdown {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 12px 24px;
  font-family: var(--font-geometric);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
}

.theater-select-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* 9. News Section Layout (Golden Ratio) */
.news-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.news-lang-block {
  animation: aboutMeFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 40px;
}

.news-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 30px;
  transition: all 0.3s ease;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.news-featured {
  border-left: 2px solid var(--text-primary);
}

.news-date {
  font-family: var(--font-geometric);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
  text-transform: lowercase;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.news-text {
  font-family: var(--font-geometric);
  font-size: 0.85rem;
  line-height: 1.618;
  color: var(--text-secondary);
  text-transform: lowercase;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .news-item {
    padding: 20px;
  }
}

/* ====================================================
   NEWS — EDITORIAL MAGAZINE LAYOUT
   ==================================================== */

/* News section top breathing room and solid background */
#news {
  background-color: var(--bg-primary);
}
#news .news-container {
  padding-top: 3.5rem;
  background-color: var(--bg-primary);
}

/* Outer article wrapper — constrains all content to magazine column */
.news-entry {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 5rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Meta line — date / category / location */
.news-entry .news-meta {
  font-family: var(--font-geometric), -apple-system, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: 1.8rem;
}

.book-chapter-title {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* ── Custom Modal (ALEX THE FALL) ─────────────── */
.alex-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
}

.alex-modal .modal-content {
  background: var(--bg-color, #050505);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.alex-modal h2 {
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #fff;
}

.alex-modal .subtitle {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

/* Grid for bundle */
.alex-modal .bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.alex-modal .bundle-tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  transition: background 0.3s ease;
}

.alex-modal .bundle-tile:hover {
  background: rgba(255,255,255,0.08);
}

.alex-modal .bundle-tile h3 {
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.alex-modal .bundle-tile p {
  font-size: 0.75rem;
  color: #bbb;
  line-height: 1.4;
}

.alex-modal .payment-info {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 15px;
}

.alex-modal .payment-info strong {
  color: #fff;
  letter-spacing: 0.05em;
}

.alex-modal .btn-wrap {
  display: flex;
  justify-content: center;
}

.alex-modal .btn-pay {
  background: #fff;
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

.alex-modal .btn-pay:hover {
  background: #ccc;
  transform: translateY(-2px);
}

/* Image container — this is the master size control */
.news-image-frame {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 2.8rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: block;
}

/* Image fills its frame perfectly */
.news-image-frame .news-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-image-frame .news-image:hover {
  filter: grayscale(0%);
}

/* Headline — serif, editorial weight */
.news-entry .news-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: normal;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.news-entry .news-headline em {
  font-style: italic;
}

/* Thin separator line */
.news-entry .news-divider {
  width: 32px;
  height: 1px;
  background: var(--border-subtle, rgba(255, 255, 255, 0.1));
  margin: 2.2rem 0;
}

/* Body text — clean reading typography */
.news-entry .news-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  #news .news-container {
    padding-top: 2rem;
  }
  .news-entry {
    padding: 0 20px 4.5rem; /* Konsistentes Spacing zwischen den Einträgen */
  }
  .news-image-frame {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: auto;
    aspect-ratio: 3 / 2; /* CLS-Schutz */
    margin-bottom: 2.5rem;
    border-radius: 0;
  }
  .news-image-frame .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .news-entry .news-headline {
    font-size: 1.35rem;
    line-height: 1.4;
    padding: 0 10px;
  }
  .news-entry .news-body {
    font-size: 1.1rem;
    line-height: 1.75;
    padding: 0 10px;
  }
  
  /* Radio Equalizer Fixes for Mobile */
  .radio-brutalist-eq {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    justify-content: center;
  }
  .radio-eq-bar {
    flex: 1;
    max-width: 16px;
  }
}

/* ==========================================================================
   ALEX FM - RADIO UI
   ========================================================================== */

.radio-alex-fm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  width: 100%;
  padding: 2rem;
}

.alex-fm-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary, #ffffff);
  margin: 0;
  line-height: 1.1;
}

.alex-fm-subtitle {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary, #888888);
  margin-top: 1rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.freq-bars-container {
  display: flex;
  gap: 4px;
  height: 60px;
  margin-bottom: 4rem;
}

.freq-block {
  width: 16px;
  height: 100%;
  border: 1px solid var(--text-primary, #ffffff);
  background: transparent;
  transition: all 0.3s ease;
}

/* Playing State for Frequency Blocks */
.freq-bars-container.playing .freq-block {
  border-color: transparent;
  animation: freqPulse 1.5s infinite alternate ease-in-out;
}

/* Gradient glow assignment to the 24 blocks */
.freq-bars-container.playing .freq-block:nth-child(n+1):nth-child(-n+6) {
  background: #00f0ff;
  box-shadow: 0 0 15px #00f0ff;
  animation-delay: calc(var(--rnd, 0) * 0.1s);
}
.freq-bars-container.playing .freq-block:nth-child(n+7):nth-child(-n+12) {
  background: #00ff66;
  box-shadow: 0 0 15px #00ff66;
  animation-delay: calc(var(--rnd, 0) * 0.2s);
}
.freq-bars-container.playing .freq-block:nth-child(n+13):nth-child(-n+18) {
  background: #ffcc00;
  box-shadow: 0 0 15px #ffcc00;
  animation-delay: calc(var(--rnd, 0) * 0.15s);
}
.freq-bars-container.playing .freq-block:nth-child(n+19):nth-child(-n+24) {
  background: #ff007f;
  box-shadow: 0 0 15px #ff007f;
  animation-delay: calc(var(--rnd, 0) * 0.25s);
}

@keyframes freqPulse {
  0% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0.5; transform: scaleY(0.85); }
}

/* Add pseudo-randomness via CSS */
.freq-block:nth-child(3n) { --rnd: 1; }
.freq-block:nth-child(3n+1) { --rnd: 3; }
.freq-block:nth-child(3n+2) { --rnd: 5; }
.freq-block:nth-child(4n) { --rnd: 2; }
.freq-block:nth-child(5n) { --rnd: 4; }

.monolith-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.radio-monolith-btn {
  width: 90px;
  height: 90px;
  border: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Paused State (White / Black Text) */
.radio-monolith-btn.state-paused {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Playing State (Intense Blue / White Text) */
.radio-monolith-btn.state-playing {
  background-color: #0044ff;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 68, 255, 0.6);
}

.radio-monolith-btn:hover {
  transform: scale(1.05);
}

/* ============================================================
   ALEX THEATER KANYE-STYLE BRUTALISM
   ============================================================ */
.alex-kanye-style {
  background-color: #ffffff !important;
  color: #000000 !important;
  width: 100%;
  padding: 80px 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.alex-theater-play {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.alex-title-section {
  text-align: center;
  margin-bottom: 100px;
}

.alex-main-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.alex-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.alex-intro {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  color: #333;
}

.alex-act-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin: 120px 0 80px 0;
  letter-spacing: -1px;
  text-transform: uppercase;
  border-bottom: 4px solid #000;
  padding-bottom: 20px;
}

.alex-scene {
  margin-bottom: 80px;
}

.alex-scene-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alex-direction {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  font-style: italic;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 2px solid #ccc;
}

.alex-dialogue-block {
  margin-bottom: 25px;
}

.alex-speaker {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.alex-text {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.alex-projection {
  background-color: #000;
  color: #fff;
  padding: 60px 40px;
  text-align: center;
  margin: 100px 0;
}

.alex-projection .alex-text {
  font-weight: 300;
  font-size: 1.4rem;
}

.alex-notes {
  background-color: #f4f4f4;
  padding: 40px;
  border: 1px solid #ddd;
}

.alex-notes ul {
  list-style-type: square;
  padding-left: 20px;
}

.alex-notes li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

/* Ensure the modal overrides its obsidian theme when viewing ALEX */
.cinematic-story-modal:has(.alex-kanye-style[style*="display: block"]) {
  background-color: #ffffff !important;
}

.cinematic-story-modal:has(.alex-kanye-style[style*="display: block"]) .modal-close-btn {
  color: #000000 !important;
  border-color: #000000 !important;
}

.cinematic-story-modal:has(.alex-kanye-style[style*="display: block"]) .modal-close-btn:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}



/* --- ICONCULT TikTok-Style Feed --- */
#iconcult {
  width: 100%;
  padding: 0; /* Reset .app-section padding for full screen */
  height: 100vh; /* Fallback for older browsers */
  height: calc(var(--vh, 1vh) * 100); /* Dynamic viewport height exact match */
  position: relative;
  background: #000;
}

.iconcult-slide {
  height: 100vh; /* Fallback */
  height: calc(var(--vh, 1vh) * 100); /* Dynamic viewport height exact match */
  width: 100%;
  position: relative;
  overflow: hidden !important;
  clip-path: inset(0 0 0 0); /* Verhindert jegliches visuelle Übertreten der Grenzen */
  background: #000;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.iconcult-slide.is-visible {
  opacity: 1;
}

.iconcult-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Deep Bottom Gradient */
.iconcult-slide::after {
  content: "";
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0) 60%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 5;
  pointer-events: none;
}

.iconcult-waveform {
  position: absolute;
  bottom: 18%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  z-index: 10;
  pointer-events: none;
}

.waveform-bar {
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  transition: height 0.3s ease;
}

.iconcult-slide.is-playing .waveform-bar {
  animation: waveformPulse 0.5s ease-in-out infinite alternate;
}

@keyframes waveformPulse {
  0% { height: 2px; }
  100% { height: 25px; }
}

.iconcult-title-row {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.iconcult-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
  margin: 0;
  width: 100%;
  white-space: normal;
  text-align: center;
}

.slide-actions {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px; /* Angepasst an die 38px Symbolgröße */
  z-index: 10;
}

.slide-actions svg {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}

.iconcult-crown,
.iconcult-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px; /* Reduced touch target padding due to fixed size */
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

.iconcult-crown:hover,
.iconcult-crown:active,
.iconcult-heart:hover,
.iconcult-heart:active,
.iconcult-heart.active {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}
.iconcult-heart.active svg {
  fill: white;
}

.iconcult-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  max-height: 400px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.iconcult-bottom-sheet.active {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 15px auto;
  cursor: pointer;
}

.sheet-content {
  width: 100%;
  padding: 20px;
  color: white;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.sheet-content h3 {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
#iconcult.active {
  display: block !important;
  padding: 0 !important;
  border: none !important;
}

/* 2033 PLATFORM DESIGN UPGRADE: Desktop 9:16 Portrait Column */
@media (min-width: 1024px) {
  #iconcult {
    max-width: 560px;
    width: 100%;
    height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.08) !important;
    transition: box-shadow 0.5s ease;
    overflow: hidden;
    overflow-y: scroll;
  }
  
  .iconcult-slide {
    height: calc(100vh - 40px);
  }
  
  #iconcult.is-playing {
    animation: iconcult-aura-pulse 3s infinite ease-in-out;
  }
}

.iconcult-play-btn {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0.85;
  cursor: pointer;
  z-index: 15;
  transition: opacity 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  padding: 0;
}

.iconcult-play-btn:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) scale(1.05);
}

@keyframes iconcult-aura-pulse {
  0% { box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.04) !important; }
  50% { box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.1) !important; }
  100% { box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.04) !important; }
}

/* ICONCULT Landscape Fix */
@media (max-height: 500px) {
  .slide-actions {
    flex-direction: row;
    gap: 15px;
    top: auto;
    bottom: 20px;
    right: 20px;
    transform: none;
  }
  
  .iconcult-play-btn {
    bottom: 50%;
    transform: translate(-50%, 50%);
    width: 60px;
    height: 60px;
  }
}

/* ICONCULT Light Switch Effect */
body {
  transition: background 0.6s ease, background-color 0.6s ease;
}

body.dark-mode-iconcult {
  background: #000 !important;
}

body.dark-mode-iconcult .main-header {
  background: transparent !important;
  border-bottom: none !important;
  transition: background 0.6s ease, border-color 0.6s ease;
}

/* Header Image Logo Styling */
.header-iconcult-img {
  height: 20px;
  width: auto;
  display: block;
  margin: 0 auto;
  transition: filter 0.6s ease;
  filter: invert(0);
}

body.dark-mode-iconcult .header-iconcult-img {
  /* Inverts the black logo to white for dark mode */
  filter: invert(1);
}

/* Sidebar Dark Mode (Licht aus) */
body.dark-mode-iconcult .chapters-drawer {
  background: #000000 !important;
  transition: background 0.6s ease;
}

body.dark-mode-iconcult .drawer-link,
body.dark-mode-iconcult .drawer-title {
  color: #FFFFFF !important;
  transition: color 0.6s ease;
}

body.dark-mode-iconcult .drawer-toggle-btn-header {
  color: #CCCCCC !important;
  transition: color 0.6s ease;
}

/* MOBILE HEADER OPTIMIZATION */
@media (max-width: 768px) {
  .brand-iconcult {
    font-size: 1.6rem !important;
    letter-spacing: 0.25em !important;
  }
}

/* ===== ICONCULT INTRO SPLASH ===== */
#icc-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .7s ease;
}

#icc-splash.icc-out {
    opacity: 0;
    pointer-events: none;
}

/* Gemeinsame Bühne */
.icc-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop: Hellerer zentrierter Kreis auf dunklem Grund */
#icc-splash.icc-desktop .icc-stage {
    background-image: radial-gradient(60% 42% at 50% 50%, rgba(40,36,30,.50) 0%, rgba(0,0,0,0) 70%);
}

/* Mobil: Komplett schwarzer Hintergrund (OHNE Kreis) */
#icc-splash.icc-mobile .icc-stage {
    background-image: none;
    background-color: transparent;
}

.icc-logo {
    width: min(46vw, 520px);
    height: auto;
    display: block;
}

/* ===== MOBILE LANDSCAPE OPTIMIZATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .iconcult-slide {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr auto auto auto 1fr;
    align-items: center;
    justify-content: center;
    padding: 60px 5% 10px 5%; /* Leave space for top header */
    box-sizing: border-box;
  }

  .iconcult-slide::after {
    display: none; /* Hide dark gradient overlay */
  }

  .iconcult-bg {
    position: relative;
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    max-width: 45vh;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  }

  .iconcult-waveform {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    bottom: auto;
    left: auto;
    height: 25px;
    margin-bottom: 5px;
  }

  .iconcult-title-row {
    position: relative;
    grid-column: 2;
    grid-row: 3;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 0 10px;
    margin: 10px 0 20px 0;
  }
  
  .iconcult-title {
    font-size: clamp(1rem, 4vh, 1.6rem);
  }

  .iconcult-play-btn {
    position: relative;
    grid-column: 2;
    grid-row: 4;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    width: 60px;
    height: 60px;
  }
  
  .iconcult-play-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
}
