/* =========================================================
   KISSKHTV PREMIUM SEARCH
========================================================= */

.kh-search-overlay {
    position: fixed;
    inset: 0;

    z-index: 8000;

    visibility: hidden;
    opacity: 0;

    overflow-y: auto;

    background:
        radial-gradient(
            circle at 0% 10%,
            rgba(76, 55, 190, .18),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 90%,
            rgba(0, 175, 210, .10),
            transparent 32%
        ),
        #050816;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}


.kh-search-overlay.open {
    visibility: visible;
    opacity: 1;
}


.kh-search-page {
    min-height: 100vh;
}


/* =========================================================
   TOP BAR
========================================================= */

.kh-search-top {
    min-height: 74px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        0
        max(
            20px,
            calc(
                (100vw - 1360px) / 2
            )
        );

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

    background:
        rgba(4,7,19,.90);

    backdrop-filter:
        blur(18px);
}


.kh-search-logo {
    color: #fff;

    text-decoration: none;

    font-size: 24px;

    font-weight: 900;

    font-style: italic;

    letter-spacing: -1px;
}


.kh-search-logo span {
    color: #755cff;
}


.kh-search-close {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 11px;

    background:
        rgba(255,255,255,.04);

    color: #aeb4c6;

    font-size: 28px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.kh-search-close:hover {
    color: #fff;

    background:
        rgba(117,92,255,.15);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.kh-search-container {
    width: min(
        1360px,
        calc(100% - 40px)
    );

    margin: auto;

    padding:
        50px
        0
        80px;
}


.kh-search-heading {
    max-width: 650px;

    margin-bottom: 27px;
}


.kh-search-heading > span {
    color: #8e7cff;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 1.3px;
}


.kh-search-heading h1 {
    margin:
        8px
        0
        7px;

    color: #fff;

    font-size:
        clamp(
            27px,
            4vw,
            42px
        );

    line-height: 1.1;

    letter-spacing: -1px;
}


.kh-search-heading p {
    margin: 0;

    color: #757d92;

    font-size: 11px;
}


/* =========================================================
   SEARCH INPUT
========================================================= */

.kh-search-box {
    position: relative;

    width: min(
        850px,
        100%
    );
}


.kh-search-box input {
    width: 100%;
    height: 60px;

    padding:
        0
        55px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 999px;

    outline: none;

    background:
        rgba(255,255,255,.96);

    color: #111520;

    font-size: 14px;

    box-shadow:
        0 16px 45px
        rgba(0,0,0,.25);

    transition:
        box-shadow .2s ease,
        border-color .2s ease;
}


.kh-search-box input:focus {
    border-color:
        rgba(117,92,255,.70);

    box-shadow:
        0 16px 50px
        rgba(70,50,180,.22);
}


.kh-search-box input::placeholder {
    color: #8b8e98;
}


.kh-search-icon {
    position: absolute;

    top: 50%;
    left: 20px;

    z-index: 2;

    transform:
        translateY(-50%);

    color: #121622;

    font-size: 25px;
}


.kh-search-clear {
    position: absolute;

    top: 50%;
    right: 13px;

    width: 35px;
    height: 35px;

    display: none;

    align-items: center;
    justify-content: center;

    transform:
        translateY(-50%);

    border: 0;

    border-radius: 50%;

    background: #e8e8ed;

    color: #666b76;

    font-size: 19px;

    cursor: pointer;
}


.kh-search-clear.visible {
    display: flex;
}


/* =========================================================
   FILTERS
========================================================= */

.kh-search-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}


.kh-search-filter {
    min-height: 35px;

    padding:
        0
        15px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 999px;

    background:
        rgba(255,255,255,.035);

    color: #848ca1;

    font-size: 9px;

    font-weight: 800;

    cursor: pointer;
}


.kh-search-filter:hover {
    color: #fff;
}


.kh-search-filter.active {
    border-color:
        rgba(117,92,255,.55);

    background:
        rgba(117,92,255,.17);

    color: #b9b0ff;
}


/* =========================================================
   RESULT HEADER
========================================================= */

.kh-search-status {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin:
        42px
        0
        16px;
}


.kh-search-status h2 {
    margin: 0;

    color: #fff;

    text-transform: uppercase;

    font-size: 15px;

    font-weight: 850;
}


.kh-search-status p {
    margin:
        6px
        0
        0;

    color: #626a80;

    font-size: 9px;
}


.kh-search-count {
    color: #626a80;

    font-size: 9px;
}


/* =========================================================
   RESULT GRID
========================================================= */

.kh-search-results {
    display: grid;

    grid-template-columns:
        repeat(
            7,
            minmax(0,1fr)
        );

    gap:
        25px
        17px;
}


.kh-search-card {
    min-width: 0;

    color: #fff;

    text-decoration: none;
}


.kh-search-card-image {
    position: relative;

    aspect-ratio:
        2 / 3;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;

    background: #0c1223;

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.20);

    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease;
}


.kh-search-card:hover
.kh-search-card-image {
    transform:
        translateY(-5px);

    border-color:
        rgba(117,92,255,.55);

    box-shadow:
        0 18px 40px
        rgba(0,0,0,.40);
}


.kh-search-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.kh-search-card:hover
.kh-search-card-image img {
    transform:
        scale(1.035);
}


.kh-search-card-gradient {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 28%;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.86)
        );
}


