:root {
    --bm-bg: #0b1118;
    --bm-bg-2: #111a26;
    --bm-surface: #152233;
    --bm-border: rgba(255, 255, 255, 0.14);
    --bm-border-soft: rgba(255, 255, 255, 0.09);
    --bm-text: #d9e2ec;
    --bm-title: #ffffff;
    --bm-muted: rgba(217, 226, 236, 0.75);
    --bm-accent: #00b4a0;
    --bm-accent-2: #009688;
    --bm-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    --bm-shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.22);
    --bm-radius-card: 14px;
    --bm-radius-shell: 18px;
    --bm-radius-pill: 999px;
    --bm-speed: 0.24s;
    --bm-container: min(1400px, 95vw);
}

/* Trending showcase */
.bm-most-viewed-section {
    position: relative;
}

.bm-most-viewed-shell {
    position: relative;
    border-radius: 26px;
    padding: clamp(16px, 2.2vw, 28px);
    background:
        radial-gradient(circle at 88% 8%, rgba(0, 240, 206, 0.2), transparent 48%),
        radial-gradient(circle at 8% 85%, rgba(80, 134, 255, 0.2), transparent 45%),
        linear-gradient(150deg, rgba(3, 9, 24, 0.95), rgba(5, 16, 38, 0.95));
    border: 1px solid rgba(108, 141, 220, 0.24);
    box-shadow: 0 28px 70px rgba(4, 8, 20, 0.46);
    overflow: hidden;
}

.bm-most-viewed-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 38%, transparent 62%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.bm-most-viewed-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.bm-most-viewed-title {
    color: #f5f8ff;
    margin: 0;
    letter-spacing: 0;
}

.bm-most-viewed-sub {
    color: rgba(225, 235, 255, 0.8);
    margin: 6px 0 0;
    font-size: 15px;
}

.bm-most-viewed-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px;
}

.bm-filter-btn {
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    color: rgba(235, 244, 255, 0.86);
    background: transparent;
    transition: all 0.2s ease;
}

.bm-filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.bm-filter-btn.is-active {
    color: #02101a;
    background: linear-gradient(135deg, #22f2cc, #66e3ff);
    box-shadow: 0 10px 24px rgba(34, 242, 204, 0.3);
}

.bm-most-viewed-pane {
    position: relative;
    z-index: 1;
}

.bm-most-viewed-pane.is-active {
    animation: bmTrendingReveal 0.22s ease;
}

.bm-trending-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 16px;
}

.bm-trending-hero-card {
    position: relative;
    border-radius: 22px;
    min-height: 320px;
    padding: clamp(18px, 2.2vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.bm-trending-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 10, 20, 0.2) 0%, rgba(4, 10, 26, 0.82) 70%, rgba(3, 8, 18, 0.96) 100%),
        linear-gradient(100deg, rgba(3, 8, 18, 0.86) 22%, rgba(3, 8, 18, 0.28) 70%);
    z-index: 0;
}

.bm-trending-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 72%;
    min-height: 100%;
    justify-content: flex-end;
}

.bm-trending-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3.1vw, 36px);
    line-height: 1.18;
}

.bm-trending-hero-desc {
    margin: 0;
    color: rgba(232, 241, 255, 0.9);
    font-size: 15px;
    line-height: 1.75;
}

.bm-trending-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bm-kind-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ecf4ff;
    background: rgba(4, 18, 40, 0.52);
    font-size: 12px;
    line-height: 1;
    padding: 6px 11px;
}

.bm-trending-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #dff3ff;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(4, 14, 34, 0.62);
}

.bm-trending-views svg {
    width: 15px;
    height: 15px;
}

.bm-watch-btn {
    border: 0;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    color: #022328;
    background: linear-gradient(140deg, #3af2d6, #09b89f);
    box-shadow: 0 10px 20px rgba(9, 184, 159, 0.36);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bm-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(9, 184, 159, 0.48);
    color: #021b20;
}

.bm-trending-side-wrap {
    display: grid;
    gap: 14px;
}

.bm-trending-rank-card,
.bm-trending-grid-card {
    position: relative;
    border-radius: 20px;
    background: rgba(9, 20, 45, 0.74);
    border: 1px solid rgba(118, 151, 218, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bm-trending-rank-card:hover,
.bm-trending-grid-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(90, 245, 215, 0.52);
    box-shadow: 0 20px 40px rgba(4, 9, 26, 0.48);
}

.bm-trending-rank-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
}

.bm-trending-rank-poster img,
.bm-trending-grid-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-trending-rank-poster {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.bm-trending-rank-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.bm-trending-rank-title,
.bm-trending-grid-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.bm-trending-rank-title a,
.bm-trending-grid-title a {
    color: #f3f8ff;
    text-decoration: none;
}

.bm-trending-views--small {
    width: fit-content;
    padding: 5px 9px;
    font-size: 12px;
}

.bm-trending-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bm-trending-grid-card {
    display: flex;
    flex-direction: column;
}

.bm-trending-grid-poster {
    display: block;
    aspect-ratio: 16 / 10;
}

.bm-trending-grid-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.bm-trending-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.bm-rank-badge {
    position: absolute;
    inset-inline-start: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #02272c;
    background: linear-gradient(145deg, #44f2d8, #08b79d);
    box-shadow: 0 10px 20px rgba(8, 183, 157, 0.4);
    z-index: 3;
}

.bm-rank-badge--hero {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.bm-trending-empty {
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: rgba(227, 236, 252, 0.85);
    text-align: center;
    padding: 22px;
    background: rgba(10, 18, 40, 0.5);
}

@keyframes bmTrendingReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .bm-trending-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bm-most-viewed-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bm-trending-top {
        grid-template-columns: 1fr;
    }

    .bm-trending-hero-content {
        max-width: 100%;
    }

    .bm-trending-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bm-most-viewed-filters {
        width: 100%;
        justify-content: space-between;
    }

    .bm-filter-btn {
        flex: 1 1 auto;
        text-align: center;
        padding-inline: 10px;
    }

    .bm-trending-grid {
        grid-template-columns: 1fr;
    }

    .bm-trending-rank-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .bm-trending-hero-card {
        min-height: 290px;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
}

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 180, 160, 0.16), transparent 38%),
        radial-gradient(circle at 90% 84%, rgba(0, 180, 160, 0.12), transparent 45%),
        linear-gradient(180deg, #0a1119 0%, #0b1118 50%, #090f16 100%);
    color: var(--bm-text);
}

img {
    max-width: 100%;
    display: block;
}

.container,
.container-max {
    width: var(--bm-container);
    max-width: var(--bm-container);
    margin-inline: auto;
}

section,
.gen-section-padding,
.gen-section-padding-1,
.gen-section-padding-2,
.gen-section-padding-3 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

a {
    transition: all var(--bm-speed) ease;
}

.gen-button {
    min-height: 44px;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 180, 160, 0.55) !important;
    background: linear-gradient(135deg, var(--bm-accent), var(--bm-accent-2)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(0, 180, 160, 0.24);
    transition: transform var(--bm-speed) ease, box-shadow var(--bm-speed) ease;
}

.gen-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 180, 160, 0.3);
}

.gen-button.gen-button-flat,
.hero-secondary-btn {
    background: rgba(7, 14, 24, 0.64) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow: none;
}

#topShell.top-shell {
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.97), rgba(10, 16, 24, 0.9));
    border-bottom: 1px solid var(--bm-border-soft);
}

#topShell.top-shell.is-scrolled {
    box-shadow: var(--bm-shadow-soft);
}

.top-ad-area {
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--bm-border-soft);
}

.top-ad-area .ads-row {
    margin: 0;
}

.top-ad-area .ads-wrapper,
.top-ad-area .bm-top-banner-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    justify-content: center;
    margin: 0;
}

.top-ad-area .bm-top-banner-row .ad-item {
    flex: 1 1 0;
    min-width: 0;
}

.ad-1300x130 {
    width: 100%;
    max-width: 1300px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bm-border);
    background: rgba(255, 255, 255, 0.04);
}

.ad-1300x130 img,
.ad-1300x130 video,
.ad-1300x130 iframe,
.ad-1300x130 .bm-ad-html,
.ad-1300x130 .ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#gen-header.main-header-shell {
    background: transparent;
}

#gen-header .gen-bottom-header {
    border: 0;
    background: transparent;
}

.navbar-premium {
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 12px 0;
}

.logo-wrap {
    grid-column: 1;
    justify-self: start;
    margin: 0;
}

.logo-wrap .logo {
    width: auto;
    height: clamp(40px, 3vw, 52px);
}

.navbar-premium .nav-center-wrap {
    grid-column: 2;
    justify-self: center;
    flex-grow: 0;
}

.nav-center-pill {
    list-style: none;
    margin: 0;
    padding: 6px;
    direction: rtl;
    border-radius: var(--bm-radius-pill);
    border: 1px solid var(--bm-border);
    background: rgba(8, 13, 20, 0.66);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-center-pill .menu-item {
    list-style: none;
    position: relative;
    margin: 0;
}

.nav-center-pill .menu-item > a,
.nav-center-pill .menu-item > button {
    border: 0;
    background: transparent;
    color: var(--bm-text);
    text-decoration: none;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: var(--bm-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--bm-speed) ease;
}

.nav-center-pill .menu-item.active > a,
.nav-center-pill .menu-item.active > button {
    color: #fff;
    background: rgba(0, 180, 160, 0.2);
    border: 1px solid rgba(0, 180, 160, 0.52);
}

.nav-center-pill .menu-item > a:hover,
.nav-center-pill .menu-item > button:hover,
.nav-center-pill .menu-item > a:focus-visible,
.nav-center-pill .menu-item > button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.nav-caret {
    font-size: 11px;
    opacity: 0.9;
}

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gen-menu-search-block {
    position: relative;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn:hover {
    border-color: rgba(0, 180, 160, 0.5);
    background: rgba(0, 180, 160, 0.14);
}

.desktop-actions .gen-search-form {
    right: 0;
}

.gen-search-form {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 88vw);
    display: none;
    z-index: 20;
    border-radius: 14px;
    border: 1px solid var(--bm-border);
    background: rgba(10, 16, 24, 0.96);
    box-shadow: var(--bm-shadow);
    padding: 10px;
}

.gen-search-form.gen-form-show {
    display: block;
}

.gen-search-form .search-field {
    min-height: 42px;
    border-radius: 10px !important;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 12px;
    min-width: 42px;
    min-height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-actions {
    display: none;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(980px, 92vw);
    border-radius: 18px;
    border: 1px solid var(--bm-border);
    background: rgba(8, 14, 22, 0.96);
    box-shadow: var(--bm-shadow);
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 12px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: all var(--bm-speed) ease;
    z-index: 40;
}

.menu-more.is-open > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 992px) {
    .menu-more:hover > .mega-menu,
    .menu-more:focus-within > .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.mega-section {
    border: 1px solid var(--bm-border-soft);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.mega-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #fff;
}

.mega-links {
    display: grid;
    gap: 6px;
}

.mega-links a {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--bm-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-links a:hover,
.mega-links a:focus-visible {
    color: #fff;
    background: rgba(0, 180, 160, 0.16);
    border-color: rgba(0, 180, 160, 0.42);
    outline: none;
}

.mega-genres-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 180, 160, 0.55) rgba(255, 255, 255, 0.06);
}

.mega-genres-scroll::-webkit-scrollbar {
    width: 8px;
}

.mega-genres-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.mega-genres-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 160, 0.45);
    border-radius: 999px;
}

.mega-genres-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 180, 160, 0.65);
}

.mega-latest-list {
    display: grid;
    gap: 8px;
}

.mega-latest-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--bm-border-soft);
    text-decoration: none;
    color: var(--bm-text);
}

.mega-latest-item:hover {
    color: #fff;
    background: rgba(0, 180, 160, 0.15);
    border-color: rgba(0, 180, 160, 0.44);
}

.mega-latest-thumb {
    width: 52px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
}

