:root {
  --red:           #DC0404;
  --red-soft:      rgba(220, 4, 4, 0.55);
  --cyan:          #3FEAFF;
  --cyan-soft:     rgba(63, 234, 255, 0.55);
  --dark:          #101A2D;
  --dark-2:        #1a2640;
  --dark-3:        #243454;
  --paper:         #f5f7fa;
  --paper-dim:     rgba(245, 247, 250, 0.65);
  --paper-faint:   rgba(245, 247, 250, 0.32);
  --glass:         rgba(16, 26, 45, 0.62);
  --glass-strong:  rgba(16, 26, 45, 0.82);
  --hair:          rgba(245, 247, 250, 0.12);
  --hair-strong:   rgba(245, 247, 250, 0.24);
  --radius:        10px;
  --radius-sm:     6px;
  --subtitle-top: 20px;
  --subtitle-speaker-size: 10px;
  --subtitle-text-size: clamp(16px, 1.8vw, 22px);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  width: 100%; min-height: 100%;
  background: var(--dark);
  color: var(--paper);
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ====== View toggling ================================================ */
body.view-landing {
  height: auto;
}
body.view-player {
  height: 100%;
  overflow: hidden;
  touch-action: none;
}
body.view-landing #player { display: none; }
body.view-player #landing { display: none; }

/* ====== LANDING PAGE ================================================= */
#landing {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 66px 32px 80px;
  isolation: isolate;
}
#landing > *:not(.landing-hero-bg) {
  position: relative;
  z-index: 1;
}
.landing-hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: var(--app-vw, 100vw);
  height: min(680px, 76vh);
  min-height: 520px;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  background: #101A2D url("/assets/video-hero.jpg") top center / cover no-repeat;
}
.landing-hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.landing-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(16, 26, 45, 0.6) 0%,
      rgba(16, 26, 45, 0.68) 20%,
      rgba(16, 26, 45, 0.9) 48%,
      rgba(16, 26, 45, 0.96) 74%,
      #101A2D 100%);
}
.landing-head {
  text-align: center;
  margin-bottom: 48px;
}
.landing-logo {
  width: min(900px, 85vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 48px rgba(220, 4, 4, 0.35));
}
.landing-intro {
  max-width: 820px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.52;
  text-wrap: pretty;
}
.podcast-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px auto 0;
}
.podcast-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(245, 247, 250, 0.58);
  font-size: 23px;
  text-decoration: none;
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.podcast-link:hover {
  transform: translateY(-2px);
  color: var(--paper);
}
.podcast-link:focus-visible {
  outline: 1px solid rgba(245, 247, 250, 0.38);
  outline-offset: 6px;
}
.landing-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 36px;
}
.landing-filters .filter-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.filter-search {
  position: relative;
  display: flex;
  align-items: center;
}
.filter-search svg {
  position: absolute;
  left: 16px;
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--paper-faint);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.filter-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--dark-2);
  border: 1px solid var(--hair);
  border-radius: 99px;
  color: var(--paper);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.filter-search input:focus {
  border-color: var(--cyan);
  background: var(--dark-3);
}
.filter-search input::placeholder { color: var(--paper-faint); }
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  padding: 7px;
  background: rgba(26, 38, 64, 0.98);
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}
.search-suggestions[hidden] {
  display: none;
}
.search-suggestions button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  outline: none;
  background: var(--dark-3);
  color: var(--cyan);
}
.landing-filters select {
  width: 100%;
  padding: 12px 38px 12px 16px;
  background: var(--dark-2);
  border: 1px solid var(--hair);
  border-radius: 99px;
  color: var(--paper);
  font-family: inherit;
  font-size: 14px;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8aa3' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.landing-filters select:focus {
  outline: none;
  border-color: var(--cyan);
}

/* ====== PLAYER base ================================================== */
#player { position: fixed; inset: 0; }
#stage {
  --pano-line-opacity: 0.24;
  --pano-vignette-color: 0, 0, 0;
  --pano-vignette-opacity: 1;
  position: fixed; inset: 0;
  cursor: grab;
}
#stage.dragging { cursor: grabbing; }
canvas { display: block; }

