:root {
    --x2-search-bg: #102f4d;
    --x2-search-field: #fff;
    --x2-search-muted: #9aa8b4;
    --x2-search-gold: #e1b92f;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: #333;
}

.x2SearchPageShell {
    min-height: 100vh;
    background: var(--x2-search-bg);
}

.x2GlobalSearch {
    min-height: 560px;
    padding: 28px 18px 42px;
    background: var(--x2-search-bg);
    color: #fff;
}

.x2GlobalSearch h1,
.x2GlobalSearch h2 {
    margin: 0;
    color: #fff;
    font-family: Poppins, Arial, sans-serif;
    font-weight: 700;
}

.x2GlobalSearch h1 { font-size: 25px; line-height: 1.25; }

.x2GlobalSearchField {
    min-height: 48px;
    margin-top: 28px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--x2-search-field);
    color: #7c8893;
}

.x2GlobalSearchField:focus-within {
    border-color: var(--x2-search-gold);
    box-shadow: 0 0 0 1px var(--x2-search-gold);
}

.x2GlobalSearchField > svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.globalSearchField {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #263441;
    font: 600 14px Poppins, Arial, sans-serif;
}

.globalSearchField::placeholder { color: #7d8994; opacity: 1; }
.globalSearchField::-webkit-search-cancel-button { display: none; }

.x2GlobalSearchClear {
    width: 28px;
    height: 28px;
    padding: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: #687580;
    font: 400 25px/1 Arial, sans-serif;
    cursor: pointer;
}

.searchSubheading {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--x2-search-muted);
    font: 400 13px/1.45 Poppins, Arial, sans-serif;
}

.defaultSearchResults { margin-top: 28px; }
.defaultSearchResults h2 { margin-bottom: 20px; font-size: 24px; line-height: 1.2; }

.x2SearchGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px 10px;
}

.x2SearchCard {
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.x2SearchCardImage {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #061827;
    aspect-ratio: 1;
}

.x2SearchCardImage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.x2SearchCard:hover .x2SearchCardImage img,
.x2SearchCard:focus-visible .x2SearchCardImage img { transform: scale(1.035); }

.x2SearchPlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 17, 29, .6);
    opacity: 0;
    transition: opacity .2s ease;
}

.x2SearchPlay svg {
    width: 36px;
    height: 36px;
    fill: var(--x2-search-gold);
}

.x2SearchCard:hover .x2SearchPlay,
.x2SearchCard:focus-visible .x2SearchPlay { opacity: 1; }

.searchProviderName {
    margin-top: 8px;
    overflow: hidden;
    color: var(--x2-search-gold);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.searchGameTitle {
    margin-top: 3px;
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.x2SearchStatus {
    grid-column: 1 / -1;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--x2-search-muted);
    font-size: 14px;
    text-align: center;
}

@media (min-width: 700px) {
    .x2GlobalSearch { padding: 42px 48px 64px; }
    .x2GlobalSearch h1 { font-size: 30px; }
    .globalSearchField { font-size: 18px; }
    .x2SearchGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
    .searchProviderName { font-size: 12px; }
    .searchGameTitle { font-size: 16px; }
}
