@charset "utf-8";


:root {
    /* 控制跳动的音符动画的状态 */
    --play-state: paused;
}

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

body {
    background-color: black;
}

.bg-img {
    display: none;
}

.music-list-box {
    color: white;
    width: 280px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.content-box {
    color: white;
    position: fixed;
    left: 280px;
    top: 0;
    right: 0;
    bottom: 0;
}

.brand {
    font-size: 18px;
    color: white;
    font-style: italic;
    font-weight: bold;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #666666;
}

.brand>.iconfont {
    font-size: 32px;
    margin-right: 10px;
}

.icon-app-close {
    display: none;
}

.ul-music-list {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
}

.ul-music-list::-webkit-scrollbar {
    width: 5px;
}

.ul-music-list::-webkit-scrollbar-thumb {
    background-image: linear-gradient(182deg, #42e695, #3bb2b8);
}

.ul-music-list::-webkit-scrollbar-track {
    background-image: linear-gradient(182deg, #00416a, #e4e5e6);
}

.li-music-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s linear;
    background-color: #333333;
    position: relative;
}

.li-music-item.active {
    color: red;
    background-color: black;
    transform: translateX(5px);
}

.li-music-item:hover {
    transform: translateX(5px);
    background-color: black;
}


.left-music-img {
    width: 32px;
    height: 32px;
}

.right-music-name {}


/* 播放音乐的动画 */
.music-ani-box {
    width: 20px;
    display: none;
    justify-content: space-between;
    position: absolute;
    right: 10px;
    top: 10px;
    bottom: 10px;
}

.li-music-item.active>.music-ani-box {
    display: flex;
}

.music-ani-box>.item {
    width: 5px;
    height: 100%;
    background-color: deeppink;
    transform-origin: bottom;
    animation: music-playing-ani 0.6s linear infinite var(--play-state);
    animation-delay: var(--d);
}

@keyframes music-playing-ani {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.2);
    }

    100% {
        transform: scaleY(1);
    }
}




.canvas-box {
    width: 90%;
    border: 1px solid white;
    height: 300px;
    margin: 100px auto 0;

}

.ul-lrc-box {
    width: 90%;
    height: 190px;
    margin: 10px auto;
    overflow: auto;
}

.ul-lrc-box::-webkit-scrollbar {
    display: none;
}

#bgm {
    width: 90%;
    display: block;
    margin: 10px auto;
}

.ul-lrc-box>li {
    line-height: 1.7;
    font-size: 14px;
    text-align: center;
    color: gray;
}

.ul-lrc-box>li.active {
    color: white;
    font-weight: bold;
}

.progress-box {
    width: 90%;
    margin: 10px auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 10px;
    gap: 10px;
}

.progress {
    height: 8px;
    flex: 1;
    background-color: lightgray;
    --x: 0%;
    background-image: linear-gradient(to right, lightseagreen 0% var(--x), transparent var(--x) 100%);
    position: relative;
    overflow: hidden;
}

.control-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 10px 0;
}

.control-box>.iconfont {
    color: white;
    font-size: 32px;
}

.control-box>.iconfont:active {
    color: lightseagreen;
}

.title-bar {
    display: none;
}

.img-play-bar {
    display: none;
}

.circle-box {
    display: none;
}

.icon-bofangliebiao {
    display: none;
}


/* 顺序播放 */
#play-model[data-play-model="0"]::after {
    content: "\e6f0";
}

/* 随机播放 */
#play-model[data-play-model="1"]::after {
    content: "\ea75";
}

/* 单曲循环 */
#play-model[data-play-model="2"]::after {
    content: "\e67b";
}



.progress::after {
    position: absolute;
    content: "";
    display: block;
    left: 0;
    top: 0;
    width: 200%;
    height: 100%;
    background-image: linear-gradient(to right, #ed4264, #ffedbc, #ed4264);
    background-size: 50% 100%;
    background-repeat: repeat;
    animation: progress-ani 1s linear infinite;
}

@keyframes progress-ani {
    0% {
        background-position-x: -100%;
    }

    100% {
        background-position-x: 0%;
    }
}
.progress[data-loading="0"]::after{
    display: none;
}

.progress[data-loading="1"]::after{
    display: block;
}