#marzipano-stage {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--dark);
}
#stage canvas {
  position: absolute; inset: 0;
  z-index: 3;
  mix-blend-mode: normal;
}
#stage::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 6;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--pano-line-opacity)) 0,
    rgba(0, 0, 0, var(--pano-line-opacity)) 1px,
    transparent 1px,
    transparent 3px
  );
  background-size: 1px 3px;
  background-repeat: repeat;
}
#stage::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(var(--pano-vignette-color), var(--pano-vignette-opacity)) 0%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.34)) 7%,
      rgba(var(--pano-vignette-color), 0) 18%,
      rgba(var(--pano-vignette-color), 0) 82%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.34)) 93%,
      rgba(var(--pano-vignette-color), var(--pano-vignette-opacity)) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.18)) 0%,
      rgba(var(--pano-vignette-color), 0) 13%,
      rgba(var(--pano-vignette-color), 0) 87%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.18)) 100%
    ),
    radial-gradient(
      ellipse at 0% 0%,
      rgba(var(--pano-vignette-color), var(--pano-vignette-opacity)) 0%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.78)) 12%,
      rgba(var(--pano-vignette-color), 0) 36%
    ),
    radial-gradient(
      ellipse at 100% 0%,
      rgba(var(--pano-vignette-color), var(--pano-vignette-opacity)) 0%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.78)) 12%,
      rgba(var(--pano-vignette-color), 0) 36%
    ),
    radial-gradient(
      ellipse at 0% 100%,
      rgba(var(--pano-vignette-color), var(--pano-vignette-opacity)) 0%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.78)) 12%,
      rgba(var(--pano-vignette-color), 0) 36%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(var(--pano-vignette-color), var(--pano-vignette-opacity)) 0%,
      rgba(var(--pano-vignette-color), calc(var(--pano-vignette-opacity) * 0.78)) 12%,
      rgba(var(--pano-vignette-color), 0) 36%
    );
}

/* ====== Loading / transition veil ===================================== */
#veil {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, var(--dark-2) 0%, var(--dark) 70%);
  display: grid; place-items: center;
  z-index: 50;
  transition: opacity 0.7s ease;
}
#veil.hidden { opacity: 0; pointer-events: none; }

.veil-inner {
  display: flex; flex-direction: column; align-items: center; gap: 60px;
}
.veil-logo {
  width: min(280px, 60vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 36px rgba(220, 4, 4, 0.45));
}
/* Small pulsing row of glowballs — wave of size/intensity travels through. */
.veil-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
}
.veil-pulse .orb {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%,
              #ffffff 0%,
              #ff7070 28%,
              #DC0404 60%,
              rgba(220, 4, 4, 0) 85%);
  box-shadow: 0 0 8px rgba(220, 4, 4, 0.9),
              0 0 20px rgba(220, 4, 4, 0.4);
  transform: scale(0.25);
  opacity: 0.2;
  animation: orb-wave 2.4s cubic-bezier(.5,.05,.5,.95) infinite;
}
.veil-pulse .orb:nth-child(1)  { animation-delay: 0s;    }
.veil-pulse .orb:nth-child(2)  { animation-delay: 0.16s; }
.veil-pulse .orb:nth-child(3)  { animation-delay: 0.32s; }
.veil-pulse .orb:nth-child(4)  { animation-delay: 0.48s; }
.veil-pulse .orb:nth-child(5)  { animation-delay: 0.64s; }
.veil-pulse .orb:nth-child(6)  { animation-delay: 0.80s; }
.veil-pulse .orb:nth-child(7)  { animation-delay: 0.96s; }
.veil-pulse .orb:nth-child(8)  { animation-delay: 1.12s; }
.veil-pulse .orb:nth-child(9)  { animation-delay: 1.28s; }
.veil-pulse .orb:nth-child(10) { animation-delay: 1.44s; }
@keyframes orb-wave {
  0%, 100% { transform: scale(0.25); opacity: 0.15; box-shadow: 0 0 4px rgba(220, 4, 4, 0.4); }
  45%      { transform: scale(1.7);  opacity: 1;    box-shadow: 0 0 16px rgba(220, 4, 4, 1), 0 0 32px rgba(220, 4, 4, 0.5); }
  60%      { transform: scale(1.3);  opacity: 0.85; }
}
.veil-cta {
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-dim);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.veil-cta::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: veil-pulse 1.1s ease-in-out infinite;
}
@keyframes veil-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ====== Brand / logo (top-left) ====================================== */
.brand {
  position: fixed;
  top: 20px; left: 20px;
  display: flex; align-items: center;
  z-index: 25;
  text-decoration: none;
  color: var(--paper);
}
.brand img {
  height: 72px; width: auto; display: block;
  filter: drop-shadow(0 0 12px rgba(220, 4, 4, 0.18));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.brand:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(220, 4, 4, 0.35));
}

