/* ================================================================
   FlayFlix — Unified CSS  v50.1
   يستبدل: v39-plus, v40-menu, v47, v48-3, v49-core, v50,
            home-clean-v23, netflix-home, responsive-v2,
            enterprise-v9/v10/v11, v30-v37, next-experience,
            admin-pro-v7, watch-gate, player-pro, tv-edition
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --ff-red:     #e50914;
    --ff-bg:      #080808;
    --ff-panel:   #121212;
    --ff-text:    #fff;
    --ff-muted:   #a7a7a7;
    --ff-blue:    #4dd4ff;
    --ff-radius:  14px;
}

/* ── Base ────────────────────────────────────────────────────── */
html, body       { max-width:100%; overflow-x:hidden; background:var(--ff-bg); }
img, video, iframe { max-width:100%; }
::selection      { background:#ff2d3d; color:#fff; }
.sidebar ::selection { background:#dc2626 !important; color:#fff !important; }

/* ── Navigation ─────────────────────────────────────────────── */
.ff-v40-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0; padding: 0;
    list-style: none;
    position: relative;
    z-index: 5000;
}
.ff-v40-nav > li { position: relative; list-style: none; }
.ff-v40-nav > li.ff-mega-li { position: static; }

.ff-v40-menu-shell {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,.65);
    border-radius: 7px;
    overflow: visible;
}
.ff-v40-menu-link {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    padding: 8px 11px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.ff-v40-menu-link:hover  { color: var(--ff-blue) !important; }
.ff-v40-menu-link.active { color: var(--ff-blue) !important; }

.ff-v40-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 34px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.08);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s;
}
.ff-v40-menu-toggle:hover,
.ff-v40-menu-toggle[aria-expanded="true"] {
    background: rgba(77,212,255,.15);
    color: var(--ff-blue);
}

/* ── Dropdown & Mega — closed by default ──────────────────── */
.ff-v40-dropdown, .ff-v40-mega { display: none; }

/* Opens via JS .ff-open class (click-only) */
.ff-v40-nav li.ff-open > .ff-v40-dropdown,
.ff-v40-nav li.ff-open > .ff-v40-mega { display: block; }

/* Bridge zone — keeps panel open while mouse moves */
.ff-v40-dropdown:before, .ff-v40-mega:before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -14px;
    height: 14px;
}

/* ── Dropdown ───────────────────────────────────────────────── */
.ff-v40-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #070c17;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 8px;
    z-index: 10080;
    list-style: none;
    box-shadow: 0 20px 48px rgba(0,0,0,.5);
}
.ff-v40-dropdown li a {
    display: block;
    color: #fff !important;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.ff-v40-dropdown li a:hover { background: #151d2b; color: var(--ff-red) !important; }

/* ── Mega Menu ──────────────────────────────────────────────── */
.ff-v40-mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, calc(100vw - 48px));
    background: rgba(8,12,20,.99);
    border: 1px solid rgba(255,255,255,.1);
    border-top: 3px solid var(--ff-red);
    border-radius: var(--ff-radius);
    box-shadow: 0 26px 80px rgba(0,0,0,.65);
    padding: 22px 26px;
    z-index: 10070;
}
.ff-v40-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 24px;
}
.ff-v40-mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid rgba(255,255,255,.08);
    padding-right: 16px;
}
.ff-v40-mega-col:last-child { border-right: 0; }
.ff-v40-mega-col a {
    display: block !important;
    color: #eef5ff !important;
    padding: 7px 8px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(229,9,20,.18);
    transition: background .15s, color .15s;
}
.ff-v40-mega-col a:hover { background: var(--ff-red); color: #fff !important; }

.ff-kids-link img { height: 26px; display: block; }

/* ── Legacy #cssmenu mega (NextHour original) ───────────────── */
#cssmenu ul li.mega-menu { position: static; }
#cssmenu ul li.mega-menu .mega-content {
    background: rgba(8,10,15,.98) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.55) !important;
    border-radius: 10px !important;
    padding: 18px !important;
    min-width: 520px !important;
    max-width: 920px !important;
    color: #fff !important;
}
#cssmenu ul li.mega-menu .mega-content .mega-col { min-width: 180px; }
#cssmenu ul li.mega-menu .mega-content h4 {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(229,9,20,.55) !important;
    padding-bottom: 8px !important;
    margin: 0 0 10px !important;
}
#cssmenu ul li.mega-menu .mega-content a,
#cssmenu ul li.mega-menu .mega-content li a {
    color: rgba(255,255,255,.86) !important;
    display: block !important;
    padding: 7px 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    background: transparent !important;
}
#cssmenu ul li.mega-menu .mega-content a:hover { color: #ff3342 !important; transform: translateX(3px); }
#cssmenu ul li.mega-menu .mega-content ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }

