.ms-search-hero {
    background:
        radial-gradient(circle at top right, rgba(200, 16, 46, .22), transparent 35%),
        linear-gradient(135deg, #071229 0%, #0f172a 55%, #1e293b 100%);
    color: #fff;
    padding: 44px 0;
    margin-bottom: 34px;
    border-bottom: 4px solid var(--red, #c8102e);
}

.ms-search-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.ms-search-hero-text {
    min-width: 0;
}

.ms-search-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.ms-search-hero h1 {
    font-family: var(--font-head, inherit);
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0;
    color: #fff;
}

.ms-search-hero p {
    max-width: 700px;
    margin-top: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.75;
}

.ms-search-hero-stat {
    min-width: 190px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(14px);
}

.ms-search-hero-stat span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 850;
}

.ms-search-hero-stat strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-family: var(--font-head, inherit);
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.05em;
}

.ms-search-hero-stat small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
    font-weight: 700;
}

.ms-search-page {
    padding-bottom: 70px;
}

.ms-search-panel {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 26px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .08));
    padding: 14px;
    margin-bottom: 26px;
}

.ms-search-form {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 12px;
}

.ms-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0 15px;
    transition: .16s;
}

.ms-search-field:focus-within {
    border-color: var(--red, #c8102e);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, .10);
    background: #fff;
}

.ms-search-field-icon {
    font-size: 18px;
    opacity: .75;
    flex-shrink: 0;
}

.ms-search-input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
    color: var(--text, #111827);
    font-weight: 650;
    padding: 0 !important;
    margin: 0 !important;
}

.ms-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.ms-search-submit {
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--red, #c8102e), #ef4444);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(200, 16, 46, .22);
    transition: .16s;
}

.ms-search-submit:hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}

.ms-search-query-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 4px 0;
    border-top: 1px solid #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.ms-search-query-info strong {
    color: var(--navy, #0f172a);
}

.ms-search-query-info a {
    color: var(--red, #c8102e);
    font-weight: 900;
}

.ms-search-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.ms-search-empty,
.ms-search-no-result {
    text-align: center;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 28px;
    padding: 54px 24px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .08));
}

.ms-search-empty-icon,
.ms-search-no-result-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 14px;
}

.ms-search-empty h2,
.ms-search-no-result h2 {
    font-family: var(--font-head, inherit);
    font-size: 25px;
    font-weight: 950;
    color: var(--navy, #0f172a);
    letter-spacing: -.03em;
    margin: 0;
}

.ms-search-empty p,
.ms-search-no-result p {
    max-width: 540px;
    margin: 8px auto 0;
    color: var(--text-soft, #64748b);
    font-size: 14px;
    line-height: 1.65;
}

.ms-search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.ms-search-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    transition: .15s;
}

.ms-search-tags a:hover {
    background: var(--red, #c8102e);
    border-color: var(--red, #c8102e);
    color: #fff;
}

.ms-search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    padding: 0 2px;
}

.ms-search-toolbar div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ms-search-toolbar strong {
    color: var(--navy, #0f172a);
    font-family: var(--font-head, inherit);
    font-size: 22px;
    font-weight: 950;
}

.ms-search-toolbar span,
.ms-search-toolbar small {
    color: var(--text-soft, #64748b);
    font-size: 13px;
    font-weight: 750;
}

.ms-search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ms-result-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .07));
    transition: .18s;
}

.ms-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
    border-color: rgba(200, 16, 46, .25);
}

.ms-result-image {
    display: block;
    position: relative;
    width: 220px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #e5e7eb;
}

.ms-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}

.ms-result-card:hover .ms-result-image img {
    transform: scale(1.06);
}

.ms-result-media-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .80);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    backdrop-filter: blur(8px);
}

.ms-result-body {
    min-width: 0;
}

.ms-result-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.ms-result-cat {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--ms-cat-color, #c8102e);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.ms-result-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.ms-result-body h2 {
    font-family: var(--font-head, inherit);
    font-size: 21px;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: var(--navy, #0f172a);
    margin: 0;
}

.ms-result-body h2 a {
    color: inherit;
    transition: color .15s;
}

.ms-result-body h2 a:hover {
    color: var(--red, #c8102e);
}

.ms-result-body p {
    margin-top: 8px;
    color: var(--text-mid, #475569);
    font-size: 13px;
    line-height: 1.62;
}

.ms-result-body mark {
    background: rgba(250, 204, 21, .55);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.ms-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 11px;
    color: var(--text-soft, #64748b);
    font-size: 11px;
    font-weight: 750;
}

.ms-result-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 40px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--navy, #0f172a);
    font-size: 12px;
    font-weight: 950;
    transition: .15s;
}

.ms-result-card:hover .ms-result-read,
.ms-result-read:hover {
    background: var(--red, #c8102e);
    border-color: var(--red, #c8102e);
    color: #fff;
}

.ms-search-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 28px;
}

.ms-search-pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    transition: .15s;
}

.ms-search-pagination a:hover,
.ms-search-pagination a.active {
    background: var(--red, #c8102e);
    border-color: var(--red, #c8102e);
    color: #fff;
}

.ms-search-pagination .ms-page-prev,
.ms-search-pagination .ms-page-next {
    min-width: 92px;
}

@media (max-width: 900px) {
    .ms-search-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ms-search-hero-stat {
        width: 100%;
        text-align: left;
    }

    .ms-result-card {
        grid-template-columns: 160px 1fr;
    }

    .ms-result-read {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ms-result-image {
        width: 160px;
    }
}

@media (max-width: 640px) {
    .ms-search-hero {
        padding: 34px 0;
    }

    .ms-search-hero h1 {
        font-size: 31px;
    }

    .ms-search-form {
        grid-template-columns: 1fr;
    }

    .ms-search-submit {
        min-height: 48px;
    }

    .ms-search-query-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .ms-result-card {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .ms-result-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .ms-result-body h2 {
        font-size: 18px;
    }

    .ms-search-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}