@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

html {
    font-size: calc(100vw / 375 * 100);
}

body {
    font-size: 16px;
}

#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.bg-img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    object-fit: cover;
    filter: blur(60px);
}

/* 顶部的标题部分 */

.title-bar {
    height: .6rem;
    border-bottom: 1px solid #ececec;
    box-sizing: border-box;
    padding: 0px .1rem;
}

.title-text {
    font-weight: bold;
    font-size: .2rem;
    background-image: linear-gradient(to right, red, orange, yellow, green, cyan, blue, purple);
    color: transparent;
    -webkit-background-clip: text;
    text-shadow: 0px 0px 15px #ececec;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: title-text-ani 5s linear infinite;
}

@keyframes title-text-ani {
    0% {
        background-position-x: 0%;
    }
    50% {
        background-position-x: 100%;
    }
    100% {
        background-position-x: 0%;
    }
}

.tittle-bar>.iconfont {
    font-size: .2rem;
}

/* 底部的控制器部分 */

.disc-box {
    width: 2.55rem;
    height: 2.55rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: .8rem auto 0px;
    animation: disc-box-ani 20s linear infinite;
}

@keyframes disc-box-ani {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(1turn);
    }
}

.player-box {
    position: relative;
    /* BFC 解决margin穿透 */
    overflow: hidden;
}

.play-bar-img {
    position: absolute;
    left: 50%;
    top: -.025rem;
    z-index: 1;
    margin-left: -0.46rem;
    width: .92rem;
    height: 1.28rem;
    transform-origin: left top;
    transition: transform 0.5s linear;
}

.disc-box>.poster {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: scale(0.6);
    border-radius: 50%;
}

/*
自定义属性实现动态样式
0代表暂停
1代表播放 
 */

.player-box[data-play-status="0"]>.play-bar-img {
    transform: rotateZ(-30deg);
}

.player-box[data-play-status="1"]>.play-bar-img {
    transform: rotateZ(0deg);
}

.player-box[data-play-status="0"]>.disc-box {
    animation-play-state: paused;
}

.player-box[data-play-status="1"]>.disc-box {
    animation-play-state: running;
}

.disc-box>.disc-img {
    width: 100%;
    height: 100%;
}

.control-bar {
    border-top: 1px solid #ececec;
    height: 0.9rem;
}

.progress-box {
    font-size: .12rem;
    padding: 0px 0.05rem;
}

.progress {
    height: 0.04rem;
    background-color: white;
    margin: 0px 0.1rem;
    background-image: linear-gradient( to right, red, orange, yellow, green, cyan, blue, purple);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    border-radius: 2px;
    box-shadow: 0px 0px 15px #ececec;
}

.btn-group {
    padding: 0px .05rem;
}

.btn-group .iconfont {
    font-size: .28rem;
}

.music-control-btn .iconfont {
    font-size: .36rem;
}

#btn-bofang {
    font-size: .46rem;
}

[data-play-mode="0"]::before {
    content: "\e704";
}

[data-play-mode="1"]::before {
    content: "\e64a";
}

[data-play-mode="2"]::before {
    content: "\e649";
}

.mask {
    position: absolute;
    width: 100vw;
    height: 70vh;
    background-color: rgba(0, 0, 0, 0.5);
    left: 0px;
    bottom: 0px;

    transition: transform 0.3s linear;
}

.mask[data-show="0"]{
    transform: translateY(101%);
}
.mask[data-show="1"]{
    transform: translateY(0);
}



.music-list {
    box-sizing: border-box;
    padding: 0 10px;
    height: 100%;
    overflow: auto;
}

.music-list>li {
    height: 35px;
    display: flex;
    align-items: center;
    border-bottom: 1px dotted white;
    font-size: .12rem;
    color: white;
}

.music-list>li.selected{
    color: red;
    font-weight: bold;
}

.music-list>li>span {
    width: 20px;
    font-weight: bold;
}

.mask>.icon-iconddgb {
    font-size: .28rem;
    color: white;
    position: absolute;
    right: 0.05rem;
    top: 0.05rem;
}

@media only screen and (min-width:769px) {
    html {
        font-size: calc(768px / 375 * 100);
    }
    #app {
        width: 768px;
        margin: auto;
    }
}