/* ==========================================================================
   PERSONNAGES.CD - PREMIUM SEARCH & MODAL SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SEARCH BANNER & CARD (Page Content Area)
   -------------------------------------------------------------------------- */
.search-page__breadcrumb {
    font-size: 0.875rem;
    color: #64748B;
}

.search-page__breadcrumb a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-page__breadcrumb a:hover {
    color: #C48D3F;
}

.search-hero-card {
    background: #060F1E;
    background: radial-gradient(circle at 85% 20%, #0F2342 0%, #060F1E 75%);
    color: #ffffff;
    padding: 2.25rem 2.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(4, 10, 22, 0.12);
    border: 1px solid rgba(196, 141, 63, 0.25);
    position: relative;
    overflow: hidden;
}

.search-hero-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(196, 141, 63, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.search-hero__title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.search-hero__subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Search Box Container */
.search-hero__form {
    position: relative;
    max-width: 720px;
}

.search-hero__input-wrap {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 4px;
    box-shadow: none;
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.search-hero__input-wrap:focus-within {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(196, 141, 63, 0.4);
    border-color: rgba(196, 141, 63, 0.45);
}

.search-hero__icon {
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
}

.search-hero__input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    color: #ffffff;
    background: transparent;
    width: 100%;
}

.search-hero__input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.search-hero__clear-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 1.1rem;
    padding: 0 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-hero__clear-btn:hover {
    color: #4a5568;
}

.search-hero__submit-btn {
    background: linear-gradient(135deg, #C48D3F 0%, #9E6E28 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.search-hero__submit-btn:hover {
    background: linear-gradient(135deg, #D49D4F 0%, #AE7E38 100%);
    box-shadow: 0 4px 15px rgba(196, 141, 63, 0.4);
    transform: translateY(-1px);
}

/* Examples tags */
.search-hero__examples {
    margin-top: 0.85rem;
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.search-hero__tag {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-hero__tag:hover {
    background: rgba(196, 141, 63, 0.25);
    color: #F7D08A;
    border-color: rgba(196, 141, 63, 0.4);
}

/* Tip Box ("Conseil") */
.search-hero__tip-card {
    background: rgba(15, 30, 55, 0.7);
    border: 1px solid rgba(196, 141, 63, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-hero__tip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F7D08A;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-hero__tip-text {
    font-size: 0.835rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   2. MAIN LAYOUT & SIDEBAR FILTERS
   -------------------------------------------------------------------------- */
.search-content-wrapper {
    background-color: #f6f7fa;
    min-height: 70vh;
}

.search-sidebar {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.search-sidebar__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EDF2F7;
    margin-bottom: 1.25rem;
}

.search-sidebar__title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2D3748;
    margin: 0;
}

.search-sidebar__reset {
    font-size: 0.8rem;
    color: #C48D3F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-sidebar__reset:hover {
    color: #9E6E28;
    text-decoration: underline;
}

.search-sidebar__group {
    margin-bottom: 1.5rem;
}

.search-sidebar__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4A5568;
    margin-bottom: 0.75rem;
    display: block;
}

.search-sidebar__check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-sidebar__check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #4A5568;
    cursor: pointer;
}

.search-sidebar__check-item input {
    accent-color: #C48D3F;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.search-sidebar__count {
    font-size: 0.78rem;
    color: #A0AEC0;
}

.search-sidebar__apply-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #C48D3F;
    color: #C48D3F;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-sidebar__apply-btn:hover {
    background: #C48D3F;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. RESULTS AREA (AIRY, BREATHING, SPACIOUS DESIGN)
   -------------------------------------------------------------------------- */
.search-results__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-results__count-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A202C;
    margin: 0;
}

.search-results__count-title span {
    color: #C48D3F;
}

.search-results__sort-select {
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    color: #4A5568;
    background: #ffffff;
}

/* Filter Navigation Pills */
.search-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 0.75rem;
}

.search-tab-btn {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    color: #4A5568;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.search-tab-btn:hover {
    border-color: #C48D3F;
    color: #C48D3F;
}

.search-tab-btn.active {
    background: #C48D3F;
    border-color: #C48D3F;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(196, 141, 63, 0.25);
}

.search-tab-badge {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.search-tab-btn.active .search-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Section Grouping & Cards */
.search-section {
    margin-bottom: 3rem;
}

.search-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #EDF2F7;
}

.search-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2D3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section__more {
    font-size: 0.85rem;
    color: #C48D3F;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-section__more:hover {
    color: #9E6E28;
}

/* Clean Portrait Card (Personnages) */
.result-card-personnage {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.35rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    color: inherit;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.result-card-personnage:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
    border-color: rgba(196, 141, 63, 0.4);
}

.result-card-personnage__avatar {
    width: 90px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
    background: #EDF2F7;
    flex-shrink: 0;
}

.result-card-personnage__info {
    flex-grow: 1;
}

.result-card-personnage__name {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 0.25rem;
}

.result-card-personnage__subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.result-card-personnage__date {
    display: inline-block;
    font-size: 0.78rem;
    color: #C48D3F;
    font-weight: 600;
    background: rgba(196, 141, 63, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.result-card-personnage__excerpt {
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-card-personnage__arrow {
    color: #CBD5E0;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.result-card-personnage:hover .result-card-personnage__arrow {
    color: #C48D3F;
    transform: translateX(4px);
}

/* Clean Media Card (Histoires & Récits) */
.result-card-media {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-card-media:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
    border-color: rgba(196, 141, 63, 0.4);
}

.result-card-media__thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #E2E8F0;
}

.result-card-media__body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.result-card-media__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.result-card-media__excerpt {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.45;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   4. PREMIUM SEARCH MODAL SPOTLIGHT (GLOBAL COMMAND-K OVERLAY)
   -------------------------------------------------------------------------- */
.premium-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.premium-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.premium-search-modal__dialog {
    width: 96%;
    max-width: 920px;
    margin: auto;
    background: #ffffff !important;
    border: 1px solid #cfa15c !important;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25), 0 0 35px rgba(207, 161, 92, 0.15) !important;
    overflow: hidden;
    transform: translateY(0) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #0f172a !important;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.premium-search-header {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cfa15c !important;
}

.premium-search-header h2 {
    color: #0f172a !important;
}

.premium-search-header p {
    color: #64748b !important;
}

.premium-search-modal.active .premium-search-modal__dialog {
    transform: translateY(0) scale(1);
}

/* Modal Input Bar */
.premium-search-modal__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    background: #ffffff !important;
}

.premium-search-modal__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #cfa15c;
}

.premium-search-modal__input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.15rem;
    color: #0f172a;
    width: min(100%, 640px);
    text-align: center;
    font-weight: 500;
}

.premium-search-modal__input::placeholder {
    color: #94a3b8;
}

.premium-search-modal__close {
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.2s ease;
}

.premium-search-modal__close:hover {
    background: rgba(207, 161, 92, 0.15);
    border-color: #cfa15c;
    color: #a97d36;
}

/* Modal Body Results */
.premium-search-modal__body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    max-height: 60vh;
    background: #ffffff;
}

.premium-search-modal__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
}

.premium-search-modal__empty i {
    font-size: 2.5rem;
    color: #cfa15c;
    margin-bottom: 1rem;
}

.premium-search-modal__suggestions-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a97d36;
    margin-bottom: 0.75rem;
}

.premium-search-modal__suggest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.premium-search-modal__suggest-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.premium-search-modal__suggest-tag:hover {
    background: #fffaf1;
    border-color: #cfa15c;
    color: #a97d36;
}

/* Modal Result Item */
.premium-search-modal__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-decoration: none !important;
    color: #0f172a;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
}

