/*
 * Тема webfellixtheme (Messana Games) — копия style.css без изменений визуала.
 * Шрифт: Open Sans (подключите в index.html).
 */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");

/*
Theme Name: webfellixtheme
Version: 1.0
Author: WebFellix
Author URI: https://webfellix.ru
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Tahoma, Geneva, Verdana, sans-serif !important;
}

/************************************************/
/****************** MAIN STYLE ******************/
html {
    background: #101010;
    overflow-x: hidden;
    overflow-y: scroll;
}

#container {
    width: 100%;
    height: 100%;
    position: fixed;
}

#blurCanvasTop {
    left: 0%;
    top: 0%;
    position: absolute;
}

#blurCanvasBottom {
    left: 50%;
    top: 0;
    position: absolute;
}

.blur {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
}

.blurTop {
    left: 40%;
    top: -110%;
    transform: rotate(20deg);
    transform-origin: 0 100%;
}

.blurBottom {
    left: -60%;
    top: 100%;
    transform: rotate(20deg);
    transform-origin: 100% 0%;
}



/**
 * Cards
 */
.fullscreen .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(20% - 20px), 1fr));
    gap: 20px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px 15px;
}

.fullscreen {
    overflow: hidden;
    padding-bottom: 50px;
}

.fullscreen .container .card {
    background: #000;
    color: white;
    border-radius: 6px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
    transform-origin: top left;
    will-change: transform;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    overflow: hidden;
}

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

.fullscreen .container .card:hover {
    box-shadow: 1px 12px 34px rgba(0, 0, 0, 0.31);
}

.fullscreen .container .card:hover .sinopse {
    opacity: 1;
    transition-delay: 0.4s;
}

.fullscreen .container .card:hover .sinopse .view {
    opacity: 1;
    transform: translateY(0%);
    transition: 0.6s;
    transition-delay: 1s;
}

.fullscreen .container .card:hover .sinopse .content-sinopse .text {
    transform: translateY(0);
    transition-delay: 0.6s;
}

.fullscreen .container .card:hover .sinopse .content-sinopse .title {
    transform: translateY(0);
    transition-delay: 0.2s;
}

.fullscreen .container .card:hover .date, .fullscreen .container .card:hover .statusy-card {
    transform: translateY(-100%);
    opacity: 0;
}

.fullscreen .container .card:hover .content {
    transform: translateY(100%);
    opacity: 0;
}

.fullscreen .container .card .date {
    position: absolute;
    top: 30px;
    right: 15px;
    color: #fff;
    font-weight: 300;
    font-size: 14px;
    transition: 0.8s;
    font-weight: 600;
}

.statusy-card {
    position: absolute;
    top: 25px;
    left: 10px;
    padding: 5px 10px;
    box-shadow: 0px 0px 7px 1px rgb(0 0 0 / 50%);
    border-radius: 3px;
    font-size: 14px;
    transition: 0.5s;
}

.rating-card {
    font-size: 14px;
    font-weight: 600;
    color: #81ff81;
    padding-bottom: 10px;
    text-shadow: 3px 3px 4px #000;
}

.fullscreen .container .card .content {
    transition: 0.8s;
    display: flex;
    flex-wrap: wrap;
    align-self: flex-end;
    padding: 15px 10px 15px 10px;
}

.fullscreen .container .card .content .title {
    width: 100%;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 12px;
}

.fullscreen .container .card .content .text {
    width: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-height: 95px;
}

.fullscreen .container .card .sinopse {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 25px 15px 20px 15px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-weight: 300;
    opacity: 0;
    transition: 0.6s;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.fullscreen .container .card .sinopse .view {
    position: absolute;
    bottom: 15px;
    right: 25px;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid #fff;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.6s;
    cursor: pointer;
}

.fullscreen .container .card .sinopse .content-sinopse .title {
    color: rgb(169 112 255);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    transform: translateY(-100%);
    transition: 0.6s;
}

.fullscreen .container .card .sinopse .content-sinopse .text {
    transform: translateY(110%);
    transition: 0.6s;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
}








main#primary {
    position: relative;
    z-index: 1;
}

