/* ========================================
   Music Player Section (GLASSMORPHIC)
   ======================================== */
.music-player-section {
    padding: var(--spacing-xl) 0;
    max-width: 700px;
    margin: 0 auto;
}

.music-player-container {
    padding: 2rem;
}

.music-player {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.music-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    animation: playerGlow 8s ease-in-out infinite;
}

@keyframes playerGlow {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg);
    }
}

/* Album Art */
.album-art-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    z-index: 1;
    position: relative;
}

.album-art {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.4), rgba(156, 39, 176, 0.4));
    border: 4px solid var(--glass-border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 12px 40px rgba(233, 30, 99, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.album-art.rotating {
    animation: albumRotate 20s linear infinite;
}

@keyframes albumRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.album-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.album-placeholder i {
    width: 120px;
    height: 120px;
    color: white;
    filter: drop-shadow(0 0 30px rgba(233, 30, 99, 0.8));
}

/* Song Info */
.song-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    z-index: 1;
    position: relative;
}

.song-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-rose), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.song-artist {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.song-message {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.player-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
    z-index: 1;
    position: relative;
}

.time-current,
.time-duration {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.progress-bar-container {
    flex: 1;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-teal), var(--primary-rose));
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.8);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--primary-rose);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.6);
    cursor: grab;
    transition: transform 0.2s ease;
    opacity: 0;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    position: relative;
}

.control-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-rose), var(--accent-coral));
    border: 3px solid var(--glass-border-bright);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4);
    position: relative;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn i {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.volume-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.6), rgba(156, 39, 176, 0.6));
}

.volume-btn i {
    width: 24px;
    height: 24px;
}

/* Play button pulse animation */
#play-pause-btn.playing {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4);
    }
    50% {
        box-shadow: 0 12px 40px rgba(233, 30, 99, 0.7);
    }
}

/* Player Status */
.player-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.player-status.hidden {
    opacity: 0;
    pointer-events: none;
}

.status-text {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

/* Loading animation */
.player-status.loading::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .album-art {
        width: 200px;
        height: 200px;
    }

    .album-placeholder i {
        width: 100px;
        height: 100px;
    }

    .song-title {
        font-size: 1.7rem;
    }

    .song-artist {
        font-size: 1.1rem;
    }

    .song-message {
        font-size: 1rem;
    }

    .control-btn {
        width: 60px;
        height: 60px;
    }

    .control-btn i {
        width: 28px;
        height: 28px;
    }

    .volume-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .music-player {
        padding: 2rem 1.5rem;
    }

    .album-art {
        width: 180px;
        height: 180px;
    }

    .album-placeholder i {
        width: 80px;
        height: 80px;
    }

    .song-title {
        font-size: 1.5rem;
    }

    .song-artist {
        font-size: 1rem;
    }

    .song-message {
        font-size: 0.95rem;
    }

    .control-btn {
        width: 55px;
        height: 55px;
    }

    .control-btn i {
        width: 24px;
        height: 24px;
    }

    .volume-btn {
        width: 40px;
        height: 40px;
    }

    .volume-btn i {
        width: 20px;
        height: 20px;
    }

    .time-current,
    .time-duration {
        font-size: 0.8rem;
    }
}
