#music-player {
    border: 3px solid #451659;
    width: 100%;
    max-width: 200px;
    padding: 20px 5px 5px 5px;
    background-color: #F6EDFF;
    position: relative;
    min-width: 0;
    height: fit-content;
}

#now-playing {
    position: absolute;
    top: -10;
    left: 5;
    font-size: 12px;
    color:#4c2b5b;
}

#music-inner-border {
    border: 3px solid #451659;
    background-color: #AE97C6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 10px;
}

#album-cover {
    border: 3px solid #451659;
    height: 50px;
    width: 100%;
    object-fit: cover;
}

#song-name-wrapper {
    max-width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    align-self: start;
    padding: 5px 5px 0 5px;
}

#song-name {
    font-size: 12px;
    align-self: flex-start;
    color: #451659;
    text-align: left;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    margin: 0 5px 0 5px;
}

#song-artist {
    font-size: 10px;
    margin: 0;
    align-self: start;
    color: #776787;
}

.progress-bar {
    width: 100%;
    justify-self: center;
    align-self: center;
    height: 3px;
    background: #ffffff;
    border-radius: 50px;
    border: 2px solid #451659;
    cursor: url(assets/cursors/wand-pointer.png), default;
    position: relative;
    margin: 5px 0 5px 0;
}

.progress {
    height: 100%;
    background: #674987;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-bar:hover .progress {
    background: #726282;
}

.progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 2px solid #451659;
    border-radius: 50%;
}

.progress-bar:hover .progress::after {
    background-color: rgb(159, 117, 255);
    transform: scale(0.9) translateY(-50%);
}

#player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

button {
    background-color: transparent;
    border: 0;
    outline: none;
    cursor: url(assets/cursors/wand-pointer.png), default;
    padding: 0;;
}

.play-btn:focus {
    outline: none;
}

#playIcon,
#pauseIcon {
    width: clamp(24px, 3vw, 35px);
    cursor: url(assets/cursors/wand-pointer.png), default;
}

#prev-icon, #next-icon {
    width: clamp(16px, 2.2vw, 20px);
    cursor: url("assets/cursors/wand-pointer.png"), pointer;
}

.scroll {
    animation: marquee 8s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(-100%); /* Start off-screen right */
    }
    100% {
        transform: translateX(100%); /* End off-screen left */
    }
}