.kh-search-year {
    position: absolute;

    right: 7px;
    bottom: 7px;

    padding:
        5px
        7px;

    border-radius: 5px;

    background:
        rgba(5,8,22,.9);

    color: #fff;

    font-size: 8px;

    font-weight: 850;
}


.kh-search-rating {
    position: absolute;

    left: 7px;
    bottom: 7px;

    padding:
        5px
        7px;

    border-radius: 5px;

    background: #0eb4c2;

    color: #051016;

    font-size: 8px;

    font-weight: 900;
}


.kh-search-type {
    position: absolute;

    top: 7px;
    left: 7px;

    padding:
        5px
        7px;

    border-radius: 5px;

    background:
        rgba(117,92,255,.86);

    color: #fff;

    text-transform: uppercase;

    font-size: 7px;

    font-weight: 850;
}


.kh-search-card h3 {
    margin:
        9px
        3px
        0;

    color: #f2f3f7;

    text-align: center;

    font-size: 10px;

    line-height: 1.4;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   LOADING
========================================================= */

.kh-search-loading {
    min-height: 200px;

    display: none;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


.kh-search-loading.visible {
    display: flex;
}


.kh-search-loading span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #755cff;

    animation:
        khSearchBounce
        .9s
        infinite
        alternate;
}


.kh-search-loading span:nth-child(2) {
    animation-delay: .15s;
}


.kh-search-loading span:nth-child(3) {
    animation-delay: .3s;
}


@keyframes khSearchBounce {

    from {
        transform:
            translateY(0);

        opacity: .35;
    }

    to {
        transform:
            translateY(-8px);

        opacity: 1;
    }

}


/* =========================================================
   EMPTY
========================================================= */

.kh-search-empty {
    min-height: 300px;

    display: none;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.kh-search-empty.visible {
    display: flex;
}


.kh-search-empty-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 16px;

    background:
        rgba(117,92,255,.11);

    color: #8e7cff;

    font-size: 27px;
}


.kh-search-empty h3 {
    margin: 0;

    color: #fff;

    font-size: 17px;
}


.kh-search-empty p {
    margin:
        7px
        0
        0;

    color: #697086;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .kh-search-results {
        grid-template-columns:
            repeat(
                5,
                minmax(0,1fr)
            );
    }

}


@media (max-width: 800px) {

    .kh-search-container {
        width:
            calc(
                100% - 28px
            );

        padding-top: 35px;
    }


    .kh-search-top {
        padding:
            0
            15px;
    }


    .kh-search-results {
        grid-template-columns:
            repeat(
                4,
                minmax(0,1fr)
            );
    }

}


@media (max-width: 600px) {

    .kh-search-heading h1 {
        font-size: 29px;
    }


    .kh-search-box input {
        height: 54px;

        padding:
            0
            48px;

        font-size: 12px;
    }


    .kh-search-results {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap:
            20px
            12px;
    }


    .kh-search-status {
        display: block;
    }


    .kh-search-count {
        display: block;

        margin-top: 7px;
    }

}
.kh-search-no-poster {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background:
        linear-gradient(
            145deg,
            #10172a,
            #080d1b
        );

    color: #626b83;

    text-align: center;
}


.kh-search-no-poster span {
    font-size: 28px;
}


.kh-search-no-poster small {
    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 1px;
}