/* ── Homepage ───────────────────────────────────────────────── */
html, body { background: #050505 !important; }
.main-wrapper, #wishlistelement { background: #050505 !important; min-height: 100vh; }
.ffx-home-clean { background: #050505; color: #fff; overflow: hidden; padding-bottom: 54px; }
.ffx-home-clean * { box-sizing: border-box; }

/* Hero */
.ffx-hero-clean {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 120px 4vw 90px;
    background-color: #080808;
    background-size: cover;
    background-position: center;
    position: relative;
}
.ffx-hero-clean:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(0deg, #050505, rgba(5,5,5,0));
    pointer-events: none;
}
.ffx-hero-content { position: relative; z-index: 2; width: min(680px, 94vw); }
.ffx-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(229,9,20,.16);
    border: 1px solid rgba(229,9,20,.5);
    color: #ff4d57;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 16px;
}
.ffx-hero-content h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: .95;
    margin: 0 0 18px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
}
.ffx-hero-content p { color: #d8d8d8; font-size: 16px; line-height: 1.55; max-width: 620px; margin: 0 0 24px; }
.ffx-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ffx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    border: 1px solid transparent;
    transition: .2s ease;
}
.ffx-btn:hover { transform: translateY(-1px); color: #fff !important; }
.ffx-btn-primary   { background: var(--ff-red); box-shadow: 0 10px 26px rgba(229,9,20,.22); }
.ffx-btn-secondary { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); backdrop-filter: blur(10px); }

/* Content rows */
.ffx-row-clean { margin: 0 0 34px; padding: 0 0 0 4vw; position: relative; }
[dir="rtl"] .ffx-row-clean { padding: 0 4vw 0 0; }
.ffx-row-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 0 4vw 14px 0; }
[dir="rtl"] .ffx-row-head { padding: 0 0 14px 4vw; }
.ffx-row-head h2 { margin: 0; color: #fff; font-size: clamp(22px, 2.2vw, 32px); font-weight: 900; letter-spacing: -.5px; }
.ffx-row-head a {
    color: #aab0bd;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    text-decoration: none !important;
}
.ffx-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 4vw 18px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
[dir="rtl"] .ffx-scroll-row { padding: 3px 0 18px 4vw; }
.ffx-scroll-row::-webkit-scrollbar { height: 7px; }
.ffx-scroll-row::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 999px; }

/* Card */
.ffx-card-clean {
    flex: 0 0 164px;
    width: 164px;
    min-height: 250px;
    border-radius: 13px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
    transition: .22s ease;
    scroll-snap-align: start;
    box-shadow: 0 14px 26px rgba(0,0,0,.24);
}
.ffx-card-clean:hover { transform: translateY(-7px) scale(1.025); border-color: rgba(255,255,255,.22); z-index: 4; }
.ffx-card-clean img { width: 100%; height: 224px; object-fit: cover; display: block; background: #111; }
.ffx-card-title { min-height: 42px; padding: 10px 11px; background: linear-gradient(180deg, rgba(11,17,31,.82), #0b1120); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progress (continue watching) */
.ffx-progress { height: 4px; background: rgba(255,255,255,.13); margin: 0 10px 10px; border-radius: 99px; overflow: hidden; }
.ffx-progress span { display: block; height: 100%; background: var(--ff-red); border-radius: 99px; }

/* Ranked */
.ffx-ranked-card:before, .ffx-top10-card:before {
    content: attr(data-rank);
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: rgba(0,0,0,.62);
    border: 1px solid rgba(255,255,255,.22);
    text-shadow: 0 2px 8px #000;
}
[dir="rtl"] .ffx-ranked-card:before,
[dir="rtl"] .ffx-top10-card:before { left: auto; right: 8px; }

/* Genre grid */
.ffx-genre-section, .ffx-language-section { padding-right: 4vw; }
[dir="rtl"] .ffx-genre-section { padding-left: 4vw; padding-right: 4vw; }
.ffx-genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; padding-right: 4vw; }
[dir="rtl"] .ffx-genre-grid { padding-right: 0; padding-left: 0; }
.ffx-genre-card {
    min-height: 96px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border-radius: var(--ff-radius);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
    background: linear-gradient(135deg, #111827, #050505);
    border: 1px solid rgba(255,255,255,.08);
    transition: .22s ease;
}
.ffx-genre-card:hover { transform: translateY(-4px); border-color: rgba(229,9,20,.55); }

/* Empty state */
.ffx-taxonomy-empty {
    margin: 40px 5vw;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.75);
    text-align: center;
}

/* ── Collection / Seasons strip ─────────────────────────────── */
.v49-collection-strip,
.ffx-collection-block { margin: 32px 0 22px; padding: 0 5vw; }
.v49-row-head, .ffx-collection-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.v49-row-head h2, .ffx-collection-head h2 { font-size: 24px; color: #fff; margin: 0; font-weight: 900; }
.v49-row-head a, .ffx-view-all {
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    padding: 7px 13px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
}
.v49-collection-row, .ffx-collection-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}
.ffx-collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); }

