@charset "utf-8";

:root {}

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

body{
    height: 100vh;
}

.left-menu {
    width: 300px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background: #222;
    box-shadow: 0 0 6px 4px #000010 inset;
}

.btn-box {
    height: 55px;
    text-align: center;
    line-height: 55px;
    background: #000010;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-box>img {
    width: 32px;
    height: 32px;
}

/* .btn {
    width: 120px;
    height: 35px;
    background: transparent;
    color: #ffd4a9;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: -5px -3px 12px 2px #ddd inset;
    transition: all 0.3s linear;
}

.btn:hover {
    color: #ff770f;
    border: 2px solid #ff770f;
    box-shadow: 0 0 12px 2px #ff770f inset;
} */


.music-list-box {
    position: absolute;
    width: 100%;
    top: 55px;
    bottom: 0;
    box-shadow: -6px 0 16px 8px #000010 inset;
    overflow: auto;
}

.music-list-box::-webkit-scrollbar {
    background: #000010;
    width: 5px;
}

.music-list-box::-webkit-scrollbar-thumb {
    background: #ff770f;
    border-radius: 10px;
}

.music-pic {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    vertical-align: middle;
    margin: 0 2px;
}

.index-span {
    font-weight: bold;
    display: inline-block;
    padding-left: 13px;
    width: 16px;
}

.music-list-item {
    font-size: 16px;
    line-height: 30px;
    box-sizing: border-box;
    padding: 5px;
    color: #ccc;
    font-weight: bold;
    font-family: 楷体;
    transition: all 0.3s linear;
    cursor: pointer;
}

.music-list-item:hover {
    padding-left: 15px;
    background: #000010;
    color: #ff770f;
}

.right-box {
    position: fixed;
    background: #000010;
    top: 0;
    right: 0;
    bottom: 0;
    left: 300px;
}


.menu-img {
    border-radius: 50%;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 2;
    box-sizing: border-box;
    padding: 3px;
    width: 30px;
    display: none;
}

/* 画布 */
#c1 {
    display: block;
    margin: 10px;
    -webkit-box-reflect: below 10px linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

/* 音乐功能控制 */

.music-fun img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 4px;
}

.music-fun img:hover {
    background: rgba(47, 240, 8, 0.3);
}

.music-fun img:active {
    background: rgba(47, 240, 8, 0.5);
    transform: scale(0.8);
}

.music-fun {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.fun-center {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 180px;
}

/* 音乐播放菜单 */
.fun-right {
    display: flex;
    flex-direction: column;
    width: 80px;
    height: 32px;
    align-items: center;
    justify-content: flex-end;
}

.fun-right-box {
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fun-right-box:hover>.fun-right-menu {
    transform: scaleY(1);
    transform-origin: bottom;
    transition: all 0.3s linear;
}

.fun-right-menu {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.3s linear;
}

.fun-right-img {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 音量控制 */
.fun-left {
    width: 80px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.volume-box {
    height: 32px;
    position: relative;
}

.volume-box>.volume-bar-box {
    width: 32px;
    position: absolute;
    bottom: 32px;
    transform: scaleY(0);
    transition: all 0.3s linear;
    transform-origin: bottom;
}

.volume-bar {
    height: 120px;
    width: 4px;
    background-color: #ff770f;
    border-radius: 2px;
    margin: auto;
    margin-bottom: 10px;
    background-image: linear-gradient(#ddd, #ddd);
    background-repeat: no-repeat;
    background-size: 100% 0;
    cursor: pointer;
}

.volume-c {
    width: 12px;
    height: 12px;
    margin-left: -4px;
    background: #ff770f;
    border-radius: 50%;
}

.volume-box:hover .volume-bar-box {
    transform: scaleY(1);
    transition: all 0.3s linear;
    transform-origin: bottom;
}

/* 音乐播放控制器 */
.container {
    max-width: 900px;
    margin: auto;
}

.current-time-box,
.duration-box {
    color: #ff770f;
    font-size: 14px;
    font-weight: bold;
    width: 80px;
    display: flex;
    justify-content: center;
}

.music-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.progress {
    flex: 1;
    height: 6px;
    background-color: #ddd;
    background-image: linear-gradient(to right, #f7f, #ff770f);
    background-repeat: no-repeat;
    background-size: 0 100%;
    border-radius: 3px;
    cursor: pointer;
}

/* 歌词的布局 */
.lrc-box {
    height: 300px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

.one-line {
    height: 35px;
    width: 100%;
    margin-top: 145px;
    position: relative;
}

.lrc-ul {
    color: #ffd4a9;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 105px;
    transition: all 0.5s linear;
}

.lrc-ul>li {
    width: fit-content;
    height: 35px;
    line-height: 35px;
    transition: all 0.3s linear;
}

.lrc-this {
    background: linear-gradient(to right, #a74be0,#84ec29, #a74be0 var(--n), #ffd4a9 var(--n) 100%);
    background-position-x: 100%;
    color: transparent;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    font-size: 20px;
}



/* 当音乐播放的时候，左边列表的单独样式 */
.active {
    padding-left: 15px;
    background: #000010;
    color: #ff770f;
}

.music-img {
    display: none;
}

.active .music-img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    display: inline-block;
    animation: aaa 2s linear infinite;
}

.active [data-ani-state="1"] {
    animation-play-state: running;
}

.active [data-ani-state="0"] {
    animation-play-state: paused;
}

.active .index-span {
    display: none;
}

@keyframes aaa {
    0% {
        transform: rotateZ(0);
    }

    100% {
        transform: rotateZ(1turn);
    }
}




/* 响应式代码 */
@media only screen and (max-width:768px) {
    .left-menu {
        z-index: 1;
        width: 100%;
        top: 20%;
        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;
    }

    .lrc-box {
        height: 70vh;
        margin-top: 10vh;
    }

    .menu-img {
        display: block;
    }

    .canvas-box {
        display: none;
    }
}