/**
 * SMOOTH JAZZ CHICAGO 3 - Player Styles
 * Estilos del reproductor principal
 */

/* ============================================ */
/* PLAYER CONTAINER */
/* ============================================ */

.player-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    min-height: 50vh;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

/* ============================================ */
/* HEADER */
/* ============================================ */

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.player-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
    letter-spacing: 0.5px;
}

/* ============================================ */
/* ALBUM ART */
/* ============================================ */

.album-art-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto var(--spacing-xl);
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-medium);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-art-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    color: var(--inactive);
}

.album-art-placeholder svg {
    opacity: 0.3;
}

/* Animación de rotación suave cuando está reproduciendo */
.album-art-container.playing {
    animation: subtleRotate 60s linear infinite;
}

@keyframes subtleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* SONG INFO */
/* ============================================ */

.song-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.song-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 16px;
    color: var(--inactive);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================ */
/* PROGRESS BAR */
/* ============================================ */

.progress-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-sm);
}

.time-label {
    font-size: 12px;
    color: var(--inactive);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar-wrapper {
    flex: 1;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

/* ============================================ */
/* CONTROLS */
/* ============================================ */

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md); /* ✅ REDUCIDO: De xl (32px) a md (16px) */
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast),
                background var(--transition-fast),
                transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.main-btn {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    color: var(--light) !important; /* ✅ Icono SIEMPRE blanco */
}

.main-btn:hover {
    background: var(--gradient-primary) !important; /* ✅ Fondo SIEMPRE gradiente ámbar */
    color: var(--light) !important; /* ✅ Icono SIEMPRE blanco */
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.main-btn:active {
    background: var(--gradient-primary) !important; /* ✅ Fondo SIEMPRE gradiente ámbar */
    color: var(--light) !important; /* ✅ Icono SIEMPRE blanco */
    transform: scale(0.98);
}

/* Botón Repeat activo (parpadeante) */
.control-btn.active {
    color: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================ */
/* FOLDER INDICATORS */
/* ============================================ */

.folder-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md); /* ✅ REDUCIDO: De xl (32px) a md (16px) */
    padding: var(--spacing-sm) 0; /* ✅ REDUCIDO: De md (16px) a sm (8px) */
}

.indicator {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.indicator-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--inactive);
    transition: color var(--transition-normal);
}

/* Indicador activo (parpadeante) */
.indicator.active {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    animation: indicatorPulse 1s ease-in-out infinite;
}

.indicator.active .indicator-label {
    color: var(--primary);
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
    .player-container {
        padding: var(--spacing-md);
    }
    
    .album-art-container {
        max-width: 300px;
    }
    
    .song-title {
        font-size: 20px;
    }
    
    .song-artist {
        font-size: 14px;
    }
    
    .main-btn {
        width: 60px;
        height: 60px;
    }
    
    .indicator {
        width: 40px;
        height: 40px;
    }
    
    .indicator-label {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .album-art-container {
        max-width: 260px;
    }
    
    .controls {
        gap: var(--spacing-sm);
    }
    
    .main-btn {
        width: 55px;
        height: 55px;
    }
}