/* Radio Player Core Styles */
.radio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990; /* Alto o suficiente para ficar sobre o footer */
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--orange);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 0.68, 0, 1.2);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}
.radio-player.open {
  transform: translateY(0);
}
.radio-player-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

/* Badge & Live Dot */
.radio-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 121, 32, 0.12);
  border: 1px solid rgba(244, 121, 32, 0.3);
  border-radius: 30px;
  padding: 4px 12px;
  flex-shrink: 0;
}
.radio-live-dot {
  width: 7px;
  height: 7px;
  background: #ff4444;
  border-radius: 50%;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.radio-live-text {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Station Info */
.radio-station-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  flex: 1;
}
.radio-station-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.radio-station-name {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.radio-now-playing {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* Waveform Visualizer */
.radio-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  padding: 0 12px;
}
.wave-bar {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0.65;
  transition: height 0.12s ease;
}

/* Controls */
.radio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.radio-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #333;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.radio-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.radio-btn.play {
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-size: 18px;
  box-shadow: 0 0 0 0 var(--orange-glow);
}
.radio-btn.play:hover {
  transform: scale(1.08);
  background: var(--orange-d);
}

/* Volume */
.radio-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

/* Floating Toggle Button — z-index alto, sempre visível */
.radio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99991;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #ffffff; /* Borda branca fixa — visível sobre qualquer cor de fundo */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: all 0.3s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.radio-toggle:hover {
  transform: scale(1.1) rotate(-5deg);
}
.radio-toggle.playing {
  animation: radioRing 2s ease-out infinite;
}
.radio-player.open ~ .radio-toggle,
.radio-toggle.player-open {
  bottom: 88px;
}

@keyframes radioRing {
  0%   { box-shadow: 0 0 0 0 rgba(244,121,32,.5), 0 4px 20px rgba(0,0,0,.35); }
  70%  { box-shadow: 0 0 0 16px rgba(244,121,32,0), 0 4px 20px rgba(0,0,0,.35); }
  100% { box-shadow: 0 0 0 0 rgba(244,121,32,0), 0 4px 20px rgba(0,0,0,.35); }
}

/* Radio stations list */
.radio-stations-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
  flex: 1;
}
.radio-stations-list::-webkit-scrollbar { display: none; }
.radio-station-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1.5px solid #2a2a2a;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.radio-station-chip:hover { border-color: var(--orange); }
.radio-station-chip.active {
  background: rgba(244,121,32,.12);
  border-color: var(--orange);
}
.radio-station-chip-name {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}
.radio-station-chip.active .radio-station-chip-name { color: var(--orange); }
.radio-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #333; transition: background .2s; }
.radio-station-chip.active .radio-chip-dot { background: var(--orange); }

@media(max-width: 768px) {
  .radio-stations-list { display: none; }
  .radio-player-inner { gap: 12px; height: 64px; padding: 0 12px; }
  .radio-station-info { min-width: auto; flex: 1; }
  .radio-now-playing { max-width: 140px; }
}

@media(max-width: 480px) {
  .radio-volume { display: none; }
  .radio-waveform { display: none; }
  .radio-player-inner { gap: 8px; height: 60px; padding: 0 10px; }
  .radio-live-badge { padding: 3px 8px; }
  .radio-live-text { font-size: 9px; }
  .radio-station-logo { width: 36px; height: 36px; font-size: 18px; }
  .radio-station-name { font-size: 13px; }
  .radio-toggle { width: 48px; height: 48px; font-size: 18px; bottom: 16px; right: 14px; }
  .radio-toggle.player-open { bottom: 76px; }
}

