@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* 定义一个容器 */

.container {
    max-width: 900px;
    margin: auto;

}

/* 左边盒子 */
.left-menu {
    width: 300px;
    left: 0px;
    top: 0px;
    bottom: 0;
    position: fixed;
    background-color: pink;
}

/* logo样式 */
.left-menu>img {
    width: 100%;
    height: 60px;
}

/* 按钮盒子 */
.btn-box {
    height: 55px;
    text-align: center;
    line-height: 55px;
}

/* 音乐栏 */
.music-list-box {
    width: 100%;
    top: 55px;
    bottom: 0px;
    position: absolute;
    overflow: auto;
}

/* 自定义滚动条 */
.music-list-box::-webkit-scrollbar {
    width: 5px;
    background-color: white;
    border-radius: 5px;
}

.music-list-box::-webkit-scrollbar-thumb {
    background-image: linear-gradient(to bottom, pink, rgb(153, 104, 104));
}

/* 按钮样式 */
.btn {
    width: 120px;
    height: 35px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 35px;
    cursor: pointer;
}

.index-span {
    font-weight: bold;
    display: inline-block;
    padding: 0 5px;
    font-size: 12px;
}

/* 音乐盒子里面的元素 */
.music-list-item {
    font-size: 14px;
    line-height: 30px;
    padding: 5px;
    box-sizing: border-box;
    color: white;
    font-family: '华康少女字体';
    transition: all 0.3s linear;
    cursor: pointer;
}

.music-list-item:hover {
    padding-left: 10px;
    background-color: rgb(199, 102, 102);
}

/* 音乐播放控制器 */
.music-control {
    display: flex;
    align-items: center;
    margin-top: 50px;
}

.current-time-box,
.duration-box {
    color: white;
    font-size: 14px;
    width: 80px;
    display: flex;
    justify-content: center;
}

/* 进度条 */
.progress {
    flex: 1;
    height: 14px;
    background-color: gray;
    background-image: linear-gradient(to right, yellow, orange);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    z-index: 3;
    border-radius: 10px;
}

.music-pic {
    width: 30px;
    height: 30px;
    /* 行内块级元素居中 */
    vertical-align: middle;
}

/* 右边盒子 */
.right-box {
    height: 100%;
    left: 300px;
    right: 0;
    position: fixed;
    background-color: black;
    background-image: url(/img/bgImg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* 黑胶唱片 */
.yuan {
    width: 100%;
    display: flex;
    justify-content: center;
}

.yuan-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: none;
    animation: pic-ani 20s linear infinite;

}

.yuan-img[data-ani-state="0"] {
    animation-play-state: paused;
}

.yuan-img[data-ani-state="1"] {
    animation-play-state: running;
}

/* 定义旋转的动画 */
@keyframes pic-ani {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(1turn);
    }
}

/* 音乐播放控制器 */

.current-time-box,
.duration-box {
    color: white;
    font-size: 14px;
}

/* 歌词的布局 */
.lrc-box {
    height: 450px;
    overflow: hidden;
}

.one-line {
    height: 35px;
    margin-top: 200px;
    position: relative;
}

.lrc-ul {
    color: white;
    font-size: 18px;
    position: absolute;
    width: 100%;
    transition: all 0.3s linear;

}

.lrc-ul>li {
    line-height: 35px;
    text-align: center;
}

/* 右上角那三个横线的菜单图 */
.menu-img {
    border: 1px solid lightgray;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 2;
    box-sizing: border-box;
    padding: 3px;
    width: 30px;
    border-radius: 5px;
    /* 在pc端默认没有 */
    display: none;
}

/* 当音乐播放的时候，左边列表的单独样式 */
.music-list-box>li.active {
    background-color: black;
    padding-left: 10px;
    color: orange;
}

#c1 {
    display: block;
    margin: 10px auto;
    -webkit-box-reflect: below 5px linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}


/* 歌词滚动变色 */
.lrc-li.active {
    color: transparent;
    font-size: 24px;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, orange, yellow, red);
    font-family: '华康少女字体';
}

/* 控制器样式 */
.control-box {
    color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    position: relative;
}

.control-box>.iconfont {
    font-size: 32px;
    cursor: pointer;
}

.control-box>.iconfont:hover {
    color: white;
}

.control-box>.icon-p {
    font-size: 42px;
}

/* 调整音量 */
.control-box>.icon-fill {
    margin-left: 30px;

}

.volume-box {
    width: 180px;
    height: 5px;
    border: 1px solid white;
    border-radius: 10px;
    background-color: gray;
    background-image: linear-gradient(to right, orange, yellow, red);
    background-repeat: no-repeat;
    background-size: 50% 100%;
    position: absolute;
    left: 200px;

}

.control-box>.volume-box[data-sound="0"] {
    display: none;
}

.control-box>.volume-box[data-sound="1"] {
    display: block;
}



/* 响应式代码 */
@media only screen and (max-width:768px) {
    .left-menu {
        z-index: 1;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        top: 200px;
        box-shadow: 0 0 15px 5px white;
        transition: all 0.3s linear;
    }

    .right-box {
        left: 0;
    }

    .left-menu[data-show="0"] {
        /* 滑下来隐藏 */
        transform: translateY(100%);
    }

    .left-menu[data-show="1"] {
        /* 滑上去显示 */
        transform: translateY(0);
    }

    .menu-img {
        display: block;
    }

    .yuan>img {
        display: block;
    }

    #c1 {
        display: none;
    }

    .lrc-li.active {
        color: transparent;
        font-size: 12px;
        -webkit-background-clip: text;
        background-image: linear-gradient(to right, orange, yellow, red);
        font-family: '华康少女字体';
    }

    /* 歌词的布局 */
    .lrc-box {
        height: 200px;
        overflow: hidden;
    }

    .one-line {
        height: 20px;
        margin-top: 100px;
    }

    .lrc-ul {
        color: white;
        font-size: 12px;
        transition: all 0.3s linear;
    }

    .lrc-ul>li {
        line-height: 20px;
        text-align: center;
    }

    /* 调整音量 */
    .control-box>.icon-fill {
        margin-left: 10px;
    }

    .volume-box {
        width: 70px;
        height: 2px;
    }

    .control-box>.iconfont {
        font-size: 18px;
        cursor: pointer;
    }

    .current-time-box,
    .duration-box {
        color: white;
        font-size: 6px;
        width: 80px;
        display: flex;
        justify-content: center;
    }

    /* 进度条 */
    .progress {
        height: 7px;
        background-color: gray;
        background-image: linear-gradient(to right, yellow, orange);
        background-repeat: no-repeat;
        background-size: 0% 100%;
        z-index: 3;
        border-radius: 10px;
    }

    /* 控制器样式 */
    .control-box {
        color: gray;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
    }

    .control-box>.iconfont {
        font-size: 16px;
        cursor: pointer;
    }

    .right-box {
        height: 100%;
        width: 100%;
        right: 0;
        position: fixed;
        background-color: black;
        background-image: url(/img/adImg.jpg);
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
}