@font-face {
    font-family: "Alexandria5TV";
    src: url("../fonts/Alexandria.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@layer reset, tokens, base, layout, components, utilities;

@layer tokens {
    :root {
        color-scheme: dark;

        --bg: #090a0c;
        --surface: #111318;
        --surface-2: #181b21;
        --surface-3: #20242b;

        --text: #f5f6f8;
        --text-muted: #969ca6;

        --border: rgb(255 255 255 / 8%);
        --accent: #e6b94f;

        --radius-sm: .5rem;
        --radius-md: .875rem;
        --radius-lg: 1.25rem;

        --container: 90rem;
        --page-padding: clamp(1rem, 3vw, 2rem);
    }

    html[data-theme="light"] {
        color-scheme: light;

        --bg: #f1f2f4;
        --surface: #f8f8f9;
        --surface-2: #e8eaed;
        --surface-3: #dfe2e6;

        --text: #181a1e;
        --text-muted: #686e78;

        --border: rgb(20 24 30 / 10%);
        --accent: #c99a2e;
    }
}

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        min-height: 100%;
    }

    body {
        margin: 0;
    }

    img,
    picture,
    video,
    canvas,
    svg {
        display: block;
        max-width: 100%;
    }

    button,
    input,
    textarea,
    select {
        font: inherit;
    }
}

@layer base {
    body {
        min-height: 100vh;
        direction: rtl;
        background: var(--bg);
        color: var(--text);
        font-family:
            "Alexandria",
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

        line-height: 1.6;
        text-rendering: optimizeLegibility;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button {
        color: inherit;
    }
}

@layer layout {
    .container {
        width: min(
            calc(100% - (var(--page-padding) * 2)),
            var(--container)
        );
        margin-inline: auto;
    }

    .site-main {
        min-height: 70vh;
    }

    .page-shell {
        padding-block: 4rem;
    }
}

@layer components {
    .site-header {
        position: sticky;
        inset-block-start: 0;
        z-index: 100;
        border-block-end: 1px solid var(--border);
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(18px);
    }

    .site-header__inner {
        min-height: 4.5rem;
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .site-logo {
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: -.04em;
        color: var(--accent);
    }

    .site-nav {
        margin-inline-end: auto;
    }

    .site-nav ul {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .site-nav a {
        color: var(--text-muted);
        transition:
            color 160ms ease,
            opacity 160ms ease;
    }

    .site-nav a:hover {
        color: var(--text);
    }

    .theme-toggle {
        width: 2.75rem;
        aspect-ratio: 1;
        display: grid;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: var(--surface);
        cursor: pointer;
    }

    .hero {
        min-height: 70vh;
        display: grid;
        align-items: center;
        padding-block: clamp(5rem, 10vw, 10rem);
    }

    .hero__eyebrow {
        color: var(--accent);
        font-weight: 700;
    }

    .hero__title {
        max-width: 12ch;
        margin-block: .75rem 1.25rem;
        font-size: clamp(2.75rem, 7vw, 6.5rem);
        line-height: .95;
        letter-spacing: -.06em;
    }

    .hero__text {
        max-width: 42rem;
        color: var(--text-muted);
        font-size: clamp(1rem, 1vw + .75rem, 1.25rem);
    }

    .site-footer {
        border-block-start: 1px solid var(--border);
        padding-block: 2rem;
        color: var(--text-muted);
    }
}
/* =========================================================
   5TV Header
   ========================================================= */

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 900;
    height: 4.25rem;
    border-block-end: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.site-logo {
    flex: 0 0 auto;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.07em;
}

.site-logo span {
    color: var(--accent);
}

.desktop-nav {
    flex: 1;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-menu a {
    position: relative;
    display: block;
    padding-block: 1.4rem;
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 600;
    transition: color 150ms ease;
}

.desktop-menu a:not(.ftv-header-vip):hover,
.desktop-menu .current-menu-item > a {
    color: var(--text);
}

.desktop-menu .current-menu-item > a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.icon-button {
    width: 2.65rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition:
        background 150ms ease,
        color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.icon-button:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border);
}

.icon-button:active {
    transform: scale(.94);
}

.icon-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon--moon {
    display: none;
}

html[data-theme="light"] .theme-icon--sun {
    display: none;
}

html[data-theme="light"] .theme-icon--moon {
    display: block;
}

/* Mobile sheet */

.mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
}

.mobile-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgb(0 0 0 / 55%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.mobile-sheet.is-open .mobile-sheet__backdrop {
    opacity: 1;
}

.mobile-sheet__panel {
    position: absolute;
    inset-inline: .75rem;
    inset-block-end: .75rem;
    max-height: min(75vh, 40rem);
    padding: .6rem 1rem 1.25rem;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 35%);
    transform: translateY(calc(100% + 2rem));
    transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.mobile-sheet.is-open .mobile-sheet__panel {
    transform: translateY(0);
}

.mobile-sheet__handle {
    width: 2.5rem;
    height: .25rem;
    margin: .2rem auto .8rem;
    border-radius: 99px;
    background: var(--border);
}

.mobile-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
}

.mobile-sheet__head strong {
    font-size: 1.1rem;
}

.mobile-menu {
    display: grid;
    gap: .35rem;
    padding: 0;
    margin: .5rem 0 0;
    list-style: none;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding-inline: 1rem;
    border-radius: .85rem;
    color: var(--text-muted);
    background: var(--surface-2);
    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--text);
}

/* Mobile bottom navigation */

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

/* Desktop doesn't need more button yet */

.more-toggle {
    display: none;
}

@media (max-width: 800px) {

    body {
        padding-block-end: 5rem;
    }

    .site-header {
        height: 3.75rem;
    }

    .desktop-nav {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    .header-actions {
        margin-inline-start: auto;
    }

    .header-actions .more-toggle {
        display: grid;
    }

    .mobile-bottom-nav {
        position: fixed;
        inset-inline: .65rem;
        inset-block-end: max(.65rem, env(safe-area-inset-bottom));
        z-index: 1000;

        min-height: 4.25rem;

        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;

        padding: .35rem;

        border: 1px solid var(--border);
        border-radius: 1.25rem;

        background:
            color-mix(in srgb, var(--surface) 94%, transparent);

        box-shadow: 0 .8rem 3rem rgb(0 0 0 / 30%);
        backdrop-filter: blur(20px) saturate(140%);
    }

    .mobile-bottom-nav > a,
    .mobile-bottom-nav > button {
        min-width: 0;
        min-height: 3.35rem;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .2rem;

        border: 0;
        border-radius: .9rem;

        background: transparent;
        color: var(--text-muted);

        font-size: .67rem;
        font-weight: 600;

        cursor: pointer;
    }

    .mobile-bottom-nav svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-search__icon {
        width: 2.65rem;
        aspect-ratio: 1;
        display: grid;
        place-items: center;
        margin-block-start: -1.35rem;
        border-radius: 50%;
        background: var(--accent);
        color: #111;
        box-shadow: 0 .4rem 1.5rem rgb(0 0 0 / 30%);
    }

    .mobile-search__icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

@media (min-width: 801px) {
    .mobile-sheet {
        display: none;
    }
}




.site-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-brand .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-brand .custom-logo {
    width: auto;
    height: clamp(2.3rem, 3vw, 3rem);
    object-fit: contain;
}

@media (max-width: 800px) {
    .site-brand .custom-logo {
        height: 2.15rem;
    }
}

/* 5TV Typography System */
body,
button,
input,
textarea,
select {
    font-family:
        "Alexandria",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    font-weight: 400;
}

.site-nav,
.desktop-menu,
.mobile-bottom-nav {
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -.025em;
}

.hero__title,
.ftv-auth__heading h1 {
    font-weight: 750;
}

button,
.ftv-auth__submit {
    font-weight: 600;
}

.ftv-auth__form label > span,
.ftv-account-card strong {
    font-weight: 600;
}


/* 5TV Global Font */
html,
body,
button,
input,
select,
textarea,
option {
    font-family: "Alexandria", sans-serif !important;
}

body {
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Alexandria", sans-serif !important;
    font-weight: 700;
}



/* 5TV Global Typography */
:root {
    --font-main: "Alexandria", sans-serif;
}

html,
body,
button,
input,
textarea,
select,
option {
    font-family: var(--font-main) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
p,
label,
strong {
    font-family: var(--font-main) !important;
}

body {
    font-weight: 400;
}

h1,
h2,
h3 {
    font-weight: 700;
}

button {
    font-weight: 600;
}


/* 5TV FORCE WEBFONT */
html,
body,
body *,
button,
input,
textarea,
select,
option {
    font-family: "Alexandria5TV", sans-serif !important;
}




/* Account dropdown
--------------------------------------------------------- */

.account-menu {
    position: relative;
}

.account-menu__dropdown {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + .7rem);

    width: 11.5rem;
    padding: .45rem;

    border: 1px solid var(--border);
    border-radius: 1rem;

    background: var(--surface);
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 28%);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-.35rem);

    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;
}

.account-menu.is-open .account-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu__dropdown a {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    padding-inline: .9rem;

    border-radius: .7rem;

    font-size: .88rem;
    font-weight: 600;

    transition:
        background 140ms ease,
        color 140ms ease;
}

.account-menu__login {
    color: var(--text);
}

.account-menu__register {
    color: var(--text-muted);
}

.account-menu__dropdown a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.account-menu__dropdown a + a {
    margin-block-start: .2rem;
}



/* ===== Global account dropdown ===== */

.account-menu__dropdown {
    background: var(--surface);
    border: 1px solid var(--border);
}

.account-menu__dropdown a {
    color: var(--text-muted) !important;
}

.account-menu__login {
    color: #c2c6cc !important;
    font-weight: 600;
}

.account-menu__register {
    color: #8f959f !important;
}

.account-menu__dropdown a:hover,
.account-menu__dropdown a:focus-visible {
    color: var(--text) !important;
    background: var(--surface-2);
}



/* =========================================================
   5TV MOBILE MORE MENU — REAL FINAL FIX
   X on FAR RIGHT, then "المزيد"
========================================================= */

@media (max-width: 900px) {

    body .mobile-sheet .mobile-sheet__head {
        position: relative !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;

        direction: rtl !important;

        gap: 8px !important;

        min-height: 3.5rem !important;

        padding: 0 !important;
    }


    /*
     * زر X:
     * أول عنصر بصريًا من اليمين.
     * بدون absolute نهائيًا.
     */
    body .mobile-sheet
    .mobile-sheet__head
    > .sheet-close.icon-button {

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        inset: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;

        order: -1 !important;

        flex: 0 0 28px !important;

        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;

        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        display: grid !important;
        place-items: center !important;
    }


    body .mobile-sheet
    .mobile-sheet__head
    > .sheet-close.icon-button svg {

        display: block !important;

        width: 14px !important;
        height: 14px !important;

        margin: 0 !important;
    }


    /*
     * "المزيد" بعد X مباشرة.
     */
    body .mobile-sheet
    .mobile-sheet__head
    > strong {

        order: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        flex: 0 0 auto !important;

        text-align: right !important;
    }

}


/* =========================================================
   5TV MY LIST CONTROLS — MOBILE GRID FINAL
========================================================= */

@media (max-width: 700px) {

    /*
     * الأساس:
     * كل الأدوات داخل شبكة عمودين.
     *
     * الوضع العادي:
     * [ الكل ] [ تحديد ]
     *
     * وضع التحديد:
     * باقي الأدوات تنزل بشكل مرتب تحتهم.
     */
    body .ftv-my-list-page .ftv-list-controls {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        align-items: stretch !important;

        gap: 7px !important;

        direction: rtl !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 12px 0 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;

        overflow: visible !important;
    }


    /*
     * نشيل الـwrapper من حساب الـlayout،
     * وكل الأزرار اللي جواه تدخل Grid مباشرة.
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > .ftv-my-list-tools {

        display: contents !important;
    }


    /*
     * كل عنصر يبقى جوه العمود بتاعه
     * وما يعملش horizontal overflow.
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > *,

    body .ftv-my-list-page
    .ftv-my-list-tools
    > * {

        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    /*
     * كل الأزرار بنفس الحجم.
     */
    body .ftv-my-list-page
    .ftv-list-controls button,

    body .ftv-my-list-page
    .ftv-list-controls select {

        width: 100% !important;
        max-width: 100% !important;

        min-height: 38px !important;
        height: 38px !important;

        margin: 0 !important;
        padding: 0 10px !important;

        box-sizing: border-box !important;

        white-space: nowrap !important;

        font-size: 11px !important;
    }


    /*
     * Dropdown اختيار القائمة
     */
    body .ftv-my-list-page .ftv-bulk-dropdown {
        position: relative !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
    }


    body .ftv-my-list-page
    .ftv-bulk-dropdown__toggle {

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 38px !important;
        min-height: 38px !important;

        margin: 0 !important;
        padding: 0 9px !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }


    body .ftv-my-list-page
    .ftv-bulk-dropdown__label {

        display: block !important;

        min-width: 0 !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }


    /*
     * القائمة المنسدلة تفتح تحت زرها نفسه،
     * ولا تدخل في Grid أو تزق باقي الأزرار.
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown__menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 0 !important;
        left: auto !important;

        width: 100% !important;
        min-width: 170px !important;
        max-width: min(220px, 85vw) !important;

        margin: 0 !important;

        z-index: 200 !important;
    }


    body .ftv-my-list-page
    .ftv-bulk-dropdown__menu button {

        width: 100% !important;

        text-align: right !important;
    }


    /*
     * حذف المحدد
     */
    body .ftv-my-list-page .ftv-list-bulk-delete {
        width: 100% !important;

        min-width: 0 !important;

        color: #c86b6b !important;
    }


    /*
     * زر تحديد يتحول لإلغاء التحديد من نفس مكانه،
     * مش يطير ناحية ثانية.
     */
    body .ftv-my-list-page .ftv-list-select-toggle {
        width: 100% !important;
        min-width: 0 !important;
    }

}


/* شاشة أصغر */
@media (max-width: 420px) {

    body .ftv-my-list-page .ftv-list-controls {
        gap: 6px !important;
    }


    body .ftv-my-list-page
    .ftv-list-controls button,

    body .ftv-my-list-page
    .ftv-list-controls select,

    body .ftv-my-list-page
    .ftv-bulk-dropdown__toggle {

        height: 36px !important;
        min-height: 36px !important;

        padding-inline: 8px !important;

        font-size: 10px !important;
    }

}



/* =========================================================
   MY LIST MOBILE — ORDER + SPACE BEFORE CARDS
========================================================= */

@media (max-width: 700px) {

    /*
     * الكل أولاً من اليمين
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > :not(.ftv-my-list-tools) {
        order: 1 !important;
    }


    /*
     * تحديد بعد الكل
     */
    body .ftv-my-list-page
    .ftv-list-select-toggle {
        order: 2 !important;
    }


    /*
     * لأن الواجهة RTL:
     * بداية الصف من اليمين.
     */
    body .ftv-my-list-page .ftv-list-controls {
        direction: rtl !important;
        justify-content: start !important;

        /*
         * مساحة صغيرة قبل الكروت
         */
        margin-bottom: 12px !important;
    }


    /*
     * لو كونتينر الكروت لازق في الأدوات،
     * نضمن مسافة بسيطة إضافية.
     */
    body .ftv-my-list-page
    .ftv-list-controls + * {
        margin-top: 4px !important;
    }

}


@media (max-width: 420px) {

    body .ftv-my-list-page .ftv-list-controls {
        margin-bottom: 10px !important;
    }

}


/* =========================================================
   MY LIST MOBILE
   Row 1: الكل + تحديد
   Row 2: selection tools
========================================================= */

@media (max-width: 700px) {

    body .ftv-my-list-page .ftv-list-controls {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;

        direction: rtl !important;

        gap: 6px !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 12px 0 14px !important;
        padding: 0 !important;
    }


    /*
     * wrapper أدوات التحديد
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > .ftv-my-list-tools {

        display: contents !important;
    }


    /*
     * الكل:
     * أول واحد من اليمين
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > :not(.ftv-my-list-tools) {

        order: 1 !important;

        flex: 0 0 auto !important;

        width: auto !important;
        min-width: 76px !important;
        max-width: none !important;

        margin: 0 !important;
    }


    /*
     * تحديد:
     * مباشرة بعد الكل
     */
    body .ftv-my-list-page
    .ftv-list-select-toggle {

        order: 2 !important;

        flex: 0 0 auto !important;

        width: auto !important;
        min-width: 76px !important;
        max-width: none !important;

        height: 38px !important;
        min-height: 38px !important;

        margin: 0 !important;
        padding: 0 12px !important;
    }


    /*
     * عناصر وضع التحديد تنزل صف جديد.
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown {

        order: 10 !important;

        position: relative !important;

        flex: 0 0 calc(50% - 3px) !important;

        width: calc(50% - 3px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 3px) !important;

        margin-top: 2px !important;
    }


    body .ftv-my-list-page
    .ftv-list-bulk-delete {

        order: 11 !important;

        flex: 0 0 calc(50% - 3px) !important;

        width: calc(50% - 3px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 3px) !important;

        height: 38px !important;
        min-height: 38px !important;

        margin-top: 2px !important;
    }


    /*
     * Dropdown button
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown__toggle {

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 38px !important;
        min-height: 38px !important;

        margin: 0 !important;
    }


    /*
     * القائمة تفتح لتحت من نفس الزر.
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown__menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 0 !important;
        left: auto !important;

        width: 100% !important;
        min-width: 170px !important;
        max-width: 220px !important;

        margin: 0 !important;

        z-index: 300 !important;
    }


    /*
     * لو "إلغاء التحديد" هو نفس زر تحديد بعد فتح الوضع
     * يفضل في نفس مكانه بجوار الكل.
     */
    body .ftv-my-list-page
    .ftv-list-select-toggle {

        white-space: nowrap !important;
    }

}


/* فون صغير */
@media (max-width: 420px) {

    body .ftv-my-list-page .ftv-list-controls {
        gap: 5px !important;
    }


    body .ftv-my-list-page
    .ftv-list-select-toggle,

    body .ftv-my-list-page
    .ftv-list-controls
    > :not(.ftv-my-list-tools) {

        min-width: 70px !important;
    }


    body .ftv-my-list-page
    .ftv-list-select-toggle,

    body .ftv-my-list-page
    .ftv-bulk-dropdown__toggle,

    body .ftv-my-list-page
    .ftv-list-bulk-delete {

        height: 36px !important;
        min-height: 36px !important;

        font-size: 10px !important;
    }

}


/* =========================================================
   MY LIST MOBILE — SELECTION SECOND ROW FINAL
   Row 1: الكل + تحديد / إلغاء التحديد
   Row 2: نقل المحدد + حذف المحدد
========================================================= */

@media (max-width: 700px) {

    body .ftv-my-list-page .ftv-list-controls {
        display: grid !important;

        grid-template-columns:
            minmax(0, auto)
            minmax(0, auto) !important;

        justify-content: start !important;
        align-items: center !important;

        direction: rtl !important;

        gap: 7px !important;

        width: 100% !important;
        max-width: 100% !important;

        margin-bottom: 14px !important;
    }


    /*
     * نخلي عناصر ftv-my-list-tools تدخل نفس الـGrid
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > .ftv-my-list-tools {
        display: contents !important;
    }


    /*
     * الكل أول يمين
     */
    body .ftv-my-list-page
    .ftv-list-controls
    > :not(.ftv-my-list-tools) {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: auto !important;
        min-width: 76px !important;
        max-width: none !important;

        margin: 0 !important;
    }


    /*
     * تحديد / إلغاء التحديد
     * جنب الكل مباشرة
     */
    body .ftv-my-list-page
    .ftv-list-select-toggle {
        grid-column: 2 !important;
        grid-row: 1 !important;

        width: auto !important;
        min-width: 92px !important;
        max-width: none !important;

        margin: 0 !important;
    }


    /*
     * نقل المحدد:
     * الصف الثاني — يمين
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown {
        grid-column: 1 !important;
        grid-row: 2 !important;

        position: relative !important;

        width: 150px !important;
        min-width: 0 !important;
        max-width: 150px !important;

        margin: 0 !important;
    }


    /*
     * حذف المحدد:
     * الصف الثاني — بعد النقل
     */
    body .ftv-my-list-page
    .ftv-list-bulk-delete {
        grid-column: 2 !important;
        grid-row: 2 !important;

        width: auto !important;
        min-width: 108px !important;
        max-width: none !important;

        margin: 0 !important;
    }


    /*
     * توحيد ارتفاع صف النقل والحذف
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown__toggle,

    body .ftv-my-list-page
    .ftv-list-bulk-delete {

        height: 38px !important;
        min-height: 38px !important;

        box-sizing: border-box !important;
    }


    /*
     * قائمة النقل تفتح لتحت من نفس مكانها
     */
    body .ftv-my-list-page
    .ftv-bulk-dropdown__menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 0 !important;
        left: auto !important;

        width: 190px !important;
        min-width: 190px !important;

        margin: 0 !important;

        z-index: 300 !important;
    }

}


