@charset "utf-8";
/* CSS Document */
.music-player {
    width: 100%;
    max-width:900px;
    background: linear-gradient(135deg, #1a1a1a33 0%, #2d2d2d03 20%);
    border-radius: 5px;
    padding: 10px;
    color: white;
    font-family: 'Arial', sans-serif;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    display: flex
;
    flex-direction: column;
    gap: 15px;
}

        .music-player::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            pointer-events: none;
        }

        .album-section {
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }

        .album-art {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, #404040, #606060);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            animation: rotate 10s linear infinite;
            animation-play-state: paused;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            border: 2px solid #555;
            background-size: cover;
            background-position: center;
            overflow: hidden;
        }

        .album-art img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .album-art.no-image {
            background: linear-gradient(45deg, #404040, #606060);
        }

        .album-art.playing {
            animation-play-state: running;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .player-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
            position: relative;
            z-index: 1;
            min-width: 0;
        }

        .track-info {
            display: flex;
            flex-direction: column;
        }

        .track-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-artist {
            font-size: 13px;
            opacity: 0.7;
        }

        .player-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .control-btn {
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .control-btn:hover {
            background: rgba(255,255,255,0.25);
            transform: scale(1.05);
        }

        .control-btn.small {
            width: 35px;
            height: 35px;
            font-size: 14px;
        }

        .control-btn.large {
            width: 45px;
            height: 45px;

            font-size: 18px;
        }

        .progress-section {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .time-display {
            font-size: 11px;
            opacity: 0.7;
            white-space: nowrap;
        }

        .progress-bar {
            flex: 1;
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            cursor: pointer;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #666, #999);
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s ease;
        }

        .volume-section {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }

        .volume-icon {
            font-size: 16px;
            opacity: 0.8;
        }

        .volume-slider {
            width: 80px;
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            outline: none;
            cursor: pointer;
            -webkit-appearance: none;
        }

        .volume-slider::-webkit-slider-thumb {
            appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #888;
            cursor: pointer;
        }

        .volume-slider::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #888;
            cursor: pointer;
            border: none;
        }

        .playlist-toggle {
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            padding: 8px 12px;
            font-size: 12px;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .playlist-toggle:hover {
            background: rgba(255,255,255,0.25);
        }

        .playlist {
            position: relative;
            background: rgba(255,255,255,0.05);
            border: 1px solid #333;
            border-radius: 10px;
            margin-top: 15px;
            max-height: 150px;
            overflow-y: auto;
            z-index: 1;
            display: block;
        }

        .playlist.show {
            display: block;
        }

        .playlist-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border-bottom: 1px solid #333;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .playlist-item:last-child {
            border-bottom: none;
        }

        .playlist-item:hover {
            background: rgba(255,255,255,0.1);
        }

        .playlist-item.active {
            background: rgba(255,255,255,0.2);
        }

        .playlist-item span {
            font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Scrollbar personalizado */
        .playlist::-webkit-scrollbar {
            width: 6px;
        }

        .playlist::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
        }

        .playlist::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
        }

        .playlist {
            position: relative;
            background: rgba(255,255,255,0.05);
            border: 1px solid #333;
            border-radius: 10px;
            margin-top: 15px;
            max-height: 150px;
            overflow-y: auto;
            z-index: 1;
            display: block;
        }

        .playlist-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border-bottom: 1px solid #333;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .playlist-item:last-child {
            border-bottom: none;
        }

        .playlist-item:hover {
            background: rgba(255,255,255,0.1);
        }

        .playlist-item.active {
            background: rgba(255,255,255,0.2);
        }

        .playlist-item span {
            font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .volume-icon {
            font-size: 16px;
            opacity: 0.8;
        }

        /* Scrollbar personalizado */
        .playlist::-webkit-scrollbar {
            width: 6px;
        }

        .playlist::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
        }

        .playlist::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .music-player {
                flex-direction: column;
                gap: 15px;
                max-width: 100%;
                padding: 15px;
            }

            .album-section {
                align-self: center;
            }

            .player-controls {
                flex-direction: column;
                gap: 15px;
                width: 100%;
            }

            .progress-section {
                order: -1;
            }

            .controls {
                justify-content: center;
            }

            .volume-section {
                justify-content: center;
                width: 100%;
            }

            .volume-slider {
                width: 120px;
            }
        }
