:root {
    --search-accent: #f7af3e;
    --search-accent-soft: rgba(247, 175, 62, 0.18);
    --search-surface: #3c3e48;
    --search-separator: #353740;
    --search-map-accent: #56c0e0;
    --search-text: #d9e4f4;
    --search-muted: #94a3ba;
}

.search-autocomplete-shell {
    position: relative;
    display: inline-block;
}

.navbar-search-mobile {
    display: none;
    margin: 8px 0 0 12px;
}

.navbar-search-desktop {
    display: block;
}

.navbar-brand-mobilemark {
    display: none;
}

.search-suggest-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    border: 1px solid var(--search-separator);
    border-radius: 12px;
    background: var(--search-surface);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(9, 13, 18, 0.6);
    overflow: hidden;
    display: none;
    z-index: 20000;
}

.search-suggest-panel.is-open {
    display: block;
    animation: searchSuggestIn 0.14s ease;
}

@keyframes searchSuggestIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggest-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c4cedf;
    background: var(--search-separator);
    border-top: 1px solid var(--search-separator);
    border-bottom: 1px solid var(--search-separator);
    padding: 9px 12px 8px;
    position: relative;
}

.search-suggest-group-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.45);
}

.search-suggest-group-players::before {
    background: var(--search-accent);
}

.search-suggest-group-maps::before {
    background: var(--search-map-accent);
}

.search-suggest-item,
.search-suggest-footer {
    padding: 10px 12px;
    cursor: pointer;
    border-top: 1px solid var(--search-separator);
    background: var(--search-surface);
}

.search-suggest-item-player {
    border-left: 2px solid var(--search-accent);
}

.search-suggest-item-map {
    border-left: 2px solid var(--search-map-accent);
}

.search-suggest-item:first-of-type {
    border-top: 0;
}

.search-suggest-item.is-active,
.search-suggest-footer.is-active,
.search-suggest-item:hover,
.search-suggest-footer:hover {
    background: #454854;
}

.search-suggest-main {
    color: var(--search-text);
    font-size: 14px;
    line-height: 1.25;
}

.search-suggest-player-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-suggest-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

.search-suggest-meta {
    color: var(--search-muted);
    font-size: 12px;
    margin-top: 4px;
}

.search-suggest-label {
    min-width: 0;
}

.search-suggest-empty {
    padding: 10px 14px;
    color: var(--search-muted);
    border-bottom: 1px solid var(--search-separator);
    background: var(--search-surface);
}

.search-suggest-footer {
    color: #f4f6fb;
    font-size: 13px;
}

.search-suggest-footer span {
    color: var(--search-muted);
}

@media (max-width: 991px) {
    .sh-navbar-header {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        min-height: 50px;
    }

    .sh-navbar-header .navbar-brand {
        display: none;
    }

    .navbar-brand-mobilemark {
        display: inline-flex;
        order: 1;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(247, 175, 62, 0.5);
        background: rgba(255, 255, 255, 0.04);
        margin-top: 8px;
        align-self: flex-start;
    }

    .navbar-brand-mobilemark img {
        display: block;
        border-radius: 4px;
        width: 24px;
        height: 24px;
    }

    .sh-navbar-header #mobile-menu {
        order: 3;
        flex: 0 0 auto;
        margin-left: 0;
        position: relative;
        z-index: 21010;
    }

    .sh-navbar-header #mobile-menu .navbar-toggle {
        float: none;
        margin: 8px 0 0;
        position: relative;
        z-index: 21011;
    }

    .navbar-search-mobile {
        order: 2;
        flex: 1;
        width: auto;
        min-width: 0;
        margin: 8px 0 0 4px;
        display: block;
        position: relative;
        z-index: 1;
        align-self: flex-start;
    }

    .navbar-search-mobile > .fa-search {
        display: none;
    }

    .navbar-search-desktop {
        display: block;
    }

    .navbar-search-desktop > .fa-search,
    .navbar-search-desktop > .search-autocomplete-shell {
        display: none !important;
    }

    #navbar.navbar-collapse,
    #navbar.navbar-collapse.in,
    #navbar.navbar-collapse.collapsing {
        overflow-y: auto !important;
        overflow-x: visible !important;
        max-height: calc(100vh - 60px) !important;
    }

    .navbar-form {
        overflow: visible !important;
        margin-bottom: 12px;
    }

    .search-autocomplete-shell {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .navbar-search-mobile .search-autocomplete-shell .form-control {
        margin-left: 0 !important;
        width: 100% !important;
        font-size: 16px !important;
    }

    .search-autocomplete-shell .form-control {
        max-width: 100%;
    }

    .search-suggest-panel {
        margin-top: 0;
        max-width: calc(100vw - 16px);
    }

    .search-suggest-panel.is-mobile-inline {
        position: fixed !important;
        top: 58px !important;
        left: 8px !important;
        right: 8px !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        max-height: min(55vh, 320px) !important;
        z-index: 20000 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-suggest-panel.is-open {
        animation: none;
    }
}