/* فون أصغر */
@media (max-width: 420px) {

    body .ftv-my-list-page .ftv-list-controls {
        gap: 6px !important;
    }


    body .ftv-my-list-page
    .ftv-list-controls
    > :not(.ftv-my-list-tools) {
        min-width: 70px !important;
    }


    body .ftv-my-list-page
    .ftv-list-select-toggle {
        min-width: 88px !important;
    }


    body .ftv-my-list-page
    .ftv-bulk-dropdown {
        width: 135px !important;
        max-width: 135px !important;
    }


    body .ftv-my-list-page
    .ftv-list-bulk-delete {
        min-width: 100px !important;
    }

}



/* =========================================================
   5TV QUICK SEARCH POPUP
   ========================================================= */

body.ftv-search-popup-open {
    overflow: hidden;
}


.ftv-quick-search {
    position: fixed;
    z-index: 999999;

    inset: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding:
        90px
        20px
        30px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .20s ease,
        visibility .20s ease;
}


.ftv-quick-search.is-open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


.ftv-quick-search__backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(4,6,8,.74);

    backdrop-filter:
        blur(7px);
}


.ftv-quick-search__panel {
    position: relative;
    z-index: 2;

    width:
        min(680px, 100%);

    padding:
        29px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius:
        18px;

    background:
        rgba(17,20,25,.97);

    box-shadow:
        0 30px 90px rgba(0,0,0,.40);

    transform:
        translateY(-13px)
        scale(.985);

    transition:
        transform .22s ease;
}


.ftv-quick-search.is-open
.ftv-quick-search__panel {
    transform:
        translateY(0)
        scale(1);
}


/* Top accent */

.ftv-quick-search__panel::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 88px;
    height: 3px;

    border-radius:
        0 0 0 999px;

    background:
        #e6b94f;
}


/* Close */

.ftv-quick-search__close {
    position: absolute;

    top: 13px;
    left: 13px;

    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:
        10px;

    background:
        rgba(255,255,255,.045);

    color:
        #d8dadd;

    font-family:
        inherit;

    font-size:
        21px;
    line-height:
        1;

    cursor:
        pointer;
}


/* Heading */

.ftv-quick-search__heading {
    padding-left: 40px;

    margin-bottom:
        20px;
}


.ftv-quick-search__heading > span {
    display: block;

    margin-bottom:
        4px;

    color:
        #e6b94f;

    font-size:
        9px;

    font-weight:
        750;
}


.ftv-quick-search__heading h2 {
    margin:
        0 0 6px;

    color:
        #f4f4f4;

    font-size:
        24px;

    font-weight:
        900;

    line-height:
        1.35;
}


.ftv-quick-search__heading p {
    margin: 0;

    color:
        #969ca6;

    font-size:
        10px;

    line-height:
        1.7;
}


/* Form */

.ftv-quick-search__form {
    display: flex;

    gap: 8px;
}


.ftv-quick-search__input {
    position: relative;

    flex: 1;

    min-width: 0;
}


.ftv-quick-search__input svg {
    position: absolute;

    top: 50%;
    right: 14px;

    width: 18px;
    height: 18px;

    transform:
        translateY(-50%);

    color:
        #858b94;

    pointer-events:
        none;
}


.ftv-quick-search__input input {
    width: 100%;
    height: 49px;

    padding:
        0
        44px
        0
        14px;

    outline: 0;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:
        11px;

    background:
        rgba(5,7,9,.65);

    color:
        #fff;

    font-family:
        inherit;

    font-size:
        12px;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}


