body {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    font-family: Inter, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    user-select: none;
}

[v-cloak] {
    display: none
}

#canvas {
    width: 100%;
    height: 100%;
    position: fixed;
    user-select: none;
}

.el-skeleton {
    --el-skeleton-color: rgb(20 20 51);
    --el-skeleton-to-color: rgb(30, 30, 50);
}

.bg {
    width: 100%;
    height: 100%;
    position: fixed;
    user-select: none;
    background: linear-gradient(-45deg, rgb(20 20 51), rgba(10, 10, 18, 0), rgb(30, 30, 50));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#app {
    width: 100%;
    height: 100dvh;
    position: fixed;
}

#dplayer {
    width: 100%;
    height: 60dvh;
}

.buttons-container {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    padding: 15px 0px;
}

.buttons-container .el-button {
    margin-top: 8px;
    transition: all ease-in-out 0.3s;
}

.buttons-container .el-button:first-child {
    margin-left: 10px;
}

.el-button.is-text.active {
    background-color: rgb(80, 80, 113) !important;
    color: #fff;
}

.el-input.search_input {
    height: 50px;
}

.result-list {
    padding: 0px 20vw;
}

.result-list .recommend {
    margin-top: 15px;
    display: flex;
    row-gap: 5px;
    flex-wrap: wrap;
    column-gap: 5px;
}

.result-list .recommend-container:not(:first-child) {
    margin-top: 15px;
}

.result-loading .circular path {
    stroke: rgb(80, 80, 113);
}

.result-loading .el-loading-text {
    color: rgb(80, 80, 113);
}

.search-container {
    flex: 1;
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

.search-opacity {
    height: 30px;
    right: 20dvw;
    bottom: -80px;
    left: 20dvw;
    position: absolute;
    background-image: linear-gradient(180deg, rgb(20 20 51), rgba(10, 10, 18, 0));
    z-index: 1;
    opacity: 1;
}

.el-header {
    height: 80px;
    background-color: black;
}

.search-container .search-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: #ffffff;
    text-align: center;
}

.search-container .el-input {
    border-radius: 20px;
    background: rgb(30, 30, 50);
}

.search-container .el-input__wrapper {
    border-radius: 20px;
    background: rgb(30, 30, 50);
    box-shadow: inset 0 0 0 0px #5c5cad;
    transition: box-shadow 0.3s linear;
    padding-left: 20px;
}

.search-container .el-input__wrapper:hover {
    box-shadow: inset 0 0 0 1px #5c5cad;
}

.setting .el-input__wrapper:hover {
    box-shadow: inset 0 0 0 1px #5c5cad;
}

.search-container .el-input__wrapper .el-input__clear {
    font-size: 18px;
}

.search-container .el-input__prefix {
    border: 0;
    background: rgb(30, 30, 50);
    color: rgb(115, 115, 158);
}

.search-container .el-input__wrapper .el-input__inner {
    /* height: 30px;
    line-height: 30; */
    caret-color: #e0e0e0;
    color: #ffffff;
    background: rgb(30, 30, 50);
}

.search-container .el-input__wrapper .el-input__inner::placeholder {
    color: rgb(115, 115, 158);
}

.movie-item-card {
    /* box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12); */
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 25px;
}

.movie-item-resource-name {
    position: absolute;
    right: 3px;
    color: #ffffff;
    transform-origin: left;
    padding: 10px 5px;
    bottom: 0px;
    z-index: 2;
}

.movie-item-card:hover {
    background-color: rgb(27, 27, 46);
    scale: 0.95;
}


.movie-item-card-pic {
    width: 100%;
    height: 275px;
    position: relative;
    overflow: hidden;
}

.movie-item-card-pic img {
    width: 100%;
    border-radius: 25px;
    height: 275px;
}

.movie-item-card-info {
    margin-top: 10px;
}

.movie-item-card-info .movie-item-card-info-name {
    color: rgb(255 255 255 / 1);
    font-weight: 700;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    max-height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: .25rem;
}

.movie-item-card-info .movie-item-card-info-other {
    color: rgb(255 255 255 / 1);
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: .25rem;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
}

.el-footer {
    height: auto;
}

.el-aside {
    margin-top: 5px;
}

.el-dialog.player,
.el-dialog.history,
.el-dialog.setting {
    background-color: rgb(30, 30, 50);
    border-radius: 15px;
}

#player-content {
    position: relative;
    overflow: hidden;
}

.dplayer-info-p2p {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 400px;
    background: rgba(28, 28, 28, 0.8);
    padding: 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
    z-index: 1;
}

.dplayer-info-p2p-close {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
}

.el-dialog.player .el-dialog__title,
.el-dialog.history .el-dialog__title,
.el-dialog.setting .el-dialog__title {
    color: #ffffff;
}

.el-timeline-item__content {
    color: #ffffff;
}

.el-form-item__label {
    color: #909399;
}

.v-progressive-image {
    border-radius: 25px;
}

.v-progressive-image-placeholder {
    padding: 15px;
    transform: none;
}

:root .el-switch {
    --el-switch-on-color: #5c5cad;
    --el-switch-off-color: rgb(30, 30, 50);
    --el-switch-border-color: rgb(103, 103, 144);
}

:root {
    --el-color-primary: #5c5cad;
}

/* .v-progressive-image-main{
    background-color: transparent;
} */
/* https://matteo-gabriele.gitbook.io/vue-progressive-image/css-variables */
:root {
    --progressive-image-background-color: transparent;
    --progressive-image-placeholder-fade-ease: ease-out;
    --progressive-image-placeholder-fade-speed: 0.5s;
}

.qr-code {
    position: absolute;
    bottom: 24vh;
    right: 5vw;
    z-index: 1;
}

.menu-btn {
    position: absolute;
    bottom: 16vh;
    right: 5vw;
}

.menu-btn.setting {
    bottom: 8vh;
}

.menu-btn:hover,
.qr-code:hover {
    background-color: #5c5cad;
}

@media (width <=768px) {
    .search-container .search-title {
        font-size: 1.2rem;
    }

    .el-main {
        padding: 0;
    }

    .el-aside {
        width: 100%;
        max-height: 20vh;
    }

    .player-container {
        flex-direction: column;
    }

    #dplayer {
        height: 200px;
    }

    .search-opacity {
        display: none;
    }

    /* :root .el-dialog.is-draggable.history{
        --el-dialog-width: 100% !important;
    } */
    .el-dialog.history {
        --el-dialog-width: 80% !important;
    }

    .el-dialog.player {
        --el-dialog-margin-top: 15vh !important;
        --el-dialog-width: 95% !important;
    }
}