.mega-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-latest-title {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-latest-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-latest-type {
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 180, 160, 0.45);
    background: rgba(0, 180, 160, 0.14);
    color: #e3fffb;
    font-size: 12px;
}

.mega-latest-year {
    font-size: 12px;
    color: var(--bm-muted);
}

.mega-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 180, 160, 0.45);
    background: rgba(0, 180, 160, 0.14);
    color: #fff;
    text-decoration: none;
}

.hifwihwifw {
    margin-top: 10px !important;
}

.hero-section-wrapper {
    position: relative;
}

.hero-section {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(0, 180, 160, 0.24);
    overflow: hidden;
    background: #050a10;
    box-shadow: var(--bm-shadow);
}

.hero-section__slide {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-section__bg,
.hero-section__overlay,
.hero-section__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-section__bg {
    overflow: hidden;
    background: #050a10;
}

.hero-section__bg-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: blur(7px);
    transform: scale(1.08);
    transform-origin: center;
}

.hero-section__overlay {
    background: linear-gradient(90deg, rgba(5, 10, 15, 0.95) 40%, rgba(5, 10, 15, 0.6) 70%, transparent 100%);
}

.hero-section__vignette {
    background:
        radial-gradient(circle at 0 50%, rgba(0, 0, 0, 0.26), transparent 38%),
        radial-gradient(circle at 100% 0, rgba(0, 0, 0, 0.45), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.45), transparent 42%);
}

.hero-section__inner {
    position: relative;
    z-index: 2;
    min-height: 600px;
    padding: clamp(24px, 4vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 390px);
    align-items: center;
    gap: clamp(18px, 3.5vw, 48px);
    direction: ltr;
}

.hero-section__content {
    position: relative;
    z-index: 6;
    direction: rtl;
    text-align: right;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 18, 28, 0.48);
    backdrop-filter: blur(10px);
    padding: clamp(16px, 2.4vw, 30px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.hero-section__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(223, 245, 243, 0.96);
    font-size: 14px;
}

.hero-section__label-line {
    width: 3px;
    height: 22px;
    border-radius: 999px;
    background: #00d1b2;
}