.v49-collection-card, .ffx-collection-item {
    flex: 0 0 145px;
    text-decoration: none;
    background: #101827;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    transition: transform .18s, border-color .18s;
}
.v49-collection-card:hover,
.ffx-collection-item:hover { transform: translateY(-3px); border-color: var(--ff-red); }
.v49-collection-card img { width: 100%; height: 210px; object-fit: cover; background: #0b1220; display: block; }

.v49-poster-fallback {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #1a2035, #0d1525);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    color: var(--ff-red);
}
.v49-collection-card strong, .ffx-collection-item strong { display: block; padding: 9px 9px 4px; font-size: 13px; line-height: 1.3; }
.v49-collection-card span, .ffx-collection-item small { display: block; padding: 0 9px 10px; color: #94a3b8; font-size: 12px; }

.ffx-collection-type {
    display: inline-block;
    font-size: 11px;
    background: var(--ff-red);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    margin: 8px 9px 0;
}

/* ── Admin Panels ────────────────────────────────────────────── */
.contentbar { background: #050505; }
.card, .ffx-admin-soft .card, .ffx-admin-soft .box { border-radius: var(--ff-radius) !important; }

/* DataTables */
.dataTables_wrapper table td,
.dataTables_wrapper table th   { color: #1f2937 !important; background: #fff !important; }
.dataTables_wrapper table thead th { background: #23364a !important; color: #fff !important; }
.dataTables_wrapper table tbody tr:hover td { background: #f4f8ff !important; }

/* Badges */
.badge.badge-danger,  .badge-danger  { background: #ef4444 !important; color: #fff !important; }
.badge.badge-success, .badge-success { background: #22c55e !important; color: #052e16 !important; }
.badge.badge-primary, .badge-primary { background: #2563eb !important; color: #fff !important; }

/* Admin tables */
.content-main-block table th { background: #172334 !important; color: #dbeafe !important; }
.content-main-block table td { color: #334155 !important; }
.content-main-block .card,
.content-main-block .box,
.admin-create-main-block { border-radius: var(--ff-radius) !important; }

/* Enterprise / Centers shared */
.flay-enterprise-page { padding: 24px; background: #05070b; min-height: calc(100vh - 70px); }
.flay-hero-card {
    background: linear-gradient(135deg, #111827, #17233a);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--ff-radius);
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    color: #fff;
    margin-bottom: 18px;
}
.flay-kicker { display: inline-block; background: #ef4444; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; margin-bottom: 8px; }
.flay-hero-card h2 { margin: 0 0 8px; font-weight: 800; }
.flay-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.flay-stat-card, .ffx-arch-stat {
    background: #fff;
    border: 0;
    border-radius: var(--ff-radius);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    margin-bottom: 18px;
    padding: 18px;
}
.flay-stat-card span, .ffx-arch-stat span { display: block; color: #7b8aa6; font-size: 13px; }
.flay-stat-card strong, .ffx-arch-stat strong { display: block; color: #061631; font-size: 28px; margin-top: 4px; }

.flay-card {
    background: #fff;
    border: 0;
    border-radius: var(--ff-radius);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    margin-bottom: 18px;
}
.flay-card .card-header { background: #fff; border-bottom: 1px solid #eef2f7; border-radius: var(--ff-radius) var(--ff-radius) 0 0; }
.flay-card .card-header h5 { margin: 0; font-weight: 800; }

.flay-plan-editor { border: 1px solid #e9eef7; border-radius: var(--ff-radius); padding: 16px; margin-bottom: 14px; background: #fbfcff; }
.flay-plan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.flay-plan-head strong { font-size: 18px; color: #0f1c34; }
.flay-plan-head small { display: block; color: #7b8aa6; }
.flay-plan-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf1f7; padding-top: 10px; }

.flay-feature-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 10px; border: 1px solid #edf1f7; border-radius: 10px; background: #fff; }
.flay-feature-checks label { margin: 0; padding: 6px 10px; border: 1px solid #e5eaf3; border-radius: 999px; font-size: 12px; color: #253858; }
.flay-feature-list { display: flex; gap: 8px; flex-wrap: wrap; }
.flay-feature-list span { background: #eef4ff; color: #24457a; border-radius: 999px; padding: 7px 12px; font-size: 12px; }

.flay-checkboxes { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; padding-top: 30px; }
.flay-checkboxes label, .flay-switch-line { color: #243553; font-weight: 600; }
.flay-diag { display: flex; justify-content: space-between; border-bottom: 1px solid #eef2f7; padding: 8px 0; }
.flay-diag span { color: #718096; }
.flay-diag b { color: #0f1c34; }
.flay-empty { text-align: center; padding: 30px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; }

.flay-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.flay-feature-grid label { display: flex; gap: 8px; align-items: flex-start; background: #f8fafc; border: 1px solid #e8edf5; border-radius: 10px; padding: 8px 10px; font-size: 12px; color: #1d2b4f; }
.flay-feature-add { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.flay-feature-manager-list { display: grid; gap: 10px; }
.flay-feature-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: #f8fafc; border: 1px solid #e8edf5; border-radius: 12px; padding: 10px; }

/* Architecture / V30-V37 */
.ffx-arch { direction: rtl; }
.ffx-arch-hero {
    background: linear-gradient(135deg, #0f172a, #111827 55%, #450a0a);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    color: #fff;
    padding: 24px;
    margin-bottom: 18px;
}
.ffx-arch-hero h2 { font-weight: 900; color: #fff; margin: 0 0 8px; }
.ffx-arch-hero p { color: #d1d5db; margin: 0; }
.ffx-kicker { display: inline-flex; background: #ef4444; color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 11px; margin-bottom: 10px; }
.ffx-arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.ffx-arch-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.06); min-height: 120px; }
.ffx-arch-card h5 { font-weight: 800; margin-bottom: 6px; }
.ffx-arch-card p { font-size: 13px; color: #64748b; }
.ffx-tree { background: #fff; border-radius: 18px; border: 1px solid #e5e7eb; padding: 18px; }
.ffx-tree ul { list-style: none; padding-right: 18px; margin: 0; }
.ffx-tree li { padding: 7px 0; border-bottom: 1px dashed #e5e7eb; }
.ffx-node { display: inline-flex; align-items: center; gap: 8px; }
.ffx-check-ok   { background: #dcfce7; color: #166534; border-radius: 999px; padding: 4px 9px; font-weight: 700; font-size: 11px; }
.ffx-check-warn { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 4px 9px; font-weight: 700; font-size: 11px; }

/* Next Experience */
.ffx-next-admin .ffx-next-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    border-radius: 22px; padding: 26px; margin-bottom: 18px; color: #fff;
    background: linear-gradient(135deg, #111827, #991b1b);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.ffx-next-admin .ffx-next-hero h2 { color: #fff; margin: 6px 0 8px; font-weight: 900; }
.ffx-next-kicker { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: #fff; }
.ffx-next-hero.is-front      { background: linear-gradient(135deg,#020617,#7f1d1d); }
.ffx-next-hero.is-player     { background: linear-gradient(135deg,#0f172a,#1e3a8a); }
.ffx-next-hero.is-tv         { background: linear-gradient(135deg,#020617,#14532d); }
.ffx-next-hero.is-membership { background: linear-gradient(135deg,#111827,#6d28d9); }
.ffx-next-hero.is-analytics  { background: linear-gradient(135deg,#0f172a,#854d0e); }
.ffx-next-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.ffx-next-stat span   { display: block; color: #64748b; font-size: 12px; }
.ffx-next-stat strong { display: block; color: #0f172a; font-size: 26px; margin-top: 4px; }
.ffx-next-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.ffx-badge-ok   { background: #dcfce7; color: #166534; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.ffx-badge-warn { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 4px 10px; font-size: 12px; }

/* ── User Dashboard ──────────────────────────────────────────── */
.ff-user-v2 { background: #050505; color: #fff; min-height: 100vh; padding: 120px 6vw 80px; }
.ff-user-hero { padding: 40px 0; }
.ff-user-hero span { color: var(--ff-red); font-weight: 800; }
.ff-user-hero h1 { font-size: 56px; font-weight: 900; }
.ff-rail { display: flex; gap: 16px; overflow-x: auto; padding: 10px 0 25px; }
.ff-poster { width: 150px; min-width: 150px; color: #fff; text-decoration: none; }
.ff-poster img { width: 150px; height: 225px; object-fit: cover; border-radius: 10px; background: #111827; }
.ff-poster b { display: block; padding-top: 8px; font-size: 13px; }
.ff-content-empty { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; background: rgba(255,255,255,.03); }

/* ── Watch Gate ──────────────────────────────────────────────── */
.ff-watch-gate-overlay {
    position: fixed; inset: 0; z-index: 999999;
    background: radial-gradient(circle at top, rgba(220,38,38,.18), rgba(0,0,0,.94) 42%, #000);
    display: flex; align-items: center; justify-content: center;
    padding: 22px; direction: rtl; font-family: Tahoma, Arial, sans-serif;
}
.ff-watch-gate-card {
    width: min(560px, 100%);
    background: rgba(13,13,18,.92);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    border-radius: 24px;
    padding: 34px;
    text-align: center;
    color: #fff;
}
.ff-watch-gate-badge { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: rgba(229,9,20,.18); border: 1px solid rgba(229,9,20,.35); color: #ffdde0; margin-bottom: 14px; }
.ff-watch-gate-card h1 { font-size: 30px; margin: 0 0 12px; }
.ff-watch-gate-card p  { font-size: 16px; line-height: 1.9; color: #ddd; margin: 0 0 24px; }
.ff-watch-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ff-watch-gate-actions a { text-decoration: none; border-radius: 14px; padding: 13px 22px; font-weight: 700; }
.ff-watch-gate-primary   { background: var(--ff-red); color: #fff; }
.ff-watch-gate-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }

/* ── Player Pro Overlay ──────────────────────────────────────── */
.ffx-player-pro-overlay {
    position: fixed; left: 18px; right: 18px; bottom: 18px;
    z-index: 9999;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    pointer-events: none;
}
.ffx-player-pro-pill {
    pointer-events: auto;
    background: rgba(3,7,18,.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #fff;
    padding: 10px 14px;
    font: 600 13px system-ui, Arial;
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}
.ffx-player-pro-actions { display: flex; gap: 8px; pointer-events: auto; }
.ffx-player-pro-actions button,
.ffx-player-pro-actions a  { border: 0; border-radius: 999px; background: rgba(239,68,68,.92); color: #fff; padding: 10px 13px; font-weight: 700; text-decoration: none; }
.ffx-player-pro-actions button.secondary { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }

/* ── TV Edition ──────────────────────────────────────────────── */
.ffx-tv-body  { background: #020617; color: #fff; min-height: 100vh; }
.ffx-tv-shell { padding: 48px; }
.ffx-tv-hero  { background: linear-gradient(135deg, #111827, #7f1d1d); border-radius: 34px; padding: 46px; margin-bottom: 34px; }
.ffx-tv-hero h1 { color: #fff; font-size: 56px; font-weight: 900; }
.ffx-tv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.ffx-tv-card {
    display: block; background: #111827; color: #fff; text-decoration: none;
    border: 2px solid rgba(255,255,255,.08); border-radius: 26px; padding: 32px;
    min-height: 180px; transition: .15s;
}
.ffx-tv-card:focus, .ffx-tv-card:hover {
    outline: 0; border-color: var(--ff-red); transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(229,9,20,.25); color: #fff;
}
.ffx-tv-card strong { font-size: 24px; }
.ffx-tv-card span   { display: block; color: #cbd5e1; margin-top: 8px; }

/* Watch limit */
.ff-watch-limit-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 22px; text-align: center; color: #fff; }
.ff-watch-limit-card { max-width: 520px; background: #151515; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 32px; box-shadow: 0 25px 80px rgba(0,0,0,.5); }
.ff-watch-limit-card h2 { font-size: 26px; margin: 0 0 12px; }
.ff-watch-limit-card p  { color: #ddd; font-size: 16px; }
.ff-watch-limit-card a  { display: inline-block; margin-top: 16px; background: var(--ff-red); color: #fff; padding: 12px 22px; border-radius: 12px; text-decoration: none; font-weight: 800; }

/* Logo / images */
.logo img, .navigation img, .main-header img { max-height: 72px; width: auto; object-fit: contain; }
.movie-dtl-main-block, .genre-slide-image, .movie-image, .watchlist-img, .movie-card { border-radius: var(--ff-radius); overflow: hidden; background: #141414; }
.owl-carousel .owl-item img, .movie-image img, .genre-slide-image img { aspect-ratio: 2/3; object-fit: cover; }
.btn, .btn-default { border-radius: 10px !important; }
.btn.btn-primary, .ff-btn-trailer-netflix { background: var(--ff-red) !important; color: #fff !important; border: 0 !important; font-weight: 700 !important; }
.breadcrumbbar, .admin-card { border-radius: 16px !important; }
.dropdown-menu { z-index: 9999; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .ff-v40-nav { display: block !important; }
    .ff-v40-nav > li { margin-bottom: 5px; }
    .ff-v40-menu-shell { justify-content: space-between; }
    .ff-v40-mega, .ff-v40-dropdown {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        margin-top: 6px;
    }
    .ff-v40-mega-grid { grid-template-columns: 1fr 1fr; }
    .logo img, .navigation img, .main-header img { max-height: 56px; }
    .flay-hero-card { display: block; }
    .flay-hero-actions { margin-top: 12px; }
    .flay-enterprise-page { padding: 14px; }
    .flay-checkboxes { padding-top: 0; }
    .flay-feature-grid, .flay-feature-row,
    .flay-feature-row form:first-child, .flay-feature-add { grid-template-columns: 1fr; }
    .flay-plan-actions { display: block; }
    .flay-plan-actions .btn { margin-top: 10px; width: 100%; }
    .ffx-next-admin .ffx-next-hero { display: block; padding: 18px; }
    .ffx-arch-grid { grid-template-columns: 1fr; }
    .ffx-tv-shell { padding: 24px; }
    .ffx-tv-hero h1 { font-size: 38px; }
    .ff-user-v2 { padding: 90px 20px; }
    .ff-user-hero h1 { font-size: 36px; }
}
@media (max-width: 768px) {
    .ffx-hero-clean { min-height: 440px; padding: 92px 20px 70px; }
    .ffx-row-clean  { padding-left: 20px; }
    [dir="rtl"] .ffx-row-clean { padding-right: 20px; }
    .ffx-row-head   { padding-right: 20px; }
    .ffx-scroll-row { gap: 10px; padding-right: 20px; }
    .ffx-card-clean { flex-basis: 132px; width: 132px; min-height: 210px; }
    .ffx-card-clean img { height: 176px; }
    .ffx-card-title { font-size: 12px; }
    .ffx-genre-grid { grid-template-columns: repeat(2, minmax(0,1fr)); padding-right: 20px; }
    .ff-watch-gate-card { padding: 24px 18px; border-radius: 18px; }
    .ff-watch-gate-card h1 { font-size: 24px; }
    .ff-watch-gate-actions a { width: 100%; }
    .ffx-player-pro-overlay { left: 10px; right: 10px; bottom: 10px; display: block; }
    .ffx-player-pro-actions { margin-top: 8px; overflow-x: auto; }
    .ffx-player-pro-pill { display: block; border-radius: 16px; }
    .ff-watch-limit-card { padding: 22px; }
    .ff-watch-limit-card h2 { font-size: 21px; }
    .logo img, .navigation img, .main-header img { max-height: 42px; }
}
@media (max-width: 576px) {
    .ff-v40-mega-grid { grid-template-columns: 1fr; }
    body { font-size: 14px; }
}
@media (min-width: 1400px) {
    .ffx-card-clean { flex-basis: 178px; width: 178px; }
    .ffx-card-clean img { height: 244px; }
}
