:is(.page-games-catalog, .page-news-catalog) .games-browser-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px;
    border: 1px solid #e1e4ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(41, 56, 77, .08);
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-search {
    display: flex;
    min-width: 260px;
    max-width: 520px;
    flex: 1 1 430px;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #dfe3ef;
    border-radius: 13px;
    background: #f7f8fc;
    color: #7a8597;
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-search:focus-within {
    border-color: rgba(87, 90, 255, .48);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(87, 90, 255, .1);
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-search > i { color: #575aff; }

:is(.page-games-catalog, .page-news-catalog) .games-browser-search input {
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #29384d;
    font-size: 13px;
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-search input::placeholder { color: #8a95a6; }

:is(.page-games-catalog, .page-news-catalog) .games-browser-search button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #eceafa;
    color: #6150c7;
    cursor: pointer;
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-sort {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border-radius: 13px;
    background: #f0eefb;
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-sort button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6f7890;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-sort button:hover { color: #575aff; }

:is(.page-games-catalog, .page-news-catalog) .games-browser-sort button.is-active {
    background: #575aff;
    color: #fff;
    box-shadow: 0 5px 13px rgba(87, 90, 255, .22);
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-result-count {
    min-width: 82px;
    margin-left: auto;
    color: #7c8799;
    font-size: 11px;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

:is(.page-games-catalog, .page-news-catalog) #gamesGrid .game-item[hidden],
:is(.page-games-catalog, .page-news-catalog) #newsArticlesGrid .home-article-item[hidden] { display: none !important; }

:is(.page-games-catalog, .page-news-catalog) .games-browser-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 130px;
    padding: 24px;
    border: 1px dashed #d5d9e8;
    border-radius: 18px;
    background: #fff;
    color: #575aff;
    text-align: left;
}

:is(.page-games-catalog, .page-news-catalog) .games-browser-empty[hidden] { display: none !important; }
:is(.page-games-catalog, .page-news-catalog) .games-browser-empty > i { font-size: 24px; }
:is(.page-games-catalog, .page-news-catalog) .games-browser-empty span { display: flex; flex-direction: column; }
:is(.page-games-catalog, .page-news-catalog) .games-browser-empty strong { color: #29384d; font-size: 15px; }
:is(.page-games-catalog, .page-news-catalog) .games-browser-empty small { color: #7c8799; font-size: 12px; }

@media (max-width: 767px) {
    :is(.page-games-catalog, .page-news-catalog) .games-browser-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    :is(.page-games-catalog, .page-news-catalog) .games-browser-search {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex-basis: auto;
    }

    :is(.page-games-catalog, .page-news-catalog) .games-browser-sort { width: 100%; }
    :is(.page-games-catalog, .page-news-catalog) .games-browser-sort button { flex: 1; }
    :is(.page-games-catalog, .page-news-catalog) .games-browser-result-count {
        min-width: 0;
        margin-left: 2px;
        text-align: left;
    }
}
