/* ============================================================
   Kinoteatr.kg — Search page
   /search, /site/search

   Исправлено:
   - поддержка старого query в action, CSS под новую страницу
   - один горизонтальный баннер сверху
   - "Сейчас выбирают" и "TOP 60FPS" перенесены в левую колонку
   - sidebar оставлен под рекламу
   - убрано лишнее пустое пространство
   ============================================================ */

/* Убираем служебные отступы/хлебные крошки на странице поиска */
body:has(.kt-search-page) .breadcrumb,
body:has(.kt-search-page) .breadcrumbs,
body:has(.kt-search-page) .kt-alert-area,
body:has(.kt-search-page) .site-alerts,
body:has(.kt-search-page) .page-breadcrumbs {
    display: none !important;
}

body:has(.kt-search-page) main,
body:has(.kt-search-page) .main,
body:has(.kt-search-page) .main-content,
body:has(.kt-search-page) .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body:has(.kt-search-page) .kt-compact-search-section,
body:has(.kt-search-page) .kt-compact-search,
body:has(.kt-search-page) .kinoteatr-compact-search,
body:has(.kt-search-page) .compact-search-section {
    display: none !important;
}

.kt-search-page {
    padding-top: 18px;
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* ============================================================
   WIDE TOP AD
   ============================================================ */

.kt-search-wide-ad-section {
    margin-top: 0;
    margin-bottom: 34px;
}

.kt-search-wide-ad {
    padding: 10px;
    border-radius: var(--kt-radius, 28px);
    background: var(--kt-surface, rgba(18, 20, 30, 0.82));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    box-shadow: var(--kt-shadow, 0 18px 48px rgba(0, 0, 0, 0.28));
}

.kt-search-ad-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.66));
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-search-ad-label i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-search-wide-ad-item img {
    display: block;
    width: 100%;
    height: clamp(128px, 13vw, 210px);
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.kt-search-wide-carousel .owl-stage-outer {
    overflow: hidden;
    border-radius: 16px;
}

.kt-search-wide-carousel .owl-nav {
    margin-top: 0 !important;
}

.kt-search-wide-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    color: #fff !important;
    border-radius: 999px !important;
    background: rgba(229, 9, 20, 0.88) !important;
    box-shadow: 0 10px 28px rgba(229, 9, 20, 0.28);
}

.kt-search-wide-carousel .owl-nav .owl-prev {
    left: 16px;
}

.kt-search-wide-carousel .owl-nav .owl-next {
    right: 16px;
}

.kt-search-wide-carousel .owl-dots {
    margin-top: 12px !important;
}

.kt-search-wide-carousel .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.26) !important;
}

.kt-search-wide-carousel .owl-dots .owl-dot.active span {
    background: var(--kt-red, #e50914) !important;
}

/* ============================================================
   HERO
   ============================================================ */

.kt-search-hero-section {
    margin-top: 0;
}

.kt-search-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 42px;
    border-radius: var(--kt-radius, 28px);
    background-size: cover;
    background-position: center center;
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    box-shadow: var(--kt-shadow, 0 20px 60px rgba(0, 0, 0, 0.35));
}

.kt-search-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 6, 10, 0.82) 0%, rgba(5, 6, 10, 0.64) 48%, rgba(5, 6, 10, 0.24) 100%),
        linear-gradient(180deg, rgba(5, 6, 10, 0.05) 0%, rgba(5, 6, 10, 0.74) 100%),
        radial-gradient(circle at 15% 25%, rgba(229, 9, 20, 0.24), transparent 34%);
}

.kt-search-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1080px;
}

.kt-search-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--kt-red-hover, #ff2530);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.kt-search-kicker i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-search-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.45rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.045em;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.46);
}

.kt-search-hero p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.75;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.kt-search-query-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 20px;
    padding: 0 18px;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.25);
    border: 1px solid rgba(229, 9, 20, 0.42);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.16);
}

/* ============================================================
   FORM
   ============================================================ */

.kt-search-form {
    max-width: 1040px;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.kt-search-form-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 12px;
}

.kt-search-form input,
.kt-search-filters select {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    outline: none;
    background: rgba(5, 8, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.kt-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.kt-search-filters select {
    appearance: none;
    cursor: pointer;
}

.kt-search-filters select option {
    color: #111827;
}

.kt-search-form button {
    min-height: 52px;
    padding: 0 26px;
    color: #fff;
    font-weight: 950;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.26);
    transition: all 0.22s ease;
}

.kt-search-form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--kt-red-hover, #ff2530), #b50712);
    box-shadow: 0 18px 38px rgba(229, 9, 20, 0.32);
}

.kt-search-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* ============================================================
   HERO STATS
   ============================================================ */

.kt-search-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 780px;
    margin-top: 18px;
}

.kt-search-hero-stat {
    min-height: 86px;
    padding: 14px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.18), transparent 38%),
        rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.kt-search-hero-stat strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 8px;
}

.kt-search-hero-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.kt-search-results-section,
.kt-search-seo-section {
    margin-top: 54px;
}

.kt-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.kt-search-content {
    min-width: 0;
}

