* {box-sizing:border-box;}
img {max-width:100%;}/* 图片超宽修复*/

.music-box {
    box-sizing: border-box;
    margin: 0 auto;
    width: 42rem;
    border-radius: 1rem;
    background: #f5f7f9;
    padding: 2rem;
}
.music-box .music {
    display: none;
}
.music-box .music-name {
    font-size: 2rem;
    color: #111;
    font-weight: bolder;
    line-height: 2.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.music-box .music-control {
    margin-top: 1rem;
    display: flex;
}
.music-box .progress {
    margin-top: 1.5rem;
    width: 100%;
    height: 2.5rem;
    border-top: 2px solid #d9d9d9;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
}
.music-box .progress .now {
    position: absolute;
    top: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--theme-color, #004aff);
}
.music-box .progress .now::after {
    display: none;
    position: absolute;
    top: -1px;
    right: -3px;
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: var(--theme-color, #004aff);
}
.music-box .progress:hover .now::after {
    display: inline-block;
}
.music-box .play {
    margin-left: 2rem;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 4rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.music-box .play::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    background-image: url(./play-3.png);
    background-size: cover;
    background-position: center;
}
.music-box .play.is-play::after {
    -webkit-animation: audioPlay 1.2s step-start infinite;
    animation: audioPlay 1.2s step-start infinite;
}

@keyframes audioPlay {
    30% {
        background-image: url(./play-1.png);
    }
    31% {
        background-image: url(./play-2.png);
    }
    61% {
        background-image: url(./play-2.png);
    }
    62% {
        background-image: url(./play-3.png);
    }
    100% {
        background-image: url(./play-3.png);
    }
}
