/* =============================== */
/* 🌌 FONDO GENERAL Y ESTRUCTURA  */
/* =============================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  background-image: url('');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}



/* =============================== */
/* 🧩 CONTENEDORES PRINCIPALES    */
/* =============================== */
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  padding-top: 50px;
  padding-bottom: 2px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.player-app-container {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 100%;       /* ✅ ancho completo */
  margin: 0;         /* ✅ quita centrado */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  box-sizing: border-box;
}


/* =============================== */
/* 🔊 PLAYER REDONDO CENTRAL       */
/* =============================== */
.circle-player {
  width: 220px;
  height: 220px;
  border-radius: 50%; /* círculo perfecto */
  background: rgba(255,255,255,0);
  margin: 20px auto;

  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 🔒 EVITA QUE SE APLASTE O ESTIRE */
  flex-shrink: 0;  

  position: relative;
  box-shadow: 0 0 10px #00ffcc;
  transition: all 0.3s ease;
}

/* 🟢 Protección total de la imagen del logo */
.circle-player img {
  width: 90%;
  height: 90%;

  border-radius: 50%; 
  object-fit: cover;
  aspect-ratio: 1 / 1;

  /* 🔒 PROTECCIÓN extra */
  flex-shrink: 0;

  transition: transform 0.2s ease;
}

/* Estado "playing" */
.circle-player.playing {
  animation: pulse 1.2s infinite;
  border-color: #00ffd9;
  box-shadow: 0 0 10px #00ffcc;
  background: rgba(255,255,255,0);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 20px #5205e3, 0 0 60px #03fcc2 inset; }
  50% { transform: scale(1.05); box-shadow: 0 0 30px #009dff, 0 0 80px #fcfcfc inset; }
  100% { transform: scale(1); box-shadow: 0 0 20px #fc05f0, 0 0 60px #f7f9fa inset; }
}


/* =============================== */
/* 📝 INFO DE CANCIÓN             */
/* =============================== */
.song-info { text-align: center; margin-top: 18px; }
.song-title { font-weight: bold; font-size: 1.15rem; color: #4527a0; }
.song-artist { font-size: 1rem; color: #5e35b1; margin-top: 2px; }

/* ============================= */
/* 🔊 INICIO DE NUEVO REPRODUCTOR*/
/* ============================= */

/* 🎶 NUEVO REPRODUCTOR - LUNA */
.player-container {
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin: 20px 0;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Asegurar transparencia del visualizer */
#visualizer {
  display: block;
  width: 100%;
  height: 120px; 
  background: transparent !important;
  pointer-events: none;
  margin-bottom: -85px;
}

/* ============================= */
/* 🔊 BARRA DE VOLUMEN           */
/* ============================= */
.volume-section {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

/* Barra ocupa todo el ancho */
.volume-section input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #00e5ff 70%, #444 70%);
  outline: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.volume-section input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00e5ff;
  cursor: pointer;
  border: none;
}
.volume-section input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00e5ff;
  border: none;
  cursor: pointer;
}

/* Iconos y porcentaje */
.volume-icons {
  width: 100%;
  display: flex;
  justify-content: space-between; /* mute izquierda, altavoz derecha */
  align-items: center;
  color: white;
  font-size: 16px;
}

/* Iconos */
.volume-icons svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  transition: fill 0.3s ease, transform 0.2s ease;
}

.volume-icons .icon:hover svg { fill: #00e5ff; }
#muteIcon.active svg { fill: #ff4d4d; }

/* Agrupamos altavoz + porcentaje */
#soundWrapper {
  display: flex;
  align-items: center; /* centrar verticalmente */
  justify-content: flex-end; /* altavoz al canto derecho */
  gap: var(--gap-horizontal, 6px); /* espacio entre altavoz y porcentaje */
}

/* Porcentaje de volumen */
#volumePercent {
  font-size: var(--percent-font-size, 0.9rem);
  font-weight: bold;
  color: #ffffff;
  margin-top: var(--percent-vertical, -4px); /* ajusta para subir/bajar */
  margin-left: var(--percent-horizontal, 6px); /* ajusta espacio horizontal del altavoz */
}

/* ============================= */
/* ▶️ BOTÓN PLAY/PAUSE           */
/* ============================= */
.controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#playBtn {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: #fafcfc;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 20px #018c6c, 0 0 40px #0044b5;
  display: flex;
  justify-content: center;
  align-items: center;
}

#playBtn:hover {
  transform: scale(1.1);
  background: #f5fafa;
  box-shadow: 0 0 2px #02fafa, 0 0 20px #02fafa;
}

#playBtn:active {
  transform: scale(0.95);
  box-shadow: 0 0 15px #e102fa, 0 0 30px #e102fa;
}