.ftv-quick-search__input input:focus {
    border-color:
        rgba(230,185,79,.62);

    box-shadow:
        0 0 0 3px
        rgba(230,185,79,.08);
}


.ftv-quick-search__input input::placeholder {
    color:
        #737982;
}


.ftv-quick-search__submit {
    min-width:
        82px;

    height:
        49px;

    padding:
        0 17px;

    border:
        1px solid #e6b94f;

    border-radius:
        11px;

    background:
        #e6b94f;

    color:
        #171717;

    font-family:
        inherit;

    font-size:
        11px;

    font-weight:
        850;

    cursor:
        pointer;

    transition:
        background .16s ease,
        transform .16s ease;
}


.ftv-quick-search__submit:hover {
    background:
        #d6aa42;

    transform:
        translateY(-1px);
}


.ftv-quick-search__advanced {
    display: table;

    margin:
        12px auto 0;

    color:
        #969ca6;

    font-size:
        8.5px;

    font-weight:
        650;

    text-decoration:
        none;
}


.ftv-quick-search__advanced:hover {
    color:
        #e6b94f;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ftv-quick-search {
        align-items:
            flex-end;

        padding:
            0;
    }


    .ftv-quick-search__panel {
        width:
            100%;

        padding:
            24px
            16px
            calc(
                18px
                + env(safe-area-inset-bottom)
            );

        border:
            0;

        border-radius:
            21px
            21px
            0
            0;

        transform:
            translateY(105%);

        box-shadow:
            0 -18px 60px
            rgba(0,0,0,.40);
    }


    .ftv-quick-search.is-open
    .ftv-quick-search__panel {
        transform:
            translateY(0);
    }


    .ftv-quick-search__panel::before {
        right: 50%;

        width: 42px;
        height: 3px;

        transform:
            translateX(50%);

        border-radius:
            999px;

        background:
            rgba(230,185,79,.64);
    }


    .ftv-quick-search__close {
        top: 12px;
        left: 12px;

        width: 30px;
        height: 30px;

        border-radius:
            9px;

        font-size:
            19px;
    }


    .ftv-quick-search__heading {
        padding:
            0 0 0 34px;

        margin-bottom:
            15px;
    }


    .ftv-quick-search__heading > span {
        font-size:
            8px;
    }


    .ftv-quick-search__heading h2 {
        font-size:
            20px;
    }


    .ftv-quick-search__heading p {
        max-width:
            290px;

        font-size:
            9px;
    }


    .ftv-quick-search__form {
        gap:
            6px;
    }


    .ftv-quick-search__input input {
        height:
            45px;

        padding-right:
            40px;

        border-radius:
            10px;

        font-size:
            11px;
    }


    .ftv-quick-search__input svg {
        right:
            12px;

        width:
            16px;

        height:
            16px;
    }


    .ftv-quick-search__submit {
        min-width:
            63px;

        height:
            45px;

        padding:
            0 11px;

        border-radius:
            10px;

        font-size:
            10px;
    }


    .ftv-quick-search__advanced {
        margin-top:
            10px;

        font-size:
            8px;
    }
}


/* =========================================================
   LIGHT MODE
   ========================================================= */

@media (prefers-color-scheme: light) {

    .ftv-quick-search__backdrop {
        background:
            rgba(28,32,38,.40);
    }


    .ftv-quick-search__panel {
        border-color:
            rgba(20,25,30,.09);

        background:
            rgba(250,250,251,.98);

        box-shadow:
            0 30px 90px
            rgba(30,35,40,.20);
    }


    .ftv-quick-search__heading h2 {
        color:
            #20242a;
    }


    .ftv-quick-search__input input {
        border-color:
            rgba(20,25,30,.09);

        background:
            rgba(20,25,30,.035);

        color:
            #20242a;
    }


    .ftv-quick-search__close {
        border-color:
            rgba(20,25,30,.08);

        background:
            rgba(20,25,30,.04);

        color:
            #4a5059;
    }
}

/* =========================================================
   MOBILE PERFORMANCE PASS
   Reduce expensive blur / shadows during scroll
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Header / fixed UI
     * Keep translucent look without GPU-heavy blur.
     */
    .site-header,
    .mobile-nav,
    .mobile-bottom-nav,
    .ftv-quick-search__panel,
    .ftv-quick-search__backdrop {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }


    /*
     * Use solid/translucent backgrounds instead.
     */
    .site-header,
    .mobile-nav,
    .mobile-bottom-nav {
        background:
            rgba(8,10,13,.97) !important;
    }


    /*
     * Reduce very large shadows.
     */
    .site-header,
    .mobile-nav,
    .mobile-bottom-nav,
    .ftv-quick-search__panel {
        box-shadow:
            0 8px 24px rgba(0,0,0,.18) !important;
    }


    /*
     * Prevent expensive transitions while finger scrolling.
     */
    .site-header *,
    .mobile-nav *,
    .mobile-bottom-nav * {
        transition-duration:
            .12s !important;
    }
}


/* =========================================================
   MOBILE HEADER / NAV — DISCOVER LAYOUT
   ========================================================= */

@media (max-width: 767px) {

    /*
     * الهيدر نفسه مرجع للزر المطلق.
     */
    .site-header .header-inner {
        position: relative !important;
    }


    /*
     * نشيل البحث من الهيدر العلوي فقط.
     *
     * زر البحث الموجود في Bottom Nav يفضل موجود.
     */
    .site-header
    .header-actions
    > .search-toggle {
        display: none !important;
    }


    /*
     * الثلاث نقط:
     * ننقلها لأقصى اليمين في الهيدر.
     */
    .site-header
    .header-actions
    > .more-toggle {

        position: absolute !important;

        top: 50% !important;
        right: 8px !important;
        left: auto !important;

        transform:
            translateY(-50%) !important;

        z-index: 10 !important;

        margin: 0 !important;
    }


    /*
     * نسيب مساحة ناحية اليمين للـ ...
     * عشان ما تدخلش فوق اللوجو.
     */
    .site-header
    .site-brand {
        margin-right: 39px !important;
    }


    /*
     * Bottom nav:
     * خمس عناصر متساوية.
     */
    .mobile-bottom-nav {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }


    .mobile-bottom-nav > a,
    .mobile-bottom-nav > button {
        min-width: 0 !important;
    }


    /*
     * اسم "تصفح وأكتشف" أطول شوية،
     * فنصغره سنة من غير ما يلف لسطرين.
     */
    .mobile-bottom-nav
    > a[href*="/discover/"]
    > span {
        font-size: 8px !important;

        white-space: nowrap !important;
    }


    .mobile-bottom-nav
    > a[href*="/account/"]
    > span {
        font-size: 8px !important;

        white-space: nowrap !important;
    }

}


/* =========================================================
   MOBILE HEADER — MORE BUTTON SPACING
   + DISCOVER NAV SIZE
   ========================================================= */

@media (max-width: 767px) {

    /*
     * زر ...
     * هاته يمين سنة.
     */
    .site-header
    .header-actions
    > .more-toggle {
        right: 3px !important;
    }


    /*
     * زوّد المسافة بين زر ... واللوجو.
     */
    .site-header
    .site-brand {
        margin-right: 46px !important;
    }


    /*
     * Discover:
     * نفس حجم النصوص في باقي الـBottom Nav.
     */
    .mobile-bottom-nav
    > a[href*="/discover/"]
    > span {
        font-size: inherit !important;
        white-space: nowrap !important;
    }


    /*
     * البوصلة نفس حجم أيقونات باقي العناصر.
     */
    .mobile-bottom-nav
    > a[href*="/discover/"]
    > svg {
        width: 21px !important;
        height: 21px !important;
    }


    /*
     * الملف الشخصي يرجع لنفس حجم باقي النصوص أيضًا.
     */
    .mobile-bottom-nav
    > a[href*="/account/"]
    > span {
        font-size: inherit !important;
    }

}


/* =========================================================
   LIGHT THEME — LATEST PAGES
   Episodes / Series / Movies
   ========================================================= */

/* Main titles */

html[data-theme="light"]
.ftv-latest-episodes-page__header h1,

html[data-theme="light"]
.ftv-latest-content-page__header h1,

body[data-theme="light"]
.ftv-latest-episodes-page__header h1,

body[data-theme="light"]
.ftv-latest-content-page__header h1,

body.light-theme
.ftv-latest-episodes-page__header h1,

body.light-theme
.ftv-latest-content-page__header h1,

body.is-light
.ftv-latest-episodes-page__header h1,

body.is-light
.ftv-latest-content-page__header h1 {
    color: #181b20 !important;
}


/* Secondary text */

html[data-theme="light"]
.ftv-latest-episodes-page__header p,

html[data-theme="light"]
.ftv-latest-content-page__header p,

body[data-theme="light"]
.ftv-latest-episodes-page__header p,

body[data-theme="light"]
.ftv-latest-content-page__header p,

body.light-theme
.ftv-latest-episodes-page__header p,

body.light-theme
.ftv-latest-content-page__header p,

body.is-light
.ftv-latest-episodes-page__header p,

body.is-light
.ftv-latest-content-page__header p {
    color: #737983 !important;
}


/* Counts / small metadata */

html[data-theme="light"]
.ftv-latest-episodes-page__count,

body[data-theme="light"]
.ftv-latest-episodes-page__count,

body.light-theme
.ftv-latest-episodes-page__count,

body.is-light
.ftv-latest-episodes-page__count {
    color: #747b85 !important;
}


/* Small 5TV eyebrow */

html[data-theme="light"]
.ftv-latest-content-page__eyebrow,

body[data-theme="light"]
.ftv-latest-content-page__eyebrow,

body.light-theme
.ftv-latest-content-page__eyebrow,

body.is-light
.ftv-latest-content-page__eyebrow {
    color: #b48718 !important;
}


/* Gold underline/accent */

html[data-theme="light"]
.ftv-latest-episodes-page__accent,

html[data-theme="light"]
.ftv-latest-content-page__accent,

body[data-theme="light"]
.ftv-latest-episodes-page__accent,

body[data-theme="light"]
.ftv-latest-content-page__accent,

body.light-theme
.ftv-latest-episodes-page__accent,

body.light-theme
.ftv-latest-content-page__accent,

body.is-light
.ftv-latest-episodes-page__accent,

body.is-light
.ftv-latest-content-page__accent {
    background: rgba(180,135,24,.70) !important;
}


/* Empty state */

html[data-theme="light"]
.ftv-latest-episodes-empty,

html[data-theme="light"]
.ftv-latest-content-empty,

body[data-theme="light"]
.ftv-latest-episodes-empty,

body[data-theme="light"]
.ftv-latest-content-empty,

body.light-theme
.ftv-latest-episodes-empty,

body.light-theme
.ftv-latest-content-empty,

body.is-light
.ftv-latest-episodes-empty,

body.is-light
.ftv-latest-content-empty {
    color: #737983 !important;
}



/* =========================================================
   DESKTOP — LOGGED ACCOUNT DROPDOWN
   ========================================================= */

.account-menu__my-list,
.account-menu__logout {
    display: block;

    padding:
        10px
        13px;

    color:
        inherit;

    font-size:
        11px;

    font-weight:
        750;

    text-decoration:
        none;

    white-space:
        nowrap;
}


.account-menu__my-list {
    border-bottom:
        1px solid
        rgba(255,255,255,.07);
}


.account-menu__logout {
    color:
        #d86a6a;
}


/* =========================================================
   MOBILE ACCOUNT
   ========================================================= */