.kt-search-sidebar {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kt-search-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.kt-search-section-head-small {
    margin-top: 42px;
}

.kt-search-section-head h2 {
    margin: 0;
    color: var(--kt-text, #fff);
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.kt-search-section-head p {
    max-width: 860px;
    margin: 8px 0 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   SORT
   ============================================================ */

.kt-search-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 24px;
    background: var(--kt-surface, rgba(18, 20, 30, 0.82));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-search-sort-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    color: var(--kt-text, #fff);
    font-weight: 900;
    text-decoration: none;
    border-radius: 999px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    transition: all 0.22s ease;
}

.kt-search-sort-tabs a:hover,
.kt-search-sort-tabs a.active {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    border-color: transparent;
    box-shadow: 0 12px 34px rgba(229, 9, 20, 0.22);
}

/* ============================================================
   FEATURE RAILS IN LEFT COLUMN
   ============================================================ */

.kt-search-feature-rails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.kt-search-feature-panel {
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.14), transparent 34%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    box-shadow: var(--kt-shadow, 0 14px 34px rgba(0, 0, 0, 0.22));
}

.kt-search-feature-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kt-search-feature-panel-head a {
    flex-shrink: 0;
    color: var(--kt-text, #fff);
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
}

.kt-search-feature-panel-head a:hover {
    color: var(--kt-red-hover, #ff2530);
}

.kt-search-feature-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.66));
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-search-feature-label i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-search-rail-list {
    display: grid;
    gap: 12px;
}

.kt-search-rail-film {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 18px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    transition: all 0.22s ease;
}

.kt-search-rail-film:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 9, 20, 0.42);
    background: rgba(229, 9, 20, 0.16);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(229, 9, 20, 0.12);
}

.kt-search-rail-film-img {
    position: relative;
    overflow: hidden;
    width: 120px;
    height: 68px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

.kt-search-rail-film-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.kt-search-rail-film-img span {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 50%;
    background: var(--kt-red, #e50914);
    box-shadow: 0 10px 22px rgba(229, 9, 20, 0.32);
}

.kt-search-rail-film-body {
    min-width: 0;
}

.kt-search-rail-film-body strong {
    display: block;
    margin-bottom: 5px;
    color: var(--kt-text, #fff);
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.35;
}

.kt-search-rail-film-body small {
    display: block;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ============================================================
   FILM CARD
   ============================================================ */

.kt-search-results-grid {
    margin-top: 4px;
}

.kt-search-film-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    border-radius: 20px;
    background: var(--kt-surface-solid, rgba(15, 17, 26, 0.95));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.24),
        0 0 0 rgba(229, 9, 20, 0);
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.kt-search-film-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.30), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(103, 232, 249, 0.10), transparent 34%);
    transition: opacity 0.28s ease;
}

.kt-search-film-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(229, 9, 20, 0.42),
        inset 0 0 28px rgba(229, 9, 20, 0.14),
        0 0 20px rgba(229, 9, 20, 0.30),
        0 0 50px rgba(229, 9, 20, 0.18);
    transition: opacity 0.28s ease;
}

.kt-search-film-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.62);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(229, 9, 20, 0.26),
        0 0 66px rgba(229, 9, 20, 0.14);
}

.kt-search-film-card:hover::before,
.kt-search-film-card:hover::after {
    opacity: 1;
}

.kt-search-film-card > * {
    position: relative;
    z-index: 1;
}

.kt-search-film-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #050814;
    background-size: cover;
    background-position: center;
}

.kt-search-film-media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.34s ease, opacity 0.34s ease;
}

.kt-search-film-card:hover .kt-search-film-media img {
    transform: scale(1.04);
    opacity: 0.88;
}

.kt-search-film-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.62) 100%);
}

.kt-search-film-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kt-search-film-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.kt-search-badge-red {
    color: #fff !important;
    background: var(--kt-red, #e50914) !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.24);
}

.kt-search-play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
}

.kt-search-play span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #85020a);
    box-shadow: 0 16px 42px rgba(229, 9, 20, 0.38);
}

.kt-search-film-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 18px 18px;
}

.kt-search-film-body h3 {
    margin: 0 0 10px;
    color: var(--kt-text, #fff);
    font-size: 1.14rem;
    font-weight: 950;
    line-height: 1.35;
}

.kt-search-film-body p {
    flex: 1 1 auto;
    margin: 0 0 14px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.95rem;
    line-height: 1.65;
}

.kt-search-film-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.92rem;
    font-weight: 800;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.kt-search-sidebar-card {
    overflow: hidden;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    background:
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.14), transparent 34%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
    box-shadow: var(--kt-shadow, 0 14px 34px rgba(0, 0, 0, 0.22));
}

.kt-search-sidebar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.66));
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-search-sidebar-label i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-search-sidebar-partner h3 {
    margin: 0 0 12px;
    color: var(--kt-text, #fff);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.18;
}

.kt-search-sidebar-partner p {
    margin: 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.95rem;
    line-height: 1.65;
}

.kt-search-sidebar-ad {
    padding: 16px;
}

.kt-search-ad-item {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 5;
    border-radius: 18px;
    background: var(--kt-surface-solid, rgba(15, 17, 26, 0.95));
}

.kt-search-ad-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.kt-search-ad-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kt-search-sidebar-carousel .owl-dots {
    margin-top: 12px !important;
}

.kt-search-sidebar-carousel .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.26) !important;
}

