@charset "utf-8";
/* CSS Document */
/* ===== REPRODUCTOR DE STREAMING - ESTILOS AUTO-CONTENIDOS ===== */
#audioPlayerContainer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Botón flotante */
.floating-audio-btn {
    position: relative;
    background: #e74c3c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.floating-audio-btn:hover {
    transform: scale(1.1);
    background: #c0392b;
}

.floating-audio-btn i {
    font-size: 20px;
}

/* Reproductor */
.audio-player {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 10px 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #e74c3c;
    max-width: 300px;
    width: auto;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8);
    display: none;
    align-items: center;
    gap: 8px;
}

.audio-player.show {
    opacity: 1;
    transform: scale(1);
    display: flex;
}

/* Controles */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.control-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.control-btn:hover {
    background: #2980b9;
}

.control-btn i {
    font-size: 12px;
}

/* Información de la estación */
.station-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.station-name {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-status {
    font-size: 11px;
    color: #7f8c8d;
    opacity: 0.8;
}

/* Controles de audio */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    width: 45px;
    height: 3px;
    margin: 0;
}

/* Indicadores y estados */
.live-indicator {
    background: #e74c3c;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

.floating-audio-btn.playing {
    background: #2ecc71 !important;
    animation: pulse 1.5s infinite;
}

.audio-player.playing {
    border-color: #2ecc71;
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.6; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-3px) scale(1); }
    75% { transform: translateX(3px) scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    #audioPlayerContainer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .audio-player {
        margin-left: 0;
        margin-top: 10px;
        max-width: 260px;
        padding: 8px 12px;
    }
    
    .station-name {
        font-size: 12px;
    }
    
    .station-status {
        font-size: 10px;
    }
}

/* Modo oscuro automático */
@media (prefers-color-scheme: dark) {
    .audio-player {
        background: rgba(45, 45, 45, 0.98);
        color: #ffffff;
    }
    
    .station-name {
        color: #ecf0f1;
    }
    
    .station-status {
        color: #bdc3c7;
    }
}