.hero-section__title {
    margin: 12px 0 0;
    font-size: clamp(26px, 3vw, 46px);
    line-height: 1.16;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.hero-section__badges {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-section__badge,
.hero-section__badge a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color var(--bm-speed) ease, border-color var(--bm-speed) ease;
}

.hero-section__badge i {
    font-size: 15px;
    color: rgba(0, 209, 178, 0.95);
}

.hero-section__description {
    margin: 16px 0 0;
    color: rgba(232, 241, 246, 0.85);
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.8;
    max-width: 60ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-section__actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-section__btn {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--bm-speed) ease, box-shadow var(--bm-speed) ease, background-color var(--bm-speed) ease, border-color var(--bm-speed) ease;
}

.hero-section__btn--primary {
    color: #fff;
    border: 1px solid rgba(0, 209, 178, 0.72);
    background: linear-gradient(135deg, #00d1b2, #009688);
    box-shadow: 0 14px 28px rgba(0, 209, 178, 0.28);
}

.hero-section__btn--secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-section__btn:hover {
    transform: translateY(-2px);
}

.hero-section__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
}

.hero-section__poster-shell {
    display: flex;
    justify-content: flex-end;
}

.hero-section__poster-frame {
    width: min(100%, 360px);
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    background: rgba(255, 255, 255, 0.03);
}

.hero-section__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.hero-section__slide:hover .hero-section__poster {
    transform: scale(1.02);
}

.hero-section__carousel {
    position: relative;
}

.hero-section .owl-dots {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0 !important;
    display: inline-flex;
    width: auto !important;
    max-width: max-content;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: initial;
    line-height: 1;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-section .owl-dots .owl-dot {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.hero-section .owl-dots .owl-dot::before,
.hero-section .owl-dots .owl-dot::after {
    content: none !important;
    display: none !important;
}

.hero-section .owl-dots .owl-dot span {
    position: relative;
    overflow: hidden;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 9999px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 0.85;
    transition: width 220ms ease, background-color 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.hero-section .owl-dots .owl-dot:hover span {
    opacity: 1;
}

.hero-section .owl-dots .owl-dot.active span {
    width: 34px !important;
    height: 8px !important;
    opacity: 1;
    background: rgba(0, 255, 200, 0.95) !important;
    box-shadow: 0 0 14px rgba(0, 255, 200, 0.35);
}

.hero-section .owl-dots .owl-dot.active span::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.4);
    transform-origin: left center;
    transform: scaleX(0);
    animation: hero-indicator-progress var(--hero-slide-duration, 5s) linear forwards;
}

.hero-section .owl-dots .owl-dot:focus-visible {
    outline: 2px solid rgba(0, 255, 200, 0.8);
    outline-offset: 3px;
    border-radius: 9999px;
}

@keyframes hero-indicator-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.hero-section .owl-item .hero-section__content,
.hero-section .owl-item .hero-section__poster-shell {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Dev-safe fallback: keep hero content visible even if third-party carousel styles conflict. */
.hero-section .hero-section__content,
.hero-section .hero-section__poster-shell {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.hero-section .hero-section__content {
    display: block !important;
}

.hero-section .owl-item,
.hero-section .owl-item.active,
.hero-section .owl-item .hero-section__slide,
.hero-section .owl-item .hero-section__inner,
.hero-section .owl-item .hero-section__content,
.hero-section .owl-item .hero-section__poster-shell,
.hero-section .owl-item .hero-section__title,
.hero-section .owl-item .hero-section__description,
.hero-section .owl-item .hero-section__label,
.hero-section .owl-item .hero-section__badges,
.hero-section .owl-item .hero-section__actions {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.hero-section .owl-item .hero-section__content {
    display: block !important;
}

.hero-section .owl-item .hero-section__poster-shell {
    display: flex !important;
}

.hero-section .owl-item .hero-section__badges,
.hero-section .owl-item .hero-section__actions {
    display: flex !important;
}

.hero-section .owl-item.active .hero-section__content,
.hero-section .owl-item.active .hero-section__poster-shell {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 1199px) {
    .hero-section__slide {
        min-height: 540px;
    }

    .hero-section__inner {
        min-height: 540px;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
        gap: clamp(16px, 2.4vw, 28px);
        padding: clamp(20px, 2.8vw, 30px);
    }

    .hero-section__description {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 991px) {
    .hero-section__slide {
        min-height: 0;
    }

    .hero-section__inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 16px 58px;
    }

    .hero-section__poster-shell {
        order: 1;
        justify-content: center;
    }

    .hero-section__content {
        order: 2;
        text-align: right;
    }

    .hero-section__poster-frame {
        width: min(76vw, 320px);
    }

    .hero-section__title {
        font-size: clamp(24px, 5vw, 36px);
    }

    .hero-section__description {
        max-width: 100%;
        -webkit-line-clamp: 3;
    }

    .hero-section__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section__btn {
        width: 100%;
        min-height: 50px;
        padding: 0 18px;
    }
}

@media (max-width: 767px) {
    .hero-section__bg-image {
        filter: blur(3px);
        transform: scale(1.04);
    }

    .hero-section__overlay {
        background: linear-gradient(180deg, rgba(5, 10, 15, 0.5) 0%, rgba(5, 10, 15, 0.9) 100%);
    }

    .hero-section__inner {
        padding: 14px 12px 52px;
        gap: 12px;
    }

    .hero-section__content {
        border-radius: 16px;
        padding: 14px;
        backdrop-filter: blur(7px);
    }

    .hero-section__poster-frame {
        width: min(90vw, 300px);
        border-radius: 16px;
    }

    .hero-section__badges {
        gap: 8px;
    }

    .hero-section__badge,
    .hero-section__badge a {
        min-height: 34px;
        padding: 0 11px;
        font-size: 13px;
    }

    .hero-section__actions {
        grid-template-columns: 1fr;
    }

    .hero-section .owl-dots {
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        gap: 8px;
        padding: 8px 10px;
    }

    .hero-section .owl-dots .owl-dot span {
        width: 8px !important;
        height: 8px !important;
    }

    .hero-section .owl-dots .owl-dot.active span {
        width: 28px !important;
        height: 8px !important;
    }
}

.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 14px;
}

.gen-heading-title {
    position: relative;
    padding-inline-start: 12px;
    margin: 0;
}

.gen-heading-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12%;
    height: 76%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--bm-accent), rgba(0, 180, 160, 0.25));
}

.row.movie-grid {
    margin-inline: -10px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.row.movie-grid > .moviedd,
.row.movie-grid > .card-col,
.row.movie-grid > .bm-native-card {
    margin: 0 !important;
    padding: 0 10px 20px !important;
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    display: flex;
}

@media (min-width: 768px) {
    .row.movie-grid > .moviedd,
    .row.movie-grid > .card-col,
    .row.movie-grid > .bm-native-card {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .row.movie-grid > .moviedd,
    .row.movie-grid > .card-col,
    .row.movie-grid > .bm-native-card {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
        width: 16.666667%;
    }
}

.movie-card .gen-movie-contain {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: var(--bm-radius-card);
    overflow: hidden;
    border: 1px solid var(--bm-border);
    background: linear-gradient(180deg, rgba(14, 22, 32, 0.74), rgba(8, 14, 24, 0.96));
    box-shadow: var(--bm-shadow-soft);
    transition: transform var(--bm-speed) ease, box-shadow var(--bm-speed) ease, border-color var(--bm-speed) ease;
}

.movie-card:hover .gen-movie-contain {
    transform: scale(1.03);
    border-color: rgba(0, 180, 160, 0.48);
    box-shadow: var(--bm-shadow);
}

.movie-card--vip .gen-movie-contain {
    border-color: rgba(66, 165, 245, 0.52);
    box-shadow: 0 14px 30px rgba(33, 150, 243, 0.16), var(--bm-shadow-soft);
}

.movie-card--vip:hover .gen-movie-contain {
    border-color: rgba(66, 165, 245, 0.72);
}

.movie-card .gen-movie-img,
.movie-card .card-poster,
.movie-card .media-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.movie-card .bm-card-vip-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    inset-inline-start: auto;
    right: auto;
    left: auto;
    z-index: 5;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(66, 165, 245, 0.72);
    background: rgba(33, 150, 243, 0.16);
    color: #8ad2ff;
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.movie-card .bm-card-vip-badge::before {
    content: none;
    margin-inline-end: 0;
}

.movie-card .bm-card-vip-badge:empty {
    display: none !important;
}

.vip-thumb-blur {
    filter: blur(4px) brightness(0.55);
    transform: scale(1.04);
}

.vip-poster-lock {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    text-align: center;
    color: #ecf3ff;
    text-decoration: none;
    background: rgba(8, 12, 20, 0.56);
    backdrop-filter: blur(1px);
}

.vip-poster-lock strong {
    color: #ffe2a0;
    font-size: 0.95rem;
}

.vip-poster-lock small {
    color: #d2ddf8;
    font-size: 0.78rem;
}

.movie-card .gen-movie-img::before,
.movie-card .gen-movie-img::after,
.movie-card .oval-overlay,
.movie-card .ellipse-overlay,
.movie-card .glass-overlay {
    content: none !important;
    display: none !important;
}

.movie-card .gen-movie-img img,
.movie-card .gen-movie-img .newimage,
.movie-card .card-poster img,
.movie-card .media-poster img,
.movie-card .media-poster .newimage {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    display: block;
}

.movie-card .gen-movie-action {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.32));
    transition: opacity var(--bm-speed) ease, visibility var(--bm-speed) ease;
}

.movie-card:hover .gen-movie-action {
    opacity: 1;
    visibility: visible;
}

.movie-card .gen-info-contain,
.movie-card .card-body,
.movie-card .media-footer {
    margin-top: auto;
    min-height: 122px;
    padding: 12px 12px 14px;
}

.movie-card .gen-movie-info h3 {
    margin: 0 0 8px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-card .gen-movie-info h3 a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card .gen-movie-meta-holder ul,
.movie-card .meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.movie-card .gen-movie-meta-holder ul li,
.movie-card .meta-row li {
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #d8dee7;
    font-size: 12px;
}

.movie-genre-list {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.movie-genre-badge {
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    border: 1px solid rgba(0, 180, 160, 0.44);
    background: rgba(0, 180, 160, 0.14);
    color: #e4fffc;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
}

.site-footer {
    margin-top: 28px;
    border-top: 1px solid rgba(126, 164, 204, 0.24);
    background:
        radial-gradient(70% 140% at 0% 100%, rgba(0, 209, 178, 0.09), transparent 68%),
        linear-gradient(180deg, rgba(8, 14, 25, 0.95), rgba(4, 8, 15, 0.99));
}

.site-footer .gen-footer-top {
    padding: 30px 0 24px !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(120, 162, 198, 0.24);
    border-radius: 20px;
    padding: 24px;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(0, 209, 178, 0.08), transparent 55%),
        linear-gradient(160deg, rgba(9, 16, 28, 0.88), rgba(6, 11, 21, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 34px rgba(0, 0, 0, 0.3);
}

.footer-grid > * {
    padding-inline: 20px;
}

.footer-grid > *:not(:first-child) {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-col,
.footer-col {
    position: relative;
    min-height: 240px;
    padding: 4px 0;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-brand-col .gen-footer-logo {
    max-width: clamp(190px, 13vw, 245px);
    height: auto;
}

.footer-brand-col p {
    margin: 16px 0 0;
    color: rgba(231, 240, 251, 0.88);
    line-height: 1.9;
    font-size: clamp(15px, 0.95vw, 18px);
}

.footer-col h6 {
    margin: 0 0 14px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(22px, 1.2vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    color: #f7fbff;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: rgba(236, 244, 255, 0.94);
    text-decoration: none;
    transition: color 220ms ease, opacity 220ms ease;
}

.footer-col a:hover {
    color: #75f5e3;
    opacity: 1;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-social-row a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.footer-social-row a:hover {
    background: rgba(0, 180, 160, 0.15);
    border-color: rgba(0, 180, 160, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 209, 178, 0.2), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.footer-team-list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.footer-team-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 220ms ease, background 220ms ease;
}

.footer-team-item:hover {
    border-color: rgba(0, 209, 178, 0.44);
    background: rgba(0, 209, 178, 0.1);
}

.footer-team-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.26);
    flex: 0 0 auto;
}

.footer-team-meta {
    display: grid;
    gap: 2px;
}

.footer-team-name {
    color: #f7fbff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.footer-team-role {
    color: rgba(215, 229, 245, 0.76);
    font-size: 13px;
    line-height: 1.25;
}

.gen-copyright-footer {
    border-top: 1px solid var(--bm-border-soft);
    background: linear-gradient(180deg, rgba(2, 8, 16, 0.38), rgba(2, 8, 16, 0.52));
    padding: 18px 0;
}

.gen-copyright-footer .row {
    justify-content: center;
}

.gen-copyright-footer .align-self-center {
    display: flex;
    justify-content: center;
}

.bm-copyright-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(980px, 92vw);
    min-height: 54px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(111, 239, 223, 0.35);
    background: linear-gradient(120deg, rgba(7, 14, 23, 0.74), rgba(11, 22, 35, 0.58));
    backdrop-filter: blur(16px) saturate(130%);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 24px rgba(0, 209, 178, 0.16);
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 700;
    letter-spacing: 0.15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bm-copyright-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d1b2;
    box-shadow: 0 0 10px rgba(0, 209, 178, 0.55);
}

.bm-copyright-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 38%, transparent 58%);
    opacity: 0.6;
    pointer-events: none;
}

.bm-copyright-text {
    position: relative;
    z-index: 1;
    color: rgba(242, 248, 255, 0.95);
}

.bm-brand-name {
    color: #bffbf2;
    font-weight: 800;
    letter-spacing: 0.25px;
}

@media (max-width: 575.98px) {
    .bm-copyright-pill {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    .footer-grid > * {
        padding-inline: 14px;
    }

    .footer-grid > *:not(:first-child) {
        border-inline-start: 0;
    }

    .footer-grid > :nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 16px;
        margin-top: 16px;
    }

    .footer-brand-col,
    .footer-col {
        min-height: auto;
        padding: 16px;
    }
}

.gen-copyright,
.gen-copyright a {
    color: var(--bm-text) !important;
}

.ad-side {
    position: fixed;
    top: 180px;
    z-index: 9900;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bm-border);
    background: rgba(255, 255, 255, 0.04);
}

.ad-side-left {
    left: 12px;
}

.ad-side-right {
    right: 12px;
}

.ad-side img,
.ad-side video,
.ad-side iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-sticky-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8px;
    display: none;
    justify-content: center;
    z-index: 9998;
}

.ad-sticky-inner {
    width: min(1300px, 95vw);
    border-radius: 12px;
    border: 1px solid var(--bm-border);
    overflow: hidden;
    position: relative;
    background: #0d1117;
}

.ad-sticky-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ad-sticky-body,
.ad-sticky-body a,
.ad-sticky-body img,
.ad-sticky-body video,
.ad-sticky-body iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bm-ad-modal,
.bm-ad-interstitial {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.bm-ad-modal.is-open,
.bm-ad-interstitial.is-open {
    display: flex;
}

.bm-ad-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.bm-ad-modal-dialog,
.bm-ad-interstitial-inner {
    position: relative;
    z-index: 1;
    width: min(760px, 92vw);
    border-radius: 16px;
    border: 1px solid var(--bm-border);
    background: #0a111a;
    overflow: hidden;
}

.bm-ad-modal-body,
.bm-ad-interstitial-body {
    width: 100%;
}

.bm-ad-modal-body img,
.bm-ad-modal-body video,
.bm-ad-modal-body iframe,
.bm-ad-interstitial-body img,
.bm-ad-interstitial-body video,
.bm-ad-interstitial-body iframe {
    width: 100%;
    height: auto;
    display: block;
}

.bm-ad-close,
.bm-ad-interstitial-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 3;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

.admin-list-shell,
.page .container-xl {
    width: min(1460px, 96vw);
    max-width: min(1460px, 96vw);
}

.admin-results-table .admin-thumb {
    border-radius: 10px;
    object-fit: cover;
}

.admin-results-table td,
.admin-results-table th {
    vertical-align: middle;
}

@media (max-width: 1400px) {
    .ad-side {
        display: none;
    }
}

@media (max-width: 1199px) {
    .hero-premium .item.hero-slide,
    .hero-content-shell {
        min-height: 460px;
    }
}

@media (max-width: 991px) {
    .top-ad-area .bm-top-banner-row {
        flex-wrap: wrap;
    }

    .top-ad-area .bm-top-banner-row .ad-item {
        flex: 1 1 100%;
    }

    .ad-1300x130 {
        height: auto;
        aspect-ratio: 1300 / 130;
    }

    .navbar-premium {
        grid-template-columns: auto 1fr auto;
        min-height: 68px;
        gap: 8px;
    }

    .desktop-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-premium .nav-center-wrap {
        grid-column: 1 / -1;
        justify-self: stretch;
        margin-top: 8px;
        border-radius: 16px;
        border: 1px solid var(--bm-border);
        background: rgba(8, 13, 20, 0.94);
        box-shadow: var(--bm-shadow-soft);
        padding: 10px;
    }

    .nav-center-pill {
        width: 100%;
        border: 0;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        display: grid;
        gap: 6px;
    }

    .nav-center-pill .menu-item > a,
    .nav-center-pill .menu-item > button {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
    }

    .mega-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        grid-template-columns: 1fr;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        overflow: hidden;
        border: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transition: max-height var(--bm-speed) ease;
    }

    .menu-more.is-open > .mega-menu {
        max-height: 78vh;
        padding: 4px 0;
    }

    .mega-genres-scroll {
        max-height: 240px;
    }

    .mobile-actions {
        margin-top: 8px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .hero-premium .item.hero-slide,
    .hero-content-shell {
        min-height: 0;
    }

    .hero-content-shell {
        padding: 14px 0 54px;
    }

    .hero-grid-row {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    .hero-visual-col {
        order: 1;
    }

    .hero-copy-col {
        order: 2;
    }

    .hero-visual-panel {
        aspect-ratio: 16 / 9;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hero-premium .item.hero-slide,
    .hero-content-shell {
        min-height: clamp(320px, 92vw, 420px);
    }

    .hero-copy-panel .gen-movie-meta-holder p {
        -webkit-line-clamp: 2;
    }

    .row.movie-grid > .moviedd,
    .row.movie-grid > .card-col,
    .row.movie-grid > .bm-native-card {
        padding: 0 8px 16px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .footer-grid > * {
        padding-inline: 0;
    }

    .footer-grid > :nth-child(n + 2) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-inline-start: 0;
        padding-top: 16px;
        margin-top: 16px;
    }

    .footer-col h6 {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .footer-col h6::after {
        content: "+";
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.24);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    .footer-col.is-open h6::after {
        content: "-";
    }

    .footer-col ul {
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height var(--bm-speed) ease, margin-top var(--bm-speed) ease;
    }

    .footer-col.is-open ul {
        max-height: 260px;
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===================== Navbar/Header Final Fix ===================== */
#topShell.top-shell {
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#topShell.top-shell.scrolled,
#topShell.top-shell.is-scrolled {
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

#gen-header.main-header-shell,
#gen-header .gen-bottom-header {
    background: transparent;
    border: 0;
}

.main-header-shell .container.container-max {
    position: relative;
}

.navbar-premium {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    height: 76px;
    min-height: 76px;
    margin: 0;
    padding: 0 !important;
    direction: ltr;
    line-height: 1;
}

.navbar-premium,
.navbar-premium * {
    box-sizing: border-box;
}

.navbar-premium > .logo-wrap,
.navbar-premium > .nav-center-wrap,
.navbar-premium > .header-actions {
    grid-row: 1;
    align-self: center;
}

.logo-wrap {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.logo-wrap .logo {
    width: auto;
    height: 42px;
    display: block;
}

.navbar-premium .nav-center-wrap {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
}

.nav-center-pill {
    list-style: none;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    direction: rtl;
    white-space: nowrap;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.nav-center-pill .menu-item {
    margin: 0;
    list-style: none;
    position: relative;
}

.nav-center-pill .menu-item > a,
.nav-center-pill .menu-item > button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--bm-text);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    font-size: 15px;
    transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.nav-center-pill .menu-item > a::after,
.nav-center-pill .menu-item > button::after {
    content: "";
    position: absolute;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    bottom: 6px;
    height: 1px;
    border-radius: 999px;
    background: rgba(0, 255, 200, 0.75);
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-center-pill .menu-item > a:hover,
.nav-center-pill .menu-item > button:hover,
.nav-center-pill .menu-item > a:focus-visible,
.nav-center-pill .menu-item > button:focus-visible {
    color: #fff;
    outline: none;
}

.nav-center-pill .menu-item > a:hover::after,
.nav-center-pill .menu-item > button:hover::after,
.nav-center-pill .menu-item > a:focus-visible::after,
.nav-center-pill .menu-item > button:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-center-pill .menu-item.active > a,
.nav-center-pill .menu-item.active > button {
    color: #fff;
    background: rgba(0, 255, 200, 0.14);
    border-color: rgba(0, 255, 200, 0.35);
}

.nav-caret {
    font-size: 11px;
    opacity: 0.9;
}

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.header-actions .gen-menu-search-block,
.header-actions .gen-account-holder {
    display: inline-flex;
    align-items: center;
}

.icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.icon-btn:hover {
    border-color: rgba(0, 255, 200, 0.35);
    background: rgba(0, 255, 200, 0.10);
}

.gen-menu-search-block {
    position: relative;
}

.header-search-overlay[hidden] {
    display: none !important;
}

.header-search-overlay {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(360px, 90vw);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 14, 22, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    z-index: 10030;
}

.header-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-search-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.header-search-input {
    min-height: 40px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0 12px;
}

.header-search-input:focus {
    outline: none;
    border-color: rgba(0, 255, 200, 0.45);
}

.header-search-submit,
.header-search-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.header-search-submit:hover,
.header-search-close:hover {
    border-color: rgba(0, 255, 200, 0.35);
    background: rgba(0, 255, 200, 0.1);
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0;
}

.nav-toggle svg {
    width: 19px;
    height: 19px;
}

.mobile-nav-backdrop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none !important;
    }

    .navbar-premium .nav-center-wrap {
        grid-column: 2 !important;
        justify-self: center;
        align-self: center;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .navbar-premium {
        grid-template-columns: 1fr auto 1fr;
        height: 68px;
        min-height: 68px;
        gap: 12px;
    }

    .logo-wrap .logo {
        height: 38px;
    }

    .nav-center-pill {
        padding: 8px 11px;
        gap: 12px;
    }

    .nav-center-pill .menu-item > a,
    .nav-center-pill .menu-item > button {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .navbar-premium .nav-center-wrap {
        grid-column: 2 !important;
        justify-self: center;
        align-self: center;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .navbar-premium {
        grid-template-columns: 1fr auto;
        gap: 10px;
        height: 60px;
        min-height: 60px;
    }

    .logo-wrap .logo {
        height: 33px;
    }

    .header-actions {
        gap: 8px;
    }

    .nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .header-search-overlay {
        position: fixed;
        top: 66px;
        inset-inline-end: 10px;
        width: min(94vw, 420px);
    }

    .navbar-premium .nav-center-wrap {
        position: fixed !important;
        top: 60px;
        inset-inline-end: 0;
        width: min(86vw, 360px);
        height: calc(100vh - 60px);
        padding: 14px;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: rgba(8, 14, 22, 0.98) !important;
        box-shadow: -16px 0 24px rgba(0, 0, 0, 0.35) !important;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.24s ease;
        z-index: 10020;
    }

    .navbar-premium .nav-center-wrap.is-open {
        transform: translateX(0);
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 60px 0 0;
        border: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.42);
        z-index: 10010;
        display: none;
    }

    .mobile-nav-backdrop.is-open {
        display: block;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .nav-center-pill {
        width: 100%;
        padding: 0;
        gap: 8px;
        border: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        display: grid;
    }

    .nav-center-pill .menu-item > a,
    .nav-center-pill .menu-item > button {
        width: 100%;
        min-height: 40px;
        justify-content: space-between;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-center-pill .menu-item > a::after,
    .nav-center-pill .menu-item > button::after {
        inset-inline-start: 10px;
        inset-inline-end: 10px;
        bottom: 7px;
    }

    .menu-more .mega-menu {
        position: static;
        inset: auto;
        width: 100%;
        margin-top: 6px;
        grid-template-columns: 1fr;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transition: max-height 0.24s ease;
    }

    .menu-more.is-open > .mega-menu {
        max-height: 78vh;
        padding: 4px 0;
    }
}

/* Genres text rendering safety: force real Arabic/Kurdish font in genres list only */
.mega-menu .mega-genres-scroll,
.mega-menu .mega-genres-scroll a,
.mega-menu .mega-genres-scroll .krd2,
.mega-menu .mega-genres-scroll *:not(i):not(svg):not(path) {
    font-family: "Noto Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-style: normal !important;
    font-variant-ligatures: normal !important;
}

.mega-menu .mega-genres-scroll i,
.mega-menu .mega-genres-scroll i::before {
    font-family: inherit;
}

/* ===================== Profile Dropdown Ultra Final End Override ===================== */
#topShell .profile-menu-backdrop {
    background: rgba(3, 8, 14, 0.2) !important;
}

#topShell .gen-account-holder.profile-menu-shell {
    position: relative !important;
}

#topShell .profile-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    left: auto !important;
    right: 0 !important;
    z-index: 10090 !important;
    width: min(280px, calc(100vw - 16px)) !important;
    max-width: min(280px, calc(100vw - 16px)) !important;
    height: auto !important;
    max-height: min(72vh, 420px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(10, 16, 24, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35) !important;
    padding: 10px !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) !important;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

#topShell .profile-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

#topShell .profile-menu::before,
#topShell .profile-menu::after {
    content: none !important;
    display: none !important;
}

#topShell .profile-menu__head {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

#topShell .profile-menu__avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 18px !important;
    border-radius: 50% !important;
    line-height: 1 !important;
}

#topShell .profile-menu__identity {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

#topShell .profile-menu__status {
    display: none !important;
}

#topShell .profile-menu__divider {
    margin: 10px 2px !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

#topShell .profile-menu__item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    margin: 0 0 6px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

#topShell .profile-menu__item:last-child {
    margin-bottom: 0 !important;
}

#topShell .profile-menu__item-arrow {
    display: none !important;
}

@media (max-width: 767px) {
    #topShell .profile-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        inset-inline-end: 0 !important;
        width: min(270px, calc(100vw - 14px)) !important;
        max-width: min(270px, calc(100vw - 14px)) !important;
        max-height: min(64vh, 380px) !important;
        height: auto !important;
        border-radius: 16px !important;
        transform: translateY(8px) !important;
    }

    #topShell .profile-menu.is-open {
        transform: translateY(0) !important;
    }
}

/* ===================== Profile Dropdown Clean Final (highest priority) ===================== */
.profile-menu-backdrop {
    background: rgba(3, 8, 14, 0.22) !important;
    backdrop-filter: blur(2px);
}

.gen-account-holder.profile-menu-shell {
    position: relative !important;
}

.profile-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    right: 0 !important;
    left: auto !important;
    z-index: 10070 !important;
    width: min(280px, calc(100vw - 16px)) !important;
    max-width: min(280px, calc(100vw - 16px)) !important;
    height: auto !important;
    max-height: min(72vh, 420px) !important;
    padding: 10px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(10, 16, 24, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) !important;
    transform-origin: top right;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.profile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) !important;
}

