:root {
    --bg-color: #0d0d15;
    --text-color: #ffffff;
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
    animation: float 10s infinite ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
    100% { transform: translate(0, 0); }
}

.jukebox-wrapper {
    width: 90%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.neon-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 80px var(--primary-color);
    letter-spacing: 2px;
}

.player-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#player-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

#player {
    width: 100%;
    height: 100%;
}

.controls-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.track-info h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.track-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1.5rem 0;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    transition: width 0.1s linear;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, text-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px #fff;
}

.btn-main {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
}

#volume-slider {
    width: 100px;
}

.playlist-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1rem;
    height: 100%;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

.playlist-container h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

#playlist-list {
    list-style: none;
}

.track-item {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background: rgba(0, 243, 255, 0.2);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .jukebox-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .playlist-container {
        max-height: 300px;
    }
}
