/* ══════════════════════════════════════════════════════════════════
   RAFLIX · SEARCH OVERLAY
   ══════════════════════════════════════════════════════════════════ */

.search-container {
    max-width: 780px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
    height: 100dvh;
    overflow-y: auto;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: 0;
    padding: .875rem 1.125rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-hard);
}
.search-bar:focus-within {
    box-shadow: var(--shadow-hard-lg);
    transform: translate(-2px, -2px);
}
.search-icon {
    color: var(--text);
    flex-shrink: 0;
}
#searchInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
    font-family: inherit;
}
#searchInput::placeholder {
    color: var(--text3);
    font-weight: 500;
}
.search-close {
    color: var(--text);
    transition: all var(--transition);
    padding: 6px;
    border: var(--border-w-sm) solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-close:hover {
    border-color: var(--border);
    background: var(--bg);
}
.search-filters {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    padding-bottom: 2rem;
}
.search-results .cf-card {
    width: 100%;
}
.search-msg {
    text-align: center;
    color: var(--text3);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3rem 0;
    grid-column: 1/-1;
}

/* Scrollable results area */
.search-results {
    max-height: calc(100dvh - 260px);
    overflow-y: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
}
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0;
}
