@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-family: "楷体";
}
/* 容器 */
.container {
    max-width: 900px;
    margin: auto;
    border: 1px solid white;
}

/* 左边的菜单栏 */
.left-menu {
    width: 300px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #303030;
    /* background-image: linear-gradient(to bottom,rgb(8, 193, 255), yellow, rgb(8, 193, 255)); */
}

/* 按钮盒子 */
.btn-box {
    height: 55px;
    text-align: center;
    line-height: 55px;
    box-shadow: 0 5px 10px 0px gray;
}

.btn {
    width: 120px;
    height: 35px;
    background-color: transparent;
    border-radius: 35px;
    color: #ffffff;
    border: 1px solid white;
    cursor: pointer;
}

/* 音乐菜单列表盒子 */
.music-list-box {
    position: absolute;
    width: 100%;
    top: 55px;
    bottom: 0;
    overflow: auto;
}

/* 自定义滚动条 */
.music-list-box::-webkit-scrollbar {
    /* display: none; */
    /* background-image: linear-gradient(to bottom,rgb(8, 193, 255), yellow, rgb(8, 193, 255)); */
    background-color: gray;
    width: 5px;
}

.music-list-box::-webkit-scrollbar-thumb {
    /* background-image: radial-gradient(transparent, rgb(201, 212, 213), transparent); */
    background-color: black;
    border-radius: 10px;
}

/* 每一项 */
.music-list-item {
    font-size: 14px;
    line-height: 30px;
    box-sizing: border-box;
    padding: 5px;
    color: white;
    transition: all 0.3s linear;
    cursor: pointer;
}

.music-list-item:hover {
    background-color: black;
    padding-left: 10px;
}

/* 音乐图片 */
.music-pic {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.index-span {
    font-weight: bold;
    display: inline-block;
    font-size: 12px;
    width: 20px;
    text-align: center;
}

/* 右边的内容盒子 */
.right-box {
    position: fixed;
    background-color: rgb(0, 0, 0);
    left: 300px;
    height: 100%;
    right: 0;
}

/* 滚动条 */
.music-control {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.progress {
    flex: 1;
    height: 10px;
    background-color: lightgray;
    background-image: linear-gradient(to right,rgb(0, 234, 255),rgb(114, 114, 226),rgb(0, 234, 255));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    border-radius: 20px;
}   

.current-time-box,
.duration-box {
    color: white;
    font-size: 14px;
    width: 80px;
    display: flex;
    justify-content: center;
}

/* 右上角的那个三个横线的菜单图片 */
.menu-img {
    /* 在PC端默认是没有的 */
    display: none;
    border: 1px solid white;
    border-radius: 5px;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px;
    width: 30px;
}

/* 当音乐播放的时候左边的列表的单独样式 */
.music-list-box>li.active{
    background-color: black;
    padding-left: 10px;
    color: rgb(0, 132, 255);
}

/* 歌词的布局 */
.lrc-box{
    height: 300px;
    position: relative;
    overflow: auto;
}
.lrc-box::-webkit-scrollbar{
    display: none;
}
.one-line{
    height: 35px;
    position: relative;
    width: 100%;
    margin-top: 200px;
    transition: all 0.3s linear;
}
.lrc-ul{
    color: rgb(211, 211, 211);
    font-size: 14px;
    position: absolute;
    width: 100%;
    transition: all 0.3s linear;
}
.lrc-ul>li{
    height: 35px;
    line-height: 35px;
    text-align: center;
}
.linechange{
    color: aqua;
    font-size: 25px;
    font-weight: bold;
}
/* 画布 */
#c1{
    display: block;
    margin: 0 auto;
    -webkit-box-reflect: below 5px linear-gradient(to bottom,black,transparent);
}

/* 控制器的样式 */
.control-box{
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-box>.iconfont{
    font-size: 32px;
    cursor: pointer;
    margin: 0 10px;
}
.control-box>.iconfont:hover{
    color: white;
}
.control-box>.icon-p{
    font-size: 42px;
}

/* 右边的盒子移动端的旋转图片 */
.right-img{
    display: none;
}
.right-img>img{
    display: block;
    border-radius: 50%;
    height: 60%;
    width: 60%;
    margin: 20px auto;
}

@keyframes rotate-ani{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(1turn);
    }
}







/* 响应式代码 */
@media only screen and (max-width:768px) {
    .left-menu {
        z-index: 1;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        top: 50%;
        box-shadow: 0 0 15px 5px white;
        transition: all 0.3s linear;
    }

    .left-menu[data-show="0"] {
        /* 滑下来隐藏 */
        transform: translateY(100%);
    }

    .left-menu[data-show="1"] {
        /* 滑下来隐藏 */
        transform: translateY(0);
    }

    .menu-img {
        display: block;
    }

    .right-box {
        left: 0;
    }

    #c1{
        display: none;
    }
    .right-img{
        display: block;
        /* animation: rotate-ani 15s linear infinite running; */
    }
}