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

.header-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 15px auto;
}

.header-search-form {
    display: flex;
    width: 100%;
    gap: 8px;
    position: relative;
}

.header-search-input-wrapper {
    position: relative;
    flex: 1;
}

.header-search-input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 15px;

    border-radius: 7px;

    border: 1px solid rgba(255,255,255,.15);

    background: #181818;

    color: #fff;

    font-size: 16px;

    outline: none;

    font-family: inherit;

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

.header-search-input:focus {
    border-color: rgba(255,255,255,.4);
    background: #1d1d1d;
}

.header-search-input::placeholder {
    color: #888;
}

/* ============================================================
   SEARCH BUTTON
   ============================================================ */

.header-search-button {
    height: 46px;

    min-width: 95px;

    padding: 0 18px;

    border: 0;

    border-radius: 7px;

    background: #e50914;

    color: #fff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    font-family: inherit;

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

.header-search-button:hover {
    background: #f6121d;
}

.header-search-button:active {
    transform: scale(.97);
}

/* ============================================================
   PREDICTIVE SEARCH
   ============================================================ */

.header-search-suggestions {

    display: none;

    position: absolute;

    left: 0;
    right: 0;

    top: 52px;

    z-index: 100000;

    background: #181818;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 15px 35px rgba(0,0,0,.65);
}

.header-search-suggestions.show {
    display: block;
}

/* ============================================================
   SUGGESTION
   ============================================================ */

.header-suggestion {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 13px;

    cursor: pointer;

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

    transition:
        background .12s ease;
}

.header-suggestion:last-child {
    border-bottom: 0;
}

.header-suggestion:hover,
.header-suggestion.selected {
    background: #292929;
}

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

.header-suggestion-poster {

    width: 38px;

    height: 55px;

    flex: 0 0 38px;

    object-fit: cover;

    border-radius: 4px;

    background: #222;
}

/* ============================================================
   SUGGESTION TEXT
   ============================================================ */

.header-suggestion-info {
    min-width: 0;
}

.header-suggestion-title {

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.header-suggestion-meta {

    margin-top: 4px;

    color: #999;

    font-size: 12px;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .header-search-wrapper {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .header-search-form {
        gap: 6px;
    }

    .header-search-button {
        min-width: 75px;
        padding: 0 12px;
    }

    .header-search-input {
        font-size: 15px;
    }

}