.profile-menu::before {
    content: none !important;
    display: none !important;
}

.profile-menu__head {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.profile-menu__avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.profile-menu__identity {
    min-width: 0;
    display: grid !important;
    gap: 2px;
}

.profile-menu__status {
    display: none !important;
}

.profile-menu__divider {
    margin: 10px 2px !important;
    height: 1px;
    background: rgba(255, 255, 255, 0.1) !important;
}

.profile-menu__item {
    min-height: 42px !important;
    margin-bottom: 6px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.profile-menu__item:last-child {
    margin-bottom: 0 !important;
}

.profile-menu__item-arrow {
    display: none !important;
}

@media (max-width: 767px) {
    .profile-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        inset-inline-end: 0 !important;
        width: min(270px, calc(100vw - 14px)) !important;
        max-width: min(270px, calc(100vw - 14px)) !important;
        max-height: min(64vh, 380px) !important;
        height: auto !important;
        border-radius: 16px !important;
        transform: translateY(8px) !important;
    }

    .profile-menu.is-open {
        transform: translateY(0) !important;
    }
}

/* ===================== Profile Dropdown Stable Final Override ===================== */
.profile-menu-backdrop {
    background: rgba(4, 10, 18, 0.22) !important;
}

.gen-account-holder.profile-menu-shell {
    position: relative !important;
}

.profile-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    left: auto !important;
    right: 0 !important;
    width: min(300px, calc(100vw - 20px)) !important;
    max-width: min(300px, calc(100vw - 20px)) !important;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 18px !important;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
}

.profile-menu.is-open {
    transform: translateY(0) scale(1) !important;
}

.profile-menu::before {
    margin: 0 2px 10px !important;
}

.profile-menu__head {
    padding: 10px !important;
    border-radius: 14px !important;
}

.profile-menu__avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    box-shadow: none !important;
}

.profile-menu__name {
    font-size: 15px !important;
}

.profile-menu__sub {
    font-size: 12px !important;
    opacity: 0.88 !important;
}

.profile-menu__status {
    min-height: 18px !important;
    padding: 1px 8px !important;
    font-size: 11px !important;
}

.profile-menu__item {
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

.profile-menu__item-arrow {
    transform: translateX(0) !important;
}

@media (max-width: 767px) {
    .profile-menu-backdrop {
        background: rgba(4, 10, 18, 0.34) !important;
    }

    .profile-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        inset-inline-end: 0 !important;
        width: min(290px, calc(100vw - 16px)) !important;
        max-width: min(290px, calc(100vw - 16px)) !important;
        max-height: min(68vh, 420px);
        border-radius: 16px !important;
        transform: translateY(8px) scale(0.98) !important;
    }

    .profile-menu.is-open {
        transform: translateY(0) scale(1) !important;
    }
}

/* ===================== Profile + Search Premium UI ===================== */
.profile-menu-shell {
    position: relative;
}

.profile-menu-backdrop,
.header-search-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(6, 10, 16, 0.58);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.profile-menu-backdrop.is-open,
.header-search-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-menu[hidden],
.header-search-overlay[hidden],
.profile-menu-backdrop[hidden],
.header-search-backdrop[hidden] {
    display: none !important;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: 260px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    z-index: 10060;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.profile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.profile-menu__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 200, 0.38);
    background: rgba(0, 255, 200, 0.16);
    color: #e9fffb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex: 0 0 auto;
}

.profile-menu__identity {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.profile-menu__name {
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu__sub {
    color: rgba(223, 233, 245, 0.76);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu__divider {
    height: 1px;
    margin: 12px 0 10px;
    background: rgba(255, 255, 255, 0.1);
}

.profile-menu__item {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #e7eef8;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.profile-menu__item:hover,
.profile-menu__item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    outline: none;
}

.profile-menu__item--danger {
    color: #ff8f9e;
}

.profile-menu__item--danger:hover,
.profile-menu__item--danger:focus-visible {
    color: #ffdbe1;
    background: rgba(255, 82, 111, 0.14);
    border-color: rgba(255, 82, 111, 0.26);
}

#headerSearchOverlay.header-search-overlay {
    position: fixed !important;
    top: 50%;
    left: 50%;
    right: auto;
    width: min(720px, 90vw);
    z-index: 10060;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

#headerSearchOverlay.header-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.search-panel {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 28px rgba(0, 209, 178, 0.12);
    padding: 16px;
    direction: rtl;
}

.search-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    position: relative;
    min-height: 38px;
    padding-inline-start: 46px;
}

.search-panel__title {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.search-panel__close {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: rgba(223, 233, 245, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 21px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.search-panel__close:hover {
    color: #fff;
    border-color: rgba(0, 209, 178, 0.44);
    background: rgba(0, 209, 178, 0.16);
    box-shadow: 0 10px 22px rgba(0, 209, 178, 0.18);
    transform: translateY(calc(-50% - 1px));
}

.search-panel__form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-panel__input-wrap {
    position: relative;
    flex: 1 1 auto;
    display: block;
}

.search-panel__input-icon {
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(191, 208, 222, 0.86);
    pointer-events: none;
}

.search-panel__input {
    width: 100%;
    height: 54px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-inline: 20px 50px;
    text-align: right;
    direction: rtl;
}

.search-panel__input:focus {
    outline: none;
    border-color: rgba(0, 209, 178, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 209, 178, 0.18);
}

.search-panel__submit {
    min-height: 54px;
    padding: 0 20px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 209, 178, 0.62);
    background: linear-gradient(135deg, #00d1b2, #009688);
    color: #fff;
    white-space: nowrap;
}

.search-panel__results {
    margin-top: 12px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 209, 178, 0.58) rgba(255, 255, 255, 0.08);
}

.search-panel__results::-webkit-scrollbar {
    width: 8px;
}

.search-panel__results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.search-panel__results::-webkit-scrollbar-thumb {
    background: rgba(0, 209, 178, 0.5);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-panel__results::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 209, 178, 0.75);
}

.search-panel__result-list {
    display: grid;
    gap: 8px;
}

.search-panel__result-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 7px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #dfe8f3;
    background: rgba(255, 255, 255, 0.02);
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.search-panel__result-item:hover,
.search-panel__result-item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    outline: none;
}

.search-panel__result-poster {
    width: 54px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-panel__result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-panel__result-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.search-panel__result-title {
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-panel__result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-panel__result-type {
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 209, 178, 0.35);
    background: rgba(0, 209, 178, 0.14);
    color: #dffef8;
    font-size: 12px;
}

.search-panel__result-year {
    font-size: 12px;
    color: rgba(215, 226, 237, 0.72);
}

.search-panel__empty,
.search-panel__loading {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: rgba(223, 233, 245, 0.78);
}

.search-panel__close:focus-visible,
.search-panel__submit:focus-visible,
.profile-menu__item:focus-visible,
.profile-menu-toggle:focus-visible,
.header-search-toggle:focus-visible {
    outline: 2px solid rgba(0, 255, 200, 0.85);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .profile-menu {
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        width: min(92vw, 340px);
        height: 100vh;
        max-height: 100vh;
        border-radius: 18px 0 0 18px;
        transform: translateX(104%);
        overflow-y: auto;
    }

    .profile-menu.is-open {
        transform: translateX(0);
    }

    #headerSearchOverlay.header-search-overlay {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        transform: translateY(104%);
    }

    #headerSearchOverlay.header-search-overlay.is-open {
        transform: translateY(0);
    }

    .search-panel {
        min-height: 78vh;
        border-radius: 24px 24px 0 0;
        padding: 14px;
    }

    .search-panel__form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-panel__submit {
        width: 100%;
    }
}

