body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.background-image {
    background: url('https://i.scdn.co/image/ab67616d0000b2731072a34d8c8d75e9b2545d8a') no-repeat center center/cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(35px) brightness(0.2);
    -webkit-backdrop-filter: blur(35px) brightness(0.2);
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.control-button {
    font-size: 2.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}
.control-button:hover {
    background: rgba(255, 255, 255, 0.25);
}
.control-button:active {
    transform: scale(0.95);
}

.volume-slider {
    appearance: none;
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, #4A90E2, #F58DDE);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s;
}
.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.modal-button i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}
.modal-button:hover {
    background: rgba(255, 255, 255, 0.25);
}
.modal-button:active {
    transform: scale(0.97);
}

#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 100;
}

#visualizer {
    position: fixed;
    bottom: 0;
    width: 100vw; 
    height: 187px;
    z-index: -1;
}

#recentTracksContainer {
    scrollbar-width: thin;
    scrollbar-color: #ffffff30 #ffffff10;
}
#recentTracksContainer::-webkit-scrollbar {
    width: 8px;
}
#recentTracksContainer::-webkit-scrollbar-thumb {
    background-color: #ffffff30;
    border-radius: 4px;
}