:root {
    --primary: #6366f1;
    --glass: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.15);
}

body {
    background: #0b0f1a;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Background Blurs */
.bg-circle { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; }
.c1 { width: 300px; height: 300px; background: var(--primary); top: -50px; left: -50px; opacity: 0.5; }
.c2 { width: 250px; height: 250px; background: #a855f7; bottom: -50px; right: -50px; opacity: 0.5; }

/* The Player Card */
.player-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 30px;
    width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.top-bar { display: flex; justify-content: space-between; align-items: center; opacity: 0.8; }
.top-bar i { cursor: pointer; font-size: 1.2rem; }

.img-area {
    width: 220px;
    height: 220px;
    margin: 25px auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}
.img-area img { width: 100%; height: 100%; object-fit: cover; }

.song-details .name { font-size: 1.5rem; font-weight: 700; margin: 10px 0 5px; }
.song-details .artist { font-size: 1rem; opacity: 0.5; }

/* Progress Bar */
.progress-area {
    height: 6px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 30px;
    cursor: pointer;
}
.progress-bar {
    height: inherit;
    width: 0%;
    background: var(--primary);
    border-radius: inherit;
    position: relative;
}
.timer { display: flex; justify-content: space-between; font-size: 0.8rem; margin-top: 10px; opacity: 0.6; }

/* Controls */
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 35px; }
.controls i { font-size: 1.6rem; cursor: pointer; transition: 0.3s; }
.controls i:hover { color: var(--primary); }
.controls i.active { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

.play-pause {
    width: 65px;
    height: 65px;
    background: white;
    color: #0b0f1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem !important;
}

/* Sliding Playlist CSS */
.music-list {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 26, 0.98);
    padding: 25px;
    border-radius: 35px 35px 0 0;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}
.music-list.show { bottom: 0; }
.list-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 15px; }
.music-list ul { padding: 0; margin: 0; max-height: 200px; overflow-y: auto; text-align: left; }
.music-list li { list-style: none; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }

/* Mobile View */
@media (max-width: 450px) {
    .player-card { width: 90%; }
}