/* ==========================================================================
   1. RESETEO Y CONFIGURACIÓN BASE DEL DOCUMENTO
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: transparent;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   2. LA ANIMACIÓN DE FONDO (CAPA TRASERA ABSOLUTA)
   ========================================================================== */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* CORRECCIÓN CRÍTICA: Envía la animación al fondo absoluto del sitio */
    overflow: hidden;
	background-color: #f7f7d1; 
}


/* Regla para que tu imagen provisoria o video ocupen la pantalla perfectamente */
.background-animation img,
.background-animation video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste tipo fondo de pantalla sin deformarse */
    pointer-events: none;
}

.radio-sidebar {
    /* CORRECCIÓN: Mantenemos un z-index alto para quedar sobre el fondo multimedia */
    z-index: 10; 
    width: 240px; 
    padding: 25px 20px;
    text-align: center;
    border-radius: 20px;
    background: rgba(6, 8, 20, 0.45); /* Ajustado para que resalte sobre la nueva imagen/video */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}





/* EFECTO COVER PARA EL VIDEO NATIVO */
.background-animation video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que el video se deforme al cambiar el tamaño de la ventana */
    pointer-events: none; /* Bloquea clics accidentales o menús contextuales sobre el video */
}

.animation-placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. REPRODUCTOR COMPACTO (BARRA LATERAL FLOTANTE)
   ========================================================================== */


.radio-sidebar {
    z-index: 10;
    width: 240px; 
    padding: 25px 20px;
    text-align: center;
    border-radius: 20px;
    background: rgba(6, 8, 20, 0.35); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}



/* ==========================================================================
   4. COMPONENTES INTERNOS DE LA IDENTIDAD MULTIMEDIA
   ========================================================================== */
/* ==========================================================================
   4. COMPONENTES INTERNOS DE LA IDENTIDAD MULTIMEDIA
   ========================================================================== */
.track-cover {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-live {
    background: #ff3b30;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    animation: livePulse 2s infinite ease-in-out;
}

/* TÍTULO DE LA CANCIÓN */
.radio-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta con puntos suspensivos si el título es muy largo */
}

