@charset "utf-8";

*{
    margin:0;
    padding: 0;
    list-style-type: none;
}

html{
    font-size: calc(100vw / 375 * 100);
}

body{
    font-size: 16px;
}

.content-box{
    box-sizing: border-box;
}

#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(100px);
}

/* 顶部标题部分 */
.title-bar{
    height: .6rem;
    border-bottom: 2px solid #ececec;
}

.title-bar>.title-text{
    font-weight: bold;
    font-size: .18rem;
    background-image: linear-gradient(to right,rgb(235, 185, 21),rgb(96, 96, 105));
    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{
    color: white;
    font-size: .18rem;
    font-weight: 600;
}

/* 中间内容部分 */

.player-box{
    position: relative;
    overflow: hidden;
    top: .5rem;
}

.play-bar-img{ 
    top: 10px;
    width: .92rem;
    height: 1.18rem;
    position: absolute;
    z-index: 2;
    transform-origin: .1rem .1rem;
    transition: transform 0.5s linear;
    left: 50%;
}

.disc-box{
    width: 2.55rem;
    height: 2.55rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: .5rem auto;
}

.disc-box>img{
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: absolute;
}

.disc-box>.poster{
    z-index: -1;
    border-radius: 50%;
    animation: disc-box-ani 20s linear infinite;
}

@keyframes disc-box-ani{
    from{
        transform: rotateZ(0deg) scale(0.6);
    }
    to{
        transform: rotateZ(360deg) scale(0.6);
    }
}

/* 自定义属性实现动态样式 */
.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>.poster{
    animation-play-state: paused;
}
.player-box[data-play-status="1"]>.disc-box>.poster{
    animation-play-state:running;
}

/* 底部控制器部分 */
.control-bar{
    height: .9rem;
    border-top: 2px solid #ececec;
}

.progress-box{
    font-size: .12rem;
    padding: 0px 0.05rem;
}

.progress{
    height: .06rem;
    margin: 0px .1rem;
    background-image: linear-gradient(to right,rgb(205, 240, 125),rgb(205, 240, 125));
    background-color: white;
    background-repeat: no-repeat;
    background-size: 0% 100%;
}

.btn-group{
    padding: 0px .05rem;
}

.btn-group .iconfont{
    font-size: .20rem;
}

.music-control-btn .iconfont{
    font-size: .36rem;
    margin:0 .05rem ;
}

#btn-bofang{
    font-size: .5rem;
}

[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;
    transition: transform 0.3s linear;
}

.mask[data-show = "0"]{
    transform: translateY(100%);
}
.mask[data-show = "1"]{
    transform: translateY(0);
}

.music-list>li{
    height: .35rem;
    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{
    box-sizing: border-box;
    padding: 0 .1rem;
    height: 100%;
    overflow: auto;
}

.music-list>li>span{
    width: .15rem;
    font-weight: bold;
    margin-right: .05rem;

}

.mask>.icon-iconddgb{
    font-size: .28rem;
    color: white;
    position: absolute;
    right: .05rem;
    top: .05rem;
}

@media only screen and (min-width:769px){
    html{
        font-size: calc(768px / 375 * 100);
    }
    #app{
        width: 768px;
        margin: auto;
    }
}