/* ====== TOP-RIGHT — controls ========================================= */
#controls {
  position: fixed;
  top: 20px; right: 20px;
  display: flex; gap: 8px;
  z-index: 25;
}
.iconbtn {
  width: 38px; height: 38px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: none;
  border-radius: 50%;
  color: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.iconbtn:hover { background: var(--glass-strong); color: var(--cyan); }
.iconbtn svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.iconbtn polygon { fill: currentColor; stroke: none; }
.iconbtn circle { fill: currentColor; stroke: none; }
#mute-toggle .i-mute     { display: none; }
#mute-toggle[aria-pressed="true"] .i-sound { display: none; }
#mute-toggle[aria-pressed="true"] .i-mute  { display: block; }
#hide-toggle .i-layout { display: none; }
#hide-toggle[aria-pressed="true"] .i-focus  { display: none; }
#hide-toggle[aria-pressed="true"] .i-layout { display: block; }
#visualizer-toggle .i-viz-off { display: none; }
#visualizer-toggle circle { fill: none; stroke: currentColor; }
#visualizer-toggle .dot { fill: currentColor; stroke: none; }
#visualizer-toggle[aria-pressed="true"] { color: var(--cyan); }
#visualizer-toggle[aria-pressed="false"] .i-viz-on { display: none; }
#visualizer-toggle[aria-pressed="false"] .i-viz-off { display: block; }
#subtitle-toggle[aria-pressed="true"] {
  color: var(--cyan);
}
.subtitle-size-menu {
  position: absolute;
  top: 46px;
  right: 46px;
  z-index: 26;
  display: grid;
  gap: 6px;
  padding: 6px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.subtitle-size-row {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 4px;
}
.subtitle-size-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subtitle-size-row button {
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--paper-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.subtitle-size-row button:hover,
.subtitle-size-row button.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan);
}
.subtitle-ticker-toggle {
  width: 100%;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--paper-dim);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.subtitle-ticker-toggle:hover,
.subtitle-ticker-toggle[aria-pressed="true"] {
  background: rgba(63, 234, 255, 0.13);
  color: var(--cyan);
}

/* When hide-toggle is active, hide everything except the toggle itself. */
body.minimal .brand,
body.minimal #progress-bar,
body.minimal #description-overlay,
body.minimal #subtitle-overlay,
body.minimal #subtitle-size-menu,
body.minimal #wave-popup,
body.minimal #controls > .iconbtn:not(#hide-toggle) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ====== Visualizer mode popup ======================================== */
.popup {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 30;
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.popup-title {
  padding: 4px 16px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
  border-bottom: 1px solid var(--hair);
  margin-bottom: 4px;
}
.popup-opt {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  color: var(--paper);
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.popup-opt:hover { background: var(--dark-3); color: var(--cyan); }
.popup-opt.active { color: var(--cyan); font-weight: 600; }
.popup-opt.active::before {
  content: "●";
  display: inline-block;
  margin-right: 8px;
  color: var(--cyan);
}
.popup-opt:not(.active)::before {
  content: "○";
  display: inline-block;
  margin-right: 8px;
  color: var(--paper-faint);
}

/* ====== CENTERED — description overlay =============================== */
#description-overlay {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  max-width: 560px;
  width: 80vw;
  max-height: calc(100vh - 140px);
  overflow: auto;
  text-align: center;
  padding: 26px 34px 30px;
  background: transparent;
  border: none;
  border-radius: 18px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}
#description-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.description-cover {
  width: 250px;
  height: 250px;
  margin: 0 auto 22px;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}