@media (max-width: 767px) {

    /*
     * نخفي أيقونة الحساب من الهيدر العلوي تمامًا.
     *
     * Guest + Logged.
     */
    .site-header
    .header-actions
    > .account-menu,

    .site-header
    .header-actions
    > .account-button {
        display:
            none !important;
    }


    /*
     * حساب المستخدم المسجل في Bottom Nav.
     */
    .mobile-account-link {
        min-width:
            0;
    }


    /*
     * Guest container يحتل نفس مساحة عناصر Bottom Nav.
     */
    .mobile-account-guest {
        position:
            relative;

        min-width:
            0;

        display:
            flex;

        align-items:
            stretch;

        justify-content:
            center;
    }


    /*
     * زر الشخص للزائر:
     * أيقونة فقط بدون نص.
     */
    .mobile-account-guest__toggle {
        width:
            100%;

        height:
            100%;

        display:
            flex;

        align-items:
            center;

        justify-content:
            center;

        margin:
            0;

        padding:
            0;

        border:
            0;

        background:
            transparent;

        color:
            inherit;

        cursor:
            pointer;
    }


    .mobile-account-guest__toggle svg {
        width:
            21px;

        height:
            21px;

        fill:
            none;

        stroke:
            currentColor;

        stroke-width:
            1.8;

        stroke-linecap:
            round;

        stroke-linejoin:
            round;
    }


    /*
     * Popup فوق الـBottom Nav.
     */
    .mobile-account-guest__dropdown {
        position:
            absolute;

        right:
            0;

        bottom:
            calc(100% + 11px);

        width:
            145px;

        display:
            none;

        padding:
            6px;

        border:
            1px solid
            rgba(255,255,255,.10);

        border-radius:
            12px;

        background:
            rgba(12,14,17,.98);

        box-shadow:
            0 12px 30px
            rgba(0,0,0,.28);

        z-index:
            99999;
    }


    .mobile-account-guest.is-open
    .mobile-account-guest__dropdown {
        display:
            block;
    }


    .mobile-account-guest__dropdown a {
        display:
            block;

        padding:
            10px
            11px;

        border-radius:
            8px;

        color:
            #e7e8ea;

        font-size:
            10px;

        font-weight:
            750;

        text-align:
            right;

        text-decoration:
            none;
    }


    .mobile-account-guest__dropdown a:hover {
        background:
            rgba(255,255,255,.06);
    }


    /*
     * المستخدم المسجل:
     * حسابي بنفس مقاسات باقي عناصر Bottom Nav.
     */
    .mobile-account-link > span {
        font-size:
            inherit !important;

        white-space:
            nowrap !important;
    }


    .mobile-account-link > svg {
        width:
            21px !important;

        height:
            21px !important;
    }

}


/* =========================================================
   LIGHT MODE — MOBILE ACCOUNT POPUP
   ========================================================= */

@media (max-width: 767px) {

    html[data-theme="light"]
    .mobile-account-guest__dropdown,

    body[data-theme="light"]
    .mobile-account-guest__dropdown,

    body.light-theme
    .mobile-account-guest__dropdown,

    body.is-light
    .mobile-account-guest__dropdown {

        border-color:
            rgba(0,0,0,.08);

        background:
            #fff;

        box-shadow:
            0 10px 28px
            rgba(0,0,0,.10);
    }


    html[data-theme="light"]
    .mobile-account-guest__dropdown a,

    body[data-theme="light"]
    .mobile-account-guest__dropdown a,

    body.light-theme
    .mobile-account-guest__dropdown a,

    body.is-light
    .mobile-account-guest__dropdown a {
        color:
            #25292f;
    }

}


/* =========================================================
   MOBILE BOTTOM NAV — DISCOVER + GUEST ACCOUNT FIX
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
       Discover item: same size/alignment as other nav items
       ----------------------------------------------------- */

    .mobile-bottom-nav
    > a[href*="/discover/"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 4px !important;

        min-width: 0 !important;

        padding: 0 !important;

        text-align: center !important;
    }

    .mobile-bottom-nav
    > a[href*="/discover/"]
    > svg {
        width: 23px !important;
        height: 23px !important;

        margin: 0 !important;

        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;

        flex: 0 0 auto !important;
    }

    .mobile-bottom-nav
    > a[href*="/discover/"]
    > span {
        margin: 0 !important;

        font-size: inherit !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;

        transform: none !important;
    }


    /* -----------------------------------------------------
       Guest account item: same alignment as nav icons
       ----------------------------------------------------- */

    .mobile-account-guest {
        position: relative !important;

        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;

        min-width: 0 !important;

        overflow: visible !important;
    }

    .mobile-account-guest__toggle {
        width: 100% !important;
        height: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
        background: transparent !important;

        color: inherit !important;
    }

    .mobile-account-guest__toggle svg {
        width: 23px !important;
        height: 23px !important;

        margin: 0 !important;

        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }


    /* -----------------------------------------------------
       Guest dropdown:
       keep fully inside screen and open to the RIGHT
       ----------------------------------------------------- */

    .mobile-account-guest__dropdown {
        position: fixed !important;

        right: 10px !important;
        left: auto !important;

        bottom: 78px !important;

        width: 150px !important;

        transform: none !important;

        z-index: 999999 !important;
    }


    /* لو فيه أي قواعد قديمة بتحاول تزقه شمال */
    .mobile-account-guest.is-open
    .mobile-account-guest__dropdown {
        right: 10px !important;
        left: auto !important;

        transform: none !important;
    }


    /* -----------------------------------------------------
       Logged account item
       ----------------------------------------------------- */

    .mobile-account-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 4px !important;

        min-width: 0 !important;

        padding: 0 !important;

        text-align: center !important;
    }

    .mobile-account-link > svg {
        width: 23px !important;
        height: 23px !important;

        margin: 0 !important;
    }

    .mobile-account-link > span {
        margin: 0 !important;

        font-size: inherit !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;
    }

}


/* =========================================================
   MOBILE GUEST ACCOUNT DROPDOWN — ABOVE ACCOUNT ICON
   ========================================================= */

@media (max-width: 767px) {

    .mobile-account-guest {
        position: relative !important;
        overflow: visible !important;
    }

    .mobile-account-guest__dropdown {
        position: absolute !important;

        /* فوق زر الشخص مباشرة */
        bottom: calc(100% + 8px) !important;

        /* مثبت على يمين خانة الحساب */
        right: 0 !important;
        left: auto !important;

        width: 150px !important;

        transform: none !important;

        z-index: 999999 !important;
    }

    .mobile-account-guest.is-open
    .mobile-account-guest__dropdown {
        right: 0 !important;
        left: auto !important;
        bottom: calc(100% + 8px) !important;
    }

}


/* =========================================================
   FINAL MOBILE GUEST ACCOUNT DROPDOWN FIX
   Keep popup fully inside viewport
   ========================================================= */

@media (max-width: 767px) {

    .mobile-account-guest {
        position: relative !important;
        overflow: visible !important;
    }

    .mobile-account-guest__dropdown,
    .mobile-account-guest.is-open
    .mobile-account-guest__dropdown {

        /*
         * الحساب موجود أقصى الشمال في الـBottom Nav،
         * لذلك نثبت البوكس داخل حافة الشاشة اليسرى.
         */
        position: fixed !important;

        left: 10px !important;
        right: auto !important;

        bottom:
            calc(
                env(safe-area-inset-bottom, 0px)
                + 78px
            ) !important;

        width: 152px !important;
        max-width: calc(100vw - 20px) !important;

        box-sizing: border-box !important;

        margin: 0 !important;
        transform: none !important;

        overflow: hidden !important;

        z-index: 9999999 !important;
    }

    .mobile-account-guest__dropdown a {
        width: 100% !important;

        display: flex !important;
        align-items: center !important;

        box-sizing: border-box !important;

        padding: 11px 12px !important;

        white-space: nowrap !important;

        text-align: right !important;
        direction: rtl !important;
    }

}


/*
 * Very narrow phones.
 */
@media (max-width: 360px) {

    .mobile-account-guest__dropdown,
    .mobile-account-guest.is-open
    .mobile-account-guest__dropdown {

        left: 7px !important;

        width: 145px !important;
        max-width: calc(100vw - 14px) !important;
    }
}


/* =========================================================
   LATEST EPISODES — 5TV EYEBROW
   ========================================================= */

.ftv-latest-episodes-page__eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #e6b94f;

    font-size: 9px;
    font-weight: 850;
    line-height: 1;

    text-transform: uppercase;
}


/* Light theme */

html[data-theme="light"]
.ftv-latest-episodes-page__eyebrow,

body[data-theme="light"]
.ftv-latest-episodes-page__eyebrow,

body.light-theme
.ftv-latest-episodes-page__eyebrow,

body.is-light
.ftv-latest-episodes-page__eyebrow {
    color: #b48718 !important;
}


/* Mobile */

@media (max-width: 767px) {

    .ftv-latest-episodes-page__eyebrow {
        margin-bottom: 3px;
        font-size: 8px;
    }

}


/* =========================================================
   LATEST EPISODES HEADER — EXACT SAME AS SERIES / MOVIES
   ========================================================= */

.ftv-latest-episodes-page__header
.ftv-latest-content-page__eyebrow {
    display: block !important;
    margin-bottom: 4px !important;

    color: #e6b94f !important;

    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.ftv-latest-episodes-page__header
.ftv-latest-content-page__title {
    margin: 0 !important;

    color: var(--ftv-text, #fff) !important;

    font-size: clamp(25px, 2.2vw, 34px) !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
}

.ftv-latest-episodes-page__header
.ftv-latest-content-page__accent {
    display: block !important;

    width: 38px !important;
    height: 3px !important;

    margin-top: 7px !important;

    border-radius: 999px !important;

    background: rgba(230,185,79,.58) !important;
}


/* LIGHT */

html[data-theme="light"]
.ftv-latest-episodes-page__header
.ftv-latest-content-page__title,

body[data-theme="light"]
.ftv-latest-episodes-page__header
.ftv-latest-content-page__title,

body.light-theme
.ftv-latest-episodes-page__header
.ftv-latest-content-page__title,

body.is-light
.ftv-latest-episodes-page__header
.ftv-latest-content-page__title {
    color: #181b20 !important;
}


/* MOBILE */

@media (max-width: 767px) {

    .ftv-latest-episodes-page__header
    .ftv-latest-content-page__eyebrow {
        margin-bottom: 3px !important;
        font-size: 8px !important;
    }

    .ftv-latest-episodes-page__header
    .ftv-latest-content-page__title {
        font-size: 22px !important;
    }

    .ftv-latest-episodes-page__header
    .ftv-latest-content-page__accent {
        width: 38px !important;
        height: 3px !important;
        margin-top: 7px !important;
    }
}


/* =========================================================
        transform: scale(1.04);
    }

}


@media (max-width:700px) {

    .mobile-bottom-nav a[href*="discover"] svg {
        width: 1.55rem;
        height: 1.55rem;
    }

}


@media (max-width:700px) {

    .mobile-bottom-nav a[href*="/discover/"] svg {
        width: 1.55rem;
        height: 1.55rem;
    }

}


/* Quick Search - close button on far right */
.ftv-quick-search__panel .ftv-quick-search__close {
    left: auto !important;
    right: 13px !important;
    inset-inline-start: auto !important;
    inset-inline-end: 13px !important;
}


/* =========================================================
   QUICK SEARCH CLOSE — FORCE PHYSICAL RIGHT
   ========================================================= */

html[dir="rtl"] .ftv-quick-search__panel > .ftv-quick-search__close,
.ftv-quick-search__panel > .ftv-quick-search__close {
    position: absolute !important;

    right: 13px !important;
    left: auto !important;

    inset-inline-start: unset !important;
    inset-inline-end: unset !important;

    margin-right: 0 !important;
    margin-left: 0 !important;
}


/* =========================================================
   QUICK SEARCH CLOSE — FINAL POSITION
   ========================================================= */

.ftv-quick-search__panel {
    position: relative !important;
}

/* X ثابت أقصى اليمين */
.ftv-quick-search__panel > .ftv-quick-search__close {
    position: absolute !important;

    top: 13px !important;
    right: 13px !important;
    left: auto !important;

    inset: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;

    margin: 0 !important;

    z-index: 50 !important;
}

/*
 * نسيب مكان للـ X عشان ما يدخلش فوق
 * "ابحث في 5TV" والعنوان
 */
.ftv-quick-search__heading {
    padding-right: 48px !important;
}


/* Mobile */
@media (max-width: 767px) {

    .ftv-quick-search__panel > .ftv-quick-search__close {
        top: 12px !important;
        right: 12px !important;
    }

    .ftv-quick-search__heading {
        padding-right: 46px !important;
    }
}



/* =========================================================
   5TV PRIMARY MENU — MODERN SUBMENU
   ========================================================= */

/*
 * Desktop
 */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-menu > li {
    position: relative;
}

.desktop-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
}



/*
 * Desktop dropdown.
 */
.desktop-menu .sub-menu {
    position: absolute;
    z-index: 9999;

    top: calc(100% + 13px);
    inset-inline-start: 50%;

    min-width: 190px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: rgba(17, 20, 25, .98);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .38);

    transform:
        translateX(50%)
        translateY(-6px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;
}


/*
 * Small invisible bridge so hover doesn't break
 * between parent and dropdown.
 */
.desktop-menu .menu-item-has-children > .sub-menu::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: 14px;
}


