:root {
    --deep-purple: #1a0b2e;
    --mid-purple: #2d1b4d;
    --bright-yellow: #f1c40f;
    --soft-white: #e0e0e0;
}

body {
    background-color: var(--deep-purple);
    color: var(--soft-white);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 950px;
    height: 600px;
    background: var(--mid-purple);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-right: 2px solid #3d2a5f;
    display: flex;
    flex-direction: column;
}

.yellow-text { color: var(--bright-yellow); }

#searchBar {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    border: none;
    background: #3d2a5f;
    color: white;
    box-sizing: border-box;
}

.btn-upload {
    width: 100%;
    padding: 10px;
    background: var(--bright-yellow);
    color: var(--deep-purple);
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

#playlistView {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.playlist-item {
    padding: 12px;
    border-bottom: 1px solid #3d2a5f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.playlist-item:hover { background: #3d2a5f; }
.playlist-item span { cursor: pointer; flex-grow: 1; }

.item-btns i {
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9em;
}

.item-btns i:hover { color: var(--bright-yellow); }

/* Player Area */
.main-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.disc {
    width: 220px;
    height: 220px;
    border: 6px solid var(--bright-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: rotate 10s linear infinite;
    animation-play-state: paused;
}

@keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }

.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    margin: 0 15px;
    cursor: pointer;
    transition: 0.3s;
}

.controls .play-trigger { font-size: 50px; color: var(--bright-yellow); }
.active { color: var(--bright-yellow) !important; text-shadow: 0 0 10px var(--bright-yellow); }

.progress-container {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

#progressBar { flex-grow: 1; accent-color: var(--bright-yellow); }
#volumeSlider { accent-color: var(--bright-yellow); width: 80px; }