.description-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.description-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 10px;
  color: rgba(245, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.description-meta-sep {
  width: 3px;
  height: 3px;
  background: rgba(245, 247, 250, 0.38);
  border-radius: 50%;
}
#description-overlay h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}
#description-overlay p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-dim);
  font-weight: 400;
}
.description-theme-tags {
  max-width: 100%;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.description-theme-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(36, 52, 84, 0.54);
  border: 1px solid rgba(245, 247, 250, 0.09);
  color: rgba(245, 247, 250, 0.58);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.description-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.description-action {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 250, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.description-action.primary {
  background: var(--red);
  color: #fff;
  border-color: transparent;
}
.description-action.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}
.description-action:hover {
  filter: brightness(1.08);
}

#subtitle-overlay {
  position: fixed;
  left: 50%;
  top: var(--subtitle-top);
  z-index: 24;
  width: min(760px, calc(100vw - 48px));
  transform: translateX(-50%) translateY(10px);
  padding: 0 18px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
#subtitle-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
body.subtitle-size-s {
  --subtitle-speaker-size: 9px;
  --subtitle-text-size: clamp(14px, 1.35vw, 18px);
}
body.subtitle-size-m {
  --subtitle-speaker-size: 10px;
  --subtitle-text-size: clamp(16px, 1.8vw, 22px);
}
body.subtitle-size-l {
  --subtitle-speaker-size: 11px;
  --subtitle-text-size: clamp(19px, 2.25vw, 28px);
}
.subtitle-card {
  display: inline-block;
  max-width: min(680px, 100%);
  padding: 10px 16px 12px;
  background: rgba(10, 16, 29, 0.58);
  border: none;
  border-radius: 12px;
  color: var(--paper);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.26);
}
.subtitle-speaker {
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: var(--subtitle-speaker-size);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.subtitle-text {
  font-size: var(--subtitle-text-size);
  line-height: 1.42;
  font-weight: 650;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.54);
}
/* ====== TOOLTIP ====================================================== */
#tooltip {
  position: fixed;
  z-index: 40;
  transform: translate(14px, -50%);
  padding: 6px 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}
#tooltip.show { opacity: 1; }

/* ====== Transition (video → iris) ==================================== */
#transition-video {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease;
}
#transition-video.active {
  visibility: visible;
  opacity: 1;
}
#transition-video.ending {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.65, 0, .3, 1);
}
#transition-skip {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 62;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(245, 247, 250, 0.48);
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, color 0.18s ease, visibility 0.18s ease;
}
#transition-skip.active {
  opacity: 0.74;
  visibility: visible;
  pointer-events: auto;
}
#transition-skip:hover {
  color: rgba(245, 247, 250, 0.82);
}

/* Phase 3 — iris: solid black element, masked by a radial gradient. The mask
   transparent-zone grows from the center outward, "punching a hole" in the
   black to reveal the new world. opacity:0 in the base state ensures NO
   vignette lingers after the transition. */
