* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
.player-lyrics-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.audioplayer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #333333;
    color: #fff;
    font-family: Arial, sans-serif;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 325px;
    margin: 100px auto 20px auto;
}

.audioplayer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cover-art {
    background: #333;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    height: 300px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;

}
.cover-art img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 4px;

}

.artiste {
    font-size: 14px;
    margin-bottom: 16px;
    color: #bbb;
}

.progress-wrapper {
    width: 285px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.durations {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #bbb;
    user-select: none;
}


.current-time,
.total-duration {
    margin-top: 10px;
    text-align: left;
}


.progress-bar {
    position: relative;
    background: #444;
    height: 8px;
    width: 285px;
    border-radius: 10px;

}

.progress {
    background: #4fa3ff;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.05s ease;
    width: 100%;

}
.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    z-index: 10000;
    pointer-events: none;
}
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.play-pause-button,
.nextBtn,
.prevBtn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pause-button:hover,
.nextBtn:hover,
.prevBtn:hover {
    transform: scale(1.2);
}



.playist {
    width: 300px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-bottom 0.4s ease;
    margin-bottom: 10px;
    max-height: 500px;
}

.playist.collapsed {
    max-height: 50px; 
    margin-bottom: 0; 
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}
.playlist-header h2:hover {
    background: #4fa3ff20; 
}

.playlist-header h2 {
    width: auto;
    height: 100%;
    font-size: 18px;
    color: #fff;
    padding: 15px;
}


.playlist-header h2 {
    width: auto; 
}

.playlist-btn {
    flex: 1;
}
.lyrics-btn {
    flex: 0; 
}


.playlist-items {
    list-style: none;
    padding: 0 10px;

}

.playlist-items li {
    padding: 8px 10px;
    margin: 5px 0 ;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.playlist-items li:hover {
    background: #4fa4ff50;
}

.playlist-items li.active {
    background: #4fa4ffaa;
    font-weight: bold;
}

.playlist-items img {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    object-fit: cover;
}
.playlist-header button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.lyrics {
    min-width: 325px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    margin: 00px auto 50px auto;
    max-height: 500px;
}

.lyrics.collapsed {
    max-height: 0;
    margin-bottom: 0;
    padding: 0;
}

.lyrics-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.lyrics-content {
    padding: 15px;
    color: white;
    font-size: 18px;
    line-height: 1.5;
}




body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1); 
    z-index: -2;
    transition: background-image 0.4s ease;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}
.footer {
    position: fixed;       
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(6px);     
    z-index: 10;                  
}



.volume-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 300px;
}

.volume-low,
.volume-high {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
}

.volume {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: #4fa3ff;
    border-radius: 3px;
    width: 50%;
    transition: width 0.15s ease; 
}

.volume-thumb {
    position: absolute;
    top: 50%;
    left: 50%; /* Matches initial 50% volume */
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: left 0.15s ease;
}


.footer a {
    color: #4fa3ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 900px) {
    .player-lyrics-container {
        flex-direction: row;
        justify-content: center; /* center in the middle */
        align-items: flex-start; /* align top edges */
    }
    .audioplayer {
        margin: 100px 50px;
    }
    
    .lyrics {
        margin: 100px 0 ;
    }
}