/* ============================================================
   Kinoteatr.kg — Film Index
   /film/index — главный каталог фильмов

   Единый стиль с главной страницей:
   - секционные заголовки: var(--kt-text)
   - подписи: var(--kt-muted)
   - поверхности: var(--kt-surface), var(--kt-surface-solid)
   - красный используется как акцент
   - светлая / тёмная тема работают через переменные kinoteatr.css
   ============================================================ */

.kt-page-film-index .kt-alert-area,
body:has(.kt-film-index-page) .kt-alert-area {
    display: none !important;
}

.kt-film-index-page {
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* ============================================================
   HERO
   ============================================================ */

.kt-film-hero-section {
    margin-top: 28px;
}

.kt-film-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    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-film-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 6, 10, 0.78) 0%, rgba(5, 6, 10, 0.62) 46%, rgba(5, 6, 10, 0.24) 100%),
        linear-gradient(180deg, rgba(5, 6, 10, 0.05) 0%, rgba(5, 6, 10, 0.72) 100%),
        radial-gradient(circle at 15% 25%, rgba(229, 9, 20, 0.24), transparent 34%),
        radial-gradient(circle at 76% 18%, rgba(103, 232, 249, 0.08), transparent 30%);
}

.kt-film-hero .row {
    position: relative;
    z-index: 2;
}

.kt-film-hero-main {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kt-film-hero__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.045em;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.46);
}

.kt-film-hero__text {
    max-width: 760px;
    margin-bottom: 24px;
    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-film-hero__pills,
.kt-film-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kt-film-hero__pills {
    margin-bottom: 24px;
}

.kt-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.kt-film-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.kt-film-hero-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.22s ease;
}

.kt-film-hero-nav a:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(229, 9, 20, 0.34);
    border-color: rgba(229, 9, 20, 0.50);
    box-shadow: 0 12px 34px rgba(229, 9, 20, 0.22);
}

.kt-film-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.kt-film-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-film-hero-stat strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 8px;
}

.kt-film-hero-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.kt-film-hero-right {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    gap: 16px;
    align-content: center;
}

.kt-film-hero-side {
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.13), transparent 34%),
        rgba(10, 12, 20, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.kt-film-hero-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
}

