.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0,0,0,.46);
    backdrop-filter: blur(12px);
}

.search-overlay.hidden,
.search-drawer.hidden {
    display: none;
}

.search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1510;
    width: min(92vw, 430px);
    height: 100vh;
    height: 100dvh;
    padding:
        calc(22px + var(--fp-safe-area-top, env(safe-area-inset-top, 0px)))
        22px
        calc(22px + var(--fp-safe-area-bottom, env(safe-area-inset-bottom, 0px)))
        max(22px, var(--fp-safe-area-left, env(safe-area-inset-left, 0px)));
    box-sizing: border-box;
    background: var(--glass-fill-strong);
    border-right: 1px solid var(--glass-border-neutral);
    backdrop-filter: blur(30px);
    box-shadow:
        24px 0 80px rgba(0, 0, 0, 0.45),
        var(--glass-accent-rim);
    animation: drawerIn .25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes drawerIn {
    from {
        transform: translateX(-100%);
        opacity: .4;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.search-drawer-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.search-drawer-head span {
    color: #79b4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.search-drawer-head h3 {
    margin: 5px 0 0;
    font-size: 23px;
}

.search-close-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    color: white;
    font-size: 26px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border-cool);
}

.search-drawer-form {
    margin-bottom: 12px;
}

.search-input-wrap {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.12);
}

.search-input-wrap button {
    border: none;
    border-radius: 15px;
    color: white;
    background: rgba(47,123,255,.55);
    cursor: pointer;
    font-size: 20px;
}

.search-input-wrap input {
    min-height: 44px;
    border: none;
    outline: none;
    color: white;
    background: transparent;
}

.search-input-wrap input::placeholder {
    color: rgba(255,255,255,.42);
}

.search-mini-hint {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.live-search-results {
    display: grid;
    gap: 10px;
}

.live-search-empty {
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    color: var(--text-soft);
    background: var(--glass-fill);
    border: 1px solid var(--glass-border-cool);
}

.live-result-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border-neutral);
    transition: .2s;
}

.live-result-item:hover {
    background: rgba(47,123,255,.13);
    border-color: rgba(87,161,255,.28);
}

.live-result-item img {
    width: 62px;
    height: 88px;
    object-fit: cover;
    border-radius: 13px;
    background: rgba(255,255,255,.08);
}

.live-result-info {
    min-width: 0;
    display: grid;
    align-content: center;
}

.live-result-info strong {
    display: block;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-result-info small {
    direction: ltr;
    text-align: right;
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.live-result-meta span {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--text-soft);
    background: rgba(0,0,0,.18);
}

.search-full-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, #1f6fff, #3d95ff);
    box-shadow: 0 12px 30px rgba(47,123,255,.24);
}

.search-results-page {
    min-height: 100vh;
    padding-bottom: 90px;
}

.search-results-hero {
    min-height: 300px;
    display: grid;
    align-items: end;
    padding: var(--fp-content-below-topbar, 96px) max(22px, calc((100vw - 1220px) / 2)) 52px;
    background:
        radial-gradient(circle at top left, rgba(47,123,255,.25), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255,48,79,.14), transparent 34%),
        linear-gradient(to bottom, #0b1a31, #07111f);
}

.search-results-card {
    width: min(100%, 720px);
}

.search-results-card h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
}

.search-results-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 2;
}

.search-results-card strong {
    color: white;
}

.search-results-shell {
    margin-top: -26px;
}