#playBtn.play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid #04c4de;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

#playBtn.pause::before,
#playBtn.pause::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  background: #04c4de;
  border-radius: 2px;
}

#playBtn.pause::before { left: 35%; }
#playBtn.pause::after { right: 35%; }

/* ============================= */
/* 🔊 FIN DE NUEVO REPRODUCTOR   */
/* ============================= */



/* ============================= */
/* 🎧 PARRILLA PRINCIPAL          */
/* ============================= */
.radio-grid-scroll {
  max-height: none;
  overflow-y: visible;
  padding: 4px 0 0 0;
  margin-bottom: 10px;
}
.radio-grid-background {
  background-color: rgba(255, 255, 255, 0.45);
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);

  width: fit-content;   /* Ajusta el tamaño exacto al contenido */
  margin: 0 auto;       /* Siempre centrado */
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);  /* 4 radios sin estirarse */
  gap: 8px;
  justify-content: center;
}

.radio-container {
  background-color: #020742;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
  max-width: 120px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}

.radio-container:hover {
  box-shadow: 0 0 10px #7c4dffaa;
  transform: scale(1.05);
}

.radio-item img {
  border-radius: 50%;
  width: 52px;
  height: 52px;
  object-fit: cover;
  box-shadow: 0 2px 8px #5e35b122;
  border: 2px solid #e0e0e0;
  transition: border-color 0.15s;
  display: block;
  margin: 0 auto;
}

.radio-item.selected img,
.radio-item:hover img {
  border-color: #7c4dff;
  box-shadow: 0 0 0 3px #d1c4e9;
  background: #fff;
}

.radio-name {
  margin-top: 4px;
  font-size: 0.85rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================== */
/* 🔘 BOTONES Y CONTROLES EXTRA   */
/* =============================== */
.play-btn {
  background: #020c4d;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  padding: 2px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.play-btn:hover { background: #008bf5; }

.play-btn:active,
.play-btn:focus {
  background: #06b8ac;
  box-shadow: none;
  outline: none;
}

#volIcon { cursor: pointer; font-size: 24px; color:#2e0104; }
#volIcon:hover { color: #fa2802; }

#volumeBar { vertical-align: middle; width: 80px; margin: 0 10px; }
#volValue { font-weight: 600; margin-left: 8px; color: #05012e }

.install-btn {
  padding: 6px 12px;
  background: #ff9800;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}

.install-btn:hover { background: #f57c00; }

.install-button-wrapper {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

/* =============================== */
/* 🎛️ INICIO SEGUNDA PARRILLA EXTRA (VERTICAL) */
/* =============================== */

#contenedorParrillaExtra {
  max-height: 0;                 
  overflow: hidden;              
  transition: max-height 0.3s ease;
  margin-top: 0.8rem;
}

/* 📌 Contenedor vertical */
#parrillaExtra {
  display: flex;
  flex-direction: column;
  gap: 0.20rem; /* ← ESPACIO ENTRE CADA RADIO (ajústalo aquí) */
  background-color: rgba(176, 231, 247);
  padding: 0.2rem 0.1rem; /* ← ESPACIO INTERNO DEL CONTENEDOR */
  border-radius: 7px;
  width: 95%;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  max-height: 300px;
}

/* Scroll */
#parrillaExtra::-webkit-scrollbar {
  width: 2px;
}
#parrillaExtra::-webkit-scrollbar-thumb {
  background-color: #90caf9;
  border-radius: 6px;
}

/* 🎵 Cada radio */
#parrillaExtra .radio-item {
  display: flex;
   flex-direction: column;
  align-items: center;
  gap: 0.12rem;  /* ← ESPACIO ENTRE LOGO Y TEXTO (ajústalo aquí) */
  background-color: #9cf0c7;
  padding: 0.13rem;     /* ← ESPACIO INTERNO DEL ITEM */
  border-radius: 7px;
  border: 1px solid #bbdefb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Logo */
#parrillaExtra .radio-item img {
  width: 40px;   /* ← TAMAÑO DE LOGO */
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e3f2fd;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

/* Texto */
#parrillaExtra .radio-item p {
  margin: 0;
  font-size: 0.62rem;         /* ← TAMAÑO LETRA */
  font-weight: 700;
  color: #111;                /* ← COLOR LETRA */
  line-height: 1.15em;
  text-shadow: 0 1px 1px #fff;
}

/* Hover */
#parrillaExtra .radio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  border-color: #42a5f5;
}
#parrillaExtra .radio-item:hover img {
  border-color: #42a5f5;
}

