/* =====================
   BARRA DE RADIO
===================== */
#radio-bar {
  width: 100%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  gap: 20px;
  border-bottom: 2px solid #333;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

#radio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#radio-toggle {
  background-color: #6c5ce7;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

#radio-toggle svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.radio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.radio-status {
  font-weight: bold;
  font-size: 13px;
  color: #00cec9;
  white-space: nowrap;
}

.now-playing {
  font-size: 14px;
  color: #00cec9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  position: relative;
}

.now-playing.scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, transparent, #111);
  pointer-events: none;
}

.now-playing.scroll {
  animation: marquee 10s linear infinite;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* BOTÓN DE PETICIONES */
#open-request {
  background-color: #6c5ce7;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
}

#open-request:hover {
  background-color: #4834d4;
}

/* BOTÓN CERRAR SESIÓN (ESCRITORIO) */
#logout-desktop {
  background-color: #d63031;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
}

/* =====================
   BARRA INFERIOR MÓVIL
===================== */
#mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  #logout-desktop {
    display: none;
  }

  #mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-evenly;
    background-color: #1e1e1e;
    padding: 10px 0;
    z-index: 1001;
    border-top: 1px solid #333;
  }

  #mobile-bar button {
    background-color: #6c5ce7;
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }

  #chat-container {
    padding-bottom: 60px;
  }

  .now-playing {
    max-width: 140px;
  }
}

/* =====================
   POPUP DE PETICIONES
===================== */
#request-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#request-popup.hidden {
  display: none;
}

.popup-content {
  background-color: #2d3436;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.popup-content h2 {
  color: #fff;
  margin-bottom: 20px;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: none;
  background: #3a3a3a;
  color: white;
}

.popup-content button {
  margin-top: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.popup-content button[type="submit"] {
  background-color: #00cec9;
  color: #000;
}

.popup-content button[type="button"] {
  background-color: #d63031;
  color: white;
  margin-left: 10px;
}
