@charset "utf-8";
*{
    margin: 0px;
    padding: 0px;
    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: 1px solid #ececec;
    box-sizing: border-box;
    padding: 0px .1rem;

}
.title-text{
    font-weight: bold;
    font-size: .2rem;
    background-image: linear-gradient(to right,deeppink,orange,rgb(71, 71, 228),rgb(223, 22, 241));
    color: transparent;
    -webkit-background-clip: text;
    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%;
    }
}
.title-bar>.iconfont{
    font-size: .2rem;
}
/*圆盘播放器的大盒子*/
.player-box{
    position: relative;
    /*形成BFC，解决margin穿透*/
    overflow: hidden;
    /* border: 4px solid red; */
}
.play-bar-img{
    position: absolute;
    left: 50%;
    /* border: 2px solid red; */
    z-index: 2;
    /* transform: translate(-50%); */
    margin-left: -0.46rem;
    width: .92rem;
    height: 1.28rem;
    transform-origin: left top;
    transition : transform 0.5s linear;
    transform : rotateZ(-50deg);
    
}
.disc-box{
   
    width: 2.55rem;
    height: 2.55rem;
    border: 5px solid black;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: .5rem auto;
    margin: 0.8rem auto;
    animation: disc-box-ani 15s linear infinite paused;
}
.disc-img{
    width: 100%;
    height: 100%;
}
.disc-box>.poster{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    transform: scale(0.6);
    border-radius: 50%;
}
/*自定义属性实现动态样式*/
/*0代表暂停状态，1代表播放状态*/
.player-box[data-play-status="0"]>.play-bar-img{
    transform : rotateZ(-50deg);
}
.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;
}

/*中间内容部分*/

/*底部的控制部分*/
.control-bar{
    border-top:  1px solid #ececec;
    height: .9rem;
}
.progress-box{
    font-size: .12rem;
    padding: 0px .05rem;
}
.progress{
    height: .04rem;
    background-color: white;
    margin: 0px .1rem;
    background-image: linear-gradient(to right,red,red);
    background-repeat: no-repeat;
    background-size: 0% 100%;
}
.btn-group{
    padding: 0px .05rem;
}
.btn-group .iconfont{
    font-size: .28rem;
}
.music-control-btn .iconfont{
    font-size: .36rem;
}
#btn-bofang{
    font-size: .46rem;
    
}
#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{
    width: 100%;
    height: 70vh;
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    left: 0px;
    bottom: 0px;
    overflow: auto;
    transform : translateY(100%);
    transition: transform 0.3s linear;
}
.mask[data-show="0"]{
    transform : translateY(100%);
}
.mask[data-show="1"]{
    transform : translateY(0);
}
.music-list{
    box-sizing: border-box;
    padding: 0px .05rem;
    height: 100%;
    overflow: auto;
}
.music-list>li{
    height: .35rem;
    display: flex;
    align-items: center;
    border-bottom: 1px dotted white;
    font-size: .12rem;
    /* font-weight: bold; */
    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: .05rem;
    top: .05rem;
}



/*圆盘旋转的动画*/
@keyframes disc-box-ani{
    0%{
        transform: rotateZ(0deg);
    }
    100%{
        transform: rotateZ(360deg);
    }
}

/*防止屏幕超过68px*/
@media only screen and (min-width:769px){
    html{
        font-size: calc(768px /375 * 100);
    }
    #app{
        width: 768px;
        margin: auto;
    }
}