/* ------------------------------- */
/* 📱 Responsivo */
/* ------------------------------- */
@media (max-width: 768px) {
  #parrillaExtra {
    max-width: 100%;
    max-height: 240px;
    padding: 0.4rem;
  }

  #parrillaExtra .radio-item img {
    width: 34px;
    height: 34px;
  }

  #parrillaExtra .radio-item p {
    font-size: 0.63rem;
  }
}

/* =============================== */
/* 🎛️ FIN SEGUNDA PARRILLA EXTRA (VERTICAL) */
/* =============================== */



/* =============================== */
/* 🚫 UTILIDADES GLOBALES         */
/* =============================== */
.oculto {
  display: none !important;
}

#parrillaExtra.oculto {
  display: none !important;
}

.sidenav-trigger:hover {
  transform: scale(1.15);
}

#btnMenuFlotante {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background-color: #FF4081;
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  text-decoration: none;
}

#btnMenuFlotante i {
  font-size: 28px;
}


/* --- ESTILOS PARA EL SLIDER DE FONDO --- */
.background-slider-container {
    position: fixed; /* Lo fija al borde de la ventana del navegador */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* CLAVE: Lo envía detrás de todo el contenido de la aplicación */
    overflow: hidden;
}

.slide-item {
    position: absolute; /* Superpone todas las imágenes */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra toda la pantalla */
    opacity: 0; /* Oculta la imagen por defecto */
    transition: opacity 1.5s ease-in-out; /* CLAVE: Transición suave entre imágenes */
}

.slide-item.active {
    opacity: 1; /* Muestra la imagen activa */
}

/* --- ESTILO PARA EL CONTENIDO PRINCIPAL --- */
.main-app-content { 
    position: relative; 
    z-index: 1; /* Lo trae al frente del slider (-1) */
    /* Si tu aplicación tenía un fondo sólido, deberás quitarlo
       o hacerlo semitransparente para que el slider se vea. */
}
/* --- FIN DE EL SLIDER DE FONDO --- */

/* INICIO MENÚ DESPLEGABLE PRO */
/* 1. Posicionamiento del Botón Flotante */
#btnMenuFlotante {
    position: fixed;
    /* Los demás estilos de color y tamaño ya están arriba en tu CSS */
}

/* 2. La Caja del Menú (CON SCROLL ACTIVADO) */
#menuDerechoDesplegable {
    position: fixed;
    top: 75px;
    right: 20px;
    
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    z-index: 9000;

    /* --- TAMAÑO TIPO APP --- */
    width: 350px !important;
    max-width: 85%;
    
    display: none;

    /* 👇 scroll 👇 */
    max-height: 70vh; 
    overflow-y: auto;  
}


/* 3. Estilo para la Cabecera con Logo (Opcional si usas clases) */
.menu-logo-header {
    background-color: #ffffff;
    border-bottom: 2px solid #f0f0f0;
}

/* 4. Estilo de cada Opción (Botones) */
.dropdown-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;       /* ✅ Más espacio para el dedo (Touch friendly) */
    text-decoration: none;
    color: #444;
    font-size: 16px;          /* ✅ Letra más grande y legible */
    font-weight: 600;         /* Letra un poco más gordita */
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s ease;
}

/* Efecto al pasar el mouse o tocar */
.dropdown-menu .menu-item:hover {
    background-color: #f0f4f8; /* Un gris-azulado muy suave */
    color: #000;
}

/* 5. Estilo de los Iconos (Redes sociales) */
.dropdown-menu .menu-icon-img {
    width: 28px;              /* ✅ Iconos más grandes (antes eran 20px) */
    height: 28px;
    margin-right: 15px;       /* Más separación del texto */
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1)); /* Sombra suave al icono */
}

/* Quitar borde al último elemento */
.dropdown-menu .menu-item:last-child {
    border-bottom: none;
}
/* FIN MENÚ DESPLEGABLE */

/* INICIO ESTILOS PARA LOS SUBMENÚS */
/* Contenedor del submenú (oculto por defecto) */
.submenu-oculto {
    display: none;
    background-color: #f1f1f1; /* Gris clarito para diferenciar */
    border-top: 1px solid #e0e0e0;
}

/* Items dentro del submenú */
.submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 45px !important; /* 45px a la izquierda para sangría */
    text-decoration: none;
    color: #555;
    font-size: 14px !important;
    border-bottom: 1px solid #fff;
    transition: background 0.2s;
}

.submenu-item:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Flechita para indicar que se despliega */
.flecha-submenu {
    margin-left: auto; /* Empuja la flecha a la derecha */
    font-size: 18px;
    color: #888;
}
/* 📂 FIN ESTILOS PARA LOS SUBMENÚS        */
