/* Modern Music Player Styles - Spotify Inspired */

:root {
    --mmp-primary: #1DB954;
    --mmp-secondary: #191414;
    --mmp-dark: #121212;
    --mmp-gray: #282828;
    --mmp-light-gray: #b3b3b3;
    --mmp-white: #ffffff;
    --mmp-hover: #1ed760;
}

* {
    box-sizing: border-box;
}

.mmp-container {
    max-width: 1200px;
    margin: 40px auto;
    background: linear-gradient(180deg, var(--mmp-gray) 0%, var(--mmp-dark) 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Install Prompt */
.mmp-install-prompt {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.2) 0%, rgba(29, 185, 84, 0.05) 100%);
    border: 2px solid var(--mmp-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mmp-install-content h3 {
    color: var(--mmp-white);
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.mmp-install-content p {
    color: var(--mmp-light-gray);
    margin: 0 0 16px 0;
    font-size: 14px;
}

.mmp-install-btn {
    background: var(--mmp-primary);
    color: var(--mmp-secondary);
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmp-install-btn:hover {
    background: var(--mmp-hover);
    transform: scale(1.05);
}

.mmp-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--mmp-light-gray);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mmp-install-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mmp-white);
}

/* Categories Navigation */
.mmp-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.mmp-category-btn {
    background: rgba(255, 255, 255, 0.07);
    color: var(--mmp-light-gray);
    border: none;
    padding: 10px 24px;
    border-radius: 500px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.mmp-category-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--mmp-white);
    transform: scale(1.04);
}

.mmp-category-btn.active {
    background: var(--mmp-primary);
    color: var(--mmp-secondary);
}

/* Player Interface */
.mmp-player {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Album Art */
.mmp-album-art {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.mmp-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mmp-vinyl-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(29, 185, 84, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mmp-album-art:hover .mmp-vinyl-effect {
    opacity: 1;
}

/* Song Info */
.mmp-info {
    text-align: center;
    margin-bottom: 30px;
}

#mmp-current-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--mmp-white);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

#mmp-current-artist {
    font-size: 16px;
    color: var(--mmp-light-gray);
    margin: 0;
    font-weight: 500;
}

/* Progress Bar */
.mmp-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.mmp-progress-container span {
    font-size: 12px;
    color: var(--mmp-light-gray);
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.mmp-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mmp-progress {
    height: 100%;
    background: var(--mmp-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.mmp-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--mmp-white);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mmp-progress-bar:hover .mmp-progress::after {
    opacity: 1;
}

/* Controls */
.mmp-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mmp-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    min-width: 70px;
    height: 48px;
    padding: 0 16px;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--mmp-white);
}

.mmp-btn-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    display: block;
}

.mmp-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

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

.mmp-play-btn {
    min-width: 90px;
    height: 64px;
    background: var(--mmp-primary);
    border-radius: 32px;
}

.mmp-play-btn .mmp-btn-text {
    font-size: 16px;
}

.mmp-play-btn:hover {
    background: var(--mmp-hover);
    transform: scale(1.08);
}

#mmp-stop {
    background: rgba(255, 68, 68, 0.2);
}

#mmp-stop:hover {
    background: rgba(255, 68, 68, 0.3);
}

/* Volume Control */
.mmp-volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
    margin: 0 auto;
}

.mmp-volume-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--mmp-light-gray);
}

.mmp-volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.mmp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--mmp-white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmp-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--mmp-white);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.mmp-volume-slider::-webkit-slider-thumb:hover,
.mmp-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}

/* Loading State */
.mmp-loading {
    opacity: 0.5;
    pointer-events: none;
}
@media (max-width: 768px) {
    .mmp-container {
        padding: 20px;
        margin: 20px;
    }
    
    .mmp-player {
        padding: 30px 20px;
    }
    
    .mmp-album-art {
        width: 220px;
        height: 220px;
    }
    
    #mmp-current-title {
        font-size: 22px;
    }
    
    .mmp-categories {
        gap: 8px;
    }
    
    .mmp-category-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mmp-album-art {
        width: 180px;
        height: 180px;
    }
    
    #mmp-current-title {
        font-size: 20px;
    }
    
    #mmp-current-artist {
        font-size: 14px;
    }
    
    .mmp-controls {
        gap: 12px;
    }
    
    .mmp-control-btn {
        min-width: 60px;
        height: 40px;
        padding: 0 12px;
    }
    
    .mmp-btn-text {
        font-size: 11px;
    }
    
    .mmp-play-btn {
        min-width: 75px;
        height: 56px;
    }
    
    .mmp-play-btn .mmp-btn-text {
        font-size: 14px;
    }
}

/* Loading State */
.mmp-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth Transitions */
.mmp-album-art img,
#mmp-current-title,
#mmp-current-artist {
    transition: all 0.3s ease;
}