.kt-search-sidebar-carousel .owl-dots .owl-dot.active span {
    background: var(--kt-red, #e50914) !important;
}

/* ============================================================
   EMPTY
   ============================================================ */

.kt-search-empty {
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
    border-radius: var(--kt-radius, 28px);
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.14), transparent 34%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    box-shadow: var(--kt-shadow, 0 18px 48px rgba(0, 0, 0, 0.28));
}

.kt-search-empty-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #85020a);
    box-shadow: 0 16px 42px rgba(229, 9, 20, 0.32);
}

.kt-search-empty h3 {
    margin: 0 0 12px;
    color: var(--kt-text, #fff);
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.kt-search-empty p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    line-height: 1.7;
}

.kt-search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.kt-search-btn-primary,
.kt-search-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 900;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.kt-search-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.26);
}

.kt-search-btn-secondary {
    color: var(--kt-text, #fff);
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-search-btn-primary:hover,
.kt-search-btn-secondary:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.kt-search-pagination-wrap {
    margin-top: 28px;
}

.kt-search-pagination-wrap .pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.kt-search-pagination-wrap .page-item .page-link {
    padding: 12px 16px;
    color: var(--kt-text, #fff);
    font-weight: 900;
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    border-radius: 14px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    box-shadow: none;
}

.kt-search-pagination-wrap .page-item.active .page-link,
.kt-search-pagination-wrap .page-item .page-link:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
}

/* ============================================================
   SEO
   ============================================================ */

.kt-search-seo-box {
    padding: 36px;
    border-radius: var(--kt-radius, 28px);
    background:
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.14), transparent 34%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    box-shadow: var(--kt-shadow, 0 18px 48px rgba(0, 0, 0, 0.28));
}

.kt-search-seo-box h2 {
    margin: 0 0 14px;
    color: var(--kt-text, #fff);
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.kt-search-seo-box p {
    margin: 0 0 12px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 1rem;
    line-height: 1.75;
}

.kt-search-seo-box p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */

.kt-theme-light .kt-search-hero-overlay,
html.theme-light .kt-search-hero-overlay,
body.theme-light .kt-search-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.52) 46%, rgba(5, 6, 10, 0.18) 100%),
        linear-gradient(180deg, rgba(226, 231, 241, 0.05) 0%, rgba(226, 231, 241, 0.34) 100%),
        radial-gradient(circle at 15% 25%, rgba(229, 9, 20, 0.18), transparent 34%);
}

.kt-theme-light .kt-search-film-card,
html.theme-light .kt-search-film-card,
body.theme-light .kt-search-film-card,
.kt-theme-light .kt-search-sidebar-card,
html.theme-light .kt-search-sidebar-card,
body.theme-light .kt-search-sidebar-card,
.kt-theme-light .kt-search-wide-ad,
html.theme-light .kt-search-wide-ad,
body.theme-light .kt-search-wide-ad,
.kt-theme-light .kt-search-empty,
html.theme-light .kt-search-empty,
body.theme-light .kt-search-empty,
.kt-theme-light .kt-search-feature-panel,
html.theme-light .kt-search-feature-panel,
body.theme-light .kt-search-feature-panel,
.kt-theme-light .kt-search-seo-box,
html.theme-light .kt-search-seo-box,
body.theme-light .kt-search-seo-box {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1199.98px) {
    .kt-search-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 22px;
    }

    .kt-search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kt-search-feature-rails {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .kt-search-hero {
        min-height: auto;
        padding: 28px;
    }

    .kt-search-layout {
        grid-template-columns: 1fr;
    }

    .kt-search-sidebar {
        position: static;
    }

    .kt-search-ad-item {
        aspect-ratio: 16 / 6;
    }

    .kt-search-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .kt-search-page {
        padding-top: 12px;
    }

    .kt-search-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .kt-search-form-main {
        grid-template-columns: 1fr;
    }

    .kt-search-form button {
        width: 100%;
    }

    .kt-search-filters {
        grid-template-columns: 1fr;
    }

    .kt-search-hero-stats {
        grid-template-columns: 1fr;
    }

    .kt-search-wide-ad-item img {
        height: 120px;
    }

    .kt-search-rail-film {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .kt-search-rail-film-img {
        width: 100px;
        height: 62px;
    }
}

@media (max-width: 575.98px) {
    .kt-search-hero h1 {
        line-height: 1.03;
    }

    .kt-search-sort-tabs a,
    .kt-search-btn-primary,
    .kt-search-btn-secondary {
        width: 100%;
    }

    .kt-search-film-card,
    .kt-search-sidebar-card,
    .kt-search-wide-ad,
    .kt-search-empty,
    .kt-search-feature-panel,
    .kt-search-seo-box {
        border-radius: 20px;
    }
}