.desktop-menu .menu-item-has-children:hover > .sub-menu,
.desktop-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(50%)
        translateY(0);
}


.desktop-menu .sub-menu li {
    width: 100%;
}


.desktop-menu .sub-menu a {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 11px 13px;

    border-radius: 10px;

    color: var(--text-muted);
    white-space: nowrap;

    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}


.desktop-menu .sub-menu a:hover,
.desktop-menu .sub-menu .current-menu-item > a {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    transform: translateX(-2px);
}


/* =========================================================
   MOBILE MENU SUBMENU
   ========================================================= */

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}


.mobile-menu > li {
    position: relative;
}


/*
 * Parent row.
 */
.mobile-menu > .menu-item-has-children {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
}


.mobile-menu > .menu-item-has-children > a {
    grid-column: 1;
    min-width: 0;
}


/*
 * Arrow button injected by JS.
 */
.ftv-mobile-submenu-toggle {
    grid-column: 2;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    padding: 0;
    margin-inline-start: 4px;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;

    color: var(--text-muted);
    background: rgba(255, 255, 255, .035);

    cursor: pointer;

    transition:
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}


.ftv-mobile-submenu-toggle::before {
    content: "";

    width: 8px;
    height: 8px;

    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg) translate(-1px, -1px);

    transition: transform 180ms ease;
}


.mobile-menu > .menu-item-has-children.is-submenu-open
> .ftv-mobile-submenu-toggle {
    color: var(--accent);
    border-color: color-mix(
        in srgb,
        var(--accent) 45%,
        transparent
    );
    background: color-mix(
        in srgb,
        var(--accent) 8%,
        transparent
    );
}




/*
 * Mobile submenu.
 */
.mobile-menu .sub-menu {
    grid-column: 1 / -1;

    display: grid;
    grid-template-rows: 0fr;

    width: 100%;

    padding: 0;
    margin: 0;

    list-style: none;

    opacity: 0;

    overflow: hidden;

    transition:
        grid-template-rows 220ms ease,
        opacity 180ms ease,
        margin 220ms ease;
}


/*
 * WordPress gives us UL directly, so animation
 * uses the child LI visibility through the UL.
 */
.mobile-menu .sub-menu > li {
    min-height: 0;
    overflow: hidden;
}


.mobile-menu
.menu-item-has-children.is-submenu-open
> .sub-menu {
    grid-template-rows: 1fr;

    margin-top: 7px;
    margin-bottom: 5px;

    opacity: 1;
}


.mobile-menu .sub-menu a {
    display: flex;
    align-items: center;

    min-height: 43px;

    padding:
        10px
        16px;

    margin: 3px 0;

    border-radius: 10px;

    color: var(--text-muted);

    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .045);
}


.mobile-menu .sub-menu a::before {
    content: "";

    width: 5px;
    height: 5px;

    flex: 0 0 auto;

    margin-inline-end: 9px;

    border-radius: 50%;

    background: var(--accent);
}


.mobile-menu .sub-menu .current-menu-item > a {
    color: var(--text);
    border-color: color-mix(
        in srgb,
        var(--accent) 30%,
        transparent
    );
}


/*
 * Desktop dropdown only on desktop.
 */
@media (max-width: 900px) {
    .desktop-menu .sub-menu {
        display: none !important;
    }
}


/* =========================================================
   5TV MENU SUBMENU — FINAL FIX
   ========================================================= */


/* ---------------------------------------------------------
   DESKTOP
   --------------------------------------------------------- */

.desktop-menu > .menu-item-has-children {
    position: relative;
}


/*
 * نخلي الرابط نفسه طبيعي.
 * ممنوع استخدام ::after للسهم لأنه مستخدم
 * بالفعل في active underline في القالب.
 */
.desktop-menu > .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


/*
 * السهم الحقيقي اللي هيضيفه JS.
 */
.ftv-desktop-submenu-arrow {
    width: 9px;
    height: 9px;

    display: inline-block;
    flex: 0 0 auto;

    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    /*
     * Down arrow.
     */
    transform: rotate(45deg) translateY(-2px);

    opacity: .65;

    transition:
        transform 170ms ease,
        opacity 170ms ease;
}


/*
 * لما الـDropdown يفتح:
 * السهم يفضل باصص لتحت.
 */
.desktop-menu > .menu-item-has-children:hover
> a
> .ftv-desktop-submenu-arrow,

.desktop-menu > .menu-item-has-children:focus-within
> a
> .ftv-desktop-submenu-arrow {
    transform: rotate(45deg) translateY(-2px);
    opacity: 1;
}


/*
 * الـsubmenu.
 */
.desktop-menu > .menu-item-has-children > .sub-menu {
    position: absolute;

    top: calc(100% + 12px);
    inset-inline-start: 50%;

    min-width: 190px;

    margin: 0;
    padding: 8px;

    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 4px;

    background: rgba(17, 20, 25, .98);

    border:
        1px solid
        rgba(255, 255, 255, .09);

    border-radius: 14px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .38);

    transform:
        translateX(50%)
        translateY(-6px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 99999;

    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;
}


/*
 * Bridge بين العنصر والـDropdown
 * عشان الـhover ما يقطعش.
 */
.desktop-menu > .menu-item-has-children
> .sub-menu::before {
    content: "";

    position: absolute;

    inset-inline: 0;
    bottom: 100%;

    height: 14px;
}


.desktop-menu > .menu-item-has-children:hover
> .sub-menu,

.desktop-menu > .menu-item-has-children:focus-within
> .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(50%)
        translateY(0);
}


.desktop-menu .sub-menu > li {
    width: 100%;
}


.desktop-menu .sub-menu a {
    width: 100%;

    display: flex;
    align-items: center;

    padding: 11px 13px;

    border-radius: 10px;

    white-space: nowrap;

    color: var(--text-muted);

    transition:
        color 150ms ease,
        background 150ms ease;
}


.desktop-menu .sub-menu a:hover,
.desktop-menu .sub-menu .current-menu-item > a {
    color: var(--text);

    background:
        rgba(255, 255, 255, .06);
}


/*
 * مهم:
 * الخط الأصفر للعُنصر الرئيسي النشط
 * يفضل تحت النص بالكامل.
 */
.desktop-menu
> .current-menu-item.menu-item-has-children
> a,

.desktop-menu
> .current-menu-parent.menu-item-has-children
> a,

.desktop-menu
> .current-menu-ancestor.menu-item-has-children
> a {
    position: relative;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

.mobile-menu
> .menu-item-has-children {
    position: relative;

    display: grid;

    /*
     * الرابط ياخد كل العرض،
     * والسهم له خانة مستقلة.
     */
    grid-template-columns:
        minmax(0, 1fr)
        44px;

    column-gap: 7px;

    align-items: stretch;
}


/*
 * الرابط الرئيسي.
 */
.mobile-menu
> .menu-item-has-children
> a {
    grid-column: 1;
    grid-row: 1;

    width: 100%;

    min-width: 0;

    display: flex;
    align-items: center;

    /*
     * مهم:
     * الرابط لا يمتد فوق زر السهم.
     */
    position: relative;
    z-index: 1;
}


/*
 * زر السهم.
 */
.mobile-menu
> .menu-item-has-children
> .ftv-mobile-submenu-toggle {
    grid-column: 2;
    grid-row: 1;

    width: 44px;
    height: 100%;

    min-height: 48px;

    margin: 0;
    padding: 0;

    display: grid;
    place-items: center;

    position: relative;
    z-index: 3;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, .035);

    color:
        var(--text-muted);

    cursor: pointer;

    touch-action: manipulation;
}


/*
 * سهم لتحت.
 */
.mobile-menu
> .menu-item-has-children
> .ftv-mobile-submenu-toggle::before {
    content: "";

    width: 8px;
    height: 8px;

    border-inline-end:
        2px solid
        currentColor;

    border-bottom:
        2px solid
        currentColor;

    transform:
        rotate(45deg)
        translate(-1px, -1px);

    transition:
        transform 180ms ease,
        color 180ms ease;
}


/*
 * لما القائمة تفتح:
 * يفضل السهم باصص لتحت.
 */
.mobile-menu
> .menu-item-has-children.is-submenu-open
> .ftv-mobile-submenu-toggle::before {
    transform:
        rotate(45deg)
        translate(-1px, -1px);
}


.mobile-menu
> .menu-item-has-children.is-submenu-open
> .ftv-mobile-submenu-toggle {
    color: var(--accent);

    border-color:
        rgba(228, 177, 55, .55);

    background:
        rgba(228, 177, 55, .07);
}


/*
 * الـsubmenu دايمًا في Row لوحده.
 * عمره ما يدخل فوق خانة السهم.
 */
.mobile-menu
> .menu-item-has-children
> .sub-menu {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;

    max-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    opacity: 0;

    list-style: none;

    pointer-events: none;

    transition:
        max-height 220ms ease,
        opacity 160ms ease,
        margin 220ms ease;
}


.mobile-menu
> .menu-item-has-children.is-submenu-open
> .sub-menu {
    max-height: 250px;

    margin-top: 7px;

    opacity: 1;

    pointer-events: auto;
}


.mobile-menu
> .menu-item-has-children
> .sub-menu
> li {
    width: 100%;

    margin: 0;
    padding: 0;

    position: relative;
}


.mobile-menu
> .menu-item-has-children
> .sub-menu
> li
> a {
    width: 100%;

    min-height: 46px;

    display: flex;
    align-items: center;

    margin: 4px 0;

    padding:
        10px
        16px;

    border-radius: 11px;

    border:
        1px solid
        rgba(255, 255, 255, .05);

    background:
        rgba(255, 255, 255, .025);

    color:
        var(--text-muted);

    /*
     * يمنع أي امتداد غريب للرابط.
     */
    position: relative;
    z-index: 1;
}


.mobile-menu
> .menu-item-has-children
> .sub-menu
> li
> a::before {
    content: "";

    width: 5px;
    height: 5px;

    margin-inline-end: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--accent);
}


/*
 * ما نخليش submenu desktop يظهر
 * في مقاسات الموبايل.
 */
@media (max-width: 900px) {

    .desktop-menu
    .sub-menu {
        display: none !important;
    }
}


/* Disable the OLD CSS-generated desktop submenu arrow.
   The new arrow is a real span, keeping ::after free
   for the active-menu underline. */
.desktop-menu
> .menu-item-has-children
> a::after {
    /*
     * لا نستخدمه كسهم.
     * نخليه للقالب/active state.
     */
}


/* =========================================================
   5TV SUBMENU ARROWS — DOWN WHEN OPEN/HOVER
   ========================================================= */

/* Desktop: السهم يبص لتحت عند الوقوف أو فتح الـsubmenu */
.desktop-menu
> .menu-item-has-children
> a
> .ftv-desktop-submenu-arrow {
    transform: rotate(45deg) translateY(-2px) !important;
}

.desktop-menu
> .menu-item-has-children:hover
> a
> .ftv-desktop-submenu-arrow,

.desktop-menu
> .menu-item-has-children:focus-within
> a
> .ftv-desktop-submenu-arrow {
    transform: rotate(45deg) translateY(-2px) !important;
    opacity: 1;
}


/* Mobile: مقفول */
.mobile-menu
> .menu-item-has-children
> .ftv-mobile-submenu-toggle::before {
    transform: rotate(45deg) translate(-1px, -1px) !important;
}


/* Mobile: مفتوح — يفضل باصص لتحت */
.mobile-menu
> .menu-item-has-children.is-submenu-open
> .ftv-mobile-submenu-toggle::before {
    transform: rotate(45deg) translate(-1px, -1px) !important;
}


/* =========================================================
   5TV SUBMENU CHEVRON — TRUE DIRECTION FIX
   ========================================================= */


/* -------------------------
   DESKTOP — CLOSED
   ------------------------- */

