:root {
  color-scheme: dark;
  --ink: #eef3ff;
  --muted: #a8b3cd;
  --accent: #6ad3ff;
  --accent-warm: #ffd36f;
  --panel: rgba(18, 22, 42, 0.68);
  --panel-border: rgba(255, 255, 255, 0.12);
  --night-a: #070b22;
  --night-b: #11152f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  margin: 0;
  background: var(--night-a);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(71, 84, 138, 0.24), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(141, 56, 88, 0.16), transparent 34%),
    linear-gradient(135deg, var(--night-a), var(--night-b) 58%, #07091a);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.podcast-page {
  min-height: 100vh;
}

.podcast-hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(280px, 420px) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 62px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 64px);
  isolation: isolate;
}

.podcast-hero::after {
  position: absolute;
  right: -10vw;
  bottom: -22vh;
  z-index: -1;
  width: min(68vw, 820px);
  height: min(68vw, 820px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 211, 255, 0.18), transparent 62%);
  content: "";
}

.hero-copy {
  z-index: 3;
  max-width: 430px;
  text-shadow: 0 3px 22px rgba(4, 6, 18, 0.72);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 720ms ease 180ms,
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

body.scene-loading:not(.scene-ready) .hero-copy {
  opacity: 0;
  transform: translateY(14px);
}

body.scene-ready .hero-copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: rgba(238, 243, 255, 0.86);
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 40rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: #f3f7ff;
  color: #0e1426;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 2px solid rgba(106, 211, 255, 0.74);
  outline-offset: 3px;
}

.podcast-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  aspect-ratio: 1120 / 780;
  max-height: calc(100vh - 32px);
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  cursor: grab;
  opacity: 1;
  transform: translateX(3vw) translateY(-1vh) scale(0.98);
  transform-origin: center;
  transition:
    opacity 900ms ease,
    transform 1180ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.scene-loading:not(.scene-ready) .podcast-stage {
  opacity: 0;
  transform: translateX(3vw) translateY(2vh) scale(0.92);
}

body.scene-ready .podcast-stage {
  opacity: 1;
  transform: translateX(3vw) translateY(-1vh) scale(0.98);
}

.podcast-stage.is-dragging {
  cursor: grabbing;
}

.podcast-stage::before {
  position: absolute;
  inset: 10% 2% -10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.58), transparent 68%);
  content: "";
}

#podcastScene {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.format-tags {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(42px, 8vh, 84px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(650px, 50vw);
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(238, 243, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms ease 420ms,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1) 420ms;
}

body.scene-loading:not(.scene-ready) .format-tags {
  opacity: 0;
  transform: translateY(10px);
}

body.scene-ready .format-tags {
  opacity: 1;
  transform: translateY(0);
}

.format-tags li {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(10, 15, 32, 0.42);
}

@media (max-width: 920px) {
  .podcast-hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    overflow: visible;
    padding: 28px 20px 34px;
  }

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

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.82rem, 14vw, 4.8rem);
  }

  .podcast-stage {
    width: min(100%, 760px);
    max-height: none;
    justify-self: center;
    margin-top: 8px;
    transform: translateY(12px) scale(0.94);
  }

  body.scene-ready .podcast-stage {
    transform: translateY(0) scale(1);
  }

  .format-tags {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    max-width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .podcast-stage {
    width: calc(100vw - 8px);
    margin-left: -16px;
  }

  .format-tags {
    gap: 8px;
  }

  .format-tags li {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
