* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 i {
    margin-right: 10px;
    color: #ffd700;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Player Container */
.player-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.player-info {
    text-align: center;
    margin-bottom: 30px;
}

.album-art {
    margin-bottom: 20px;
}

.album-art img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    object-fit: cover;
}

.track-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.track-info p {
    color: #666;
    font-size: 1.1rem;
}

/* Player Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #667eea;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.play-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
}

.play-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.volume-control i {
    color: #667eea;
    font-size: 1.2rem;
}

#volumeSlider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

/* Playlist Container */
.playlist-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.playlist-container h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.playlist-container h3 i {
    margin-right: 10px;
    color: #667eea;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    border-color: #667eea;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.playlist {
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.playlist-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.playlist-item.active .song-info h4,
.playlist-item.active .song-info p {
    color: white;
}

.playlist-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}

.song-info {
    flex: 1;
}

.song-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.song-info p {
    font-size: 0.9rem;
    color: #666;
}

.song-duration {
    color: #999;
    font-size: 0.9rem;
}

.playlist-item.active .song-duration {
    color: rgba(255,255,255,0.8);
}

/* Responsividade */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .player-container {
        position: static;
        padding: 20px;
    }
    
    .album-art img {
        width: 150px;
        height: 150px;
    }
    
    .control-buttons {
        gap: 15px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .player-container,
    .playlist-container {
        padding: 15px;
    }
    
    .album-art img {
        width: 120px;
        height: 120px;
    }
    
    .track-info h2 {
        font-size: 1.3rem;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* Scrollbar personalizada */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
} 