:root {
    --bg-color: #0a0a0c;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.road-animation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 50px, transparent 50px, transparent 100px);
    opacity: 0.1;
    animation: drive 3s linear infinite;
    z-index: -1;
}

@keyframes drive {
    from { transform: translateX(0); }
    to { transform: translateX(-100px); }
}

.player-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    z-index: 10;
    text-align: center;
}

.track-info {
    margin-bottom: 2.5rem;
}

.song-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.artist-name {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.visualizer-container {
    height: 120px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#visualizer {
    width: 100%;
    height: 100%;
}

.controls-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.progress-section {
    margin-bottom: 2rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type="range"]:focus {
    outline: none;
}

/* Track */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

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

.volume-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 150px;
    color: var(--text-secondary);
}

#volume-slider {
    flex: 1;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .player-container {
        padding: 1.5rem;
    }
    .song-title {
        font-size: 2rem;
    }
}
