/* Sonara Labs Radio */

.radio-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 166, 35, 0.18), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(0, 212, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #070711 0%, #0a0d1a 45%, #06070d 100%);
}

.radio-shell {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 96px;
}

.radio-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.radio-shell > *:not(.radio-particles) {
  position: relative;
  z-index: 1;
}

.radio-header .nav-links {
  gap: 22px;
}

.radio-nav-pill,
.radio-login-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 16px;
}

.radio-nav-pill {
  color: var(--gold) !important;
  border-color: rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.08);
}

.radio-header-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.radio-hero {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 46px;
}

.radio-copy {
  padding: 24px 0;
}

.radio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(245, 166, 35, 0.08);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radio-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.radio-copy h1 {
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}

.radio-subtitle {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.radio-lead {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.radio-cta-row,
.radio-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.radio-player-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.92), rgba(10, 10, 20, 0.88)),
    radial-gradient(circle at 70% 25%, rgba(0, 212, 255, 0.17), transparent 35%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.radio-player-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 35px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.7), rgba(0, 212, 255, 0.45), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.radio-player-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.radio-status,
.radio-created {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--cyan-light);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radio-created {
  color: var(--gold-light);
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.25);
  white-space: nowrap;
}

.radio-player-top h2 {
  margin: 14px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

#radioCurrentMeta {
  color: var(--text-secondary);
}

.radio-visual-zone {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 110%, rgba(245, 166, 35, 0.22), transparent 34%),
    radial-gradient(circle at 70% 20%, rgba(0, 212, 255, 0.18), transparent 32%),
    #060711;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#radioVisualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.radio-spectrum-fallback {
  position: absolute;
  inset: 28px 24px 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  opacity: 0.78;
}

.radio-spectrum-fallback span {
  width: 7px;
  min-height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  animation: radioFallbackBar 1.2s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.radio-page.is-playing .radio-spectrum-fallback span {
  animation-play-state: running;
}

.radio-promo-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  padding: 13px 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(10, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  text-align: center;
  font-weight: 800;
}

.radio-controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.radio-round-control {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.radio-round-control:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.radio-round-control.is-primary {
  width: 68px;
  height: 68px;
  color: #070711;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 10px 36px rgba(245, 166, 35, 0.34);
  border: none;
  font-size: 1.25rem;
}

.radio-progress-wrap {
  min-width: 0;
}

.radio-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.radio-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.radio-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 0.15s linear;
}

.radio-floating-qr {
  position: fixed;
  right: clamp(18px, 4vw, 72px);
  top: 22vh;
  z-index: 5;
  animation: radioQrFloat 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.radio-qr-card {
  width: 212px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  color: #070711;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: auto;
}

.radio-qr-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.radio-qr-card p {
  margin-top: 10px;
  color: #10121e;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.25;
}

.radio-stats-strip {
  max-width: 1280px;
  margin: 16px auto 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.radio-stats-strip div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.radio-stats-strip strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--gold-light);
}

.radio-stats-strip span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.radio-showcase-section {
  max-width: 1280px;
  margin: 0 auto;
}

.radio-section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.radio-section-head h2 {
  font-size: clamp(2rem, 4vw, 4.3rem);
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.radio-section-head p {
  color: var(--text-secondary);
  font-size: 1.04rem;
}

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

.radio-track-card {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(28, 29, 54, 0.96), rgba(11, 12, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.radio-track-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 150px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 60%);
  transform: rotate(-8deg);
}

.radio-track-card > * {
  position: relative;
  z-index: 1;
}

.radio-track-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.radio-track-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.radio-track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.radio-track-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.radio-card-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.radio-card-play {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  color: #07111a;
  background: linear-gradient(135deg, var(--gold-light), var(--cyan));
  cursor: pointer;
  font-weight: 900;
}

.radio-card-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
}

.radio-card-wave span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.radio-track-card.is-active .radio-card-wave span {
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  animation: radioFallbackBar 0.95s ease-in-out infinite alternate;
}

.radio-track-card .btn-secondary {
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  font-size: 0.88rem;
}

.radio-made {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.radio-sticky-create {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  min-width: 220px;
  border-radius: 999px;
  color: #05060b;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 16px 52px rgba(245, 166, 35, 0.34);
  font-weight: 900;
  text-decoration: none;
}

@keyframes radioFallbackBar {
  from { height: 12px; transform: translateY(0); }
  to { height: var(--radio-bar-height, 80px); transform: translateY(-4px); }
}

@keyframes radioQrFloat {
  0% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  35% { transform: translate3d(-26px, 42px, 0) rotate(2deg); }
  68% { transform: translate3d(-78px, 92px, 0) rotate(-2deg); }
  100% { transform: translate3d(-32px, 138px, 0) rotate(1deg); }
}

@media (max-width: 1180px) {
  .radio-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .radio-floating-qr {
    position: absolute;
    top: 560px;
    right: 24px;
  }

  .radio-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .radio-shell {
    padding: 96px 16px 88px;
  }

  .radio-copy h1 {
    font-size: clamp(3rem, 16vw, 5.4rem);
  }

  .radio-player-card {
    padding: 18px;
    border-radius: 26px;
  }

  .radio-player-top,
  .radio-controls,
  .radio-action-row,
  .radio-cta-row {
    align-items: stretch;
  }

  .radio-player-top {
    flex-direction: column;
  }

  .radio-controls {
    grid-template-columns: auto auto;
  }

  .radio-progress-wrap {
    grid-column: 1 / -1;
  }

  .radio-visual-zone {
    min-height: 250px;
  }

  .radio-action-row .btn-primary,
  .radio-action-row .btn-secondary,
  .radio-cta-row .btn-primary,
  .radio-cta-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .radio-stats-strip,
  .radio-showcase-grid {
    grid-template-columns: 1fr;
  }

  .radio-floating-qr {
    position: relative;
    top: auto;
    right: auto;
    animation: none;
    justify-self: center;
    margin: 8px auto 0;
  }

  .radio-qr-card {
    width: min(260px, 86vw);
  }

  .radio-sticky-create {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .radio-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .radio-copy {
    text-align: center;
  }

  .radio-kicker {
    font-size: 0.68rem;
  }

  .radio-lead {
    font-size: 1rem;
  }

  .radio-player-top h2 {
    font-size: 1.45rem;
  }

  .radio-visual-zone {
    min-height: 220px;
  }

  .radio-promo-line {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 0.88rem;
  }

  .radio-spectrum-fallback {
    inset: 24px 12px 76px;
    gap: 3px;
  }

  .radio-spectrum-fallback span {
    width: 5px;
  }
}
