:root {
  --radio-float-gap-right: clamp(14px, 2vw, 28px);
  --radio-float-gap-bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom));
  --radio-float-size: clamp(56px, 5vw, 66px);
  --radio-float-z: 1060;
}

.radio-player-float-toggle {
  position: fixed;
  right: var(--radio-float-gap-right);
  bottom: var(--radio-float-gap-bottom);
  width: var(--radio-float-size);
  height: var(--radio-float-size);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-bright, #ff1f2d), #8e040d);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.28);
  backdrop-filter: blur(18px);
  z-index: var(--radio-float-z);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 18px, 0) scale(0.88);
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    visibility 0.28s ease;
}

.radio-player-float-toggle i {
  font-size: 1.4rem;
  line-height: 1;
  pointer-events: none;
}

.radio-player-float-toggle:hover,
.radio-player-float-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 50px rgba(229, 9, 20, 0.34);
}

body.radio-player--footer-float .radio-player-float-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

body.radio-player--footer-float .radio-player-section {
  pointer-events: none;
}

body.radio-player--footer-float .radio-player-section .site-container,
body.radio-player--footer-float .radio-player-panel,
body.radio-player--footer-float .radio-player {
  pointer-events: none;
}

body.radio-player--footer-float .radio-player-panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.radio-player--footer-float .radio-player {
  background: transparent;
}

body.radio-player--footer-float .radio-player__channel,
body.radio-player--footer-float .radio-control-btn:not(.radio-control-btn--primary) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.22s ease,
    transform 0.32s ease,
    visibility 0.22s ease;
}

body.radio-player--footer-float .radio-player__controls {
  justify-content: flex-end;
  gap: 0;
}

body.radio-player--footer-float .radio-control-btn--primary {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.9);
  transition:
    opacity 0.2s ease,
    transform 0.25s ease,
    visibility 0.2s ease;
}

body.radio-player--footer-float .radio-player-panel.is-buffering .radio-player__loader {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 767.98px) {
  :root {
    --radio-float-gap-right: 14px;
    --radio-float-gap-bottom: calc(14px + env(safe-area-inset-bottom));
    --radio-float-size: 58px;
  }

  .radio-player-float-toggle i {
    font-size: 1.26rem;
  }
}

@media (max-width: 399.98px) {
  :root {
    --radio-float-gap-right: 12px;
    --radio-float-gap-bottom: calc(12px + env(safe-area-inset-bottom));
    --radio-float-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radio-player-float-toggle,
  body.radio-player--footer-float .radio-player__channel,
  body.radio-player--footer-float .radio-control-btn:not(.radio-control-btn--primary),
  body.radio-player--footer-float .radio-control-btn--primary {
    transition: none !important;
    animation: none !important;
  }
}