/* NOMBRE DEL ARTISTA (CORREGIDO) */
.radio-status {
    font-size: 13px; /* Aumentado de 12px a 13px */
    color: rgba(255, 255, 255, 0.7); /* Cambiado de gris oscuro a blanco brillante translúcido */
    margin-bottom: 4px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NOMBRE DEL ÁLBUM (CORREGIDO) */
.radio-album {
    font-size: 12px; /* Aumentado de 11px a 12px */
    color: rgba(255, 255, 255, 0.5); /* Cambiado a un blanco translúcido elegante */
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   5. CONTROLES DE INTERACCIÓN Y VOLUMEN
   ========================================================================== */
.btn-control {
    background: #ffffff;
    color: #060814;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-control:hover {
    background: #f2f2f7;
    transform: scale(1.02);
}

.volume-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.volume-icon {
	font-size: 14px; /* Tamaño optimizado para la barra lateral */
	color: #f2f2f7;
	display: inline-block;
	user-select: none;
}


.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

.volume-value {
	font-size: 11px;
	color: #f2f2f7;
	min-width: 20px;
}

/* ==========================================================================
   6. ANIMACIONES MULTIMEDIA Y REPRODUCTOR OCULTO
   ========================================================================== */
/* ==========================================================================
   7. DISEÑO RESPONSIVO ESTRICTO (PC VS MÓVIL)
   ========================================================================== */

/* Regla exclusiva para Computadoras y Pantallas Grandes (Desktop) */
@media (min-width: 769px) {
    .radio-sidebar {
        position: absolute;
        top: 50%;
        left: 30px; /* Flota sutilmente al costado izquierdo en PC */
        transform: translateY(-50%);
    }
}

/* Regla exclusiva para Dispositivos Móviles (Celulares y Tablets) */
@media (max-width: 768px) {
    .radio-sidebar {
        position: absolute;
        top: 50%;
        left: 50%; /* Desplaza el panel al eje central */
        transform: translate(-50%, -50%); /* OBLIGATORIO: Centrado simétrico vertical y horizontal en smartphones */
    }
}


/* TELÉFONOS MÓVILES: El reproductor toma mayor protagonismo en pantallas táctiles */
@media screen and (max-width: 768px) {
    .radio-sidebar {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        
        /* Aumentamos el tamaño del panel en celulares */
        width: 320px; /* Incrementado de 240px a 320px para ocupar más pantalla */
        padding: 35px 25px; /* Más espacio interno */
    }

    /* Escalamos la foto de portada para que acompañe el tamaño del panel */
    .track-cover {
        width: 240px;   /* Escalado de 180px a 240px */
        height: 240px;  /* Escalado de 180px a 240px */
        margin-bottom: 20px;
    }

    /* Aumentamos sutilmente el tamaño de los textos para mejorar la lectura */
    .radio-title {
        font-size: 20px; /* Letra más grande para el título del track */
        margin-bottom: 8px;
    }

    .radio-status {
        font-size: 15px; /* Letra más grande para el artista */
        margin-bottom: 6px;
    }

    .radio-album {
        font-size: 13px; /* Letra más grande para el álbum */
        margin-bottom: 25px;
    }

    /* Botón más cómodo para pulsar con el pulgar */
    .btn-control {
        padding: 14px 24px;
        font-size: 15px;
    }
}


/* ==========================================================================
   8. ICONOGRAFÍA EN EL FONDO GENERAL (INTEGRADA EN LA INTERFAZ)
   ========================================================================== */
.social-container {
    position: absolute;
    z-index: 5; /* Queda sobre el video pero de fondo en la web */
    display: flex;
    transition: all 0.3s ease;
}

.social-container a {
    display: flex;
    align-items: center;
    gap: 8px;
    /* CAMBIO TÉCNICO: Asignamos tu color exacto #170000 con opacidad total */
    color: #170000; 
    text-decoration: none;
    font-size: 13px;
    font-weight: 600; /* Le damos un poco más de grosor para que destaque el color oscuro */
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.social-container a i {
    font-size: 18px; /* Iconos de marcas levemente destacados */
}

/* Efecto al pasar el cursor o presionar en móviles */
.social-container a:hover {
    color: #ffb400; /* Brilla al blanco puro */
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Acomodo Responsivo de la barra de redes
   -------------------------------------------------------------------------- */

/* EN COMPUTADORAS (Desktop): Se anclan de manera sofisticada en la esquina inferior derecha */
@media screen and (min-width: 769px) {
    .social-container {
        bottom: 30px;
        right: 40px;
        flex-direction: row; /* Fila horizontal */
        gap: 25px;
    }
}

/* EN DISPOSITIVOS MÓVILES: Se alinean horizontalmente al fondo, justo abajo del reproductor centrado */
@media screen and (max-width: 768px) {
    .social-container {
        bottom: 40px; /* Separación prudente de la parte inferior del celular */
        left: 50%;
        transform: translateX(-50%); /* Centrado horizontal perfecto */
        flex-direction: row;
        gap: 15px;
    }
    
    /* Ocultamos los textos largos en el celular para que quepa todo de forma minimalista */
    .social-container a span {
        display: none;
    }
    
    .social-container a i {
        font-size: 22px; /* Iconos levemente más grandes para facilitar el toque táctil */
        color: rgba(255, 255, 255, 0.5);
    }


/* ==========================================================
   REDES SOCIALES - MÓVILES
   ========================================================== */

@media screen and (max-width:768px){

    .social-container{

        position:absolute;

        left:50%;

        top:calc(50% + 265px);

        transform:translateX(-50%);

        display:flex;

        flex-direction:row;

        gap:20px;

        justify-content:center;

        align-items:center;

        z-index:20;

    }

    .social-container a span{

        display:none;

    }

    .social-container a i{

        font-size:24px;

        color:#060814;
	

    }

}


