/* ============================================
   🔥 INDICADOR DE PRECARGA
   ============================================ */

.preload-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B00 0%, #FFA500 100%); /* 🔥 Ambar Fuego */
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 0, 0.3); /* 🔥 Glow ambar */
    z-index: 1000;
    min-width: 280px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.preload-content {
    color: white;
}

.preload-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.preload-icon {
    font-size: 18px;
}

.preload-title {
    opacity: 0.9;
}

.preload-song-title {
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.preload-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preload-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.preload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA500 0%, #FFD700 100%); /* 🔥 Naranja → Dorado */
    border-radius: 4px;
    transition: width 0.3s ease-out;
}

.preload-progress-text {
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.preload-ready-check {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #FFD700; /* 🔥 Dorado brillante */
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.check-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .preload-indicator {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .preload-song-title {
        max-width: calc(100vw - 100px);
    }
}