/* ===================== Profile Page Redesign ===================== */
.profile-page {
    direction: rtl;
    text-align: right;
    padding: 24px 0 10px;
}

.profile-page__hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 15, 24, 0.68);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.profile-page__hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.profile-page__hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.08);
}

.profile-page__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6, 12, 19, 0.9), rgba(6, 12, 19, 0.65));
}

.profile-page__hero-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: grid;
    gap: 18px;
}

.profile-page__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-page__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0, 209, 178, 0.55);
    background: rgba(0, 209, 178, 0.2);
    color: #f0fffb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    flex: 0 0 auto;
}

.profile-page__user-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-page__name {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.profile-page__vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-inline-start: 8px;
    border: 1px solid rgba(66, 165, 245, 0.72);
    background: rgba(33, 150, 243, 0.16);
    color: #8ad2ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.profile-page__meta {
    margin: 0;
    color: rgba(219, 230, 241, 0.82);
    font-size: 14px;
}

.profile-page__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-page__stat {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    padding: 14px;
    display: grid;
    gap: 4px;
}

.profile-page__stat-label {
    color: rgba(216, 227, 238, 0.75);
    font-size: 12px;
}

.profile-page__stat-value {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.profile-page__section {
    margin-top: 22px;
}

.profile-page__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-page__section-title {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.6vw, 28px);
}

.profile-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.profile-page__work-card {
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(11, 18, 28, 0.9), rgba(7, 13, 21, 0.95));
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.profile-page__work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
    border-color: rgba(0, 209, 178, 0.42);
}

.profile-page__work-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.profile-page__work-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page__work-body {
    padding: 10px 10px 12px;
    display: grid;
    gap: 6px;
}

.profile-page__work-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-page__work-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-page__work-chip {
    min-height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(225, 235, 245, 0.9);
    padding: 3px 8px;
    font-size: 12px;
}

.profile-page__work-chip--type {
    border-color: rgba(0, 209, 178, 0.42);
    background: rgba(0, 209, 178, 0.15);
    color: #dffef9;
}

.profile-page__empty {
    margin: 0;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(217, 228, 240, 0.78);
    text-align: center;
    padding: 22px 16px;
}

@media (max-width: 1024px) {
    .profile-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .profile-page__hero-content {
        padding: 16px;
        gap: 14px;
    }

    .profile-page__identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-page__avatar {
        width: 84px;
        height: 84px;
        font-size: 32px;
    }

    .profile-page__stats {
        grid-template-columns: 1fr;
    }

    .profile-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-page__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== Footer Final Premium Redesign ===================== */
.site-footer {
    margin-top: 32px;
    position: relative;
    overflow: clip;
    direction: rtl;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(58% 86% at 100% 0%, rgba(0, 209, 178, 0.13), transparent 72%),
        radial-gradient(52% 74% at 0% 100%, rgba(47, 141, 255, 0.08), transparent 76%),
        linear-gradient(180deg, #070c12 0%, #0b1620 100%);
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.2;
}

.site-footer::before {
    inset-inline-start: -180px;
    bottom: -220px;
    background: #00d1b2;
}

.site-footer::after {
    inset-inline-end: -190px;
    top: -220px;
    background: #2f8dff;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    width: min(1400px, 95vw);
    margin-inline: auto;
    padding: 58px 0 26px;
}

.site-footer .sf-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 0;
    direction: rtl;
    align-items: start;
}

.site-footer .sf-card {
    position: relative;
    isolation: isolate;
    min-height: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(10, 16, 24, 0.48);
    backdrop-filter: blur(8px);
    padding: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-footer .sf-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02), transparent 58%);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0.55;
}

.site-footer .sf-card:hover {
    border-color: rgba(0, 209, 178, 0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.31), 0 0 0 1px rgba(0, 209, 178, 0.08) inset;
    transform: translateY(-2px);
}

.site-footer .sf-brand {
    background:
        radial-gradient(135% 130% at 0% 0%, rgba(0, 209, 178, 0.1), transparent 58%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(10, 16, 24, 0.52);
}

.site-footer .sf-logo {
    width: min(240px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.site-footer .sf-logo-link {
    display: inline-flex;
}

.site-footer .sf-desc {
    margin: 16px 0 0;
    max-width: 36ch;
    color: rgba(225, 236, 248, 0.84);
    line-height: 1.85;
    font-size: clamp(14px, 0.92vw, 16px);
}

.site-footer .sf-social {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer .sf-social a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f1f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.site-footer .sf-social a:hover {
    background: rgba(0, 255, 200, 0.14);
    border-color: rgba(0, 255, 200, 0.45);
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.2);
    transform: translateY(-1px);
}

.site-footer .sf-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding-inline-start: 13px;
    padding-inline-end: 0;
    color: #f8fcff;
    font-size: clamp(18px, 1.08vw, 22px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: 0.2px;
}

.site-footer .sf-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: 2px;
    width: 3px;
    height: calc(100% - 4px);
    border-radius: 999px;
    background: rgba(0, 209, 178, 0.96);
    box-shadow: 0 0 10px rgba(0, 209, 178, 0.34);
}

.site-footer .sf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer .sf-column .sf-list {
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-inline-end: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 209, 178, 0.5) rgba(255, 255, 255, 0.06);
}

.site-footer .sf-column .sf-list::-webkit-scrollbar {
    width: 7px;
}

.site-footer .sf-column .sf-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.site-footer .sf-column .sf-list::-webkit-scrollbar-thumb {
    background: rgba(0, 209, 178, 0.45);
    border-radius: 999px;
}

.site-footer .sf-column .sf-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 209, 178, 0.68);
}

.site-footer .sf-list a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 34px;
    color: rgba(217, 228, 241, 0.84);
    text-decoration: none;
    transition: color 200ms ease, padding-inline 200ms ease;
}

.site-footer .sf-list a::after {
    content: "\2039";
    margin-inline-start: auto;
    width: 14px;
    text-align: center;
    color: #00d1b2;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.site-footer .sf-list a:hover {
    color: #00d1b2;
    padding-inline: 2px 8px;
}

.site-footer .sf-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.site-footer .sf-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.site-footer .sf-bottom-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    gap: 8px;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: rgba(228, 239, 252, 0.9);
    font-size: clamp(12px, 0.9vw, 14px);
    unicode-bidi: plaintext;
}

.site-footer .sf-brand-name {
    color: #d6fff8;
    font-weight: 700;
}

.site-footer .sf-fade {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    transition: opacity 460ms ease, transform 460ms ease;
}

.site-footer .sf-fade.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 1199px) {
    .site-footer__inner {
        padding-top: 46px;
    }

    .site-footer .sf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .sf-card {
        min-height: 0;
        padding: 20px;
    }

    .site-footer .sf-column .sf-list {
        max-height: 260px;
    }

    .site-footer .sf-desc {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .site-footer__inner {
        width: min(700px, 94vw);
        padding-top: 34px;
    }

    .site-footer .sf-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-footer .sf-card {
        padding: 18px;
    }

    .site-footer .sf-social {
        justify-content: center;
    }

    .site-footer .sf-title {
        font-size: clamp(18px, 5vw, 21px);
    }

    .site-footer .sf-column .sf-list {
        max-height: none;
        overflow: visible;
        padding-inline-end: 0;
    }

    .site-footer::before,
    .site-footer::after {
        display: none;
    }
}

/* ===================== Profile Menu Modern Upgrade ===================== */
.profile-menu {
    width: min(300px, 92vw);
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(0, 209, 178, 0.16), transparent 58%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(10, 16, 24, 0.88);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    direction: rtl;
}

.profile-menu::before {
    content: "";
    display: block;
    height: 1px;
    margin: 2px 6px 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.profile-menu__head {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    gap: 12px;
}

.profile-menu__avatar {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(0, 255, 200, 0.44);
    background: linear-gradient(145deg, rgba(0, 209, 178, 0.25), rgba(0, 209, 178, 0.08));
    box-shadow: 0 0 0 3px rgba(0, 209, 178, 0.12);
}

.profile-menu__name {
    font-size: 16px;
    line-height: 1.25;
}

.profile-menu__sub {
    font-size: 12px;
    opacity: 0.85;
}

.profile-menu__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 209, 178, 0.42);
    background: rgba(0, 209, 178, 0.14);
    color: #d6fff9;
    font-size: 11px;
    margin-top: 4px;
}

