@font-face {
    font-family: "PingFang SC";
    src: url("https://cdn.lifanko.cn/fonts/PingFangSC-Regular.woff2");
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-size: 15px;
    letter-spacing: 0.022em;
    background-image: linear-gradient(135deg, #626a81 10%, #4a5289 100%);
}

#eraser_music {
    min-height: calc(100vh - 40px);
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.background .mask {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(62, 62, 62, 0.6);
    z-index: 1;
}

.background .image {
    background-image: url("https://cdn.lifanko.cn/img/nocover.jpg");
    filter: blur(15px);
}

.background .bg_animation {
    opacity: 0;
    transition: all 1.2s 0s linear;
    /* add bg animation here */
}

.main {
    flex-grow: 1;
    max-width: 1150px;
}

.top {
    display: block;
    margin-bottom: 10px;
}

.top .brand-name {
    color: #fff;
    font-size: 1.5rem;
}

.top .brand-slogan {
    color: #ff9800;
    font-size: 1rem;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .5s 0s linear;
}

.box .player {
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
    height: 640px;
    flex-shrink: 0;
}

@media screen and (min-width: 861px) {
    .box {
        flex-direction: row;
    }

    .box .player {
        width: 300px;
    }

    .box .resource {
        flex-grow: 1;
        max-width: calc(100% - 400px);
    }
}

@media screen and (max-width: 860px) {
    .box {
        flex-direction: column;
    }

    .box .player {
        width: calc(100% - 40px);
    }

    .box .resource {
        width: calc(100% - 40px);
    }
}

.box .player .album {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.box .player .album img {
    max-height: 70%;
    max-width: 70%;
    border-radius: 10px;
    box-shadow: 0 0 12px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.box .player .active img {
    max-height: 90%;
    max-width: 90%;
}

.box .player .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 15px 0;
}

.box .player .info .title {
    line-height: 1.6rem;
    word-break: break-all;
}

.box .player .info .title .name {
    font-size: 1.5rem;
    color: white;
}

.box .player .info .title .author {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.box .player .info .download {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    cursor: pointer;
    font-style: italic;
    flex-shrink: 0;
}

.box .player .control {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box .player .control .progress {
    transition: all 0.5s 0s;
}

.box .player .control .progress .time_line .bar {
    width: 100%;
    -webkit-appearance: none;
    background-color: rgba(199, 199, 199, 0.4);
    height: 4px;
    border-radius: 2px;
    margin: 0;
}

.box .player .control .progress .time_text {
    display: flex;
    justify-content: space-between;
    padding: 2px;
    color: rgba(255, 255, 255, 0.3);
}

.box .player .control .progress .time_text .seek {
    color: #ff9800;
    animation: seek_time forwards 0.3s;
}

@keyframes seek_time {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.box .player .control .ctl {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    font-size: 1.5rem;
}

.box .player .control .ctl div {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box .player .control .ctl img {
    width: 60px;
    transition: all 0.1s 0s;
}

.box .player .control .ctl img:active {
    width: 50px;
}

.box .player .control .volume {
    display: flex;
    align-items: center;
}

.box .player .control .volume svg {
    width: 30px;
    height: 30px;
    display: flex;
}

.box .player .control .volume .volume_line {
    flex-grow: 1;
    margin-top: -5px;
}

.box .player .control .volume .volume_line input {
    width: 100%;
    height: 4px;
}

.box .player .user {
    display: flex;
    align-items: center;
    word-break: break-all;
    font-size: 0.9rem;
    margin-top: 10px;
}

.box .player .user img {
    width: 40px;
    margin-right: 2px;
    display: flex;
}

.box .player .user .label {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.box .player .user .label .version {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.box .separate {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.box .resource {
    height: 640px;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
}

.box .resource .menu {
    display: flex;
    justify-content: space-around;
    color: white;
    border-bottom: 1px solid rgba(238, 238, 238, 0.21);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.box .resource .menu div {
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 5px 5px 10px;
    padding: 2px 20px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.box .resource .menu div:active {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.box .resource .menu .active {
    border: 2px solid #ffc107;
    background-color: rgba(255, 229, 150, 0.1);
    color: #ffc107;
}

.box .resource .head {
    font-size: 1.8rem;
    color: white;
    margin: 10px 5px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.box .resource .pending {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.2);
    animation: breathe 1s infinite;
}

@keyframes breathe {
    0% {
        color: rgba(255, 255, 255, 0.4);
    }
    25% {
        color: rgba(255, 255, 255, 1);
    }
    50% {
        color: rgba(255, 255, 255, 0.6);
    }
    75% {
        color: rgba(255, 255, 255, 1);
    }
    100% {
        color: rgba(255, 255, 255, 0.2);
    }
}

.box .resource .search {
    overflow: hidden;
}

.box .resource .search label {
    display: block;
    text-align: center;
}

.box .resource .search input {
    width: 80%;
    outline: none;
    padding: 10px 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #acacac;
    text-align: center;
    border-radius: 4px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 0 10px rgba(79, 79, 79, 0.3);
}

.box .resource .search .no_target {
    text-align: center;
    color: #ffc107;
    font-size: 1.5rem;
}

.box .resource .search .lib {
    display: flex;
    justify-content: space-around;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 10px 30px;
}

.box .resource .search .lib div {
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    flex-grow: 1;
    margin: 0 1%;
    text-align: center;
    line-height: 35px;
    white-space: nowrap;
}

.box .resource .search .lib div:active {
    background-color: rgba(255, 229, 150, 0.1);
    color: #ffc107;
}

.box .resource .search .tip {
    color: #ff9800;
    text-align: center;
    font-size: 1.2rem;
}

.box .resource .search .hot {
    display: flex;
    flex-wrap: wrap;
    margin: 0 10px;
    color: #333;
    overflow-y: scroll;
    max-height: 215px;
}

.box .resource .search .hot .item {
    margin: 4px 5px;
    padding: 3px 7px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: cell;
    border-radius: 1px;
    min-width: 50px;
    text-align: center;
    transition: all 0.2s 0s;
}

.box .resource .search .hot .item:active {
    background-color: #ff9800;
}

.box .resource .clear {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.box .resource .head .btn {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-decoration: underline;
    cursor: pointer;
}

.box .resource .lyric {
    padding-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all .9s cubic-bezier(0, 0.09, 0.68, 0.99) 0s;
}

.box .resource .lyric .paragraph {
    height: 1.5rem;
    line-height: 1.5rem;
    transition: all 0.1s 0s;
    text-overflow: ellipsis;
    white-space: inherit;
    overflow: hidden;
    text-align: center;
}

.box .resource .lyric .active {
    height: 3rem;
    line-height: 3rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.box .resource .list {
    margin-bottom: 30px;
    max-height: 380px;
    overflow-y: scroll;
    margin-right: 2px;
}

.box .resource .list:last-child {
    margin-bottom: 0;
}

.box .resource .list .item {
    display: flex;
    align-items: center;
}

.box .resource .list .item .list_album {
    display: flex;
}

.box .resource .list .item img {
    width: 45px;
    height: 45px;
    border-radius: 2px;
    margin-right: 15px;
}

.box .resource .list .item .info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.box .resource .list .item .active {
    background-color: rgba(255, 229, 150, 0.1);
}

.box .resource .list .item .info .song {
    flex-grow: 1;
    line-height: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 5px;
}

.box .resource .list .item .info:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.box .resource .list .item .info .song .name {
    font-size: 1.2rem;
    word-break: break-all;
}

.box .resource .list .item .info .song .author {
    color: rgba(255, 255, 255, 0.5);
}

.box .resource .list .item .info .extra {
    font-size: 0.8rem;
    color: rgba(255, 193, 7, 0.7);
    text-align: center;
    flex-shrink: 0;
}

.box .resource .no_list {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    margin-bottom: 30px;
}

.box .resource .no_list a {
    text-decoration: underline;
    margin: 0 2px;
    cursor: pointer;
}

.scroll-view {
    flex-grow: 1;
    overflow-x: hidden;
    margin-top: 3px;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
}

::-webkit-input-placeholder {
    color: #ccc;
}