@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* 定义一个容器 */
.container {
    max-width: 800px;
    margin: auto;
    /* border: 1px solid white; */
}

.left-menu {
    width: 300px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #333333;
}

.btn-box {
    /* background-color: #ffffff; */
    height: 55px;
    text-align: center;
    line-height: 55px;
}

.btn {
    width: 120px;
    height: 35px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 35px;
    cursor: pointer;
}

.index-span {
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    padding: 0 5px;
}

.music-list-box {
    /* background-color:pink; */
    position: absolute;
    width: 100%;
    top: 55px;
    bottom: 0;
    overflow: auto;
}

/* 自定义滚动条 */
.music-list-box::-webkit-scrollbar {
    background-image: linear-gradient(to bottom, gray, black);
    border-radius: 5px;
    width: 5px;
}

.music-list-box::-webkit-scrollbar-thumb {
    background-image: radial-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
}

.music-list-item {
    font-size: 14px;
    line-height: 30px;
    box-sizing: border-box;
    padding: 5px;
    color: #ffffff;
    transition: all 0.5s linear;
    cursor: pointer;
}

.music-pic {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.music-list-item:hover {
    padding-left: 10px;
    background-color: #000000;
}


.right-box {
    position: fixed;
    left: 300px;
    top: 0;
    right: 0;
    height: 100%;
    background-color: #000000;
}

/* 画布 */
#c1 {
    /* border: 1px solid white; */
    display: block;
    margin: 10px auto;
    -webkit-box-reflect: below 15px -webkit-linear-gradient(transparent, transparent 50%, rgba(255, 255, 255, 0.2));
}

/* 音乐播放控制器 */
.music-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.current-time-box,
.duration-box {
    color: white;
    font-size: 14px;
    display: flex;
    justify-content: center;
    width: 80px;
}

.progress {
    flex: 1;
    height: 10px;
    border-radius: 10px;
    background-color: gray;
    background-image: linear-gradient(to right, white, white);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    cursor: pointer;
}

.lrc-box {
    height: 200px;
    overflow: hidden;
}

.one-line {
    height: 35px;
    /* border: 1px solid red; */
    margin-top: calc((200px - 35px) / 2);
    position: relative;
}

.lrc-ul {
    color: gray;
    font-size: 14px;
    position: absolute;
    width: 100%;
    transition: all 0.3s linear;
}

.lrc-ul>li {
    line-height: 35px;
    text-align: center;
}


/* 右上角的菜单图 */
.menu-img {
    border-radius: 5px;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 2;
    box-sizing: border-box;
    padding: 3px;
    width: 30px;
    /* pc端不显示 */
    display: none;
}

/* 当音乐播放的时候，左边列表的单独样式 */
.music-list-box>li.active {
    background-color: #000000;
    padding-left: 10px;
    color: orange;
}

/* 控制器的样式 */
.control-box {
    margin-top: 30px;
    color: gray;
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
}
.control-box>span{
    /* border: 1px solid white; */
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.control-box>.iconfont {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s linear;
}

.control-box>.iconfont:hover {
    color: white;
    font-size: 38px;
}

.control-box>.icon-p {
    font-size: 56px;
}

.control-box>.icon-p:hover {
    color: white;
    font-size: 64px;
}

.range{
    position: absolute;
    top: 570px;
    transform: rotateZ(-90deg);
    display: none;
}

/* 响应式代码 */
@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.5s linear;
    }

    .left-menu[data-show="0"] {
        /* 滑下来隐藏 */
        transform: translateY(100%);
    }

    .left-menu[data-show="1"] {
        /* 滑上去显示 */
        transform: translateY(0);
    }

    .right-box {
        left: 0;
    }

    .menu-img {
        display: block;
    }
}