.profile-menu__divider {
    margin: 12px 4px 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.profile-menu__item {
    margin-bottom: 6px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-menu__item-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu__item-arrow {
    flex: 0 0 auto;
    color: rgba(0, 255, 200, 0.65);
    font-size: 15px;
    opacity: 0.55;
    transform: translateX(-2px);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.profile-menu__item:hover .profile-menu__item-arrow,
.profile-menu__item:focus-visible .profile-menu__item-arrow {
    opacity: 1;
    transform: translateX(0);
}

.profile-menu__item:hover,
.profile-menu__item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.profile-menu__item--primary {
    border-color: rgba(0, 209, 178, 0.28);
    background: rgba(0, 209, 178, 0.13);
}

.profile-menu__item--danger {
    color: #ff9cac;
}

.profile-menu__item--danger:hover,
.profile-menu__item--danger:focus-visible {
    background: rgba(255, 78, 105, 0.16);
    border-color: rgba(255, 78, 105, 0.3);
}

@media (max-width: 767px) {
    .profile-menu {
        width: min(90vw, 340px);
        border-radius: 20px 0 0 20px;
        padding: 12px;
    }
}

/* ===================== Search/Profile + Kurdish Rendering Final Fix ===================== */
:root {
    --bm-kurdish-font: 'abdulla', 'abdullaa', 'Noto Sans Arabic', 'Noto Kufi Arabic', Tahoma, 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', Arial, sans-serif;
}

html,
body,
body button,
body input,
body select,
body textarea,
body a,
body p,
body span,
body li,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
.search-panel,
.profile-menu,
.mega-menu {
    font-family: var(--bm-kurdish-font) !important;
}

:where(
    .gen-heading-title,
    .bm-card-vip-badge,
    .profile-page__vip-badge,
    .vip-lock-screen__icon,
    .profile-menu-crown,
    .profile-menu__vip-badge,
    .cm-badge.vip,
    .staff-podium-card__crown,
    .staff-stats-line span,
    .staff-member-view__stats span,
    .vip-media-badge,
    .vip-media-lock strong,
    .vip-poster-lock strong
) {
    font-family: var(--bm-kurdish-font) !important;
    font-variant-emoji: emoji;
}

.bm-card-vip-badge,
.profile-page__vip-badge,
.cm-badge.vip,
.staff-podium-card__crown,
.vip-media-badge,
.vip-media-lock strong,
.vip-poster-lock strong,
.profile-menu-crown,
.profile-menu__vip-badge {
    line-height: 1.25;
}

.staff-podium-card__crown {
    display: inline-block;
    vertical-align: middle;
    margin-inline-end: 4px;
}

.navbar-premium {
    height: 76px;
    min-height: 76px;
}

.header-actions {
    align-items: center;
}

.icon-btn,
.icon-btn:hover,
.icon-btn:focus-visible {
    transform: none !important;
    font-size: inherit !important;
    line-height: 1;
}

.gen-account-holder.profile-menu-shell {
    position: relative;
}

.profile-menu {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    left: auto !important;
    max-width: min(300px, 92vw);
}

@media (max-width: 1023px) {
    .navbar-premium {
        height: 68px;
        min-height: 68px;
    }
}

@media (max-width: 767px) {
    .navbar-premium {
        height: 60px;
        min-height: 60px;
    }

    .profile-menu {
        position: fixed !important;
        top: 0 !important;
        inset-inline-end: 0 !important;
        inset-inline-start: auto !important;
        width: min(92vw, 340px);
        max-width: 92vw;
        height: 100vh;
        border-radius: 18px 0 0 18px;
        transform: translateX(104%);
        overflow-y: auto;
    }

    .profile-menu.is-open {
        transform: translateX(0);
    }
}

.search-panel__filters {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.search-panel__filter {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(225, 235, 245, 0.9);
    cursor: pointer;
    line-height: 1;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.search-panel__filter:hover,
.search-panel__filter:focus-visible {
    color: #fff;
    border-color: rgba(0, 209, 178, 0.45);
    background: rgba(0, 209, 178, 0.14);
    outline: none;
}

.search-panel__filter.is-active {
    color: #fff;
    border-color: rgba(0, 209, 178, 0.62);
    background: rgba(0, 209, 178, 0.2);
}

.search-panel__close {
    border-radius: 999px;
}

/* Force genre list text shaping and avoid icon-font corruption */
.mega-menu .mega-genres-scroll,
.mega-menu .mega-genres-scroll a,
.mega-menu .mega-genres-scroll .krd2,
.mega-menu .mega-genres-scroll span,
.mega-menu .mega-genres-scroll *:not(i):not(svg):not(path):not(.fa):not([class*="icon"]) {
    font-family: var(--bm-kurdish-font) !important;
    direction: rtl;
    text-align: right;
    letter-spacing: 0 !important;
    text-transform: none !important;
    unicode-bidi: plaintext;
    font-variant-ligatures: normal !important;
}

.mega-menu .mega-genres-scroll a::before,
.mega-menu .mega-genres-scroll a::after,
.mega-menu .mega-genres-scroll .krd2::before,
.mega-menu .mega-genres-scroll .krd2::after {
    content: none !important;
    font-family: inherit !important;
}

.mega-menu .mega-genres-scroll i,
.mega-menu .mega-genres-scroll i::before {
    font-family: inherit;
}
/* ==========================================================
   Existing Movie/Series Cards Refactor (in-place classes)
   ========================================================== */
.row.movie-grid,
.row.movie-grid * {
    box-sizing: border-box;
}

.gen-section-padding-1.home-section {
    background:
        radial-gradient(circle at 10% 10%, #0f1c2d 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, #081018 0%, transparent 40%),
        linear-gradient(135deg, #060b14, #0b1622);
}

.row.movie-grid {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px !important;
    align-items: stretch;
    justify-content: center;
    background: transparent !important;
}

.row.movie-grid > .moviedd,
.row.movie-grid > .card-col,
.row.movie-grid > .bm-native-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex: unset !important;
}

@media (min-width: 768px) {
    .row.movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .row.movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .row.movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.movie.movie-card,
.movie.movie-card .gen-carousel-movies-style-3,
.movie.movie-card .gen-movie-contain {
    height: 100%;
}

.movie.movie-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.movie.movie-card .gen-movie-contain {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: translateY(0) scale(1);
    transition: transform 250ms ease;
    will-change: transform;
}

.movie.movie-card:hover .gen-carousel-movies-style-3 .gen-movie-contain,
.movie.movie-card:hover .gen-movie-contain {
    transform: translateY(-8px) scale(1.05) !important;
}

.movie.movie-card .gen-movie-img,
.movie.movie-card .card-poster,
.movie.movie-card .media-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: #0a1320;
}

.movie.movie-card .gen-movie-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
    opacity: 0;
    z-index: 1;
    transition: opacity 250ms ease;
    pointer-events: none;
}

.movie.movie-card:hover .gen-movie-img::before {
    opacity: 1;
}

.movie.movie-card .gen-movie-img::after {
    content: none !important;
}

.movie.movie-card .gen-movie-img img,
.movie.movie-card .gen-movie-img .newimage,
.movie.movie-card .card-poster img,
.movie.movie-card .media-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}

.movie.movie-card .gen-movie-action {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none !important;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.movie.movie-card:hover .gen-movie-action {
    opacity: 1;
    visibility: visible;
}

.movie.movie-card .gen-info-contain,
.movie.movie-card .card-body,
.movie.movie-card .media-footer {
    margin-top: 12px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 24px 24px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.movie.movie-card .gen-movie-info,
.movie.movie-card .gen-movie-meta-holder {
    width: 100%;
    text-align: center;
}

.movie.movie-card .gen-movie-info h3,
.movie.movie-card .card-title {
    margin: 0;
    min-height: 48px;
    max-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.movie.movie-card .gen-movie-info h3::after,
.movie.movie-card .card-title::after {
    content: none !important;
    display: none !important;
}

.movie.movie-card .gen-movie-info h3 a,
.movie.movie-card .card-title a {
    color: #ffffff;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie.movie-card .gen-movie-meta-holder {
    direction: ltr !important;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.movie.movie-card .gen-movie-meta-holder ul,
.movie.movie-card .meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.movie.movie-card .gen-movie-meta-holder ul li,
.movie.movie-card .meta-row li {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    color: #9aa4b2;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.movie.movie-card .gen-movie-meta-holder ul li + li::before,
.movie.movie-card .meta-row li + li::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

.movie-card .gen-movie-meta-holder ul > li::before,
.movie-card .gen-movie-meta-holder ul > li::after,
.movie-card .meta-row > li::before,
.movie-card .meta-row > li::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
}

.movie.movie-card .movie-genre-list {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.movie.movie-card .movie-genre-badge {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    color: #9aa4b2;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.movie.movie-card .card-more-btn {
    margin-top: auto;
    height: 38px;
    min-width: 120px;
    width: 120px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #eef3fb;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie.movie-card .card-more-btn:hover {
    background: rgba(0, 255, 200, 0.12);
    border-color: rgba(0, 255, 200, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.movie.movie-card .card-more-btn:active {
    transform: scale(0.98);
}

.movie.movie-card .card-more-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 200, 0.5);
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .moviedd {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
}

@media (min-width: 1800px) {
    .container-max {
        max-width: 1720px !important;
    }
}

/* ===================== Responsive RTL Stability Fix (Mobile/Tablet Only) ===================== */
@media (max-width: 576px) {
    #topShell .navbar-premium {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        min-height: 60px !important;
        height: 60px !important;
        width: 100%;
        max-width: 100%;
    }

    #topShell .header-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-self: end !important;
        gap: 6px !important;
        min-width: 0;
        max-width: 100%;
        flex-wrap: nowrap !important;
    }

    #topShell .header-actions > * {
        flex: 0 0 auto;
    }

    #topShell .header-vip-link {
        padding-inline: 8px !important;
        min-width: 38px !important;
    }

    #topShell .navbar-premium .nav-center-wrap {
        position: fixed !important;
        top: 60px !important;
        inset-inline-start: 0 !important;
        inset-inline-end: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100vh - 60px) !important;
        padding: 12px !important;
        border-inline-start: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 0 0 14px 14px !important;
        background: rgba(8, 14, 22, 0.98) !important;
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28) !important;
        overflow-x: clip !important;
        overflow-y: auto !important;
        transform: translateY(-110%) !important;
        transition: transform 0.24s ease !important;
        z-index: 10020 !important;
    }

    #topShell .navbar-premium .nav-center-wrap.is-open {
        transform: translateY(0) !important;
    }

    #topShell .mobile-nav-backdrop {
        inset: 60px 0 0 !important;
    }

    #topShell .nav-center-pill {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        direction: rtl !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: right !important;
        row-gap: 8px !important;
        column-gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        white-space: normal !important;
        overflow-x: clip !important;
    }

    #topShell .nav-center-pill .menu-item {
        flex: 0 1 auto;
        max-width: 100%;
    }

    #topShell .nav-center-pill .menu-item.menu-more {
        flex: 1 1 100% !important;
    }

    #topShell .nav-center-pill .menu-item > a,
    #topShell .nav-center-pill .menu-item > button {
        width: auto !important;
        max-width: 100% !important;
        justify-content: center !important;
        min-height: 38px !important;
        padding-inline: 12px !important;
    }

    #topShell .menu-more > .mega-menu {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 6px !important;
        grid-template-columns: 1fr !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: auto !important;
    }

    #topShell .menu-more.is-open > .mega-menu {
        max-height: min(70vh, 620px) !important;
        padding-block: 4px !important;
    }

    .hero-section-wrapper,
    .hero-section,
    .hero-section__carousel,
    .hero-section__slide,
    .hero-section__inner {
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    .hero-section__slide,
    .hero-section__inner {
        min-height: 0 !important;
    }

    .hero-section__inner {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 14px 12px 52px !important;
    }

    .hero-section__poster-shell {
        order: 1 !important;
        justify-content: center !important;
    }

    .hero-section__content {
        order: 2 !important;
        max-width: 100% !important;
    }

    .hero-section__actions {
        grid-template-columns: 1fr !important;
    }

    .hero-section .owl-dots {
        max-width: calc(100% - 20px) !important;
    }

    .row.movie-grid,
    .row.movie-grid > .moviedd,
    .row.movie-grid > .card-col,
    .row.movie-grid > .bm-native-card {
        max-width: 100%;
    }
}

@media (min-width: 577px) and (max-width: 1024px) {
    #topShell .navbar-premium {
        grid-template-columns: 1fr auto 1fr !important;
        min-height: 68px !important;
        height: auto !important;
        gap: 10px !important;
        width: 100%;
        max-width: 100%;
    }

    #topShell .navbar-premium .nav-center-wrap {
        grid-column: 2 !important;
        justify-self: center !important;
        width: min(100%, 760px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: static !important;
        transform: none !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #topShell .nav-center-pill {
        display: flex !important;
        flex-wrap: wrap !important;
        direction: rtl !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: right !important;
        row-gap: 8px !important;
        column-gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 10px !important;
        white-space: normal !important;
        overflow-x: clip !important;
    }

    #topShell .nav-center-pill .menu-item {
        flex: 0 1 auto;
        max-width: 100%;
    }

    #topShell .nav-center-pill .menu-item.menu-more {
        flex: 1 1 100% !important;
    }

    #topShell .nav-center-pill .menu-item > a,
    #topShell .nav-center-pill .menu-item > button {
        min-height: 36px !important;
        padding-inline: 12px !important;
    }

    #topShell .menu-more > .mega-menu {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 6px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: auto !important;
    }

    #topShell .menu-more.is-open > .mega-menu {
        max-height: min(68vh, 620px) !important;
        padding-block: 6px !important;
    }

    .hero-section-wrapper,
    .hero-section,
    .hero-section__carousel,
    .hero-section__slide,
    .hero-section__inner {
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    .hero-section__slide,
    .hero-section__inner {
        min-height: 0 !important;
    }

    .hero-section__inner {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 16px 16px 56px !important;
    }

    .hero-section__poster-shell {
        order: 1 !important;
        justify-content: center !important;
    }

    .hero-section__content {
        order: 2 !important;
        max-width: 100% !important;
    }

    .hero-section__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hero-section .owl-dots {
        max-width: calc(100% - 24px) !important;
    }

    .row.movie-grid,
    .row.movie-grid > .moviedd,
    .row.movie-grid > .card-col,
    .row.movie-grid > .bm-native-card {
        max-width: 100%;
    }
}