.lazy-bg {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-bg.loaded {
    opacity: 1;
}

.fullscreen .container .card {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.fullscreen .container .card.hiding {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.fullscreen .container .card.hidden {
    opacity: 0;
        pointer-events: none;
        position: absolute;
}


.fullscreen .container .card.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}


/**
 * Double range
 */
.double-slider {
    position: relative;
    width: 270px;
    height: 40px;
    margin-top: 20px;
    min-width: 270px;
    bottom: -18px;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 6px;
    width: 100%;
    background: #ddd;
    border-radius: 3px;
    z-index: 1;
    overflow: hidden;
}

.slider-track .track-active {
    content: '';
    position: absolute;
    height: 100%;
    background: #772ce8;
    left: 0;
    width: 0%;
    z-index: 2;
}

input[type="range"] {
    position: absolute;
    width: 100%;
    top: 0;
    height: 40px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
}

input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a970ff;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a970ff;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.range-bubble {
    position: absolute;
    bottom: -14px;
    background-color: #a970ff;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    font-weight: 600;
    transition: left 0.1s ease;
}

.label-star {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    top: -16px;
    position: absolute;
}


/**
 * Input text
 */
.form-main {
    display: flex;
    height: auto;
    align-items: flex-end;
    max-width: 1600px;
    margin: 50px auto 50px;
    padding: 0px 15px;
}

.form-group {
    position: relative;
    width: 30%;
    margin: 0px 30px 0px 0px;
}

input.border-bottom {
    position: relative;
    background: transparent;
    padding: 0px 10px;
    border: 0px;
    border-bottom: 1px solid rgb(111 111 111);
    height: 40px;
    color: #fff;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
}

input.border-bottom::placeholder {
    color: #fff;
    font-weight: 600;
    opacity: 1;
}

input.border-bottom:focus {
    outline: none;
}

span.border-bottom-animation {
    width: 0px;
    height: 1px;
    background: #a970ff;
    position: absolute;
    bottom: 0px;
    transition: 0.3s;
    left: 0px;
}

input.border-bottom:focus + span.border-bottom-animation,
input.border-bottom:not(:placeholder-shown) + span.border-bottom-animation {
    width: 100%;
}




/**
 * Multi select
 */
.multi-select {
    position: relative;
    background: transparent;
    padding: 0px 10px;
    border: 0px;
    border-bottom: 1px solid rgb(111 111 111);
    height: 40px;
    color: #fff;
    width: 20%;
    font-size: 16px;
    margin: 0px 20px 0px 0px;
}

.multi-select__selected {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    cursor: pointer;
    min-height: 30px;
    overflow: hidden;
}

.multi-select.open span.border-bottom-animation.left {
    width: 100%;
}

span.border-bottom-animation.left.active {
    width: 100%;
}

.multi-select__selected .placeholder {
    color: #f3f3f3;
    background: transparent;
    padding: 0px;
    border: 0px;
    border-radius: 0px;
    font-size: 16px;
}

.multi-select__selected span {
    background-color: #772ce8;
    color: #fff;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}

.multi-select__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 5px;
    padding: 5px 0;
    background-color: #282828;
    border: 0px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.multi-select__item {
    padding: 5px 10px;
}

.multi-select__item label {
    display: block;
}

.multi-select__item input {
    margin-right: 10px;
}

.multi-select.open .multi-select__dropdown {
    display: block;
}

.multi-select.open .multi-select__selected {
    border-color: #007bff;
}

div#genres,
div#genre {
    width: 17%;
}

div#status,
div#statusy {
    width: 17%;
}

div#year,
div#years {
    width: 12%;
}
/****************** MAIN STYLE ******************/
/************************************************/
@media(max-width:1400px) {
    .fullscreen .container {
        grid-template-columns: repeat(auto-fill, minmax(calc(21% - 20px), 1fr));
    }
}

@media(max-width:1150px) {
    .fullscreen .container {
        grid-template-columns: repeat(auto-fill, minmax(calc(26% - 20px), 1fr));
    }
}

@media(max-width:1100px) {
    .form-main {
        flex-wrap: wrap;
        margin: 25px auto 50px;
        padding: 0px 10px;
    }
    .form-group {
        position: relative;
        width: calc(50% - 15px);
        margin: 0px 15px 0px 0px;
    }
    div#genres,
    div#genre {
        width: calc(50% - 15px);
        margin: 0px 0px 0px 15px;
    }
    div#status,
    div#statusy {
        width: calc(50% - 15px);
        margin: 0px 15px 0px 0px;
    }
    div#year,
    div#years {
        width: calc(50% - 15px);
        margin: 25px 0px 0px 15px;
    }
    .double-slider {
        position: relative;
        width: 100%;
        height: 40px;
        margin-top: 20px;
        min-width: 270px;
        bottom: -18px;
        margin: 25px 0px 0px 0px;
    }
    .range-bubble {
        padding: 2px 2px;
    }
    .form-main > div {
        width: 49%;
        margin: 15px 0px 0px 0px;
    }
    .form-main > .double-slider {
        width: 100%;
    }
    .form-main {
        justify-content: space-between;
    }
}

@media(max-width:850px) {
    .fullscreen .container {
        grid-template-columns: repeat(auto-fill, minmax(calc(35% - 15px), 1fr));
        gap: 15px;
    }
}

@media(max-width:550px) {
    .fullscreen .container {
        grid-template-columns: repeat(auto-fill, minmax(calc(100% - 15px), 1fr));
        gap: 15px;
    }
    .form-group {
        position: relative;
        width: calc(50% - 7px);
        margin: 0px 7px 0px 0px;
    }
    div#genres,
    div#genre {
        width: calc(50% - 7px);
        margin: 0px 0px 0px 7px;
    }
    div#status,
    div#statusy {
        width: calc(50% - 7px);
        margin: 0px 7px 0px 0px;
    }
    div#year,
    div#years {
        width: calc(50% - 7px);
        margin: 25px 0px 0px 7px;
    }
    .form-main {
        flex-wrap: wrap;
        margin: 25px auto 50px;
        padding: 0px 15px;
    }
}
