@charset "utf-8";

* {
    margin         : 0;
    padding        : 0;
    list-style-type: none;
}

html {
    font-size: calc(100vw / 375 * 100);
}

body {
    font-size: .16rem;
}

#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(50px);
}

/* 顶部的标题部分 */
.title-bar {
    height       : .6rem;
    border-bottom: 1px solid #ececec;
    padding      : 0rem .1rem;
    box-sizing   : border-box;
}

.title-text {
    font-size              : .2rem;
    font-weight            : bold;
    background-image       : linear-gradient(to left, rgba(223, 247, 88, 0.877), rgba(230, 49, 220, 0.877), rgba(91, 215, 247, 0.877));
    color                  : transparent;
    -webkit-background-clip: text;
    background-repeat      : no-repeat;
    background-size        : 200% 100%;
    animation              : titie-text-ani 2s linear infinite;
}

@keyframes titie-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;
}

/* 播放器的磁头部分 */
.play-bar-img {
    position        : absolute;
    left            : 50%;
    z-index         : 2;
    margin-left     : -0.46rem;
    width           : .92rem;
    height          : 1.28rem;
    transform-origin: left top;
    transform       : rotateZ(-50deg);
    transition      : transform 0.5s linear;
}

.disc-box {
    width        : 2.55rem;
    height       : 2.55rem;
    position     : relative;
    border-radius: 50%;
    overflow     : hidden;
    margin       : .85rem auto 0;
    animation    : disc-box-ani 8s linear infinite paused;
}

.disc-img {
    width : 100%;
    height: 100%;
}

.disc-box>.poster {
    width        : 100%;
    height       : 100%;
    position     : absolute;
    left         : 0;
    top          : 0;
    transform    : scale(0.6);
    border-radius: 50%;
}

/* 中间的内容部分 */
.content-box {}

/* 自定义属性来实现动态样式 */
.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    : 0.9rem;
}

.progress-box {
    font-size    : .12rem;
    padding      : 0px .05rem;
    /* box-sizing: border-box; */
}

.progress {
    height           : .04rem;
    background-color : white;
    margin           : 0 .1rem;
    /* box-sizing    : border-box; */
    background-image : linear-gradient(to right, rgb(75, 200, 238), rgba(71, 241, 247, 0.63));
    background-repeat: no-repeat;
    background-size  : 0% 100%;
}

.btn-group {
    padding      : 0 .05rem;
    /* box-sizing: border-box; */
}

.btn-group .iconfont {
    font-size: .28rem;
}

.music-control-btn>.iconfont {
    font-size: .36rem;
}

#btn-bofang {
    font-size: .46rem;
    margin: 0 .15rem;
}



/* 圆盘旋转动画 */
@keyframes disc-box-ani {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1turn);
    }
}

.mask {
    width           : 100%;
    height          : 60vh;
    background-color: rgba(0, 0, 0, 0.4);
    position        : absolute;
    left            : 0;
    bottom          : 0;
    overflow        : auto;
    transition      : transform 0.3s linear;
}

.mask[data-show="0"] {
    transform: translateY(100%);
}

.mask[data-show="1"] {
    transform: translateY(0%);
}

.mask>.iconfont {
    font-size: .28rem;
    color    : white;
    position : absolute;
    right    : .05rem;
    top      : .05rem;
}

.music-list {
    padding   : 0 .05rem;
    box-sizing: border-box;
    height    : 100%;
    overflow  : auto;
}

.music-list>li {
    height       : 35px;
    display      : flex;
    align-items  : center;
    border-bottom: 1px solid #e0dede;
    /* box-sizing: border-box; */
    font-size    : .12rem;
    color        : whitesmoke;
}

/* 播放列表某一项选中以后的样式 */
.music-list>li.selected {
    color      : red;
    font-weight: bold;
}

.music-list>li>span {
    width      : .2rem;
    font-weight: bold;
}




/* 防止屏幕超过768px */
@media only screen and (min-width:769px) {
    html {
        font-size: calc(768px / 375 * 100);
    }

    #app {
        width : 768px;
        margin: auto;
    }
}



[data-play-mode="0"]::before {
    content: "\e704";
}

[data-play-mode="1"]::before {
    content: "\e64a";
}

[data-play-mode="2"]::before {
    content: "\e649";
}