.desktop-menu
> .menu-item-has-children
> a
> .ftv-desktop-submenu-arrow {
    width: 8px !important;
    height: 8px !important;

    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;

    /* > */
    transform: rotate(-45deg) !important;

    opacity: .65;
    transition:
        transform 180ms ease,
        opacity 180ms ease !important;
}


/* Desktop — hover/open = ↓ */
.desktop-menu
> .menu-item-has-children:hover
> a
> .ftv-desktop-submenu-arrow,

.desktop-menu
> .menu-item-has-children:focus-within
> a
> .ftv-desktop-submenu-arrow {
    /* ⌄ */
    transform: rotate(45deg) !important;
    opacity: 1 !important;
}


/* -------------------------
   MOBILE — CLOSED
   ------------------------- */

.mobile-menu
> .menu-item-has-children
> .ftv-mobile-submenu-toggle::before {
    width: 8px !important;
    height: 8px !important;

    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;

    /* > */
    transform: rotate(-45deg) !important;

    transition:
        transform 180ms ease !important;
}


/* Mobile — submenu open = ↓ */
.mobile-menu
> .menu-item-has-children.is-submenu-open
> .ftv-mobile-submenu-toggle::before {
    /* ⌄ */
    transform: rotate(45deg) !important;
}



/* =========================================================
   5TV SUBMENU ARROW — LEFT CLOSED / DOWN OPEN
   ========================================================= */

/* Desktop — default = left */
.desktop-menu
> .menu-item-has-children
> a
> .ftv-desktop-submenu-arrow {
    width: 8px !important;
    height: 8px !important;

    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;

    transform: rotate(135deg) !important;

    opacity: .65;
}


/* Desktop — hover/open = down */
.desktop-menu
> .menu-item-has-children:hover
> a
> .ftv-desktop-submenu-arrow,

.desktop-menu
> .menu-item-has-children:focus-within
> a
> .ftv-desktop-submenu-arrow {
    transform: rotate(45deg) !important;
    opacity: 1 !important;
}


/* Mobile — default = left */
.mobile-menu
> .menu-item-has-children
> .ftv-mobile-submenu-toggle::before {
    width: 8px !important;
    height: 8px !important;

    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;

    transform: rotate(135deg) !important;
}


/* Mobile — submenu open = down */
.mobile-menu
> .menu-item-has-children.is-submenu-open
> .ftv-mobile-submenu-toggle::before {
    transform: rotate(45deg) !important;
}



/* =========================================================
   5TV MOBILE SUBMENU — ACTIVE ITEM
   ========================================================= */

.mobile-menu
.sub-menu
.current-menu-item > a,

.mobile-menu
.sub-menu
.current_page_item > a,

.mobile-menu
.sub-menu
.current-menu-parent > a,

.mobile-menu
.sub-menu
.current-menu-ancestor > a {
    color: var(--accent) !important;

    border-color:
        rgba(228, 177, 55, .45) !important;

    background:
        rgba(228, 177, 55, .07) !important;

    font-weight: 650;
}


/* النقطة جنب العنصر الحالي تبقى أصفر أوضح */
.mobile-menu
.sub-menu
.current-menu-item > a::before,

.mobile-menu
.sub-menu
.current_page_item > a::before {
    background: var(--accent) !important;

    box-shadow:
        0 0 0 3px
        rgba(228, 177, 55, .10);
}


/* العنصر الأب "آخر الإضافات" يبقى نشط برضه
   طالما المستخدم داخل صفحة من الصب منيو */
.mobile-menu
> .current-menu-parent
> a,

.mobile-menu
> .current-menu-ancestor
> a {
    color: var(--accent) !important;
}



/* =========================================================
   5TV MOBILE MENU — ACTIVE STATE FOR ALL ITEMS
   ========================================================= */

/*
 * Top-level current page:
 * الرئيسية / آخر الحلقات / آخر الإضافات /
 * تصفح واكتشف / الجدول الأسبوعي ...إلخ
 */
.mobile-menu
> .current-menu-item
> a,

.mobile-menu
> .current_page_item
> a {
    color: var(--accent) !important;

    border-color:
        rgba(228, 177, 55, .40) !important;

    background:
        rgba(228, 177, 55, .065) !important;

    font-weight: 650 !important;
}


/*
 * لو الصفحة الحالية داخل Submenu،
 * خلي الـParent نفسه واضح إنه Active.
 */
.mobile-menu
> .current-menu-parent
> a,

.mobile-menu
> .current-menu-ancestor
> a,

.mobile-menu
> .current_page_parent
> a,

.mobile-menu
> .current_page_ancestor
> a {
    color: var(--accent) !important;

    border-color:
        rgba(228, 177, 55, .32) !important;

    background:
        rgba(228, 177, 55, .045) !important;

    font-weight: 650 !important;
}


/*
 * Current submenu item.
 */
.mobile-menu
.sub-menu
.current-menu-item
> a,

.mobile-menu
.sub-menu
.current_page_item
> a {
    color: var(--accent) !important;

    border-color:
        rgba(228, 177, 55, .45) !important;

    background:
        rgba(228, 177, 55, .075) !important;

    font-weight: 650 !important;
}


/*
 * نقطة العنصر الحالي داخل الـsubmenu.
 */
.mobile-menu
.sub-menu
.current-menu-item
> a::before,

.mobile-menu
.sub-menu
.current_page_item
> a::before {
    background: var(--accent) !important;

    box-shadow:
        0 0 0 3px
        rgba(228, 177, 55, .11);
}


/* =========================================================
   5TV HEADER VIP — EXACT PROFILE BADGE
   ========================================================= */