/* ===================== Mobile/Tablet Offcanvas Navigation (<=1024px) ===================== */
@media (max-width: 1024px) {
    #topShell .navbar-premium {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        min-height: 60px !important;
        height: 60px !important;
        width: 100%;
        max-width: 100%;
    }

    #topShell .navbar-premium .nav-center-wrap {
        display: none !important;
        pointer-events: none !important;
    }

    #topShell .menu-more > .mega-menu {
        display: none !important;
    }

    #topShell .header-actions {
        justify-self: end !important;
        gap: 6px !important;
    }

    #topShell .nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #topShell .mobile-nav-backdrop {
        position: fixed !important;
        inset: 0 !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.45) !important;
        z-index: 11020 !important;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    #topShell .mobile-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.offcanvas-open {
        overflow: hidden !important;
    }

    #topShell .mobile-offcanvas-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: auto;
        width: min(85vw, 420px);
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        z-index: 11030;
        background: rgba(8, 14, 22, 0.98);
        border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: -16px 0 34px rgba(0, 0, 0, 0.35);
        transform: translate3d(100%, 0, 0);
        transition: transform 250ms ease;
        overflow: hidden;
        direction: rtl;
        text-align: right;
    }

    #topShell .mobile-offcanvas-menu.is-open {
        transform: translate3d(0, 0, 0);
    }

    #topShell .mobile-offcanvas-menu__head {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 58px;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #topShell .mobile-offcanvas-menu__close {
        position: absolute;
        top: 10px;
        right: 12px;
        left: auto;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    #topShell .mobile-offcanvas-menu__body {
        height: calc(100vh - 58px);
        overflow-y: auto;
        overflow-x: clip;
        padding: 10px 10px 16px;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 255, 200, 0.62) rgba(255, 255, 255, 0.08);
    }

    #topShell .mobile-offcanvas-menu__body::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    #topShell .mobile-offcanvas-menu__body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 999px;
    }

    #topShell .mobile-offcanvas-menu__body::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
        background: linear-gradient(180deg, rgba(0, 255, 200, 0.78), rgba(0, 170, 160, 0.9));
    }

    #topShell .mobile-offcanvas-menu__body::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(0, 255, 200, 0.92), rgba(0, 170, 160, 1));
    }

    #topShell .mobile-offcanvas-menu__list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 8px;
    }

    #topShell .mobile-offcanvas-menu__item {
        margin: 0;
    }

    #topShell .mobile-offcanvas-menu__link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-height: 42px;
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: #eef3fb;
        text-decoration: none;
        padding-inline: 12px;
        direction: rtl;
        text-align: right;
    }

    #topShell .mobile-offcanvas-menu__icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(0, 255, 200, 0.9);
    }

    #topShell .mobile-offcanvas-menu__icon svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    #topShell .mobile-offcanvas-menu__label {
        min-width: 0;
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 2026-02 Responsive + Trending hardening (final override) */
.bm-most-viewed-shell,
.bm-most-viewed-head,
.bm-most-viewed-pane,
.bm-trending-top,
.bm-trending-grid,
.bm-trending-rank-card,
.bm-trending-grid-card,
.bm-trending-rank-body,
.bm-trending-grid-body {
    min-width: 0;
    max-width: 100%;
}

.bm-most-viewed-shell {
    isolation: isolate;
}

.bm-most-viewed-filters {
    flex-wrap: wrap;
}

.bm-filter-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-trending-hero-content {
    max-width: min(100%, 56ch);
}

.bm-trending-hero-title,
.bm-trending-rank-title a,
.bm-trending-grid-title a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bm-trending-hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-trending-grid-meta {
    flex-wrap: wrap;
}

.movie.movie-card .gen-movie-meta-holder,
.movie.movie-card .meta-row,
.movie.movie-card .gen-info-contain,
.movie.movie-card .card-body,
.movie.movie-card .media-footer {
    min-width: 0;
    width: 100%;
}

.movie.movie-card .gen-movie-meta-holder ul,
.movie.movie-card .meta-row {
    flex-wrap: wrap !important;
}

.movie.movie-card .gen-movie-meta-holder ul li,
.movie.movie-card .meta-row li {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie.movie-card .gen-movie-info h3 a {
    overflow-wrap: anywhere;
}

.movie.movie-card .card-more-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie.movie-card .meta-badge--type {
    color: #d5fff8 !important;
}

@media (max-width: 991px) {
    .bm-most-viewed-head {
        align-items: stretch;
    }

    .bm-most-viewed-title {
        font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    }

    .bm-most-viewed-sub {
        font-size: clamp(0.82rem, 3.1vw, 0.95rem);
        margin-top: 4px;
    }
}

@media (max-width: 767px) {
    .bm-most-viewed-filters {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        border-radius: 14px;
        padding: 4px;
        gap: 4px;
    }

    .bm-filter-btn {
        width: 100%;
        min-width: 0;
        padding: 10px 6px;
        font-size: clamp(0.78rem, 3.4vw, 0.92rem);
    }

    .bm-trending-top {
        gap: 10px;
    }

    .bm-trending-hero-card {
        min-height: 268px;
        border-radius: 16px;
    }

    .bm-trending-hero-title {
        font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    }

    .bm-trending-hero-desc {
        -webkit-line-clamp: 2;
        font-size: 0.87rem;
        line-height: 1.65;
    }

    .bm-trending-side-wrap,
    .bm-trending-grid {
        gap: 10px;
    }

    .bm-trending-grid {
        margin-top: 10px;
        grid-template-columns: 1fr;
    }

    .bm-trending-rank-card,
    .bm-trending-grid-card {
        border-radius: 14px;
    }

    .bm-trending-grid-card {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        align-items: center;
    }

    .bm-trending-grid-poster {
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 2 / 3;
    }

    .bm-trending-grid-body {
        padding: 0;
        gap: 8px;
    }

    .bm-rank-badge {
        width: 32px;
        height: 32px;
        font-size: 12px;
        top: 8px;
        inset-inline-start: 8px;
    }

    .bm-rank-badge--hero {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .row.movie-grid {
        gap: 14px !important;
    }
}

@media (max-width: 768px) {
    .mobile-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .mobile-grid-2 > * {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .row.movie-grid.mobile-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .row.movie-grid.mobile-grid-2 > .moviedd,
    .row.movie-grid.mobile-grid-2 > .card-col,
    .row.movie-grid.mobile-grid-2 > .bm-native-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: unset !important;
    }

    .movie.movie-card .gen-movie-img,
    .movie.movie-card .card-poster,
    .movie.movie-card .media-poster {
        aspect-ratio: 2 / 3 !important;
    }

    .movie.movie-card .gen-movie-img img,
    .movie.movie-card .gen-movie-img .newimage,
    .movie.movie-card .card-poster img,
    .movie.movie-card .media-poster img,
    .movie.movie-card .media-poster .newimage {
        object-fit: cover !important;
        object-position: center !important;
    }

    .hero-section__poster-shell {
        justify-content: center !important;
        margin-inline: auto !important;
    }

    .hero-section__poster-frame {
        width: min(62vw, 220px) !important;
        max-height: 330px;
        margin-inline: auto !important;
        border-radius: 14px !important;
    }

    .hero-section__poster {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bm-most-viewed-section .bm-most-viewed-shell,
    .bm-most-viewed-section .bm-most-viewed-pane {
        overflow: hidden !important;
    }

    .bm-most-viewed-section .bm-trending-top.mobile-grid-2,
    .bm-most-viewed-section .bm-trending-grid.mobile-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
        grid-auto-rows: 1fr !important;
    }

    .bm-most-viewed-section .bm-trending-top.mobile-grid-2 > .bm-trending-hero-wrap,
    .bm-most-viewed-section .bm-trending-top.mobile-grid-2 > .bm-trending-side-wrap {
        display: contents !important;
    }

    .bm-most-viewed-section .bm-trending-grid.mobile-grid-2 {
        margin-top: 14px !important;
    }

    .bm-most-viewed-section .bm-trending-top.mobile-grid-2 > *,
    .bm-most-viewed-section .bm-trending-grid.mobile-grid-2 > * {
        min-width: 0 !important;
        float: none !important;
    }

    .bm-most-viewed-section .bm-trending-hero-card,
    .bm-most-viewed-section .bm-trending-rank-card,
    .bm-most-viewed-section .bm-trending-grid-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        overflow: hidden !important;
        border-radius: 14px !important;
        padding: 0 !important;
        transform: none !important;
        min-width: 0 !important;
    }

    .bm-most-viewed-section .bm-trending-hero-card {
        aspect-ratio: 2 / 3 !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .bm-most-viewed-section .bm-trending-hero-overlay {
        background: linear-gradient(180deg, rgba(4, 12, 28, 0.14) 0%, rgba(3, 9, 22, 0.82) 66%, rgba(2, 7, 18, 0.95) 100%) !important;
    }

    .bm-most-viewed-section .bm-trending-rank-card {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .bm-most-viewed-section .bm-trending-rank-poster,
    .bm-most-viewed-section .bm-trending-grid-poster {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 2 / 3 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    .bm-most-viewed-section .bm-trending-rank-poster img,
    .bm-most-viewed-section .bm-trending-grid-poster img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .bm-most-viewed-section .bm-trending-hero-content,
    .bm-most-viewed-section .bm-trending-rank-body,
    .bm-most-viewed-section .bm-trending-grid-body {
        margin-top: auto !important;
        padding: 10px 11px !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .bm-most-viewed-section .bm-trending-hero-content {
        max-width: 100% !important;
    }

    .bm-most-viewed-section .bm-trending-hero-title,
    .bm-most-viewed-section .bm-trending-rank-title,
    .bm-most-viewed-section .bm-trending-grid-title {
        margin: 0 !important;
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
        min-height: calc(1.35em * 2) !important;
    }

    .bm-most-viewed-section .bm-trending-hero-title,
    .bm-most-viewed-section .bm-trending-rank-title a,
    .bm-most-viewed-section .bm-trending-grid-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .bm-most-viewed-section .bm-trending-hero-desc {
        display: none !important;
    }

    .bm-most-viewed-section .bm-trending-meta,
    .bm-most-viewed-section .bm-trending-grid-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
    }

    .bm-most-viewed-section .bm-kind-pill,
    .bm-most-viewed-section .bm-trending-views--small {
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bm-most-viewed-section .bm-watch-btn {
        width: 100% !important;
        margin-top: auto !important;
        min-height: 34px !important;
        padding: 8px 10px !important;
        justify-content: center !important;
        transform: none !important;
    }

    .bm-most-viewed-section .bm-rank-badge {
        position: absolute !important;
        top: 8px !important;
        inset-inline-end: 8px !important;
        inset-inline-start: auto !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        font-size: 11px !important;
        z-index: 6 !important;
    }

    .bm-most-viewed-section .bm-rank-badge--hero {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }
}

@media (min-width: 576px) and (max-width: 1023px) {
    .row.movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .row.movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1440px) and (max-width: 1799px) {
    .row.movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1800px) {
    .row.movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

.bm-continue-percent {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #082027;
    border: 1px solid rgba(0, 170, 153, 0.4);
    background: linear-gradient(135deg, #00c0a8, #00a8d6);
}

.bm-continue-track {
    margin-top: 8px;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.bm-continue-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00c0a8, #00a8d6);
}

.bm-ltr-fix {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    .trending-section {
        overflow-x: clip;
    }

    /* 2-column grid for dedicated mobile trending list only */
    .trending-section .bm-trending-mobile-grid.trending-list.mobile-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
        transform: none !important;
    }

    /* kill swiper/slider layout forcing widths/transforms */
    .trending-section .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        transform: none !important;
    }

    .trending-section .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }

    /* card consistency */
    .trending-section .trending-item,
    .trending-section .swiper-slide {
        height: 100% !important;
        min-width: 0 !important;
        float: none !important;
    }

    .trending-section .card,
    .trending-section .trending-card,
    .trending-section .trending-item {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        position: relative !important;
        transform: none !important;
    }

    /* poster locked ratio */
    .trending-section .poster,
    .trending-section .poster-wrap,
    .trending-section .card-poster {
        position: relative !important;
        aspect-ratio: 2 / 3 !important;
        overflow: hidden !important;
    }

    .trending-section .poster img,
    .trending-section .poster-wrap img,
    .trending-section .card-poster img,
    .trending-section .bm-trending-rank-poster img,
    .trending-section .bm-trending-grid-poster img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* badge fixed position */
    .trending-section .badge,
    .trending-section .rank,
    .trending-section .trend-badge {
        position: absolute !important;
        top: 8px !important;
        inset-inline-end: 8px !important;
        z-index: 5 !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
    }

    /* text area clamp + push button to bottom */
    .trending-section .content,
    .trending-section .card-body {
        padding: 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .trending-section .title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.35 !important;
        min-height: calc(1.35em * 2) !important;
    }

    .trending-section .trending-item .cta,
    .trending-section .trending-item .btn,
    .trending-section .trending-item button {
        margin-top: auto !important;
        width: 100% !important;
    }
}

.bm-trending-mobile-grid {
    display: none;
}

@media (max-width: 768px) {
    /* Strong hide for legacy mobile lists to prevent duplication */
    .trending-section .bm-trending-top.trending-list.mobile-grid-2,
    .trending-section .bm-trending-grid.trending-list.mobile-grid-2 {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .trending-section .bm-trending-mobile-grid.trending-list.mobile-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
        margin-top: 14px !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-trending-grid-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        background: rgba(6, 15, 34, 0.92) !important;
        border: 1px solid rgba(109, 143, 213, 0.24) !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-trending-grid-poster {
        display: block !important;
        aspect-ratio: 2 / 3 !important;
        overflow: hidden !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-trending-grid-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        min-width: 0 !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-trending-grid-title,
    .trending-section .bm-trending-mobile-grid .bm-trending-grid-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: calc(1.35em * 2) !important;
        line-height: 1.35 !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-trending-grid-meta {
        margin-top: auto !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-kind-pill,
    .trending-section .bm-trending-mobile-grid .bm-trending-views--small {
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .trending-section .bm-trending-mobile-grid .bm-rank-badge {
        position: absolute !important;
        top: 8px !important;
        inset-inline-end: 8px !important;
        inset-inline-start: auto !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        font-size: 11px !important;
        z-index: 6 !important;
    }
}

/* ===================== Search Overlay Modern Refresh ===================== */
#headerSearchOverlay.header-search-overlay {
    width: min(980px, 94vw) !important;
}

#headerSearchOverlay .search-panel {
    border-radius: 26px !important;
    border: 1px solid rgba(120, 155, 224, 0.22) !important;
    background:
        radial-gradient(circle at 88% 8%, rgba(0, 209, 178, 0.16), transparent 44%),
        radial-gradient(circle at 4% 86%, rgba(76, 126, 255, 0.14), transparent 38%),
        linear-gradient(155deg, rgba(4, 12, 28, 0.97), rgba(6, 15, 34, 0.96)) !important;
    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 36px rgba(0, 209, 178, 0.12) !important;
    backdrop-filter: blur(18px) saturate(120%);
    padding: clamp(15px, 2vw, 22px) !important;
}

#headerSearchOverlay .search-panel__head {
    margin-bottom: 14px !important;
    min-height: 42px !important;
}

#headerSearchOverlay .search-panel__title {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important;
    letter-spacing: 0 !important;
}

#headerSearchOverlay .search-panel__close {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
}

#headerSearchOverlay .search-panel__form {
    display: grid !important;
    gap: 12px !important;
}

#headerSearchOverlay .search-panel__top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

#headerSearchOverlay .search-panel__input-wrap--main {
    min-width: 0;
}

#headerSearchOverlay .search-panel__input {
    height: 50px !important;
    border-radius: 14px !important;
    border-color: rgba(126, 161, 230, 0.26) !important;
    background: rgba(7, 18, 38, 0.72) !important;
    color: #ecf4ff !important;
}

