/* Cosmic Color Scheme */
:root {
    --space-black: #000119;
    --starlight: #F5F5F7;
    --quantum-blue: #00E6FF;
    --event-horizon: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    --apple-glow: radial-gradient(circle at 50% 50%, rgba(0,230,255,0.2), transparent 70%);
}

/* Quantum Interface */
body {
    justify-items: center;
    background: var(--event-horizon);
    font-family: 'SF Pro Display', 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
    justify-items: center;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--quantum-blue);
    animation: slideIn 1s ease-in-out;
}

.search-container {
    position: relative;
    width: 70%;
    transform-origin: center;
}

input[type="text"] {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--starlight);
    border-radius: 25px;
    width: 100%;
    padding: 2%;
}

input[type="text"]:focus {
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--quantum-blue);
    border-color: var(--quantum-blue);
}

button {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 16px;
    background-color: var(--quantum-blue);
    color: var(--space-black);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

button:hover {
    transform: scale(1.05);
    background-color: #00c7e6;
}

/* Holographic Track Cards */
.track-item {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    margin: 1.5rem auto;
    width: 80%;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.6s, box-shadow 0.6s;
    padding: 20px;
    border-radius: 10px;
}

.track-item:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,230,255,0.15);
}

.track-item h3 {
    color: var(--starlight);
    margin-bottom: 10px;
}

.track-item p {
    color: #b3b3b3;
    margin-bottom: 15px;
}

.track-buttons {
    display: flex;
    gap: 10px;
}

/* Neural Glow Effect */
.neon-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: var(--apple-glow);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
}

/* Particle Field Background */
.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(ellipse at center, #000000 0%, #000119 100%);
    pointer-events: none;
}

/* Hyperdimensional Player */
#player-container {
    background: rgba(0,5,15,0.95);
    backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(120%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

#player-container.visible {
    transform: translateY(0);
}

.player-content {
    max-width: 1200px;
    margin: 0 auto;
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#now-playing {
    font-size: 1.1em;
    color: var(--starlight);
}

.time-display {
    color: #b3b3b3;
    font-size: 0.9em;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-container {
    width: 100%;
    margin: 1.5rem 0;
}

.progress-bar-container {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--quantum-blue);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

#progress-buffer {
    position: absolute;
    height: 100%;
    background: rgba(255,255,255,0.05);
    width: 0;
}

#seek-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

#volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--quantum-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