@property --iris-r {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}
#transition-iris {
  position: fixed; inset: 0;
  z-index: 59;
  pointer-events: none;
  background: #000;
  --iris-r: 0%;
  /* Mask: transparent up to iris-r (= element hidden, hole), then a soft
     feathered edge transitioning to fully opaque (= black visible). */
  -webkit-mask: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,0)    var(--iris-r),
    rgba(0,0,0,0.45) calc(var(--iris-r) + 12%),
    rgba(0,0,0,0.85) calc(var(--iris-r) + 22%),
    rgba(0,0,0,1)    calc(var(--iris-r) + 32%));
          mask: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,0)    var(--iris-r),
    rgba(0,0,0,0.45) calc(var(--iris-r) + 12%),
    rgba(0,0,0,0.85) calc(var(--iris-r) + 22%),
    rgba(0,0,0,1)    calc(var(--iris-r) + 32%));
  opacity: 0;
  transition: --iris-r 1.4s cubic-bezier(.65, 0, .3, 1);
}
#transition-iris.cover {
  opacity: 1;
  /* Push the transparent zone behind the viewport so center is fully black. */
  --iris-r: -34%;
  transition: none;
}
#transition-iris.reveal {
  opacity: 1;
  /* Push the transparent zone past the viewport so element is fully hidden. */
  --iris-r: 140%;
}

/* Stage canvas blur — strong while iris is covering, unwinds as iris shrinks. */
body.iris-active #stage canvas {
  animation: stage-unblur 1.4s cubic-bezier(.65, 0, .3, 1) forwards;
}
@keyframes stage-unblur {
  from { filter: blur(22px); }
  to   { filter: blur(0px); }
}

/* ====== BOTTOM — progress bar ======================================== */
#progress-bar {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px 11px 12px;
  width: min(760px, calc(100vw - 48px));
  min-height: 68px;
  background: rgba(16, 26, 45, 0.34);
  border: none;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
}
#progress-bar #play-toggle {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: #DC0404;
  border: none;
  border-radius: 50%;
  color: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.18s, transform 0.12s, background 0.18s;
}
#progress-bar #play-toggle:hover {
  color: var(--paper);
  transform: scale(1.04);
  background: #DC0404;
}
#progress-bar #play-toggle:active { transform: scale(0.96); }
#progress-bar #play-toggle svg {
  width: 17px; height: 17px;
  fill: currentColor;
  stroke: none;
}
#progress-bar #play-toggle .i-pause { display: none; }
#progress-bar #play-toggle[aria-pressed="true"] .i-play  { display: none; }
#progress-bar #play-toggle[aria-pressed="true"] .i-pause { display: block; }
#progress-bar .bar {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 6px 9px;
  background: transparent;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  touch-action: none;
}
#progress-bar .bar:hover {
  background: transparent;
}
#progress-bar .bar:focus-visible {
  outline: none;
}
#progress-bar .waveform-bars {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 2px;
  align-items: center;
  overflow: hidden;
}
#progress-bar .wave-bar {
  display: block;
  flex: 0 0 3px;
  width: 3px;
  max-width: 3px;
  height: var(--h, 16px);
  border-radius: 0;
  background: #ffffff;
  opacity: 0.34;
  transform: scaleY(calc(1 + var(--live, 0)));
  transform-origin: center;
  transition: opacity 0.18s ease;
}
#progress-bar .wave-bar.played {
  background: #ffffff;
  opacity: 0.92;
  box-shadow: none;
}
#progress-bar .playhead {
  display: none;
}
#progress-bar .bar.seeking .playhead {
  transition: none;
}
#progress-bar .time {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(245, 247, 250, 0.76);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 92px;
  text-align: right;
  text-shadow: none;
}