#headerSearchOverlay .search-panel__input::placeholder {
    color: rgba(199, 213, 230, 0.72);
}

#headerSearchOverlay .search-panel__input-icon {
    inset-inline-end: 14px !important;
}

#headerSearchOverlay .search-panel__submit {
    min-height: 50px !important;
    min-width: 132px;
    border-radius: 14px !important;
    font-weight: 700;
    letter-spacing: 0.1px;
    box-shadow: 0 14px 26px rgba(0, 209, 178, 0.25) !important;
}

#headerSearchOverlay .search-panel__advanced {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#headerSearchOverlay .search-panel__field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

#headerSearchOverlay .search-panel__field-label {
    color: rgba(199, 216, 235, 0.82);
    font-size: 12px;
    line-height: 1;
    padding-inline: 2px;
}

#headerSearchOverlay .search-panel__input--field {
    height: 44px !important;
    border-radius: 12px !important;
    padding-inline: 12px !important;
    text-align: left !important;
    direction: ltr;
    unicode-bidi: plaintext;
}

#headerSearchOverlay .search-panel__filters {
    margin-top: 12px !important;
    justify-content: flex-end !important;
}

#headerSearchOverlay .search-panel__filter {
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border-color: rgba(127, 161, 228, 0.28) !important;
    background: rgba(8, 18, 38, 0.64) !important;
    color: rgba(224, 236, 250, 0.9) !important;
}

#headerSearchOverlay .search-panel__filter.is-active {
    color: #062e2c !important;
    border-color: rgba(0, 209, 178, 0.76) !important;
    background: linear-gradient(135deg, rgba(44, 238, 208, 0.96), rgba(74, 215, 255, 0.94)) !important;
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.24) !important;
}

#headerSearchOverlay .search-panel__results {
    margin-top: 12px !important;
    border-radius: 14px;
    border: 1px solid rgba(122, 156, 223, 0.2);
    background: rgba(6, 14, 30, 0.6);
    padding: 10px;
    max-height: min(54vh, 440px) !important;
}

#headerSearchOverlay .search-panel__result-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
}

#headerSearchOverlay .search-panel__result-item {
    border-radius: 12px !important;
    border-color: rgba(123, 155, 220, 0.2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

#headerSearchOverlay .search-panel__result-item:hover,
#headerSearchOverlay .search-panel__result-item:focus-visible {
    border-color: rgba(0, 209, 178, 0.46) !important;
    background: rgba(0, 209, 178, 0.08) !important;
}

@media (max-width: 991px) {
    #headerSearchOverlay.header-search-overlay {
        width: min(96vw, 760px) !important;
    }

    #headerSearchOverlay .search-panel__advanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #headerSearchOverlay .search-panel__result-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #headerSearchOverlay .search-panel__top-row {
        grid-template-columns: 1fr;
    }

    #headerSearchOverlay .search-panel__submit {
        width: 100%;
    }

    #headerSearchOverlay .search-panel__advanced {
        grid-template-columns: 1fr;
    }

    #headerSearchOverlay .search-panel__results {
        max-height: 46vh !important;
    }
}

@media (max-width: 430px) {
    #headerSearchOverlay .search-panel__advanced {
        grid-template-columns: 1fr;
    }
}

/* ===================== Search Modal Stability Override ===================== */
body.search-modal-open {
    overflow: hidden !important;
}

#topShell .header-actions,
#topShell .gen-menu-search-block,
#topShell #headerSearchToggle {
    position: relative !important;
    z-index: 10005 !important;
    pointer-events: auto !important;
}

#headerSearchBackdrop {
    position: fixed !important;
    inset: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.58) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
}

#headerSearchBackdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#headerSearchOverlay.header-search-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(12px, 2.5vw, 20px) !important;
    border: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
}

#headerSearchOverlay.header-search-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#headerSearchOverlay .search-panel {
    width: min(980px, 95vw) !important;
    max-width: 95vw !important;
    max-height: min(85dvh, 860px) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
}

@media (max-width: 768px) {
    #headerSearchOverlay.header-search-overlay {
        align-items: flex-start !important;
        padding-top: 72px !important;
        padding-bottom: 12px !important;
    }

    #headerSearchOverlay .search-panel {
        width: 95vw !important;
        max-height: calc(100dvh - 86px) !important;
        border-radius: 20px !important;
    }

    #headerSearchOverlay .search-panel__advanced {
        grid-template-columns: 1fr !important;
    }
}

/* ===================== Mobile Header Search Visibility Fix ===================== */
@media (max-width: 768px) {
    #topShell .header-actions {
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }

    #topShell .header-actions > * {
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    #topShell .gen-menu-search-block {
        display: inline-flex !important;
        align-items: center !important;
    }

    #topShell .header-search-toggle,
    #topShell .profile-menu-toggle,
    #topShell .nav-toggle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    #topShell .header-vip-link {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        gap: 0 !important;
        justify-content: center !important;
    }

    #topShell .header-vip-link__text {
        display: none !important;
    }
}

/* ===================== Footer Developer Credit ===================== */
.site-footer .footer-credit {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    direction: rtl;
}

.site-footer .footer-credit__line {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(231, 235, 246, 0.9);
    font-size: 0.93rem;
    line-height: 1.45;
}

.site-footer .footer-credit__label {
    color: rgba(196, 203, 224, 0.86);
    font-weight: 600;
}

.site-footer .credit-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.site-footer .credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 110, 0.55);
    background: linear-gradient(135deg, #ffe7a0 0%, #f5cf6a 42%, #cc9b2d 100%);
    color: #2b1b05;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(245, 207, 106, 0);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.site-footer .credit-badge:hover,
.site-footer .credit-badge:focus-visible {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.03);
    box-shadow: 0 0 14px rgba(245, 207, 106, 0.42);
}

.site-footer .credit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 4px;
    color: rgba(243, 205, 113, 0.9);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer .credit-link:hover,
.site-footer .credit-link:focus-visible {
    color: #ffd772;
    text-shadow: 0 0 10px rgba(255, 215, 114, 0.34);
}

@media (max-width: 575px) {
    .site-footer .footer-credit {
        gap: 10px;
    }

    .site-footer .footer-credit__line {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .credit-badge,
    .site-footer .credit-link {
        transition: none !important;
    }
}

/* ===================== VIP Lock Screen ===================== */
.vip-lock-screen {
    position: relative;
    margin-top: 18px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 103, 0.34);
    background: #090c13;
}

.vip-lock-screen__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 201, 95, 0.22), transparent 40%),
        radial-gradient(circle at 88% 0, rgba(106, 142, 234, 0.16), transparent 44%),
        linear-gradient(135deg, rgba(9, 12, 19, 0.95), rgba(13, 18, 30, 0.96));
}

.vip-lock-screen__card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    padding: clamp(22px, 4vw, 40px);
    background: rgba(18, 25, 42, 0.56);
    backdrop-filter: blur(8px);
}

.vip-lock-screen__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 204, 103, 0.54);
    background: rgba(255, 204, 103, 0.12);
}

.vip-lock-screen__card h2 {
    margin: 0;
    color: #fff4d2;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.vip-lock-screen__card p {
    margin: 0;
    color: rgba(233, 238, 253, 0.88);
}

.vip-lock-screen__actions {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.vip-lock-screen__btn {
    min-height: 44px;
    border-radius: 999px;
    text-decoration: none;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #eef3ff;
    background: rgba(255, 255, 255, 0.05);
}

.vip-lock-screen__btn--gold {
    border-color: rgba(255, 204, 103, 0.72);
    color: #2b1d05;
    background: linear-gradient(135deg, #ffe4a0, #cb9730);
}

.vip-lock-screen__btn--ghost {
    color: #e9f1ff;
}
