/* ============================================================
   Dominó Online — radio ambiente (80s / 90s / 2000s)
   Widget flotante, persistente entre pantallas. Usa las variables ya
   definidas en style.css (--gold, --surface, --text, etc.).
   ============================================================ */

.radio-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
}

.radio-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: linear-gradient(170deg, rgba(28, 54, 44, 0.95), rgba(9, 22, 17, 0.97));
  box-shadow: var(--shadow-lg);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.radio-bubble:hover {
  transform: translateY(-2px);
}

.radio-bubble.is-playing {
  border-color: rgba(242, 201, 119, 0.6);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(242, 201, 119, 0.15);
  animation: radioPulse 2.6s ease-in-out infinite;
}

@keyframes radioPulse {
  50% {
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(242, 201, 119, 0.12);
  }
}

.radio-panel {
  display: none;
  width: 250px;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(9, 24, 19, 0.97);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
}

.radio-widget.is-open .radio-panel {
  display: flex;
}

/* Solo audio: el reproductor de YouTube existe (hace falta para sonar) pero
   se oculta visualmente, no ocupa espacio en el panel. Nada de vídeo. */
.radio-player {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.radio-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.radio-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.radio-info b {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-info small {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.radio-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hairline);
}

.radio-tab {
  font: inherit;
  font-size: 12px;
  padding: 6px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.radio-tab.is-active {
  background: linear-gradient(180deg, rgba(242, 201, 119, 0.9), rgba(169, 134, 63, 0.9));
  color: #23190a;
  font-weight: 700;
}

.radio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-controls button {
  font: inherit;
  font-size: 15px;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.radio-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.radio-volume {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
}

.radio-volume input {
  flex: 1;
  accent-color: var(--gold);
}

@media (max-width: 560px) {
  .radio-widget {
    left: 10px;
    bottom: 10px;
  }
  .radio-panel {
    width: min(250px, calc(100vw - 20px));
  }
}
