#floating-player img {
    border-radius: 4px;
}

#floating-player {
    background-color: #2f2f2f;
}

#floating-player .artist-name {
    color: gainsboro;
}

.album-track-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.track-number {
    flex-shrink: 0;
    margin-right: 10px;
}

.album-track-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-track-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cover .album-stats,
#cover .album-info,
#cover .artist-name {
    color: rgb(65, 65, 65);
}

.download-link {
    color: white;
}

.download-link:hover {
    color: white;
}

#songList {
    padding-bottom: 64px;
}

button {
    border: none;
}

.z-0 {
    z-index: -1;
}

#songList li {
    transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
}

#songList li:hover,
#songList li.playing {
    background-color: rgb(31, 41, 55);
    /* bg-gray-800 */
    color: white;
    border-radius: 8px;
    /* Add border radius */
}

#songList li:hover .track-duration,
#songList li.playing .track-duration {
    color: white;
}

#progress-bar-container {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

#progress-bar-fill {
    height: 100%;
    background-color: #ff0000;
    position: absolute;
    left: 0;
    top: 0;
}

#progress-bar-head {
    width: 14px;
    height: 14px;
    background-color: #ff0000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    /* Reset this to 0 */
    transform: translate(0, -50%);
    pointer-events: none;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

#floating-player:hover #progress-bar-head {
    opacity: 1;
}

/* For touch devices */
@media (hover: none) {
    #progress-bar-head {
        opacity: 1;
    }
}

/* Mobile */
@media screen and (max-width: 450px) {
    .album-track-title {
        max-width: calc(100vw - 120px);
    }

    .m-track-title {
        max-width: calc(100vw - 220px);
    }

    #progress-bar-head {
        /* always show on mobile */
        opacity: 1;
    }
}

/* Non-mobile */
@media screen and (min-width: 450px) {
    .floating-player-content {
        width: 75%;
        align-self: center;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spinner-border {
    animation: spin 1s linear infinite;
    border: 3px solid #2f2f2f;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.play-button {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button .button-content {
    position: relative;
    width: 24px;
    height: 24px;
}

.play-button .play-icon,
.play-button .spinner-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
}