* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2f313c 0%, #0e0913 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.player-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.audio-player {
    margin-bottom: 20px;
}

#audioPlayer {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    outline: none;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

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

.play-pause {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.play-pause:hover {
    background: #6a4190;
}

.track-info {
    text-align: center;
    margin-bottom: 20px;
}

.track-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.progress-info {
    font-size: 0.9rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.1s ease;
}

.playlist-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.playlist-section h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.playlist {
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.playlist-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.playlist-item.active {
    background: #e3f2fd;
    border-left-color: #667eea;
}

.playlist-item .track-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #667eea;
}

.playlist-item .track-details {
    flex: 1;
}

.playlist-item .track-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.playlist-item .track-size {
    font-size: 0.8rem;
    color: #666;
}

.playlist-item .play-btn {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-item .play-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.error {
    text-align: center;
    color: #e74c3c;
    padding: 20px;
    background: #fdf2f2;
    border-radius: 10px;
    margin: 10px 0;
}

footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .player-section,
    .playlist-section {
        padding: 20px;
    }
    
    .player-controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .play-pause {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Custom scrollbar */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.idcrisis__logo {
    width: 200px;
    height: auto;
}

