/* ===== RADIO PLAYER ===== */
.radio-player-container {
  width: 100%;
  max-width: 26rem;
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.radio-player {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  overflow: hidden;
}

.radio-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 168, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.radio-header {
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.radio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Syne", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(201, 168, 255, 0.1);
  border: 1px solid rgba(201, 168, 255, 0.25);
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.radio-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ricky-red);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 10px rgba(255, 45, 45, 0.75);
  animation: radioPulse 1.75s ease-in-out infinite;
}

@keyframes radioPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.radio-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.radio-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.radio-visualizer {
  width: 100%;
  height: 60px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.radio-visualizer canvas {
  width: 100%;
  height: 100%;
}

.radio-track-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.radio-track-artwork {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.radio-artwork-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.radio-artwork-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.radio-track-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.radio-track-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.radio-progress {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.radio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.radio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.radio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.radio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.radio-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.radio-btn:active {
  transform: scale(0.95);
}

.radio-btn-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.radio-btn-play:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--bg);
  transform: scale(1.08);
  box-shadow: 0 8px 24px -8px rgba(201, 168, 255, 0.5);
}

.radio-btn-play svg {
  width: 24px;
  height: 24px;
}

.radio-btn-prev,
.radio-btn-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.radio-btn-prev svg,
.radio-btn-next svg {
  width: 20px;
  height: 20px;
}

.radio-btn-shuffle,
.radio-btn-volume {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.radio-btn-shuffle svg,
.radio-btn-volume svg {
  width: 18px;
  height: 18px;
}

.radio-btn-shuffle.is-active {
  background: rgba(201, 168, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.radio-volume-slider {
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  height: 0;
  overflow: hidden;
}

.radio-volume-slider.is-visible {
  opacity: 1;
  visibility: visible;
  height: auto;
}

.radio-volume-slider input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.radio-volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.radio-volume-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.radio-volume-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Light mode adjustments */
[data-theme="light"] .radio-player {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 236, 236, 0.95) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .radio-visualizer {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .radio-track-artwork {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .radio-badge {
  background: rgba(124, 77, 255, 0.08);
  border-color: rgba(124, 77, 255, 0.2);
}

[data-theme="light"] .km-radio-eq-bar {
  background: linear-gradient(
    180deg,
    rgba(98, 60, 200, 0.9) 0%,
    rgba(124, 77, 255, 0.75) 50%,
    rgba(220, 50, 50, 0.4) 100%
  );
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.2);
}

/* Home page: KosherMusik radio CTA — equalizer-style motion (no second player) */
.km-radio-cta-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 56px;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.km-radio-eq-bar {
  width: 5px;
  height: 44px;
  border-radius: 3px;
  transform-origin: bottom center;
  background: linear-gradient(
    180deg,
    rgba(201, 168, 255, 0.95) 0%,
    rgba(124, 77, 255, 0.65) 45%,
    rgba(255, 45, 45, 0.35) 100%
  );
  box-shadow: 0 0 12px rgba(201, 168, 255, 0.25);
  animation: kmRadioEq 0.95s ease-in-out infinite;
}

.km-radio-eq-bar:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 0.72s;
}

.km-radio-eq-bar:nth-child(2) {
  animation-delay: 0.12s;
  animation-duration: 0.88s;
}

.km-radio-eq-bar:nth-child(3) {
  animation-delay: 0.05s;
  animation-duration: 0.65s;
}

.km-radio-eq-bar:nth-child(4) {
  animation-delay: 0.2s;
  animation-duration: 1s;
}

.km-radio-eq-bar:nth-child(5) {
  animation-delay: 0.08s;
  animation-duration: 0.78s;
}

.km-radio-eq-bar:nth-child(6) {
  animation-delay: 0.16s;
  animation-duration: 0.92s;
}

.km-radio-eq-bar:nth-child(7) {
  animation-delay: 0.03s;
  animation-duration: 0.82s;
}

@keyframes kmRadioEq {
  0%,
  100% {
    transform: scaleY(0.22);
    opacity: 0.65;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .km-radio-eq-bar {
    animation: none;
    transform: scaleY(0.55);
    opacity: 0.85;
  }
}

.km-radio-cta-button {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .radio-player-container {
    max-width: 100%;
  }
  
  .radio-track-artwork {
    width: 56px;
    height: 56px;
  }
  
  .radio-btn-play {
    width: 48px;
    height: 48px;
  }
  
  .radio-btn-play svg {
    width: 22px;
    height: 22px;
  }
  
  .radio-btn-prev,
  .radio-btn-next {
    width: 36px;
    height: 36px;
  }
}
