@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* 定义一个容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
}

.left-menu {
    position: fixed;
    width: 300px;
    left: 0;
    top: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, cadetblue 60%, salmon, cadetblue);
}

.right-box {
    position: fixed;
    left: 300px;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, cadetblue 60%, salmon, cadetblue);
    text-align: center;
}

.left-menu .btn-box {
    height: 55px;
    text-align: center;
    line-height: 55px;
}

.music-list-box {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, cadetblue 55%, salmon, cadetblue);
    overflow: auto;
}

/* 自定义滚动条 */
.music-list-box::-webkit-scrollbar {
    background-image: linear-gradient(to bottom, #808080, #ececec);
    border-radius: 5px;
    width: 5px;
}

.music-list-box::-webkit-scrollbar-thumb {
    background-image: linear-gradient(45deg, violet, cornflowerblue, tomato);
    border-radius: 5px;

}

/* logo部分 */
.logo-box .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    font-style: italic;
    color: transparent;
    -webkit-background-clip: text;
    background-image: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    font-family: "华文彩云";
}

.img-log {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.music-pic {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.music-list-item {
    font-size: 14px;
    line-height: 30px;
    padding: 5px;
    box-sizing: border-box;
    color: white;
    transition: all 0.3s linear;
    cursor: pointer;
}

.music-list-item:hover {
    padding-left: 10px;
    background-color: blueviolet;
}

.index-span {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    padding: 0 5px;
    box-sizing: border-box;
}

/* 音乐播放部分 */
.music-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.current-time,
.duration-box {
    color: white;
    font-size: 14px;
    display: inline-block;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress {
    --x: 0%;
    flex: 1;
    height: 8px;
    border: 1px solid #ffffff;
    background-image: linear-gradient(75deg, #ff75c3, #ffa647, #ffe83f, #9fff5b, #70e2ff, #cd93ff);
    background-size: var(--x) 100%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

/* 右上角菜单 */
.menu-img {
    border: 1px solid lightgray;
    border-radius: 5px;
    position: fixed;
    right: 10px;
    z-index: 2;
    top: 10px;
    padding: 3px;
    box-sizing: border-box;
    display: none;
}

/* 当音乐播放的时候，左边列表的播放样式 */
.music-list-box>li.active {
    background-color: tomato;
    padding-left: 10px;
    color: #ececec;
    font-size: 16px;
    font-style: italic;
}

/* 歌词的布局 */
.lrc-box {
    height: 350px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.one-line {
    position: absolute;
    width: 100%;
    height: 35px;
    top: 200px;
    color: gray;
    font-size: 14px;
}

.lrc-li.active {
    transform: scale(1.2);
    color: #ffffff;
    transition: all 0.3s linear;
    font-style: italic;
}

.lrc-ul {
    position: absolute;
    width: 100%;
    transition: all 0.3s linear;
}

.lrc-ul>li {
    line-height: 35px;
    text-align: center;

}

.title-box {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 999;
    font-size: 50px;
    width: fit-content;
    margin: auto;
    font-family: "幼圆";
    font-style: italic;
    font-weight: bold;
    background-image: linear-gradient(135deg, #03001e, #7303c0, #ec38bc, #fdeff9);
    -webkit-background-clip: text;
    color: transparent;
}

/* 画布部分 */
#c1 {
    -webkit-box-reflect: below 10px linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* iconfont字体部分 */
.icon-box {
    width: fit-content;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px 2px rgb(130, 238, 238) inset;
    border-radius: 15px;
}

.icon-box>span {
    padding: 4px 10px;
    box-sizing: border-box;
    color: crimson;
    font-size: 24px;
    cursor: pointer;
}

span.pause {
    font-size: 34px;
    color: purple;
}

.musicVolume {
    position: relative;
}

.volume-progress {
    --x: 20%;
    content: "";
    position: absolute;
    left: 33px;
    top: 10px;
    border-radius: 5px;
    width: 40px;
    height: 8px;
    border: 1px solid gray;
    background-image: linear-gradient(to right, #cc2b5e, #753a88);
    background-repeat: no-repeat;
    background-size: var(--x) 100%;
    opacity: 0;
    transition: opacity 0.5s linear;
}

.musicVolume:hover .volume-progress {
    opacity: 1;
    transition: opacity 0.5s linear;
}

#app-img {
    width: 200px;
    height: 200px;
    opacity: 0;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    animation: app-img-ani 8s linear infinite;
    animation-play-state: paused;
}

@keyframes app-img-ani {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(1turn);
    }
}

/* 响应式代码 */
@media only screen and (max-width:768px) {
    .left-menu {
        z-index: 1;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        top: 200px;
        box-shadow: 0 0 10px 5px white;
        transition: all 0.3s 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;
    }

    #c1 {
        opacity: 0;
    }

    #app-img {
        opacity: 1;
    }

    /* 歌词的盒子 */
    .lrc-box {
        height: 250px;
        overflow: hidden;
        margin-top: 15px;
        padding: 0 10px;
        box-sizing: border-box;
        position: relative;
    }

    .one-line {
        position: absolute;
        width: 100%;
        height: 35px;
        top: 100px;
        color: gray;
        font-size: 12px;
    }
        .title-box{
            font-size: 30px;
            top: 30px;
        }
}