@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, rgb(0, 136, 255), rgb(4, 255, 255));
    color: transparent;
    -webkit-background-clip: text;
    text-shadow: 0 0 .03rem white;
    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;
}

/*播放器的磁头部分*/
.play-bar-img {
    position: absolute;
    left: 50%;
    z-index: 2;
    margin-left: -0.46rem;
    width: .92rem;
    height: 1.28rem;
    transform-origin: left top;
    transition: transform 0.5 linear;
}

.disc-box {
    width: 2.55rem;
    height: 2.55rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: .8rem auto;
    animation: disc-box-ani 15s linear infinite;
}

.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;
}

/*圆盘旋转的动画*/
@keyframes disc-box-ani {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(1turn);
    }
}

/*中间内容部分*/
.content-box {}

/*底部控制器部分*/
.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, aqua, aqua);
    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: .4rem;
}

[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, .5);
    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;
    color: white;
}

/* 播放列表选中的样式*/
.music-list>li.selected {
    color: red;
    font-weight: bold;
}

.music-list>li>span {
    width: .2rem;
    font-weight: bold;
}

.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;
    }
}