
/* ==========================================================
   HNFLIX MOBILE SEARCH
   CLEAN VERSION
   ========================================================== */


/* ==========================================================
   SEARCH OVERLAY
   ========================================================== */

.mobile-search-overlay{
    position:fixed;
    inset:0;
    z-index:99999;

    display:block;

    width:100vw;
    height:100dvh;

    margin:0;
    padding:0;

    background:transparent;

    overflow:hidden;

    opacity:0;
    visibility:hidden;

    transform:none;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.mobile-search-overlay.is-active{
    opacity:1;
    visibility:visible;
    transform:none;
}


/* ==========================================================
   SEARCH HEADER
   ========================================================== */

.mobile-search-header{
    position:absolute;

    top:0;
    left:0;
    right:0;

    width:100%;
    height:64px;
    min-height:64px;

    display:flex;
    align-items:center;

    gap:8px;

    padding:9px 8px;

    box-sizing:border-box;

    background:rgba(8,8,8,.88);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(255,255,255,.06);

    z-index:10;
}


/* ==========================================================
   BACK BUTTON
   ========================================================== */

.mobile-search-close{
    flex:0 0 42px;

    width:42px;
    height:42px;
    min-width:42px;

    margin:0;
    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;
    border-radius:50%;

    background:transparent;

    color:#fff;

    font-size:21px;

    cursor:pointer;
}


/* ==========================================================
   SEARCH BOX
   ========================================================== */

.mobile-search-box{
    flex:1 1 auto;

    width:auto;
    min-width:0;

    height:44px;

    display:flex;
    align-items:center;

    margin:0;
    padding:0;

    box-sizing:border-box;

    background:#222;

    border:0;
    border-radius:24px;

    overflow:hidden;
}


/* SEARCH ICON */

.mobile-search-box > i{
    flex:0 0 auto;

    margin-left:17px;
    margin-right:9px;

    color:#aeb4bd;

    font-size:17px;

    line-height:1;
}


/* ==========================================================
   INPUT
   ========================================================== */

.mobile-search-input{
    flex:1 1 auto;

    width:100%;
    min-width:0;

    height:44px;

    margin:0;
    padding:0 6px 0 0;

    box-sizing:border-box;

    border:0;
    outline:0;

    background:transparent;

    color:#fff;

    font-family:inherit;

    font-size:15px;
    line-height:44px;

    -webkit-appearance:none;
    appearance:none;
}

.mobile-search-input::placeholder{
    color:#999;
    opacity:1;
}


/* ==========================================================
   CLEAR
   ========================================================== */

.mobile-search-clear{
    flex:0 0 40px;

    width:40px;
    min-width:40px;

    height:44px;

    margin:0;
    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;

    background:transparent;

    color:#888;

    font-size:17px;

    cursor:pointer;
}


/* ==========================================================
   SEARCH RESULTS
   ========================================================== */

.mobile-search-results{
    position:absolute;

    top:64px;
    left:0;
    right:0;
    bottom:0;

    width:100%;

    margin:0;
    padding:10px 10px 30px;

    box-sizing:border-box;

    overflow-x:hidden;
    overflow-y:auto;

    -webkit-overflow-scrolling:touch;

    background:rgba(0,0,0,.42);

    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);

    z-index:5;
}


/* ==========================================================
   RESULT TITLE
   ========================================================== */

.mobile-search-title{
    display:flex;
    align-items:center;

    margin:2px 4px 10px;
    padding:0;

    color:#fff;

    font-size:14px;
    font-weight:600;

    text-shadow:0 1px 3px rgba(0,0,0,.8);
}

.mobile-search-title span{
    margin-left:6px;

    color:#999;

    font-size:12px;
    font-weight:400;
}


/* ==========================================================
   RESULT LIST
   ========================================================== */

.mobile-search-list{
    width:100%;
    margin:0;
    padding:0;
}


/* ==========================================================
   MOVIE ITEM
   ========================================================== */

.mobile-search-item{
    display:flex;
    align-items:center;

    width:100%;
    min-height:82px;

    margin:0 0 8px;
    padding:6px;

    box-sizing:border-box;

    text-decoration:none;

    background:rgba(20,20,20,.78);

    border:1px solid rgba(255,255,255,.07);
    border-radius:10px;

    overflow:hidden;

    transition:
        background .15s ease,
        transform .15s ease;
}

.mobile-search-item:active{
    background:rgba(40,40,40,.85);
    transform:scale(.99);
}


/* ==========================================================
   POSTER
   ========================================================== */

.mobile-search-item img{
    flex:0 0 50px;

    width:50px;
    height:70px;

    min-width:50px;

    margin:0;

    border-radius:6px;

    object-fit:cover;

    background:#151515;
}


/* ==========================================================
   MOVIE INFO
   ========================================================== */

.mobile-search-info{
    flex:1 1 auto;

    min-width:0;

    margin-left:10px;
}


/* TITLE */

.mobile-search-movie-title{
    width:100%;

    margin:0 0 6px;

    overflow:hidden;

    color:#fff;

    font-size:14px;
    font-weight:600;

    line-height:1.3;

    white-space:nowrap;
    text-overflow:ellipsis;
}


/* META */

.mobile-search-meta{
    display:flex;
    align-items:center;

    min-width:0;

    color:#999;

    font-size:12px;

    line-height:1.2;
}

.mobile-search-meta span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.mobile-search-dot{
    flex:0 0 auto;

    width:3px;
    height:3px;

    margin:0 7px;

    border-radius:50%;

    background:#777;
}


/* ARROW */

.mobile-search-arrow{
    flex:0 0 auto;

    margin:0 6px 0 8px;

    color:#777;

    font-size:14px;
}


/* ==========================================================
   EMPTY / LOADING
   ========================================================== */

.mobile-search-empty,
.mobile-search-loading{
    width:100%;

    min-height:180px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    box-sizing:border-box;

    background:transparent;

    color:#aaa;

    text-align:center;
}

.mobile-search-empty > i{
    margin-bottom:10px;

    color:#777;

    font-size:26px;
}

.mobile-search-empty > div{
    color:#ddd;

    font-size:14px;
    font-weight:500;
}

.mobile-search-empty small{
    margin-top:5px;

    color:#777;

    font-size:12px;
}


/* ==========================================================
   LOADING
   ========================================================== */

.mobile-search-spinner{
    width:24px;
    height:24px;

    margin-bottom:10px;

    border:2px solid rgba(255,255,255,.18);
    border-top-color:#fff;

    border-radius:50%;

    animation:mobileSearchSpin .7s linear infinite;
}

@keyframes mobileSearchSpin{
    to{
        transform:rotate(360deg);
    }
}


/* ==========================================================
   BODY LOCK
   JANGAN position:fixed
   AGAR ANDROID KEYBOARD TIDAK MERUSAK LAYOUT
   ========================================================== */

body.mobile-search-open{
    overflow:hidden !important;
}


/* ==========================================================
   SMALL ANDROID
   ========================================================== */

@media(max-width:380px){

    .mobile-search-header{
        padding-left:6px;
        padding-right:6px;
    }

    .mobile-search-close{
        flex-basis:40px;

        width:40px;
        min-width:40px;
    }

    .mobile-search-box{
        height:44px;
    }

    .mobile-search-item img{
        flex-basis:48px;

        width:48px;
        min-width:48px;

        height:68px;
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media(min-width:768px){

    .mobile-search-overlay{
        width:100%;
        max-width:1000px;

        left:50%;
        right:auto;

        transform:translateX(-50%);
    }

    .mobile-search-overlay.is-active{
        transform:translateX(-50%);
    }
}

