@charset "utf-8";

* {
    padding: 0;
    margin: 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(50px);
}

/* 顶部的标题部分 */
.title-bar {
    height: .6rem;
    border-bottom: 1px solid #ececec;
    box-sizing: border-box;
    padding: 0 .1rem;
}

.title-text {
    font-weight: bold;
    font-size: 0.18rem;
    background-image: linear-gradient(to right, skyblue, rgb(231, 146, 231));
    color: transparent;
    -webkit-background-clip: text;
    text-shadow: 0px 0px 10px #ffffff;
    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: 0.2rem;
}

/* 圆盘播放器的大盒子 */
.player-box {
    position: relative;
    /* 形成BFC解决magrin穿透 */
    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.5s linear;
    transform: rotateZ(-50deg);
}

.disc-box {
    width: 2.55rem;
    height: 2.55rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: .8rem auto 0;
    animation: disc-box-oni 20s linear infinite paused;
}

/* 圆盘旋转的动画 */
@keyframes disc-box-oni {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(1turn);

    }
}

.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%;
}

/* 自定义属性实现动态样式
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: 0.9rem;
}

.progress {
    height: 6px;
    background-color: white;
    margin: 0px 0.1rem;
    background-image: linear-gradient(to right, red, red);
    background-repeat: no-repeat;
    background-size: 50% 100%;
}

.btn-group {
    padding: 0 0.05rem;
}

.btn-group .iconfont {
    font-size: 0.28rem;
}

.music-control-btn .iconfont {
    font-size: .36rem;
}

#btn-play {
    font-size: .46rem;
}

[data-play-model='0']::before {
    content: '\e704';
}

[data-play-model='1']::before {
    content: '\e64a';
}

[data-play-model='2']::before {
    content: '\e649';
}

.mask {
    width: 100%;
    height: 80vh;
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    left: 0px;
    bottom: 0px;
    /* overflow: auto; */
    transform: translateY(100%);
    transition: all .4s linear;
}

.mask[data-show='0'] {
    transform: translateY(100%);
}

.mask[data-show='1'] {
    transform: translateY(0%);
}
.music-list{
    overflow: auto;
    height: 100%;
}
.music-list li {
    height: 35px;
    display: flex;
    align-items: center;
    border-bottom: 1px groove #bbb;
    font-size: .12rem;
    color: white;
    padding: 0 5px;
}
.music-list li.selected{
    color: red;
    font-weight: bold;
}
.music-list li.selected::before{
    content: '||';
}
.music-list li span {
    width: 0.25rem;
    /* font-weight: bold; */
}

.mask .icon-iconddgb {
    font-size: .30rem;
    position: absolute;
    color: #ececec;
    top: .05rem;
    right: .05rem;
}

/* 防止屏幕超过768px */
@media only screen and (min-width:769px) {
    html {
        font-size: calc(768px / 375 *100)
    }

    #app {
        width: 768px;
        margin: auto;
    }
}