.site-header .ftv-header-vip,
.site-header .ftv-header-vip--badge {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;

    direction: rtl !important;

    gap: .22rem !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: .34rem .62rem !important;

    border: 1px solid transparent !important;
    border-radius: 99px !important;

    background: var(--accent, #f1c34a) !important;
    color: #111 !important;

    font-size: .75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    flex: 0 0 auto !important;
}


/* VIP stays on the RIGHT */
.site-header .ftv-header-vip > span:first-child {
    display: inline-block !important;
    order: 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;
    line-height: 1 !important;
}


/* Crown stays on the LEFT */
.site-header .ftv-header-vip .ftv-header-vip-crown {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    order: 2 !important;

    width: .9rem !important;
    height: .9rem !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;
    line-height: 0 !important;
}


.site-header .ftv-header-vip .ftv-header-vip-crown svg {
    display: block !important;

    width: .9rem !important;
    height: .9rem !important;

    margin: 0 !important;
    padding: 0 !important;

    fill: currentColor !important;
}


/* Kill any generic header styles */
.site-header .header-inner > .ftv-header-vip {
    flex-direction: row !important;
}

.site-header .ftv-header-vip:hover,
.site-header .ftv-header-vip:focus {
    background: var(--accent, #f1c34a) !important;
    color: #111 !important;
    opacity: .92;
}


/* Phone */
@media (max-width: 900px) {

    .site-header .ftv-header-vip,
    .site-header .ftv-header-vip--badge {
        padding: .3rem .52rem !important;
        gap: .18rem !important;

        font-size: .7rem !important;
    }

    .site-header .ftv-header-vip .ftv-header-vip-crown,
    .site-header .ftv-header-vip .ftv-header-vip-crown svg {
        width: .82rem !important;
        height: .82rem !important;
    }
}


/* =========================================================
   VIP POSITION FIX — keep badge beside logo
   ========================================================= */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
}

.site-brand .ftv-header-vip {
    margin: 0 !important;
    flex: 0 0 auto !important;
}


/* VIP badge — zero gap */
.site-brand {
    gap: 0 !important;
}

.site-brand .ftv-header-vip {
    margin: 0 !important;
}


/* VIP spacing final */
.site-brand {
    gap: .3rem !important;
}

.site-brand .ftv-header-vip {
    margin: 0 !important;
}

/* no extra space between VIP block and main nav */
.header-inner {
    column-gap: 0 !important;
}

.desktop-nav {
    margin-inline-start: 0 !important;
}


/* Header VIP spacing — final */
.site-brand {
    gap: .35rem !important;
}

/* give the nav a small breathing space from VIP */
.desktop-nav {
    margin-inline-start: .45rem !important;
}

/* keep the general header layout tight */
.header-inner {
    column-gap: 0 !important;
}


/* VIP ↔ الرئيسية spacing */
.desktop-nav {
    margin-inline-start: .75rem !important;
}

/* =========================================================
   5TV VIP — MOBILE FINAL
   Hide header badge + compact yellow badge inside More menu
   ========================================================= */

@media (max-width: 900px) {

    /* شيل VIP من هيدر الموبايل فقط */
    .site-header .ftv-header-vip,
    .site-header .ftv-header-vip--badge {
        display: none !important;
    }


    /* VIP داخل قائمة المزيد */
    .mobile-sheet__nav .ftv-mobile-vip,
    .mobile-sheet__nav .ftv-mobile-vip--badge {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        direction: rtl !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: max-content !important;

        height: auto !important;
        min-height: 0 !important;

        gap: .22rem !important;

        margin: .45rem 0 .75rem auto !important;
        padding: .36rem .62rem !important;

        border: 1px solid transparent !important;
        border-radius: 999px !important;

        background: var(--accent, #f1c34a) !important;
        color: #111 !important;

        font-size: .75rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        text-decoration: none !important;
        white-space: nowrap !important;
    }


    /* VIP يمين */
    .mobile-sheet__nav .ftv-mobile-vip > span:last-child {
        order: 1 !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #111 !important;
        line-height: 1 !important;
    }


    /* التاج شمال */
    .mobile-sheet__nav .ftv-mobile-vip__crown {
        order: 2 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: .88rem !important;
        height: .88rem !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #111 !important;
        line-height: 0 !important;
    }


    .mobile-sheet__nav .ftv-mobile-vip__crown svg {
        display: block !important;

        width: .88rem !important;
        height: .88rem !important;

        margin: 0 !important;
        padding: 0 !important;

        fill: currentColor !important;
    }


    /* امنع أي ستايل عام للقائمة من تكبيره */
    .mobile-sheet__nav > .ftv-mobile-vip {
        position: static !important;
        transform: none !important;
    }
}


/* VIP badge background — desktop + mobile */
.site-header .ftv-header-vip,
.site-header .ftv-header-vip--badge,
.mobile-sheet__nav .ftv-mobile-vip,
.mobile-sheet__nav .ftv-mobile-vip--badge {
    background: #e6b94fb0 !important;
}

.site-header .ftv-header-vip:hover,
.site-header .ftv-header-vip:focus,
.mobile-sheet__nav .ftv-mobile-vip:hover,
.mobile-sheet__nav .ftv-mobile-vip:focus {
    background: #e6b94fb0 !important;
}


/* VIP ↔ الرئيسية — slightly wider */
.desktop-nav {
    margin-inline-start: 1rem !important;
}


/* =========================================================
   MOBILE VIP ROW — SAME AS OTHER MENU BUTTONS
   ========================================================= */

@media (max-width: 900px) {

    /*
     * الصف الخارجي:
     * نفس شكل أزرار القائمة العادية.
     */
    .mobile-sheet__nav > .ftv-mobile-vip,
    .mobile-sheet__nav > .ftv-mobile-vip--badge {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        direction: rtl !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        min-height: 3.25rem !important;

        margin: .35rem 0 !important;
        padding: 0 1rem !important;

        box-sizing: border-box !important;

        border: 0 !important;
        border-radius: .85rem !important;

        background: var(--surface-2) !important;
        color: var(--text-muted) !important;

        text-decoration: none !important;

        transform: none !important;
    }


    /*
     * الـBadge الصفراء نفسها على اليمين.
     */
    .ftv-mobile-vip-badge {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        direction: rtl !important;

        gap: .22rem !important;

        width: auto !important;
        min-width: 0 !important;

        padding: .36rem .62rem !important;

        border-radius: 999px !important;

        background: #e6b94fb0 !important;
        color: #111 !important;

        font-size: .75rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        white-space: nowrap !important;
    }


    /* VIP يمين */
    .ftv-mobile-vip-badge > span:first-child {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* التاج شمال */
    .ftv-mobile-vip-badge .ftv-mobile-vip__crown {
        order: 2 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: .88rem !important;
        height: .88rem !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #111 !important;
        line-height: 0 !important;
    }

    .ftv-mobile-vip-badge .ftv-mobile-vip__crown svg {
        display: block !important;

        width: .88rem !important;
        height: .88rem !important;

        fill: currentColor !important;
    }
}


/* =========================================================
   MOBILE VIP ROW — FINAL
   Outer row like menu items, original yellow VIP pill inside
   ========================================================= */

@media (max-width: 900px) {

    /* الصف الخارجي مثل الرئيسية وباقي القائمة */
    .mobile-sheet__nav > .ftv-mobile-vip {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        direction: rtl !important;

        width: 100% !important;
        max-width: none !important;
        min-height: 3.25rem !important;

        margin: .35rem 0 !important;
        padding: 0 1rem !important;

        box-sizing: border-box !important;

        border: 0 !important;
        border-radius: .85rem !important;

        background: var(--surface-2) !important;

        text-decoration: none !important;
        transform: none !important;
    }


    /* نفس الـVIP الأصفر بالحجم الطبيعي */
    .mobile-sheet__nav .ftv-mobile-vip-badge {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        direction: rtl !important;

        width: auto !important;
        min-width: auto !important;
        height: auto !important;

        gap: .22rem !important;

        margin: 0 !important;
        padding: .34rem .58rem !important;

        border: 1px solid transparent !important;
        border-radius: 999px !important;

        background: #e6b94fb0 !important;
        color: #111 !important;

        font-size: .75rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        white-space: nowrap !important;
    }


    /* VIP يمين */
    .mobile-sheet__nav .ftv-mobile-vip-badge > span:first-child {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;

        font-size: .75rem !important;
        font-weight: 700 !important;
        color: #111 !important;
    }


    /* التاج شمال */
    .mobile-sheet__nav .ftv-mobile-vip-badge .ftv-mobile-vip__crown {
        order: 2 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: .88rem !important;
        height: .88rem !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #111 !important;
        line-height: 0 !important;
    }

    .mobile-sheet__nav .ftv-mobile-vip-badge .ftv-mobile-vip__crown svg {
        display: block !important;
        width: .88rem !important;
        height: .88rem !important;
        fill: currentColor !important;
    }
}


/* Mobile VIP badge border */
@media (max-width: 900px) {
    .ftv-mobile-vip-badge {
        border: 4px solid transparent !important;
    }
}


@media (max-width: 900px) {
    .ftv-mobile-vip-badge {
        border: 4px solid transparent !important;

        padding: .46rem .72rem !important;
        min-height: 1.9rem !important;

        font-size: .78rem !important;
    }
}

@media (max-width: 900px) {
    .ftv-mobile-vip-badge {
        padding-left: .95rem !important;
        padding-right: .95rem !important;
    }
}

/* =========================================================
   MOBILE VIP — SAME BUTTON AS OTHER MENU ITEMS
   ========================================================= */

@media (max-width: 900px) {

    .mobile-sheet__nav > .ftv-mobile-vip,
    .mobile-sheet__nav > .ftv-mobile-vip--badge {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        direction: rtl !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        height: auto !important;
        min-height: 3.25rem !important;

        margin: .35rem 0 !important;
        padding: 0 1rem !important;

        box-sizing: border-box !important;

        border: 0 !important;
        border-radius: .85rem !important;

        background: var(--surface-2) !important;
        color: var(--text-muted) !important;

        font-size: inherit !important;
        font-weight: 600 !important;
        line-height: normal !important;

        text-decoration: none !important;
    }

    /* شيل شكل البادج الصفراء الداخلية تمامًا */
    .ftv-mobile-vip-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: .25rem !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        color: inherit !important;

        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: normal !important;
    }

    .ftv-mobile-vip-badge > span:first-child {
        margin: 0 !important;
        padding: 0 !important;
        color: inherit !important;
    }

    .ftv-mobile-vip__crown {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: .9rem !important;
        height: .9rem !important;

        margin: 0 !important;
        padding: 0 !important;

        color: inherit !important;
    }

    .ftv-mobile-vip__crown svg {
        width: .9rem !important;
        height: .9rem !important;
        fill: currentColor !important;
    }
}


@media (max-width: 900px) {
    .mobile-sheet__nav .ftv-mobile-vip-badge {
        border: 4px solid transparent !important;
    }
}

/* =========================================================
   CONTENT BANNERS — ABOVE / BELOW PLAYER
   ========================================================= */

.ftv-ad-content_banner_before_watch,
.ftv-ad-content_banner_after_watch {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    margin: 16px 0;
    padding: 0 16px;

    overflow: hidden;
}

.ftv-ad-content_banner_before_watch > *,
.ftv-ad-content_banner_after_watch > * {
    display: block;
    max-width: 100%;
    margin-inline: auto;
}

/* Images / iframes inside banner */
.ftv-ad-content_banner_before_watch img,
.ftv-ad-content_banner_after_watch img,
.ftv-ad-content_banner_before_watch iframe,
.ftv-ad-content_banner_after_watch iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 900px) {
    .ftv-ad-content_banner_before_watch,
    .ftv-ad-content_banner_after_watch {
        margin: 12px 0;
        padding: 0 10px;
    }
}


/* =========================================================
   5TV MODERN DESKTOP HEADER
   Facebook-like desktop layout
   Desktop only — mobile remains unchanged
   ========================================================= */

@media (min-width: 901px) {

    /* Header shell */
    .site-header {
        height: 68px !important;
        background: rgba(8, 10, 13, .97) !important;
        border-bottom: 1px solid rgba(255,255,255,.075) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 1px 0 rgba(0,0,0,.22) !important;
    }


    /* Main row */
    .site-header .header-inner {
        position: relative !important;

        height: 100% !important;
        width: 100% !important;
        max-width: 1500px !important;

        margin-inline: auto !important;
        padding-inline: 24px !important;

        display: grid !important;
        grid-template-columns:
            minmax(220px, 1fr)
            auto
            minmax(220px, 1fr) !important;

        align-items: center !important;
        gap: 18px !important;
    }


    /* =====================================================
       RIGHT — logo + VIP
       ===================================================== */

    .site-header .site-brand {
        grid-column: 3 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        gap: 12px !important;

        min-width: 0 !important;
        margin: 0 !important;
    }


    .site-header .site-brand .custom-logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    .site-header .site-brand .custom-logo {
        display: block !important;

        width: auto !important;
        height: 44px !important;

        max-width: 132px !important;

        object-fit: contain !important;
    }


    /* Keep current VIP badge appearance */
    .site-header .ftv-header-vip {
        flex: 0 0 auto !important;

        margin: 0 !important;

        transition:
            transform .16s ease,
            filter .16s ease !important;
    }


    .site-header .ftv-header-vip:hover {
        transform: translateY(-1px) !important;
        filter: brightness(1.06) !important;
    }


    /* =====================================================
       CENTER — main navigation
       ===================================================== */

    .site-header .desktop-nav {
        grid-column: 2 !important;

        min-width: 0 !important;
        height: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
    }


    .site-header .desktop-menu {
        height: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 3px !important;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }


    .site-header .desktop-menu > li {
        position: relative !important;

        height: 100% !important;

        display: flex !important;
        align-items: center !important;

        margin: 0 !important;
    }


    .site-header .desktop-menu > li > a {
        position: relative !important;

        min-height: 44px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 0 13px !important;

        border-radius: 10px !important;

        color: rgba(235,238,244,.68) !important;

        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        white-space: nowrap !important;

        transition:
            background .16s ease,
            color .16s ease !important;
    }


    .site-header .desktop-menu > li > a:not(.ftv-header-vip):hover {
        color: rgba(255,255,255,.96) !important;
        background: rgba(255,255,255,.055) !important;
    }


    /* Active Facebook-like underline */
    .site-header .desktop-menu > li.current-menu-item > a,
    .site-header .desktop-menu > li.current-menu-parent > a,
    .site-header .desktop-menu > li.current_page_item > a {
        color: #fff !important;
        background: rgba(255,255,255,.035) !important;
    }


    .site-header .desktop-menu > li.current-menu-item > a::after,
    .site-header .desktop-menu > li.current-menu-parent > a::after,
    .site-header .desktop-menu > li.current_page_item > a::after {
        content: "" !important;

        position: absolute !important;

        right: 10px !important;
        left: 10px !important;
        bottom: -12px !important;

        height: 3px !important;

        border-radius: 999px 999px 0 0 !important;

        background: #e6b94f !important;
    }


    /* =====================================================
       LEFT — actions
       ===================================================== */

    .site-header .header-actions {
        grid-column: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        gap: 8px !important;

        min-width: 0 !important;

        margin: 0 !important;
    }


    /* Hide "more" on desktop — desktop nav is already visible */
    .site-header .header-actions > .more-toggle {
        display: none !important;
    }


    /* Facebook-like circle buttons */
    .site-header .header-actions .icon-button {
        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        min-height: 42px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: grid !important;
        place-items: center !important;

        border: 1px solid rgba(255,255,255,.055) !important;
        border-radius: 50% !important;

        background: rgba(255,255,255,.055) !important;

        color: rgba(232,235,242,.76) !important;

        transition:
            background .16s ease,
            color .16s ease,
            transform .16s ease !important;
    }


    .site-header .header-actions .icon-button:hover {
        background: rgba(255,255,255,.105) !important;
        color: #fff !important;

        transform: translateY(-1px) !important;
    }


    .site-header .header-actions .icon-button svg {
        width: 19px !important;
        height: 19px !important;

        stroke-width: 1.8 !important;
    }


    /* Account wrapper must not break circle alignment */
    .site-header .account-menu {
        display: flex !important;
        align-items: center !important;

        margin: 0 !important;
    }


    /* =====================================================
       Slightly smaller desktop widths
       ===================================================== */

    @media (max-width: 1180px) {

        .site-header .header-inner {
            grid-template-columns:
                minmax(170px, 1fr)
                auto
                minmax(170px, 1fr) !important;

            padding-inline: 16px !important;
            gap: 10px !important;
        }


        .site-header .desktop-menu > li > a {
            padding-inline: 9px !important;
            font-size: 13px !important;
        }


        .site-header .site-brand .custom-logo {
            height: 40px !important;
            max-width: 118px !important;
        }

    }

}



/* =========================================================
   5TV DESKTOP HEADER — SINGLE ROW FIX
   ========================================================= */

@media (min-width: 901px) {

    .site-header {
        height: 72px !important;
    }

    .site-header .header-inner {
        position: relative !important;

        width: 100% !important;
        max-width: 1540px !important;
        height: 72px !important;

        margin: 0 auto !important;
        padding: 0 24px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        gap: 18px !important;
    }


    /* RIGHT */
    .site-header .site-brand {
        order: 1 !important;

        flex: 0 0 auto !important;

        display: flex !important;
        align-items: center !important;

        gap: 10px !important;

        margin: 0 !important;
    }


    .site-header .site-brand .custom-logo {
        width: auto !important;
        height: 46px !important;
        max-width: 135px !important;
    }


    /* CENTER */
    .site-header .desktop-nav {
        order: 2 !important;

        flex: 1 1 auto !important;

        height: 100% !important;
        min-width: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
    }


    .site-header .desktop-menu {
        height: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 4px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    .site-header .desktop-menu > li {
        height: 100% !important;

        display: flex !important;
        align-items: center !important;
    }


    .site-header .desktop-menu > li > a {
        position: relative !important;

        height: 44px !important;

        display: flex !important;
        align-items: center !important;

        padding: 0 14px !important;

        border-radius: 10px !important;

        font-size: 14px !important;
        font-weight: 700 !important;

        color: rgba(235,238,244,.72) !important;

        white-space: nowrap !important;
    }


    .site-header .desktop-menu > li > a:not(.ftv-header-vip):hover {
        background: rgba(255,255,255,.06) !important;
        color: #fff !important;
    }


    /* active page */
    .site-header .desktop-menu > li.current-menu-item > a,
    .site-header .desktop-menu > li.current-menu-parent > a,
    .site-header .desktop-menu > li.current_page_item > a {
        color: #fff !important;
        background: rgba(255,255,255,.045) !important;
    }


    .site-header .desktop-menu > li.current-menu-item > a::after,
    .site-header .desktop-menu > li.current-menu-parent > a::after,
    .site-header .desktop-menu > li.current_page_item > a::after {
        content: "" !important;

        position: absolute !important;

        right: 12px !important;
        left: 12px !important;
        bottom: -13px !important;

        height: 3px !important;

        border-radius: 20px 20px 0 0 !important;

        background: #e5b83f !important;
    }


    /* LEFT */
    .site-header .header-actions {
        order: 3 !important;

        flex: 0 0 auto !important;

        display: flex !important;
        align-items: center !important;

        gap: 7px !important;

        margin: 0 !important;
    }


    /* Facebook-style action circles */
    .site-header .header-actions .icon-button {
        position: relative !important;

        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        min-height: 42px !important;

        display: grid !important;
        place-items: center !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
        border-radius: 50% !important;

        background: rgba(255,255,255,.075) !important;

        color: rgba(235,238,244,.82) !important;

        transform: none !important;
    }


    .site-header .header-actions .icon-button:hover {
        background: rgba(255,255,255,.13) !important;
        color: #fff !important;
    }


    .site-header .header-actions .icon-button svg {
        width: 19px !important;
        height: 19px !important;
    }


    .site-header .account-menu {
        position: relative !important;

        display: flex !important;
        align-items: center !important;

        margin: 0 !important;
    }


    /* desktop doesn't need mobile more menu */
    .site-header .header-actions > .more-toggle {
        display: none !important;
    }

}


/* Smaller desktop */
@media (min-width: 901px) and (max-width: 1200px) {

    .site-header .header-inner {
        padding-inline: 14px !important;
        gap: 10px !important;
    }

    .site-header .desktop-menu {
        gap: 1px !important;
    }

    .site-header .desktop-menu > li > a {
        padding-inline: 9px !important;
        font-size: 13px !important;
    }

    .site-header .site-brand .custom-logo {
        height: 41px !important;
    }

}




/* =========================================================
   DESKTOP NAV — HOME HOVER + VIP NAV POSITION
   ========================================================= */

@media (min-width: 901px) {

    /*
     * Every desktop main-menu item, including Home,
     * gets exactly the same hover when it is not active.
     */
    .site-header .desktop-menu > li:not(.current-menu-item):not(.current-menu-parent):not(.current_page_item) > a:not(.ftv-header-vip):hover {
        background: rgba(255,255,255,.06) !important;
        color: #fff !important;
    }


    /*
     * VIP is now part of the desktop navigation row.
     */
    .site-header .desktop-nav {
        gap: 5px !important;
    }


    .site-header .desktop-nav > .ftv-header-vip--nav {
        flex: 0 0 auto !important;

        margin: 0 3px 0 0 !important;

        transform: none !important;
        filter: none !important;

        transition: none !important;
    }


    /*
     * VIP must NOT behave like normal menu items:
     * no hover background / movement.
     */
    .site-header .desktop-nav > .ftv-header-vip--nav:hover,
    .site-header .desktop-nav > .ftv-header-vip--nav:focus,
    .site-header .desktop-nav > .ftv-header-vip--nav:active {
        transform: none !important;
        filter: none !important;

        box-shadow: none !important;
    }


    /*
     * Remove the previous logo-area gap because VIP
     * no longer lives beside the logo.
     */
    .site-header .site-brand {
        gap: 0 !important;
    }

}


/* =========================================================
   VIP AS REAL DESKTOP MENU ITEM
   ========================================================= */

@media (min-width: 901px) {

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 5px 0 0 !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip {
        min-height: 0 !important;
        height: auto !important;

        padding: inherit !important;

        background: #e6b94fb0 !important;

        transform: none !important;
        filter: none !important;
        transition: none !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:hover,
    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:focus,
    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:active {
        background: #e6b94fb0 !important;
        transform: none !important;
        filter: none !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip::after {
        display: none !important;
        content: none !important;
    }

}


/* =========================================================
   DESKTOP VIP — FINAL MENU PLACEMENT
   ========================================================= */

@media (min-width: 901px) {

    .site-header .desktop-menu > .ftv-desktop-vip-menu-item {
        height: 100% !important;

        display: flex !important;
        align-items: center !important;

        margin: 0 6px !important;
        padding: 0 !important;
    }

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip {
        position: relative !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        transform: none !important;
        transition: none !important;
        filter: none !important;
    }

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:hover {
        transform: none !important;
        filter: none !important;
    }

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip::after {
        content: none !important;
        display: none !important;
    }

}


/* =========================================================
   DESKTOP VIP — RESTORE BADGE SHAPE / NO HOVER
   ========================================================= */

@media (min-width: 901px) {

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item {
        display: flex !important;
        align-items: center !important;

        height: 100% !important;

        margin: 0 7px !important;
        padding: 0 !important;

        background: transparent !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip {

        width: auto !important;
        min-width: 58px !important;

        height: 32px !important;
        min-height: 32px !important;

        padding: 0 11px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;

        border: 0 !important;
        border-radius: 999px !important;

        background: #b08b32 !important;
        color: #111 !important;

        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;

        box-shadow: none !important;

        transform: none !important;
        filter: none !important;
        transition: none !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip
    .ftv-header-vip-crown {

        width: 15px !important;
        height: 15px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #111 !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip
    .ftv-header-vip-crown svg {

        width: 15px !important;
        height: 15px !important;
    }


    /* NO HOVER / NO BLACK BACKGROUND */

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item:hover,

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item:focus,

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item:active {

        background: transparent !important;
        box-shadow: none !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:hover,

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:focus,

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:active {

        background: #b08b32 !important;
        color: #111 !important;

        box-shadow: none !important;

        transform: none !important;
        filter: none !important;
    }


    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip::before,

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip::after {

        content: none !important;
        display: none !important;
    }

}


/* VIP: kill inherited menu hover completely */
@media (min-width: 901px) {

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:hover,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:focus,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:focus-within,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:active {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        filter: none !important;
        transform: none !important;
    }

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a:hover,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a:focus,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a:active {
        background: #b08b32 !important;
        background-color: #b08b32 !important;
        background-image: none !important;
        color: #111 !important;
        box-shadow: none !important;
        filter: none !important;
        transform: none !important;
    }

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item::before,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item::after,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:hover::before,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:hover::after {
        content: none !important;
        display: none !important;
        background: none !important;
    }
}


/* =========================================================
   DESKTOP VIP — ABSOLUTELY NO HOVER EFFECT
   ========================================================= */

@media (min-width: 901px) {

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item {
        background: transparent !important;
        box-shadow: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:hover,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:focus,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:focus-within,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:active {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip:link,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip:visited,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip:hover,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip:focus,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip:active {
        background: #b08b32 !important;
        background-color: #b08b32 !important;
        background-image: none !important;

        color: #111 !important;

        box-shadow: none !important;
        text-shadow: none !important;

        filter: none !important;
        opacity: 1 !important;

        transform: none !important;
        scale: 1 !important;

        outline: none !important;

        transition: none !important;
    }

    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip::before,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item > a.ftv-header-vip::after,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:hover::before,
    .site-header .desktop-menu > li.ftv-desktop-vip-menu-item:hover::after {
        content: none !important;
        display: none !important;
    }

}


/* =========================================================
   DESKTOP VIP — FINAL NO-HOVER STATE
   ========================================================= */

@media (min-width: 901px) {

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item,
    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item:hover {
        background: transparent !important;
        box-shadow: none !important;
    }

    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip,
    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:hover,
    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:focus,
    .site-header
    .desktop-menu
    > .ftv-desktop-vip-menu-item
    > .ftv-header-vip:active {

        background: #b08b32 !important;

        color: #111 !important;

        opacity: 1 !important;
        filter: none !important;
        transform: none !important;

        box-shadow: none !important;
        text-shadow: none !important;

        outline: 0 !important;

        transition: none !important;
    }

}



/* =========================================================
   5TV — 404 PAGE
   ========================================================= */

.ftv-404-page {
    min-height: calc(100vh - 150px);

    display: flex;
    align-items: center;

    padding: 52px 0 72px;
}


.ftv-404-card {
    position: relative;

    max-width: 760px;

    margin: 0 auto;
    padding: 58px 46px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0,0,0,.18);
}


.ftv-404-card::before {
    content: "";

    position: absolute;

    top: -145px;
    left: 50%;

    width: 300px;
    height: 300px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(230,185,79,.10);

    filter: blur(70px);

    pointer-events: none;
}


.ftv-404-code {
    position: relative;

    margin-bottom: 8px;

    color: #e6b94f;

    font-size: clamp(76px, 9vw, 118px);
    font-weight: 900;
    line-height: .95;

    letter-spacing: -.055em;
}


.ftv-404-copy {
    position: relative;
    z-index: 1;
}


.ftv-404-label {
    display: inline-block;

    margin-bottom: 11px;

    color: rgba(230,185,79,.92);

    font-size: 13px;
    font-weight: 800;
}


.ftv-404-page h1 {
    margin: 0 0 13px;

    color: #fff;

    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.35;
}


.ftv-404-page p {
    max-width: 520px;

    margin: 0 auto 27px;

    color: rgba(235,238,244,.58);

    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}


.ftv-404-home {
    min-height: 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border-radius: 12px;

    background: #e6b94f;

    color: #111 !important;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        transform .16s ease,
        filter .16s ease;
}


.ftv-404-home:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}


@media (max-width: 767px) {

    .ftv-404-page {
        min-height: calc(100vh - 120px);

        padding: 34px 14px 54px;
    }


    .ftv-404-card {
        padding: 42px 20px;

        border-radius: 20px;
    }


    .ftv-404-code {
        font-size: 78px;
    }


    .ftv-404-page h1 {
        font-size: 24px;
    }


    .ftv-404-page p {
        font-size: 14px;
        line-height: 1.8;
    }


    .ftv-404-home {
        width: 100%;
        max-width: 300px;
    }

}



/* =========================================================
   5TV VIP — ACTIVATION CODES
   ========================================================= */

.ftv-vip-code-box {
    margin: 26px 0 0;
}

.ftv-vip-code-box__inner {
    max-width: 760px;

    margin: 0 auto;
    padding: 24px;

    border: 1px solid var(--border, #262a31);
    border-radius: 18px;

    background: var(--surface, #111419);

    direction: rtl;
    text-align: right;
}

.ftv-vip-code-box__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--accent, #f1bd3f);

    font-size: 12px;
    font-weight: 800;
}

.ftv-vip-code-box h2 {
    margin: 0 0 7px;

    color: #fff;

    font-size: 21px;
    font-weight: 800;
}

.ftv-vip-code-box p {
    margin: 0 0 18px;

    color: rgba(235,238,244,.6);

    font-size: 14px;
    line-height: 1.8;
}

.ftv-vip-code-form {
    display: flex;
    align-items: stretch;

    gap: 9px;
}

.ftv-vip-code-form input {
    flex: 1 1 auto;

    min-width: 0;
    height: 46px;

    padding: 0 14px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;

    outline: none;

    background: rgba(255,255,255,.035);

    color: #fff;

    font-family: monospace;
    font-size: 15px;
    font-weight: 700;

    letter-spacing: .5px;

    text-align: left;
}

.ftv-vip-code-form input:focus {
    border-color: rgba(241,189,63,.65);

    box-shadow:
        0 0 0 3px rgba(241,189,63,.08);
}

.ftv-vip-code-form button {
    flex: 0 0 auto;

    min-width: 130px;
    height: 46px;

    padding: 0 18px;

    border: 0;
    border-radius: 11px;

    background: var(--accent, #f1bd3f);

    color: #111;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.ftv-vip-code-form button:disabled {
    opacity: .55;
    cursor: wait;
}

.ftv-vip-code-status {
    min-height: 22px;

    margin-top: 12px;

    font-size: 13px;
    font-weight: 700;
}

.ftv-vip-code-status.is-loading {
    color: rgba(235,238,244,.65);
}

.ftv-vip-code-status.is-success {
    color: #6fdc93;
}

.ftv-vip-code-status.is-error {
    color: #ff7c7c;
}


@media (max-width: 767px) {

    .ftv-vip-code-box__inner {
        padding: 18px;

        border-radius: 15px;
    }

    .ftv-vip-code-form {
        flex-direction: column;
    }

    .ftv-vip-code-form input,
    .ftv-vip-code-form button {
        width: 100%;
        min-width: 0;
    }

}

