:root {
    --bg-color: #0f0f12;
    --card-bg: #1a1a20;
    --accent-color: #bb86fc; /* Neon Violet */
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: var(--text-main);
}

.player-card {
    background: var(--card-bg);
    width: 320px;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(187, 134, 252, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
}

.album-art {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #2c2c34, #1a1a20);
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Simple CSS-only Visualizer Animation */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.visualizer span {
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: bounce 1s ease-in-out infinite;
}

.visualizer span:nth-child(1) { height: 20px; animation-delay: 0.1s; }
.visualizer span:nth-child(2) { height: 40px; animation-delay: 0.3s; }
.visualizer span:nth-child(3) { height: 30px; animation-delay: 0.2s; }
.visualizer span:nth-child(4) { height: 40px; animation-delay: 0.4s; }
.visualizer span:nth-child(5) { height: 20px; animation-delay: 0.1s; }

@keyframes bounce {
    0%, 100% { height: 10px; }
    50% { height: 40px; }
}

.track-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.track-info p {
    color: var(--text-dim);
    margin: 5px 0 25px;
    font-size: 0.9rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 30px;
}

#progress-bar {
    flex: 1;
    cursor: pointer;
    accent-color: var(--accent-color);
    height: 4px;
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
    accent-color: var(--accent-color);
    height: 4px;
}

/* Optional: Make the volume icon change color when hovering the slider */
.volume-container:hover {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

/* ... existing styles ... */

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.controls {
    display: flex;
    justify-content: center;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(187, 134, 252, 0.6);
}

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