.kt-film-hero-panel-title i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-film-hero-side__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kt-film-hero-side__item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.kt-film-hero-side__poster {
    flex-shrink: 0;
    width: 96px;
    height: 62px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

.kt-film-hero-side__name {
    margin-bottom: 6px;
    color: #fff;
    font-weight: 900;
    line-height: 1.3;
}

.kt-film-hero-side__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.kt-film-section,
.kt-film-page-ad-section,
.kt-film-final-cta-section {
    margin-top: 54px;
}

.kt-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.kt-section-kicker {
    margin-bottom: 7px;
    color: var(--kt-red-hover, #ff2530);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.kt-section-title {
    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-section-subtitle {
    max-width: 860px;
    margin: 8px 0 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.kt-btn-primary,
.kt-btn-secondary,
.kt-btn-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.22s ease;
}

.kt-btn-primary {
    padding: 14px 24px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.26);
}

.kt-btn-primary:hover {
    color: #fff;
    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-btn-secondary {
    padding: 14px 22px;
    color: var(--kt-text, #fff);
    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-btn-secondary:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(229, 9, 20, 0.24);
    border-color: rgba(229, 9, 20, 0.45);
}

.kt-btn-round {
    padding: 13px 22px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    box-shadow: 0 10px 28px rgba(229, 9, 20, 0.24);
}

.kt-btn-round:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--kt-red-hover, #ff2530), #b50712);
}

/* ============================================================
   9 / 3 LAYOUT
   ============================================================ */

.kt-film-layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.kt-film-layout-main {
    min-width: 0;
}

.kt-film-layout-sidebar {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* ============================================================
   FILM CARD
   ============================================================ */

.kt-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-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-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-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-film-card:hover::before,
.kt-film-card:hover::after {
    opacity: 1;
}

.kt-film-card > * {
    position: relative;
    z-index: 1;
}

.kt-film-index-page .kt-film-card__media {
    position: relative;
    height: clamp(340px, 27vw, 430px);
    background-color: #111;
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

.kt-film-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    transition: transform 0.34s ease, opacity 0.34s ease;
}

.kt-film-card:hover .kt-film-card__media::before {
    transform: scale(1.06);
    opacity: 0.9;
}

.kt-film-card__image {
    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-film-card:hover .kt-film-card__image {
    transform: scale(1.05);
    opacity: 0.86;
}

.kt-film-card__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-film-card__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kt-film-badge {
    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-film-badge--red {
    color: #fff;
    background: var(--kt-red, #e50914);
}

.kt-film-badge--cyan {
    color: #dffcff;
    background: rgba(0, 183, 210, 0.84);
}

.kt-film-card__play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
}

.kt-film-card__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-film-card:hover .kt-film-card__play span {
    background: linear-gradient(135deg, var(--kt-red-hover, #ff2530), #b50712);
    box-shadow:
        0 16px 42px rgba(229, 9, 20, 0.52),
        0 0 28px rgba(229, 9, 20, 0.34);
}

.kt-film-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 18px 18px;
}

.kt-film-card__title {
    margin: 0 0 10px;
    color: var(--kt-text, #fff);
    font-size: 1.14rem;
    font-weight: 950;
    line-height: 1.35;
}

.kt-film-card:hover .kt-film-card__title {
    color: var(--kt-text, #fff);
}

.kt-film-card__desc {
    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-film-card__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;
}

/* ============================================================
   WIDE POSTER CARDS — Жемчужины / 60FPS
   ============================================================ */

.kt-film-index-page .kt-film-card--wide .kt-film-card__media {
    height: auto !important;
    aspect-ratio: 16 / 9;
    background-color: #050814;
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center;
}

.kt-film-index-page .kt-film-card--wide .kt-film-card__media::before {
    z-index: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(16px);
    transform: scale(1.12);
    opacity: 0.34;
}

.kt-film-index-page .kt-film-card--wide:hover .kt-film-card__media::before {
    transform: scale(1.16);
    opacity: 0.46;
}

.kt-film-index-page .kt-film-card--wide .kt-film-card__image {
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

.kt-film-index-page .kt-film-card--wide:hover .kt-film-card__image {
    transform: scale(1.04);
}

.kt-film-index-page .kt-film-card--wide .kt-film-card__overlay {
    z-index: 2;
}

.kt-film-index-page .kt-film-card--wide .kt-film-card__badges,
.kt-film-index-page .kt-film-card--wide .kt-film-card__play {
    z-index: 3;
}

.kt-film-index-page .kt-film-card--wide .kt-film-card__body {
    min-height: 172px;
}

/* ============================================================
   REAL WIDE ADS
   ============================================================ */

.kt-film-real-wide-ad-section {
    width: 100%;
}

.kt-film-real-wide-ad-wrap,
.kt-film-page-ad {
    width: 100%;
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    border-radius: var(--kt-radius, 28px);
    background: var(--kt-surface, rgba(18, 20, 30, 0.82));
    box-shadow: var(--kt-shadow, 0 18px 48px rgba(0, 0, 0, 0.28));
}

.kt-film-real-wide-ad-wrap {
    padding: 10px;
}

.kt-film-real-ad-item img {
    display: block;
    width: 100%;
    height: clamp(130px, 14vw, 220px);
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.kt-film-real-ad-carousel .owl-stage-outer {
    overflow: hidden;
    border-radius: 16px;
}

.kt-film-real-ad-carousel .owl-nav {
    margin-top: 0 !important;
}

.kt-film-real-ad-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-film-real-ad-carousel .owl-nav .owl-prev {
    left: 16px;
}

.kt-film-real-ad-carousel .owl-nav .owl-next {
    right: 16px;
}

.kt-film-real-ad-carousel .owl-dots {
    margin-top: 12px !important;
}

.kt-film-real-ad-carousel .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.26) !important;
}

.kt-theme-light .kt-film-real-ad-carousel .owl-dots .owl-dot span {
    background: rgba(20, 23, 34, 0.20) !important;
}

.kt-film-real-ad-carousel .owl-dots .owl-dot.active span {
    background: var(--kt-red, #e50914) !important;
}

/* ============================================================
   SOFT AD / CTA BLOCKS
   ============================================================ */

.kt-film-page-ad {
    padding: 34px;
    background:
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.16), transparent 34%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
}

.kt-film-page-ad--dark {
    background:
        radial-gradient(circle at 8% 0%, rgba(229, 9, 20, 0.18), transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(103, 232, 249, 0.10), transparent 30%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
}

.kt-film-page-ad__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px 14px;
    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-film-page-ad__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.kt-film-page-ad__text {
    flex: 1 1 680px;
}

.kt-film-page-ad__text h2 {
    margin: 0 0 12px;
    color: var(--kt-text, #fff);
    font-size: clamp(1.5rem, 2vw, 2.3rem);
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.kt-film-page-ad__text p {
    margin: 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 1.04rem;
    line-height: 1.75;
}

.kt-film-page-ad__action {
    flex: 0 0 auto;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.kt-film-sidebar-card,
.kt-film-sidebar-ad-block {
    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-film-sidebar-card h3 {
    margin: 0 0 12px;
    color: var(--kt-text, #fff);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.18;
}

.kt-film-sidebar-card p {
    margin: 0 0 14px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.95rem;
    line-height: 1.65;
}

.kt-film-sidebar-card a {
    color: var(--kt-text, #fff);
    font-weight: 900;
    text-decoration: none;
}

.kt-film-sidebar-card a:hover {
    color: var(--kt-red-hover, #ff2530);
}

.kt-film-sidebar-ad-label {
    display: inline-flex;
    align-items: center;
    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-film-side-ad-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.kt-film-side-ad-carousel .owl-dots {
    margin-top: 12px !important;
}

.kt-film-side-ad-carousel .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.26) !important;
}

.kt-theme-light .kt-film-side-ad-carousel .owl-dots .owl-dot span {
    background: rgba(20, 23, 34, 0.20) !important;
}

.kt-film-side-ad-carousel .owl-dots .owl-dot.active span {
    background: var(--kt-red, #e50914) !important;
}

.kt-film-sidebar-popular-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kt-film-sidebar-popular-item {
    display: grid;
    grid-template-columns: 30px 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    border-top: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-film-sidebar-popular-number {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #85020a);
}

.kt-film-sidebar-popular-thumb {
    width: 58px;
    height: 44px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.kt-film-sidebar-popular-content {
    min-width: 0;
}

.kt-film-sidebar-popular-content strong {
    display: block;
    color: var(--kt-text, #fff);
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.24;
}

.kt-film-sidebar-popular-content small {
    display: block;
    margin-top: 3px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.75rem;
}

/* ============================================================
   SIDEBAR NEWS
   ============================================================ */

.kt-film-sidebar-news-list {
    display: grid;
    gap: 10px;
}

.kt-film-sidebar-news-item {
    display: block;
    padding: 11px 12px;
    color: var(--kt-text, #fff);
    text-decoration: none;
    border-radius: 16px;
    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-film-sidebar-news-item:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(229, 9, 20, 0.20);
    border-color: rgba(229, 9, 20, 0.36);
}

.kt-film-sidebar-news-item strong {
    display: block;
    color: inherit;
    font-size: 0.94rem;
    font-weight: 950;
    line-height: 1.3;
}

.kt-film-sidebar-news-item small {
    display: block;
    margin-top: 5px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.8rem;
    line-height: 1.45;
}

/* ============================================================
   YEAR / POPULAR PANELS
   ============================================================ */

.kt-year-panel {
    height: 100%;
    padding: 28px;
    border-radius: var(--kt-radius, 28px);
    background:
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.13), 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-year-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.kt-year-panel__head h3 {
    margin: 0;
    color: var(--kt-text, #fff);
    font-size: 1.34rem;
    font-weight: 950;
    line-height: 1.2;
}

.kt-year-panel__head p {
    margin: 7px 0 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.9rem;
    line-height: 1.45;
}

.kt-year-panel__head span {
    flex-shrink: 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.86rem;
    font-weight: 800;
}

.kt-year-panel__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kt-film-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    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-film-mini:hover {
    transform: translateY(-2px);
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.38);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(229, 9, 20, 0.12);
}

.kt-film-mini__thumb {
    flex-shrink: 0;
    width: 108px;
    height: 72px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

.kt-film-mini__title {
    margin-bottom: 8px;
    color: var(--kt-text, #fff);
    font-weight: 900;
    line-height: 1.35;
}

.kt-film-mini__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.9rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.kt-pagination-wrap {
    margin-top: 28px;
}

.kt-pagination-wrap .pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.kt-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-pagination-wrap .page-item.active .page-link,
.kt-pagination-wrap .page-item .page-link:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
}

/* ============================================================
   FINAL COMBINED CTA
   ============================================================ */

.kt-film-final-cta-section {
    margin-top: 56px;
    margin-bottom: 36px;
}

.kt-film-final-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 46px);
    border-radius: var(--kt-radius, 28px);
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    background:
        radial-gradient(circle at 8% 0%, rgba(229, 9, 20, 0.18), transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(103, 232, 249, 0.10), transparent 30%),
        var(--kt-surface, rgba(18, 20, 30, 0.82));
    box-shadow: var(--kt-shadow, 0 24px 70px rgba(0, 0, 0, 0.38));
}

.kt-film-final-cta__glow {
    position: absolute;
    inset: auto -120px -160px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.16);
    filter: blur(70px);
    pointer-events: none;
}

.kt-film-final-cta__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 26px;
    align-items: stretch;
}

.kt-film-final-cta__main,
.kt-film-final-cta__partner {
    min-width: 0;
}

.kt-film-final-cta__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 9px 15px;
    color: var(--kt-muted, rgba(255, 255, 255, 0.66));
    font-size: 12px;
    font-weight: 950;
    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-film-final-cta__label i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-film-final-cta__label--partner {
    background: rgba(229, 9, 20, 0.14);
    border-color: rgba(229, 9, 20, 0.24);
}

.kt-film-final-cta h2 {
    max-width: 850px;
    margin: 0 0 16px;
    color: var(--kt-text, #fff);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.kt-film-final-cta h3 {
    margin: 0 0 14px;
    color: var(--kt-text, #fff);
    font-size: clamp(1.35rem, 2.2vw, 2.15rem);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.kt-film-final-cta p {
    margin: 0;
    color: var(--kt-muted, rgba(255, 255, 255, 0.68));
    font-size: 1.02rem;
    line-height: 1.75;
}

.kt-film-final-cta__main p {
    max-width: 860px;
}

.kt-film-final-cta__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.kt-film-final-cta__badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--kt-text, #fff);
    font-size: 0.9rem;
    font-weight: 900;
    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-film-final-cta__badges i {
    color: var(--kt-red-hover, #ff2530);
}

.kt-film-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.kt-film-final-cta__partner {
    padding: 24px;
    border-radius: 26px;
    background: var(--kt-surface-light, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-film-final-cta__partner-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.kt-film-final-cta__partner-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    color: var(--kt-text, #fff);
    font-size: 0.92rem;
    font-weight: 850;
    border-radius: 16px;
    background: var(--kt-surface, rgba(18, 20, 30, 0.82));
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
}

.kt-film-final-cta__partner-list i {
    width: 18px;
    color: var(--kt-red-hover, #ff2530);
    text-align: center;
}

.kt-film-final-cta__partner-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 14px 18px;
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    box-shadow:
        0 14px 34px rgba(229, 9, 20, 0.26),
        0 0 38px rgba(229, 9, 20, 0.12);
    transition: all 0.22s ease;
}

.kt-film-final-cta__partner-button:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--kt-red-hover, #ff2530), #b50712);
    box-shadow:
        0 20px 42px rgba(229, 9, 20, 0.34),
        0 0 54px rgba(229, 9, 20, 0.22);
}

/* ============================================================
   COMPATIBILITY WITH OLD FILM-INDEX CLASSES
   Если где-то во view остались старые классы — они тоже будут выглядеть в общем стиле.
   ============================================================ */

.kt-film-index-section {
    margin-top: 54px;
}

.kt-film-index-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.kt-film-index-section-kicker {
    margin-bottom: 7px;
    color: var(--kt-red-hover, #ff2530);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.kt-film-index-section-head h2,
.kt-film-index-seo-box 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-film-index-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;
}

.kt-film-index-section-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kt-red, #e50914), #8d050e);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.24);
}

.kt-film-index-section-link:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--kt-red-hover, #ff2530), #b50712);
}

.kt-film-index-wide-ad,
.kt-film-index-side-ad,
.kt-film-index-sidebar-card,
.kt-film-index-catalog-card,
.kt-film-index-years-box,
.kt-film-index-seo-box {
    border: 1px solid var(--kt-border, rgba(255, 255, 255, 0.10));
    background: var(--kt-surface, rgba(18, 20, 30, 0.82));
    box-shadow: var(--kt-shadow, 0 16px 48px rgba(0, 0, 0, 0.22));
}

.kt-film-index-wide-ad {
    overflow: hidden;
    padding: 10px;
    border-radius: var(--kt-radius, 28px);
}

.kt-film-index-wide-ad img {
    width: 100%;
    height: clamp(120px, 14vw, 210px);
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

.kt-film-index-side-ad {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 20px;
}

.kt-film-index-side-ad img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.kt-film-index-sidebar {
    position: sticky;
    top: 150px;
}

.kt-film-index-sidebar-card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 20px;
}

.kt-film-index-sidebar-card h3 {
    margin: 0 0 12px;
    color: var(--kt-text, #fff);
    font-size: 22px;
    font-weight: 950;
}

.kt-film-index-sidebar-card p {
    color: var(--kt-muted, rgba(255, 255, 255, 0.70));
    font-size: 14px;
    line-height: 1.55;
}

.kt-film-index-sidebar-card a {
    color: var(--kt-text, #fff);
    font-weight: 900;
    text-decoration: none;
}

.kt-film-index-sidebar-card a:hover {
    color: var(--kt-red-hover, #ff2530);
}

/* ============================================================
   LIGHT THEME
   ============================================================ */

.kt-theme-light .kt-film-hero__overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 10, 0.70) 0%, rgba(5, 6, 10, 0.48) 46%, rgba(5, 6, 10, 0.12) 100%),
        linear-gradient(180deg, rgba(226, 231, 241, 0.05) 0%, rgba(226, 231, 241, 0.38) 100%),
        radial-gradient(circle at 15% 25%, rgba(229, 9, 20, 0.18), transparent 34%);
}

.kt-theme-light .kt-film-card,
.kt-theme-light .kt-film-sidebar-card,
.kt-theme-light .kt-film-sidebar-ad-block,
.kt-theme-light .kt-year-panel,
.kt-theme-light .kt-film-page-ad,
.kt-theme-light .kt-film-real-wide-ad-wrap,
.kt-theme-light .kt-film-final-cta,
.kt-theme-light .kt-film-index-wide-ad,
.kt-theme-light .kt-film-index-side-ad,
.kt-theme-light .kt-film-index-sidebar-card,
.kt-theme-light .kt-film-index-catalog-card,
.kt-theme-light .kt-film-index-years-box,
.kt-theme-light .kt-film-index-seo-box {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.kt-theme-light .kt-film-card:hover {
    border-color: rgba(229, 9, 20, 0.52);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(229, 9, 20, 0.18);
}

.kt-theme-light .kt-film-hero-side,
.kt-theme-light .kt-film-hero-stat,
.kt-theme-light .kt-hero-pill,
.kt-theme-light .kt-film-hero-nav,
.kt-theme-light .kt-film-hero-nav a {
    color: #fff;
}

.kt-theme-light .kt-film-page-ad--dark {
    background:
        radial-gradient(circle at 8% 0%, rgba(229, 9, 20, 0.12), transparent 34%),
        var(--kt-surface, rgba(255, 255, 255, 0.82));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1199.98px) {
    .kt-film-layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 22px;
    }

    .kt-film-index-page .kt-film-card__media {
        height: clamp(320px, 31vw, 400px);
    }

    .kt-film-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .kt-film-hero {
        min-height: auto;
        padding: 28px;
    }

    .kt-film-hero-right {
        align-content: stretch;
    }

    .kt-film-layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .kt-film-layout-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kt-film-page-ad {
        padding: 24px;
    }

    .kt-section-head,
    .kt-film-index-section-head {
        align-items: flex-start;
    }

    .kt-film-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kt-film-final-cta__grid {
        grid-template-columns: 1fr;
    }

    .kt-film-final-cta__partner {
        padding: 22px;
    }

    .kt-film-index-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .kt-film-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .kt-film-layout-sidebar {
        grid-template-columns: 1fr;
    }

    .kt-film-index-page .kt-film-card__media {
        height: 360px;
    }

    .kt-film-mini {
        align-items: flex-start;
    }

    .kt-film-mini__thumb {
        width: 92px;
        height: 66px;
    }

    .kt-film-page-ad__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .kt-film-real-wide-ad-wrap,
    .kt-film-sidebar-card,
    .kt-film-sidebar-ad-block {
        border-radius: 20px;
    }

    .kt-film-real-ad-item img {
        height: 120px;
    }

    .kt-film-hero-stats {
        grid-template-columns: 1fr;
    }

    .kt-film-hero-nav {
        padding: 12px;
    }

    .kt-film-hero-nav a {
        width: 100%;
    }

    .kt-film-index-page .kt-film-card--wide .kt-film-card__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575.98px) {
    .kt-film-hero__title {
        line-height: 1.02;
    }

    .kt-film-index-page .kt-film-card__media {
        height: 330px;
    }

    .kt-film-page-ad,
    .kt-year-panel,
    .kt-film-card,
    .kt-film-final-cta {
        border-radius: 20px;
    }

    .kt-film-hero__actions,
    .kt-film-final-cta__actions {
        flex-direction: column;
    }

    .kt-btn-primary,
    .kt-btn-secondary,
    .kt-film-final-cta__actions .kt-btn-primary,
    .kt-film-final-cta__actions .kt-btn-secondary {
        width: 100%;
    }

    .kt-film-final-cta__badges span {
        width: 100%;
    }
}