.premium-search-modal__item:hover,
.premium-search-modal__item.selected {
    background: #fffaf1;
    border-color: #cfa15c;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(207, 161, 92, 0.12);
}

.premium-search-modal__item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #edf2f7;
    flex-shrink: 0;
}

.premium-search-modal__item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(207, 161, 92, 0.15);
    color: #cfa15c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.premium-search-modal__item-content {
    flex-grow: 1;
}

.premium-search-modal__item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.premium-search-modal__item-subtitle {
    font-size: 0.8rem;
    color: #64748b;
}

.premium-search-modal__item-type {
    font-size: 0.72rem;
    color: #a97d36;
    background: rgba(207, 161, 92, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Modal Footer Hotkeys */
.premium-search-modal__foot {
    padding: 0.85rem 1.75rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #64748b;
}

.premium-search-modal__hotkeys {
    display: flex;
    gap: 12px;
}

.premium-search-modal__hotkeys kbd {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .premium-search-modal {
        padding: 0 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        align-items: stretch !important;
    }

    .premium-search-modal__dialog {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .premium-search-modal__head {
        padding: 1.1rem 1rem 0.9rem;
        justify-content: space-between;
        background: #061222;
        border-bottom: 1px solid rgba(189, 126, 24, 0.3);
    }

    .premium-search-modal__icon {
        display: block !important;
        color: #d99b25;
        font-size: 1.1rem;
    }

    .premium-search-modal__input {
        width: 100%;
        text-align: left;
        font-size: 1.05rem;
    }

    .premium-search-modal__close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        padding: 0;
    }

    .premium-search-modal__body {
        flex: 1 1 auto;
        max-height: calc(100vh - 125px);
        max-height: calc(100dvh - 125px);
        padding: 1.2rem 1rem;
        overflow-y: auto;
    }

    .premium-search-modal__foot {
        padding: 0.85rem 1rem;
        background: #061222;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .premium-search-modal__hotkeys {
        flex-wrap: wrap;
        gap: 6px 10px;
    }
}

/* Black, grey and measured red search theme */
.search-page__breadcrumb a:hover,
.search-sidebar__reset,
.search-results__count-title span,
.search-section__more,
.result-card-personnage__date,
.result-card-personnage:hover .result-card-personnage__arrow,
.result-card-media__meta,
.premium-search-modal__icon,
.premium-search-modal__suggestions-title,
.premium-search-modal__item-icon,
.premium-search-modal__item-type {
    color: #A8322D;
}

.search-hero-card {
    background: #050505;
    background: radial-gradient(circle at 86% 18%, rgba(168, 50, 45, .12) 0%, rgba(31, 31, 31, .92) 34%, #050505 78%);
    border-color: rgba(221, 221, 221, .18);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.search-hero-card::before {
    background: radial-gradient(circle, rgba(168, 50, 45, .08) 0%, rgba(0, 0, 0, 0) 70%);
}

.search-hero__input-wrap:focus-within {
    border-color: rgba(168, 50, 45, .36);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .45), 0 0 0 3px rgba(168, 50, 45, .10);
}

.search-hero__submit-btn {
    background: #8F2D29;
    box-shadow: none;
}

.search-hero__submit-btn:hover {
    background: #1F1F1F;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .22);
}

.search-hero__tag:hover {
    color: #fff;
    background: rgba(168, 50, 45, .10);
    border-color: rgba(168, 50, 45, .28);
}

.search-hero__tip-card {
    background: rgba(31, 31, 31, .78);
    border-color: rgba(221, 221, 221, .16);
}

.search-hero__tip-title {
    color: #f2f2f2;
}

.search-sidebar__reset:hover,
.search-section__more:hover {
    color: #1F1F1F;
}

.search-sidebar__check-item input {
    accent-color: #8F2D29;
}

.search-sidebar__apply-btn {
    border-color: #8F2D29;
    color: #8F2D29;
}

.search-sidebar__apply-btn:hover,
.search-tab-btn.active {
    background: #1F1F1F;
    border-color: #1F1F1F;
    color: #fff;
}

.search-tab-btn:hover {
    border-color: #8F2D29;
    color: #8F2D29;
}

.search-tab-btn.active {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.result-card-personnage:hover,
.result-card-media:hover {
    border-color: rgba(168, 50, 45, .24);
}

.result-card-personnage__date {
    background: rgba(168, 50, 45, .06);
}

.premium-search-modal {
    background: rgba(0, 0, 0, .92);
}

.premium-search-modal__dialog {
    background: #050505;
    border-color: rgba(221, 221, 221, .16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .72);
}

.premium-search-modal__head,
.premium-search-modal__foot {
    background: #050505;
    border-color: rgba(221, 221, 221, .14);
}

.premium-search-modal__body {
    background: #0b0b0b;
}

.premium-search-modal__input {
    color: #fff;
}

.premium-search-modal__input::placeholder,
.premium-search-modal__hotkeys {
    color: rgba(255, 255, 255, .56);
}

.premium-search-modal__close {
    color: #DDDDDD;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(221, 221, 221, .18);
}

.premium-search-modal__close:hover {
    color: #fff;
    background: rgba(168, 50, 45, .12);
    border-color: rgba(168, 50, 45, .28);
}

.premium-search-modal__suggest-tag,
.premium-search-modal__item {
    color: #DDDDDD !important;
    background: #111;
    border-color: rgba(221, 221, 221, .12);
}

.premium-search-modal__suggest-tag:hover,
.premium-search-modal__item:hover,
.premium-search-modal__item.selected {
    background: #1F1F1F;
    border-color: rgba(168, 50, 45, .26);
}

.premium-search-modal__item-title {
    color: #fff;
}

.premium-search-modal__item-subtitle {
    color: rgba(255, 255, 255, .58);
}

.premium-search-modal__empty {
    color: rgba(255, 255, 255, .62);
}

.premium-search-modal__empty i {
    color: #A8322D;
}

.premium-search-modal .text-warning {
    color: #A8322D !important;
}

.search-hero__tag,
.search-tab-badge,
.result-card-personnage__date,
.premium-search-modal__item-type,
.premium-search-modal__suggest-tag {
    padding: 6px 12px;
    line-height: 1.35;
    letter-spacing: .22em;
    word-spacing: .22em;
}

.premium-search-modal__item-type {
    min-width: max-content;
}

@media (max-width: 767.98px) {
    .premium-search-modal__head,
    .premium-search-modal__foot {
        background: #050505;
        border-color: rgba(221, 221, 221, .14);
    }

    .premium-search-modal__icon {
        color: #A8322D;
    }
}

@media (max-width: 767.98px) {
    .search-content-wrapper {
        padding-top: 1rem !important;
    }

    .search-page__breadcrumb {
        margin-bottom: .75rem !important;
        font-size: .76rem;
    }

    .search-hero-card {
        margin-right: -4px;
        margin-left: -4px;
        padding: 18px 14px;
        border-radius: 12px;
    }

    .search-hero-card::before {
        width: 180px;
        height: 180px;
        top: -70px;
        right: -80px;
        opacity: .7;
    }

    .search-hero__title {
        margin-bottom: 6px;
        font-size: clamp(1.55rem, 9vw, 2.1rem);
        line-height: 1.05;
    }

    .search-hero__subtitle {
        max-width: 92%;
        margin-bottom: 16px;
        font-size: .84rem;
        line-height: 1.45;
    }

    .search-hero__form {
        max-width: none;
    }

    .search-hero__input-wrap {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0;
        padding: 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .05);
    }

    .search-hero__icon {
        display: grid;
        place-items: center;
        padding-left: 0;
        font-size: 1rem;
    }

    .search-hero__input {
        min-width: 0;
        padding: 10px 8px;
        font-size: .95rem;
    }

    .search-hero__clear-btn {
        grid-column: 1 / -1;
        justify-self: end;
        min-height: 34px;
        margin-top: 4px;
        padding: 0 10px;
    }

    .search-hero__submit-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
        margin-top: 8px;
        padding: 0 16px;
        border-radius: 9px;
        font-size: .78rem;
        letter-spacing: .08em;
    }

    .search-hero__examples {
        align-items: flex-start;
        gap: 8px;
        margin-top: 14px;
        font-size: .76rem;
        line-height: 1.3;
    }

    .search-hero__examples > span {
        flex: 0 0 100%;
        margin-bottom: 0;
    }

    .search-hero__tag {
        padding: 6px 10px;
        border-radius: 999px;
        font-size: .72rem;
        line-height: 1;
    }

    .search-hero__tip-card {
        margin-top: 14px;
        padding: 14px;
        border-radius: 10px;
        background: rgba(255, 255, 255, .06);
        backdrop-filter: none;
    }

    .search-hero__tip-title {
        margin-bottom: 6px;
        font-size: .8rem;
    }

    .search-hero__tip-text {
        font-size: .76rem;
        line-height: 1.45;
    }
}

@media (max-width: 767.98px) {
    .premium-search-modal__body {
        padding: 1rem 0 1.15rem;
    }

    #modalDefaultSuggestions {
        overflow: hidden;
    }

    .premium-search-modal__suggestions-title {
        margin: 0 1rem .65rem;
        font-size: .68rem;
        letter-spacing: .12em;
    }

    .premium-search-modal__suggestions-title.mt-4 {
        margin-top: 1.15rem !important;
    }

    .premium-search-modal__suggest-tags,
    .premium-search-modal__category-slider {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0;
        padding: 0 1rem .85rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .premium-search-modal__suggest-tags::-webkit-scrollbar,
    .premium-search-modal__category-slider::-webkit-scrollbar {
        height: 3px;
    }

    .premium-search-modal__suggest-tags::-webkit-scrollbar-thumb,
    .premium-search-modal__category-slider::-webkit-scrollbar-thumb {
        background: rgba(221, 221, 221, .28);
        border-radius: 999px;
    }

    .premium-search-modal__suggest-tag {
        flex: 0 0 auto;
        max-width: 78vw;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .premium-search-modal__category-slider {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        width: auto;
    }

    .premium-search-modal__category-slider > [class*="col-"] {
        flex: 0 0 72vw;
        width: 72vw;
        max-width: 275px;
        padding: 0;
        scroll-snap-align: start;
    }

    .premium-search-modal__category-slider .premium-search-modal__item {
        min-height: 78px;
        margin-bottom: 0;
        padding: .8rem .85rem;
    }
}

.premium-search-modal__body {
    background: #ffffff !important;
    color: #07111f;
}

.premium-search-modal__suggest-tag,
.premium-search-modal__item {
    color: #07111f !important;
    background: #ffffff !important;
    border-color: #e5e8ef !important;
}

.premium-search-modal__suggest-tag:hover,
.premium-search-modal__item:hover,
.premium-search-modal__item.selected {
    background: #f7f8fb !important;
    border-color: rgba(168, 50, 45, .26) !important;
}

.premium-search-modal__item-title {
    color: #07111f !important;
}

.premium-search-modal__item-subtitle,
.premium-search-modal__empty {
    color: #5f6b7a !important;
}

/* Final modal contrast overrides */
.premium-search-modal {
    z-index: 11000 !important;
}

.premium-search-modal__dialog,
.premium-search-header,
.premium-search-modal__head,
.premium-search-modal__body,
.premium-search-modal__foot {
    background: #ffffff !important;
}

.premium-search-header {
    border-bottom-color: #e5e8ef !important;
}

.premium-search-modal__head {
    border-bottom-color: #e5e8ef !important;
}

.premium-search-modal__foot {
    border-top-color: #e5e8ef !important;
}

.premium-search-header h2,
.premium-search-modal__input {
    color: #07111f !important;
}

.premium-search-modal__input {
    background: #eef1f5 !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    box-shadow: inset 0 1px 2px rgba(7, 17, 31, .04) !important;
}

.premium-search-header p,
.premium-search-modal__input::placeholder,
.premium-search-modal__hotkeys {
    color: #667085 !important;
}

.premium-search-modal__suggest-tag,
.premium-search-modal__item {
    color: #07111f !important;
    background: #ffffff !important;
    border-color: #e5e8ef !important;
}

.premium-search-modal__suggest-tag:hover,
.premium-search-modal__item:hover,
.premium-search-modal__item.selected {
    background: #f7f8fb !important;
    border-color: rgba(168, 50, 45, .26) !important;
}

.premium-search-modal__item-title {
    color: #07111f !important;
}

.premium-search-modal__item-subtitle,
.premium-search-modal__empty {
    color: #5f6b7a !important;
}
