body[data-type='search'] {
    --hgs-primary: var(--heo-main, var(--heo-theme, #307af6));
    --hgs-primary-soft: var(--heo-main-op, rgba(48, 122, 246, 0.12));
    --hgs-primary-deep: var(--heo-main-op-deep, rgba(48, 122, 246, 0.24));
    --hgs-card: var(--heo-card-bg, rgba(255, 255, 255, 0.96));
    --hgs-card-solid: var(--heo-card-bg, #ffffff);
    --hgs-card-plain: #ffffff;
    --hgs-soft: var(--heo-secondbg, #f4f6fb);
    --hgs-border: var(--heo-border-color, rgba(31, 41, 55, 0.1));
    --hgs-text: var(--heo-fontcolor, #1f2937);
    --hgs-muted: var(--heo-secondtext, #667085);
    --hgs-control-border: rgba(228, 160, 190, 0.25);
    --hgs-control-border-strong: rgba(228, 160, 190, 0.46);
    --hgs-focus-ring: rgba(var(--theme-color-rgb, 236, 86, 137), 0.16);
    --hgs-button-shadow: rgba(var(--theme-color-rgb, 236, 86, 137), 0.22);
    --hgs-elevated-shadow: 0 8px 28px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
    --hgs-elevated-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.08), 0 3px 10px rgba(15, 23, 42, 0.05);
    --hgs-danger: var(--heo-red, #ef4444);
    --hgs-danger-soft: rgba(239, 68, 68, 0.12);
    --hgs-warning: var(--heo-yellow, #f59e0b);
    --hgs-warning-soft: rgba(245, 158, 11, 0.14);
    --hgs-secondary-soft: rgba(139, 92, 246, 0.13);
    --hgs-shadow: var(--heo-shadow-border, 0 16px 38px rgba(15, 23, 42, 0.08));
}

html:has(body[data-type='search']) {
    min-height: 100%;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

html:has(body[data-type='search']) body {
    min-height: 100%;
    scrollbar-gutter: stable;
}

html:has(body[data-type='search']) {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-color-rgb, 236, 86, 137), 0.36) transparent;
}

html:has(body[data-type='search'])::-webkit-scrollbar {
    width: 8px;
}

html:has(body[data-type='search'])::-webkit-scrollbar-track {
    background: transparent;
}

html:has(body[data-type='search'])::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: transparent !important;
    background-image: linear-gradient(rgba(var(--theme-color-rgb, 236, 86, 137), 0.34), rgba(var(--theme-color-rgb, 236, 86, 137), 0.34)) !important;
    background-size: 100% clamp(38px, 6vh, 56px);
    background-repeat: no-repeat;
    background-position: center;
    background-clip: content-box;
}

html:has(body[data-type='search'])::-webkit-scrollbar-thumb:hover {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(var(--theme-color-rgb, 236, 86, 137), 0.52), rgba(var(--theme-color-rgb, 236, 86, 137), 0.52)) !important;
}

body[data-type='search'] {
    min-height: 100vh;
}

body[data-type='search'] #page {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

body[data-type='search'] #body-wrap {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    min-width: 0;
}

#body-wrap:has(#halo-galgame-search) {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    min-width: 0;
}

body[data-type='search'] #content-inner.layout {
    flex: 1 0 auto;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    overflow: visible;
}

#body-wrap:has(#halo-galgame-search) #content-inner.layout {
    flex: 1 0 auto;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    overflow: visible;
}

body[data-type='search'] #content-inner.layout > #page {
    flex: 1 0 auto;
}

#body-wrap:has(#halo-galgame-search) #content-inner.layout > #page {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

body[data-type='search'] #footer {
    flex: 0 0 auto;
}

#body-wrap:has(#halo-galgame-search) #footer {
    flex: 0 0 auto;
}

.hgs-page {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: clamp(24px, 2.2vw, 36px) auto 0;
    overflow: visible;
    color: var(--hgs-text);
    opacity: 1;
    transform: none;
    transition: none;
}

.hgs-page[data-ready='true'] {
    opacity: 1;
    transform: none;
}

.hgs-search-hero {
    display: grid;
    gap: 16px;
    padding: 2px 0 0;
    overflow: visible;
}

