/* FOOTER REPRODUCTOR FIJO */
.footer-reproductor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-top: 3px solid #0ea5e9;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    display: flex;
    align-items: center;
}

.footer-reproductor-contenido {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Información de la radio */
.footer-info-radio {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.footer-radio-titulo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.footer-nombre-radio {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f8fafc;
}

.footer-estado {
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 20px;
}

.footer-estado::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: footer-pulso 1.5s infinite;
}

@keyframes footer-pulso {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.footer-metadata {
    font-size: 0.9rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-cancion-actual {
    display: inline-block;
    animation: footer-marquee 20s linear infinite;
}

@keyframes footer-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Controles */
.footer-controles {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

/* Botones */
.footer-boton {
    background: none;
    border: none;
    cursor: pointer;
    color: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 8px;
}

.footer-boton-principal {
    background-color: #0ea5e9;
    width: 48px;
    height: 48px;
}

.footer-boton-principal:hover {
    background-color: #0284c7;
    transform: scale(1.05);
}

.footer-boton-volumen:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

/* Control de volumen */
.footer-control-volumen {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-deslizante-volumen {
    width: 90px;
    height: 5px;
    -webkit-appearance: none;
    background: #475569;
    border-radius: 3px;
    outline: none;
}

.footer-deslizante-volumen::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-deslizante-volumen::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Información de tiempo */
.footer-info-extra {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.footer-tiempo {
    min-width: 40px;
    text-align: center;
}

.footer-separador {
    color: #64748b;
}

/* Estados */
.footer-estado.pausado {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.footer-estado.pausado::before {
    background-color: #f59e0b;
    animation: none;
}

.footer-estado.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.footer-estado.error::before {
    background-color: #ef4444;
    animation: none;
}

/* Responsive para móviles */
@media (max-width: 1024px) {
    .footer-reproductor-contenido {
        padding: 0 15px;
        gap: 15px;
    }
    
    .footer-controles {
        gap: 15px;
    }
    
    .footer-info-radio {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .footer-reproductor {
        height: 110px;
        padding: 10px 0;
    }
    
    .footer-reproductor-contenido {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }
    
    .footer-info-radio {
        width: 100%;
        text-align: center;
        min-width: auto;
    }
    
    .footer-radio-titulo {
        justify-content: center;
    }
    
    .footer-metadata {
        font-size: 0.85rem;
    }
    
    .footer-controles {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-info-extra {
        display: none; /* Ocultar tiempo en móviles pequeños */
    }
}

/* Ajuste para cuando hay admin bar en WordPress */
.admin-bar .footer-reproductor {
    top: auto; /* Asegurar que está en el bottom */
}

/* Ajuste para dispositivos iOS */
@supports (-webkit-touch-callout: none) {
    .footer-reproductor {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}