.music-float {
    position: fixed;
    right: -285px;
    bottom: 35px;
    width: 385px;
    z-index: 99999;
    transition: right .55s ease;
}

@media (hover: hover) and (pointer: fine) {
    .music-float:hover {
        right: 20px;
    }
}

.music-float.active {
    right: 20px;
}

.music-card {
    min-height: 160px;
    padding: 30px 30px 10px;
    border-radius: 16px;
    background: #00000065;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.music-header {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-top: -50px;
}

.music-header>img {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    background: #ddd;
    flex-shrink: 0;
}

.music-info {
    min-width: 0;
    flex: 1;
}

.music-info>small {
    margin: 0;
    font-size: 12px;
    color: var(--main);
}

.title-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.title-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marqueeLoop 10s linear infinite;
}

.title-track span {
    font-size: 20px;
    font-weight: 900;
    padding-right: 40px;
}

.music-info>p {
    margin: 0;
    font-size: 12px;
    text-align: end;
}

.music-info>p>#next-sound {
    color: var(--main);
}

.music-content {
    margin-top: 8px;
}

.music-time {
    font-size: 14px;
    font-weight: 800;
    color: #f3f3f3;
    line-height: 1;
    margin-bottom: 8px;
}

.music-progress {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    overflow: hidden;
    cursor: pointer;
}

.music-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: var(--main);
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.music-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, opacity .15s ease;
}

.music-btn:hover {
    transform: scale(1.08);
    opacity: .9;
}

.music-btn:active {
    transform: scale(.94);
}

.music-btn svg {
    width: 85%;
    height: 85%;
    fill: currentColor;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35));
}

.music-btn.play {
    width: 44px;
    height: 44px;
}

@media (max-width: 575px) {
    .music-float {
        width: calc(100vw - 30px);
        right: calc(-100vw + 85px);
        bottom: 25px;
    }

    .music-float.active {
        right: 15px;
    }

    .music-card {
        padding: 24px 20px 10px;
    }

    .music-header {
        gap: 12px;
    }

    .music-header>img {
        width: 82px;
        height: 82px;
    }

    .title-track span {
        font-size: 17px;
    }
}