/* ====== Cards (shared between landing-grid and menu-grid) ============ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.menu-card {
  background: var(--dark-2);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: center;
  color: var(--paper);
  font-family: inherit;
  display: flex;
  flex-direction: column;
}
.menu-card .cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--dark);
  overflow: hidden;
  position: relative;
}
.menu-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.menu-card .cover.empty {
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
}
.menu-card .cover.empty::after {
  content: "Kein Cover";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--paper-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-card .meta {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.menu-card .badges {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.menu-card .badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.menu-card .badge.genre {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(220, 4, 4, 0.35);
}
.menu-card .badge.series {
  background: rgba(63, 234, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(63, 234, 255, 0.28);
}
.menu-card .badge.runtime {
  background: var(--dark-3);
  color: var(--paper);
  border: 1px solid var(--hair-strong);
}
.menu-card .badge.placeholder {
  visibility: hidden;
}
.menu-card .title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.menu-card .desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--paper-dim);
  line-height: 1.5;
  margin: 0;
}
.menu-card .card-actions {
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
  display: grid;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
}
.menu-card .card-actions.dual {
  grid-template-columns: 1fr 1fr;
}
.menu-card .card-actions.single {
  max-width: 210px;
  background: var(--red);
}
.menu-card .listen-btn,
.menu-card .article-btn {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.menu-card .listen-btn {
  background: var(--red);
  color: #fff;
}
.menu-card .card-actions.dual .listen-btn {
  border-right: 1px solid rgba(245, 247, 250, 0.22);
}
.menu-card .listen-btn:hover {
  background: #9f0505;
  color: #fff;
}
.menu-card .article-btn:hover {
  background: var(--dark);
  color: #fff;
}
.menu-card .theme-tags {
  max-width: 100%;
  margin-top: -1px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.menu-card .theme-tags span,
.menu-card .theme-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(36, 52, 84, 0.54);
  border: 1px solid rgba(245, 247, 250, 0.08);
  color: rgba(245, 247, 250, 0.54);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-empty {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  color: var(--paper-dim);
  font-style: italic;
  font-size: 15px;
  border: 1px dashed var(--hair);
  border-radius: var(--radius);
}
.landing-faq {
  width: 100%;
  margin: 88px 0 82px;
  padding-top: 0;
}
.landing-faq-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}
.landing-faq-head span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.landing-faq h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}
.faq-list {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: rgba(26, 38, 64, 0.72);
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
}
.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.68;
}
.public-footer {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--paper-faint);
  font-size: 13px;
}
.public-footer-logo {
  width: 118px;
  height: auto;
  display: block;
  opacity: 0.74;
}
.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}
.public-footer a {
  color: var(--paper-dim);
  text-decoration: none;
}
.public-footer a:hover {
  color: var(--paper);
}

/* ====== COVERFLOW CAROUSEL (in-player) =============================== */
#carousel {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#carousel.open {
  opacity: 1;
  visibility: visible;
}
.carousel-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(16, 26, 45, 0.72) 46%, rgba(0, 0, 0, 0.94)),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  pointer-events: auto;
}
.carousel-bg::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 3px);
  opacity: 0.22;
}
.carousel-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.64));
}
.carousel-logo {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 4;
  width: min(360px, 42vw);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.88;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}
.carousel-end-credits {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(760px, calc(100vw - 48px));
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#carousel.open.end-credits .carousel-end-credits {
  opacity: 1;
  transform: translate(-50%, -50%);
}
#carousel.end-credits .carousel-logo {
  top: 50%;
  width: min(945px, 79vw);
  opacity: 0.86;
  transform: translate(-50%, calc(-50% - 260px));
}
#carousel.end-credits .carousel-track {
  top: 50%;
  height: 420px;
  transform: translate(-50%, calc(-50% + 160px));
}
#carousel.end-credits .carousel-cover {
  width: 214px;
  height: 214px;
  margin-left: -107px;
  margin-top: -112px;
}
#carousel.end-credits .carousel-reflection {
  top: calc(100% + 14px);
  height: 58%;
  opacity: 0.34;
}
#carousel.end-credits .carousel-label {
  top: calc(50% + 302px);
}
#carousel.end-credits .carousel-label-title {
  font-size: 21px;
}
#carousel.end-credits .carousel-hint {
  bottom: 22px;
}
.carousel-track {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 520px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.carousel-track.dragging { cursor: grabbing; }
.carousel-cover {
  position: absolute;
  left: 50%; top: 50%;
  width: 292px; height: 292px;
  margin-left: -146px;
  margin-top: -156px;
  border-radius: 0;
  overflow: visible;
  background: #000;
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition: transform 0.08s linear, opacity 0.18s ease, filter 0.18s ease;
  pointer-events: auto;
  transform-style: preserve-3d;
  filter: brightness(0.55) saturate(0.78);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.56);
}
.carousel-cover.no-anim { transition: none; }
.carousel-cover .carousel-art {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 0;
  transform: translateZ(0);
}
.carousel-reflection {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 22px);
  height: 76%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.46;
  transform: translateZ(-1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.28) 48%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.28) 48%, rgba(0,0,0,0));
}
.carousel-reflection img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleY(-1);
  transform-origin: center;
  filter: blur(0.6px) brightness(0.72) saturate(0.8);
}
.carousel-cover.empty {
  background: #101A2D;
  display: grid; place-items: center;
  color: var(--paper-faint);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.carousel-cover.empty::after { content: "Kein Cover"; }
.carousel-cover.focus {
  outline: none;
  filter: brightness(1.06) saturate(1.04);
  box-shadow: 0 46px 105px rgba(0, 0, 0, 0.7), 0 0 42px rgba(63, 234, 255, 0.1);
}
.carousel-label {
  position: absolute;
  top: calc(50% + 205px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--paper);
  pointer-events: none;
  width: 80vw;
  max-width: 640px;
}
.carousel-label-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  min-height: 30px;
}
.carousel-label-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.carousel-label-meta .sep { margin: 0 10px; opacity: 0.4; }
.carousel-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
  pointer-events: none;
}
#carousel-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 5;
}

