/* ===== RESET BASE ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #000;
    font-family: "Saira Condensed", sans-serif;
}

/* ===== PLAYER ===== */
#player {
    position: relative; /* importante */
    width: 100%;
    height: 95%;
    z-index: 1;
    overflow: hidden;
}

/* Capas de fondo */
#player::before,
#player::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* 👈 CLAVE: las manda detrás */
}

/* Imagen 1 */
#player::before {
    background-image: url('../img/fondo1.png');
    animation: fade1 25s infinite;
}

/* Imagen 2 y 3 */
#player::after {
    animation: fade2 25s infinite;
}

/* Animaciones */
@keyframes fade1 {
    0%, 30% { opacity: 1; }
    33%, 100% { opacity: 0; }
}

@keyframes fade2 {
    0% {
        background-image: url('../img/fondo2.png');
        opacity: 0;
    }
    33%, 63% {
        opacity: 1;
    }
    66% {
        opacity: 0;
        background-image: url('../img/fondo3.png');
    }
    69%, 96% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.meta {
    position: absolute;
    bottom: 200px;
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'Orbitron', sans-serif;
    z-index: 9999;
}

#radioName {
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 2px;
}

#songTitle {
    font-size: 26px;
    font-weight: bold;
    color: #f4000b;
    margin-top: 5px;
}

#songArtist {
    font-size: 18px;
    opacity: 0.7;
}
/* ===== UI ENCIMA ===== */
.overlay-ui {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; /* 🔥 CLAVE */
}

/* ===== HEADER ===== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 40px;
    pointer-events: auto;
}

/* LOGO */
.esquina {
    width: 50px;
    filter: drop-shadow(0px 5px 15px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}
.esquina:hover { transform: scale(3.05); }

/* ===== RELOJ ===== */
.reloj {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-right: 5px solid #f4000b;
    border-radius: 4px;
}

#relogio {
    color: #fff;
    font-family: 'Orbitron', sans-serif; 
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(244, 0, 11, 0.5);
}

/* ===== FOOTER ===== */
footer {
    pointer-events: auto;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-family: 'Orbitron', sans-serif; 
}

.footer-content {
    background: rgba(20, 20, 20, 0.8);
    font-family: 'Orbitron', sans-serif; 
    color: #fff;
    text-align: center;
    padding: 12px;
}


/* ===================================================== */
/* 🔥 VINILO REAL FUNCIONANDO CON LUNARADIO */
/* ===================================================== */
/* =========================
   VINILO WRAPPER EXTERNO
========================= */
/* el cover real encima (NO rota) */
#playercoverwrapper img {
    object-fit: cover;
    position: relative;
    z-index: 200;
    border-radius: 50%;
    animation: spinVinyl 6s linear infinite;
}

/*#playercoverwrapper,
/*#playercoverwrapper img {
/*    animation: spinVinyl 6s linear infinite;
/*}

/* animación */
@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =========================
   FLOATING SOCIAL HEADER
========================= */

.floating-header {
    position: fixed;
    top: 100px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    pointer-events: auto;
}

/* botones */
.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);

    border-radius: 10px;
    color: #fff;
    font-size: 21px;

    transition: all 0.3s ease;
    text-decoration: none;

    pointer-events: auto; /* 🔥 IMPORTANTE */
}

/* hover */
.icon-btn:hover { 
    transform: scale(1.05); 
    background: rgba(244, 0, 11, 0.8);
    box-shadow: 0 0 15px rgba(244, 0, 11, 0.6);
    color: white;
}

/* =========================
   AJUSTES MÓVIL
========================= */
@media (max-width: 768px) {

    /* ===== OCULTAR RELOJ ===== */
    .reloj {
        display: none;
    }


    /* ===== HEADER LOGO ===== */
    .header-top {
        padding-top: 120px; /* baja todo el bloque */
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .esquina {
        display: none;
    }
    
    /* ===== HEADER SOCIAL ARRIBA ===== */
    .floating-header {
        top: 10px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }

    /* botones más compactos en móvil */
    .icon-btn {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    #player {
        position: relative; /* importante */
        height: 90%;
    }
    /* ===== COVER (VINILO) MÁS CENTRADO ===== */
    #playercoverwrapper {
        transform: scale(0.92);
        margin-top: 20px;
    }

    /* ===== TEXTO METADATA ===== */
    .meta {
        bottom: 260px; /* sube el texto */
    }

    #radioName {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    #songTitle {
        font-size: 20px;
    }

    #songArtist {
        font-size: 13px;
    }
}