.hgs-hero__copy {
    display: grid;
    gap: 7px;
    max-width: 720px;
}

.hgs-search-hero h1 {
    margin: 0;
    color: var(--hgs-text);
    font-size: clamp(1.68rem, 3vw, 1.96rem);
    font-weight: 620;
    line-height: 1.2;
    letter-spacing: 0;
}

.hgs-hero__desc {
    display: grid;
    gap: 3px;
    color: var(--hgs-muted);
    font-size: 14px;
    line-height: 1.65;
}

.hgs-hero__desc p {
    margin: 0;
}

.hgs-search-card {
    position: relative;
    z-index: 9;
    display: grid;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hgs-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

.hgs-search-card h2,
.hgs-result-head h2 {
    margin: 0;
    color: var(--hgs-text);
    font-size: 15px;
    font-weight: 620;
    line-height: 1.35;
    letter-spacing: 0;
}

.hgs-search-card p,
.hgs-result-head p {
    margin: 0;
    color: var(--hgs-muted);
    font-size: 13px;
    line-height: 1.45;
}

.hgs-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    margin-top: 0;
    padding: 8px 10px;
    border: 1px solid var(--hgs-control-border);
    border-radius: 20px;
    background: var(--hgs-card-plain);
    box-shadow: var(--hgs-elevated-shadow);
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hgs-input-wrap.is-focused {
    border-color: var(--hgs-control-border-strong);
    box-shadow: 0 0 0 4px var(--hgs-focus-ring), var(--hgs-elevated-shadow);
    background: var(--hgs-card-plain);
}

.hgs-query {
    flex: 1 1 160px;
    min-width: 140px;
    height: 52px;
    border: 0;
    background: transparent;
    color: var(--hgs-text);
    font-size: 16px;
    line-height: 52px;
    outline: none;
}

.hgs-query::-webkit-search-decoration,
.hgs-query::-webkit-search-cancel-button,
.hgs-query::-webkit-search-results-button,
.hgs-query::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.hgs-query::placeholder {
    color: var(--hgs-muted);
}

.hgs-icon-button,
.hgs-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.hgs-icon-button {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--hgs-muted);
}

.hgs-icon-button[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.hgs-icon-button:hover,
.hgs-icon-button:focus-visible {
    border-color: var(--hgs-control-border);
    background: rgba(var(--theme-color-rgb, 236, 86, 137), 0.08);
    color: var(--hgs-primary);
    outline: none;
}

.hgs-icon-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    color: currentColor;
    font-size: 20px;
    font-weight: 560;
    line-height: 1;
    transform: translateY(-1px);
}

.hgs-search-button {
    gap: 0;
    min-width: 78px;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    background: var(--hgs-primary);
    color: var(--heo-white, #ffffff);
    box-shadow: 0 10px 22px var(--hgs-button-shadow);
}

.hgs-search-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-align: center;
}

.hgs-search-button:hover,
.hgs-search-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px var(--hgs-focus-ring), 0 12px 24px var(--hgs-button-shadow);
    outline: none;
}

.hgs-search-button[disabled] {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.hgs-filter-shell {
    position: relative;
    z-index: 5;
    overflow: visible;
    padding-top: 2px;
}

body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] {
    min-height: 64px !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 18px !important;
    background: var(--hgs-card-plain, rgba(255, 255, 255, 0.96)) !important;
    box-shadow: var(--hgs-elevated-shadow) !important;
    backdrop-filter: saturate(1.1) blur(8px);
    -webkit-backdrop-filter: saturate(1.1) blur(8px);
}