/* ====== Responsive tweaks ============================================ */
@media (max-width: 720px) {
  .brand img { height: 56px; }
  #description-overlay { width: 90vw; padding: 22px 24px; }
  .description-cover { width: 200px; height: 200px; margin-bottom: 18px; }
  #description-overlay h2 { font-size: 22px; }
  #description-overlay p { font-size: 14px; }
  #progress-bar { bottom: 14px; width: calc(100vw - 24px); min-height: 62px; padding: 9px 10px; gap: 10px; border-radius: 16px; }
  #progress-bar #play-toggle { width: 38px; height: 38px; }
  #progress-bar .bar { height: 32px; padding: 6px 7px; }
  #progress-bar .waveform-bars { gap: 2px; justify-content: flex-start; }
  #progress-bar .wave-bar { flex-basis: 2px; width: 2px; max-width: 2px; }
  #progress-bar .time { min-width: 66px; font-size: 10px; }
  .menu-grid { grid-template-columns: 1fr; }
  #landing { padding: 36px 18px 60px; }
  .landing-hero-bg { height: 560px; min-height: 460px; }
  .landing-head { margin-bottom: 34px; }
  .landing-intro { margin-top: 20px; font-size: 15px; line-height: 1.48; }
  .podcast-links { margin-top: 22px; gap: 15px; }
  .podcast-link { width: 30px; height: 30px; font-size: 21px; }
  .public-footer { flex-direction: column; align-items: flex-start; }
  .public-footer nav { justify-content: flex-start; }
  .carousel-track { height: 430px; }
  .carousel-cover { width: 210px; height: 210px; margin-left: -105px; margin-top: -120px; }
  .carousel-reflection { top: calc(100% + 16px); height: 68%; opacity: 0.4; }
  .carousel-logo { top: 26px; width: min(260px, 62vw); }
  .carousel-label { top: calc(50% + 155px); width: calc(100vw - 36px); }
  .carousel-label-title { font-size: 21px; }
  .carousel-label-meta { font-size: 10px; }
  .carousel-end-credits { top: 50%; width: calc(100vw - 28px); }
  #carousel.end-credits .carousel-logo {
    top: 50%;
    width: min(648px, 85vw);
    transform: translate(-50%, calc(-50% - 196px));
  }
  #carousel.end-credits .carousel-track {
    top: 50%;
    height: 330px;
    transform: translate(-50%, calc(-50% + 118px));
  }
  #carousel.end-credits .carousel-cover { width: 150px; height: 150px; margin-left: -75px; margin-top: -86px; }
  #carousel.end-credits .carousel-reflection { top: calc(100% + 10px); height: 48%; }
  #carousel.end-credits .carousel-label { top: calc(50% + 224px); }
  #carousel.end-credits .carousel-label-title { font-size: 18px; min-height: 24px; }
  #carousel.end-credits .carousel-label-meta { font-size: 9px; }
}