body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__trigger,
body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__order {
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 14px !important;
    background: var(--hgs-card-plain, #ffffff) !important;
    box-shadow: none !important;
}

body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__trigger:hover,
body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__order:hover,
body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__trigger:focus-visible,
body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__order:focus-visible {
    border-color: var(--hgs-control-border-strong) !important;
    background: rgba(var(--theme-color-rgb, 236, 86, 137), 0.06) !important;
    box-shadow: 0 0 0 3px var(--hgs-focus-ring) !important;
    outline: none !important;
}

body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__menu {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: var(--hgs-card-plain, #ffffff) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

body[data-type='search'] #category-bar.home-toolbar[data-sort-component='hao'] .home-toolbar__menu-item:hover {
    background: rgba(var(--theme-color-rgb, 236, 86, 137), 0.07) !important;
}

.hgs-result-shell {
    position: relative;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hgs-result-shell:has(.hgs-state.is-loading:not([hidden])) {
    min-height: max(460px, calc(100dvh - 360px));
}

.hgs-result-shell[hidden] {
    display: none !important;
}

.hgs-result-head {
    padding: 0 4px;
}

.hgs-count {
    display: none !important;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--hgs-primary-soft);
    color: var(--hgs-primary);
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
}

.hgs-state {
    display: flex;
    width: 100%;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 22px 16px;
    border: 1px dashed var(--hgs-border);
    border-radius: 16px;
    background: var(--hgs-soft);
    color: var(--hgs-muted);
    text-align: center;
}

.hgs-state[hidden] {
    display: none !important;
}

.hgs-state strong {
    color: var(--hgs-text);
    font-size: 16px;
    font-weight: 740;
}

.hgs-state span {
    max-width: 460px;
    font-size: 13.5px;
    line-height: 1.7;
}

.hgs-state.is-loading strong::after {
    content: "";
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: hgsDots 1.2s steps(4, end) infinite;
}

body[data-type='search'] #hgs-results.hgs-results[hidden]:empty {
    display: none !important;
}

body[data-type='search'] #hgs-results.hgs-results {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    column-gap: var(--kisu-gap, 16px) !important;
    row-gap: 12px !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

body[data-type='search'] #hgs-results.hgs-results[hidden]:not(:empty) {
    display: flex !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item {
    cursor: pointer;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results {
    --hao-post-card-avatar-size: clamp(20px, 1.35vw, 26px);
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: var(--hao-post-card-fixed-height, 340px) !important;
    min-height: var(--hao-post-card-fixed-height, 340px) !important;
    max-height: var(--hao-post-card-fixed-height, 340px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: var(--style-border) !important;
    box-shadow: var(--heo-shadow-border) !important;
    background: var(--heo-card-bg) !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap):hover {
    border: var(--style-border-hover) !important;
    box-shadow: var(--heo-shadow-main) !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) .post_cover {
    order: 1 !important;
    width: 100% !important;
    flex: 0 0 var(--hao-post-card-cover-height, 62%) !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) .post_cover > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) .post_cover img.post_bg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--hao-post-card-cover-fit, cover) !important;
    object-position: center center !important;
    border-radius: 0 !important;
    transition: transform 0.35s ease !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap):hover .post_cover img.post_bg {
    transform: scale(1.04) !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) > .recent-post-info {
    order: 2 !important;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 11px 14px !important;
    position: static !important;
    overflow: hidden !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .recent-post-info-top {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .recent-post-info-top .article-title {
    position: static !important;
    display: -webkit-box !important;
    width: 100% !important;
    min-height: calc(var(--hao-post-card-title-lh, 1.45) * 2em) !important;
    max-height: calc(var(--hao-post-card-title-lh, 1.45) * 2em) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: var(--heo-fontcolor) !important;
    font-size: var(--hao-post-card-title-size, 1.02rem) !important;
    font-weight: 700 !important;
    line-height: var(--hao-post-card-title-lh, 1.45) !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap):hover .article-title {
    color: var(--heo-theme) !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) > .recent-post-info > .article-meta-wrap {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 10px !important;
    white-space: normal !important;
    color: var(--heo-secondtext) !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .card-meta-left {
    display: flex !important;
    align-items: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .card-author-avatar {
    width: var(--hao-post-card-avatar-size) !important;
    height: var(--hao-post-card-avatar-size) !important;
    min-width: var(--hao-post-card-avatar-size) !important;
    min-height: var(--hao-post-card-avatar-size) !important;
    max-width: var(--hao-post-card-avatar-size) !important;
    max-height: var(--hao-post-card-avatar-size) !important;
    border: 1px solid var(--heo-card-border);
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    flex: 0 0 var(--hao-post-card-avatar-size) !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .post-meta-date {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .post-meta-date time {
    display: inline !important;
    overflow: hidden !important;
    color: var(--heo-secondtext) !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-type='search'] #body-wrap #hgs-results.hgs-results .card-meta-comments {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
    color: var(--heo-secondtext) !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.hgs-pagination {
    margin: 18px 0 0 !important;
    padding: 0;
}

.hgs-pagination[hidden] {
    display: none !important;
}

html[data-theme='dark'] body[data-type='search'],
body[data-theme='dark'][data-type='search'],
html.dark body[data-type='search'],
body.dark[data-type='search'] {
    --hgs-card: var(--heo-card-bg, rgba(28, 28, 31, 0.9));
    --hgs-card-solid: var(--heo-card-bg, #1f2228);
    --hgs-card-plain: var(--heo-card-bg, #1f2228);
    --hgs-soft: var(--heo-secondbg, rgba(255, 255, 255, 0.06));
    --hgs-border: rgba(255, 255, 255, 0.1);
    --hgs-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

@media screen and (max-width: 768px) {
    .hgs-page {
        gap: 16px;
    }

    body[data-type='search'] #page {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .hgs-search-hero {
        gap: 16px;
    }

    .hgs-hero__copy {
        gap: 7px;
    }

    .hgs-search-hero h1 {
        font-size: clamp(1.62rem, 6.4vw, 1.9rem);
    }

    .hgs-hero__desc {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .hgs-search-card {
        gap: 0;
    }

    .hgs-result-shell {
        padding: 0;
    }

    .hgs-result-head {
        padding: 0 2px;
    }

    .hgs-input-wrap {
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 60px;
        padding: 6px;
        border-radius: 18px;
    }

    .hgs-query {
        flex: 1 1 auto;
        min-width: 0;
        height: 46px;
        line-height: 46px;
    }

    .hgs-icon-button {
        flex: 0 0 32px;
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .hgs-search-button {
        flex: 0 0 auto;
        min-width: 74px;
        height: 42px;
        min-height: 42px;
        padding: 0 16px;
        border-radius: 12px;
    }

    .hgs-result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hgs-count {
        align-self: flex-start;
    }

    body[data-type='search'] #pagination.hgs-pagination .pagination {
        justify-content: center;
        gap: 8px;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        column-gap: var(--hao-mobile-card-gap, 8px) !important;
        row-gap: var(--hao-mobile-card-gap, 8px) !important;
        padding: 0 !important;
        grid-template-columns: none !important;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap),
    body[data-type='search'] #hgs-results.hgs-results > .recent-post-item.col1,
    body[data-type='search'] #hgs-results.hgs-results > .recent-post-item.col2,
    body[data-type='search'] #hgs-results.hgs-results > .recent-post-item.col3 {
        flex: 0 0 calc((100% - var(--hao-mobile-card-gap, 8px)) / 2) !important;
        width: calc((100% - var(--hao-mobile-card-gap, 8px)) / 2) !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results {
        --hao-post-card-avatar-size: clamp(16px, 4.6vw, 20px);
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: var(--hao-mobile-card-radius, 10px) !important;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) .post_cover {
        flex: 0 0 auto !important;
        aspect-ratio: var(--hao-mobile-card-cover-ratio, 4 / 3) !important;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results > .recent-post-item:not(.ads-wrap) > .recent-post-info {
        min-height: 0 !important;
        padding: max(8px, var(--hao-mobile-card-padding, 7px)) !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results .recent-post-info-top .article-title {
        font-size: var(--hao-mobile-title-adapt-size, var(--hao-mobile-title-size, 12px)) !important;
        line-height: var(--hao-mobile-title-adapt-lh, 1.36) !important;
        min-height: calc(var(--hao-mobile-title-adapt-lh, 1.36) * 2em) !important;
        max-height: calc(var(--hao-mobile-title-adapt-lh, 1.36) * 2em) !important;
    }

    body[data-type='search'] #body-wrap #hgs-results.hgs-results .post-meta-date time,
    body[data-type='search'] #body-wrap #hgs-results.hgs-results .card-meta-comments {
        font-size: 11px !important;
    }

    .hgs-state {
        min-height: 124px;
        margin: 12px 0 0;
        padding: 20px 14px;
    }

    .hgs-pagination {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hgs-page {
        transition: none !important;
        transform: none !important;
    }
}

@keyframes hgsDots {
    0% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75%,
    100% {
        content: "...";
    }
}
