.ftv-home-builder {
    width: 100%;
    direction: rtl;
}

.ftv-home-widget-block {
    margin: 0;
    padding: 0;
}

.ftv-home-section {
    position: relative;
    margin: 34px auto 48px;
    width: min(1500px, calc(100% - 48px));
}

.ftv-home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ftv-home-section__head h2 {
    margin: 0;
    color: #f5f5f5;
    font-size: clamp(20px, 1.8vw, 28px);
    font-weight: 800;
    line-height: 1.3;
}

.ftv-home-carousel-wrap {
    position: relative;
}

.ftv-home-carousel {
    display: flex;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 1px 5px;
    cursor: grab;
    user-select: none;
}

.ftv-home-carousel::-webkit-scrollbar {
    display: none;
}

.ftv-home-carousel.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.ftv-home-poster-card {
    flex: 0 0 clamp(155px, 13.2vw, 208px);
    min-width: 0;
    scroll-snap-align: start;
}

.ftv-home-poster-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3.18;
    overflow: hidden;
    border-radius: 12px;
    background: #13161a;
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}

.ftv-home-poster-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform .28s ease,
        filter .28s ease;
}

.ftv-home-poster-card:hover
.ftv-home-poster-card__image img {
    transform: scale(1.035);
    filter: brightness(.86);
}

.ftv-home-poster-card__category,
.ftv-home-poster-card__type {
    position: absolute;
    z-index: 3;
    top: 9px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.ftv-home-poster-card__category {
    right: 9px;
    color: #fff;
    background: rgba(188,25,31,.9);
}

.ftv-home-poster-card__type {
    left: 9px;
    color: #ddd;
    background: rgba(10,12,15,.82);
    border: 1px solid rgba(255,255,255,.12);
}

.ftv-home-poster-card__body {
    padding: 10px 3px 0;
}

.ftv-home-poster-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #f4f4f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ftv-home-poster-card__fallback,
.ftv-home-episode-card__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #444;
    font-weight: 900;
    font-size: 32px;
}

.ftv-home-episode-card {
    flex: 0 0 clamp(245px, 23vw, 350px);
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #111418;
    border: 1px solid rgba(255,255,255,.08);
    scroll-snap-align: start;
}

.ftv-home-episode-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.9;
    overflow: hidden;
    background: #15181d;
}

.ftv-home-episode-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.ftv-home-episode-card:hover
.ftv-home-episode-card__image img {
    transform: scale(1.035);
}

.ftv-home-episode-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(4,5,7,.65),
            transparent 60%
        );
}

.ftv-home-episode-card__play {
    position: absolute;
    z-index: 4;
    right: 13px;
    bottom: 13px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(9,10,12,.77);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(7px);
}

.ftv-home-episode-card__play svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.ftv-home-episode-card__body {
    padding: 12px 13px 13px;
}

.ftv-home-episode-card__title {
    display: block;
    overflow: hidden;
    color: #f5f5f5;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 800;
}

.ftv-home-episode-card__meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 7px;
    color: #aaaeb5;
    font-size: 12px;
}

.ftv-home-arrow {
    position: absolute;
    z-index: 20;
    top: 50%;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: #fff;
    background: rgba(8,10,13,.89);
    font-family: Arial,sans-serif;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition:
        background .18s ease,
        opacity .18s ease;
}

.ftv-home-arrow:hover {
    background: #b5161d;
}

.ftv-home-arrow--prev {
    right: -20px;
}

.ftv-home-arrow--next {
    left: -20px;
}

.ftv-home-arrow.is-disabled {
    opacity: .15;
    pointer-events: none;
}

@media (max-width: 767px) {

    .ftv-home-section {
        width: calc(100% - 28px);
        margin-top: 27px;
        margin-bottom: 35px;
    }

    .ftv-home-poster-card {
        flex-basis: 44%;
    }

    .ftv-home-episode-card {
        flex-basis: 78%;
    }

    .ftv-home-arrow {
        display: none;
    }

    .ftv-home-carousel {
        gap: 11px;
        margin-left: -14px;
        margin-right: -14px;
        width: calc(100% + 28px);
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

.ftv-hero-slider {
    position: relative;
    width: min(1500px, calc(100% - 48px));
    height: clamp(440px, 47vw, 650px);
    margin: 24px auto 42px;
    overflow: hidden;
    border-radius: 16px;
    background: #080a0d;
    border: 1px solid rgba(255,255,255,.08);
}

.ftv-hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.ftv-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .45s ease,
        visibility .45s ease;
}

.ftv-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.ftv-hero-slide__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ftv-hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5,7,10,.08) 0%,
            rgba(5,7,10,.25) 34%,
            rgba(5,7,10,.9) 78%,
            rgba(5,7,10,.98) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5,7,10,.75),
            transparent 50%
        );
}

.ftv-hero-slide__content {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: clamp(35px, 5vw, 85px);
    width: min(520px, 42%);
    transform: translateY(-50%);
    text-align: right;
}

.ftv-hero-slide__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 13px;
    padding: 4px 11px;
    border-radius: 999px;
    color: #fff;
    background: #b81820;
    font-size: 12px;
    font-weight: 800;
}

.ftv-hero-slide h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(34px, 4vw, 62px);
    font-weight: 900;
    line-height: 1.15;
}

.ftv-hero-slide p {
    margin: 0;
    color: #c7c9cd;
    font-size: 15px;
    line-height: 1.95;
}

.ftv-hero-slide__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
}

.ftv-hero-watch,
.ftv-hero-details {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.ftv-hero-watch {
    color: #fff;
    background: #bd1920;
    border: 1px solid #bd1920;
}

.ftv-hero-details {
    color: #fff;
    background: rgba(12,14,18,.68);
    border: 1px solid rgba(255,255,255,.35);
}

.ftv-hero-nav {
    position: absolute;
    z-index: 10;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    background: rgba(7,9,12,.65);
    font-size: 34px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.ftv-hero-nav--prev {
    right: 18px;
}

.ftv-hero-nav--next {
    left: 18px;
}

.ftv-hero-dots {
    position: absolute;
    z-index: 10;
    bottom: 18px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.ftv-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.38);
    cursor: pointer;
}

.ftv-hero-dots button.is-active {
    width: 23px;
    border-radius: 10px;
    background: #d31d25;
}


/* =========================================================
   DETAILS MODAL
   ========================================================= */

.ftv-details-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ftv-details-modal.is-open {
    display: flex;
}

.ftv-details-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(8px);
}

.ftv-details-modal__panel {
    position: relative;
    z-index: 2;
    width: min(930px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(260px, 40%) 1fr;
    overflow: hidden;
    border-radius: 17px;
    background: #0e1115;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 35px 100px rgba(0,0,0,.55);
}

.ftv-details-modal__close {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.62);
    font-size: 25px;
    cursor: pointer;
}

.ftv-details-modal__media {
    min-height: 480px;
    background: #171a1f;
}

.ftv-details-modal__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ftv-details-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 60px);
    text-align: right;
}

.ftv-details-modal__category {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    background: #b71920;
    font-size: 12px;
    font-weight: 800;
}

.ftv-details-modal__content h2 {
    margin: 0 0 19px;
    color: #fff;
    font-size: clamp(26px, 3vw, 43px);
}

.ftv-details-modal__content p {
    margin: 0;
    color: #b8bbc0;
    line-height: 2;
}

.ftv-details-modal__watch {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    border-radius: 9px;
    color: #fff;
    background: #bc1820;
    text-decoration: none;
    font-weight: 850;
}

body.ftv-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .ftv-hero-slider {
        width: calc(100% - 28px);
        height: 520px;
        margin-top: 14px;
    }

    .ftv-hero-slide__shade {
        background:
            linear-gradient(
                0deg,
                rgba(5,7,10,.98) 5%,
                rgba(5,7,10,.82) 48%,
                rgba(5,7,10,.18) 100%
            );
    }

    .ftv-hero-slide__content {
        top: auto;
        right: 22px;
        bottom: 50px;
        width: calc(100% - 44px);
        transform: none;
    }

    .ftv-hero-slide h2 {
        font-size: 31px;
    }

    .ftv-hero-slide p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .ftv-hero-nav {
        width: 40px;
        height: 40px;
    }

    .ftv-details-modal {
        padding: 14px;
    }

    .ftv-details-modal__panel {
        display: block;
        overflow-y: auto;
    }

    .ftv-details-modal__media {
        min-height: 270px;
        height: 270px;
    }

    .ftv-details-modal__content {
        padding: 24px 20px 25px;
    }
}

/* =========================================================
   HOME EPISODES — COMPACT MODERN STYLE
   ========================================================= */

.ftv-home-section .ftv-home-episode-card {
    position: relative;
    flex: 0 0 clamp(190px, 15vw, 245px);
    border-radius: 11px;
    overflow: hidden;
    background: #111419;
    border: 1px solid rgba(255,255,255,.08);
    transition:
        transform .18s ease,
        border-color .18s ease;
}

.ftv-home-section .ftv-home-episode-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.16);
}

.ftv-home-section .ftv-home-episode-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #15181d;
}

.ftv-home-section .ftv-home-episode-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.ftv-home-section .ftv-home-episode-card:hover
.ftv-home-episode-card__image img {
    transform: scale(1.035);
}

.ftv-home-section .ftv-home-episode-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            to top,
            rgba(4,5,7,.94) 0%,
            rgba(4,5,7,.55) 38%,
            transparent 68%
        );
}

.ftv-home-section .ftv-home-episode-card__play {
    position: absolute;
    z-index: 5;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.68);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
}

.ftv-home-section .ftv-home-episode-card__play svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/*
 * نخلي البيانات Overlay فوق الصورة.
 */
.ftv-home-section .ftv-home-episode-card__body {
    position: absolute;
    z-index: 4;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 11px 48px 10px 11px;
    pointer-events: none;
}

.ftv-home-section .ftv-home-episode-card__title {
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    pointer-events: none;
}

.ftv-home-section .ftv-home-episode-card__meta {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 3px;
    color: #d0d2d5;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}

/*
 * بما إن الصورة نفسها Anchor،
 * الكارت كله يفضل قابل للضغط.
 */
.ftv-home-section .ftv-home-episode-card__image {
    z-index: 1;
}

@media (max-width: 767px) {

    .ftv-home-section .ftv-home-episode-card {
        flex-basis: 64%;
    }

    .ftv-home-section .ftv-home-episode-card__title {
        font-size: 12px;
    }
}

/* =========================================================
   DETAILS MODAL — COMPACT VERSION
   ========================================================= */

.ftv-details-modal__panel {
    width: min(760px, 100%);
    grid-template-columns: 220px 1fr;
}

.ftv-details-modal__media {
    min-height: 360px;
    max-height: 420px;
}

.ftv-details-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ftv-details-modal__content {
    padding: 30px 32px;
}

.ftv-details-modal__category {
    margin-bottom: 9px;
    padding: 4px 9px;
    font-size: 11px;
}

.ftv-details-modal__content h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.35;
}

.ftv-details-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-bottom: 14px;
    color: #c7c9cd;
    font-size: 12px;
    line-height: 1.6;
}

.ftv-details-modal__meta span:empty {
    display: none;
}

.ftv-details-modal__meta span + span::before {
    content: "•";
    margin-left: 8px;
    color: #b71920;
}

.ftv-details-modal__content p {
    font-size: 13px;
    line-height: 1.85;
    color: #b8bbc0;
}

.ftv-details-modal__watch {
    min-height: 44px;
    margin-top: 20px;
    font-size: 13px;
}

.ftv-details-modal__close {
    width: 34px;
    height: 34px;
    font-size: 22px;
}

@media (max-width: 767px) {

    .ftv-details-modal__panel {
        width: 100%;
        display: block;
    }

    .ftv-details-modal__media {
        height: 220px;
        min-height: 220px;
    }

    .ftv-details-modal__content {
        padding: 20px;
    }

    .ftv-details-modal__content h2 {
        font-size: 24px;
    }
}

/* =========================================================
   HERO — SMALLER DESKTOP TITLE + ADMIN NOTE
   ========================================================= */

.ftv-hero-slide__note {
    display: table;
    margin: 0 0 11px;
    padding: 6px 11px;
    border-radius: 8px;
    color: #f6f6f6;
    background: rgba(67, 65, 65, .88);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    backdrop-filter: blur(8px);
}

.ftv-hero-slide__kind {
    margin: 0 0 4px;
    color: #bfc2c7;
    font-size: 15px;
    font-weight: 800;
}

/*
 * Desktop:
 * العنوان القديم كان ممكن يوصل 62px.
 * نخليه أهدى وأنسب للسلايدر.
 */
@media (min-width: 768px) {

    .ftv-hero-slide h2 {
        margin-bottom: 13px;
        font-size: clamp(
            28px,
            2.55vw,
            43px
        );
        line-height: 1.25;
    }

    .ftv-hero-slide__content {
        width: min(
            570px,
            43%
        );
    }
}

@media (max-width: 767px) {

    .ftv-hero-slide__kind {
        font-size: 12px;
    }

    .ftv-hero-slide__note {
        margin-bottom: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* =========================================================
   HERO BUTTON — USE CURRENT 5TV THEME ACCENT
   ========================================================= */

.ftv-hero-watch {
    background: var(--ftv-accent) !important;
    border-color: var(--ftv-accent) !important;
    color: #111 !important;
}

.ftv-hero-watch *,
.ftv-hero-watch svg {
    color: #111 !important;
    fill: #111 !important;
}

.ftv-hero-watch:hover {
    background: var(
        --ftv-accent-hover,
        var(--ftv-accent)
    ) !important;

    border-color: var(
        --ftv-accent-hover,
        var(--ftv-accent)
    ) !important;
}


/* =========================================================
   HERO WATCH BUTTON — FIXED YELLOW THEME
   ========================================================= */

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

    min-height: 48px !important;
    padding: 0 25px !important;

    background: #f2c230 !important;
    border: 1px solid #f2c230 !important;

    color: #111 !important;
    opacity: 1 !important;
    visibility: visible !important;

    border-radius: 9px !important;
    text-decoration: none !important;
    font-weight: 850 !important;
}

.ftv-hero-watch *,
.ftv-hero-watch svg {
    color: #111 !important;
    fill: #111 !important;
}

.ftv-hero-watch:hover {
    background: #ddb020 !important;
    border-color: #ddb020 !important;
    color: #111 !important;
}

/* =========================================================
   5TV HOME — FINAL YELLOW ACCENT
   ========================================================= */

:root {
    --ftv-home-accent: #e6b94f;
    --ftv-home-accent-hover: #d3a63f;
}


/* Hero main button */
.ftv-hero-watch {
    background: var(--ftv-home-accent) !important;
    border-color: var(--ftv-home-accent) !important;
    color: #111 !important;
}

.ftv-hero-watch * {
    color: #111 !important;
    fill: #111 !important;
}

.ftv-hero-watch:hover {
    background: var(--ftv-home-accent-hover) !important;
    border-color: var(--ftv-home-accent-hover) !important;
}


/* Slider active bullet */
.ftv-hero-dots button.is-active {
    background: var(--ftv-home-accent) !important;
}


/* Slider arrows hover */
.ftv-hero-nav:hover,
.ftv-home-arrow:hover {
    background: var(--ftv-home-accent) !important;
    border-color: var(--ftv-home-accent) !important;
    color: #111 !important;
}


/* Poster/category accents */
.ftv-home-poster-card__category,
.ftv-hero-slide__badge {
    background: var(--ftv-home-accent) !important;
    border-color: var(--ftv-home-accent) !important;
    color: #111 !important;
}


/* Details popup primary action */
.ftv-details-modal__watch {
    background: var(--ftv-home-accent) !important;
    border-color: var(--ftv-home-accent) !important;
    color: #111 !important;
}

.ftv-details-modal__watch:hover {
    background: var(--ftv-home-accent-hover) !important;
    border-color: var(--ftv-home-accent-hover) !important;
}


/* =========================================================
   DETAILS POPUP — USE 5TV YELLOW ACCENT
   ========================================================= */

.ftv-details-modal__watch {
    background: #e6b94f !important;
    border-color: #e6b94f !important;
    color: #111 !important;
}

.ftv-details-modal__watch * {
    color: #111 !important;
    fill: #111 !important;
}

.ftv-details-modal__watch:hover {
    background: #d3a63f !important;
    border-color: #d3a63f !important;
    color: #111 !important;
}


/* البولت / العلامة الصغيرة فوق العنوان */
.ftv-details-modal__category,
.ftv-details-modal__content::before {
    background: #e6b94f !important;
    border-color: #e6b94f !important;
}


/* لو العنصر الصغير معمول كخط/نقطة */
.ftv-details-modal__content > span:first-child:empty,
.ftv-details-modal__content .is-accent {
    background: #e6b94f !important;
    border-color: #e6b94f !important;
}


/* =========================================================
   5TV WIDGET TITLES — MODERN YELLOW ACCENT
   ========================================================= */

.ftv-home-section__head {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.ftv-home-section__head h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
}

/* الشريط الأساسي */
.ftv-home-section__head h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;

    width: 54px;
    height: 4px;

    border-radius: 999px;

    background: #e6b94f;

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

/* نقطة صغيرة في نهاية الشريط */
.ftv-home-section__head h2::before {
    content: "";
    position: absolute;
    right: 60px;
    bottom: 1px;

    width: 3px;
    height: 3px;

    border-radius: 50%;
    background: rgba(230, 185, 79, .62);
}

/* موبايل */
@media (max-width: 767px) {

    .ftv-home-section__head {
        margin-bottom: 16px;
        padding-bottom: 7px;
    }

    .ftv-home-section__head h2 {
        padding-bottom: 7px;
    }

    .ftv-home-section__head h2::after {
        width: 42px;
        height: 3px;
    }

    .ftv-home-section__head h2::before {
        right: 48px;
        bottom: 0;
    }
}

/* Softer widget title accent */
.ftv-home-section__head h2::after {
    background: rgba(230, 185, 79, .72) !important;

    box-shadow:
        0 0 0 1px rgba(230, 185, 79, .05),
        0 3px 10px rgba(230, 185, 79, .10) !important;
}

.ftv-home-section__head h2::before {
    background: rgba(230, 185, 79, .42) !important;
}

/* =========================================================
   MOBILE — 3 ITEMS PER SLIDE
   ========================================================= */

@media (max-width: 767px) {

    .ftv-home-carousel {
        gap: 8px !important;

        margin-left: -10px !important;
        margin-right: -10px !important;

        width: calc(100% + 20px) !important;

        padding-left: 10px !important;
        padding-right: 10px !important;
    }


    /*
     * Movies / Series
     * 3 posters visible at once.
     */
    .ftv-home-poster-card {
        flex: 0 0 calc(
            (100% - 16px) / 3
        ) !important;

        width: calc(
            (100% - 16px) / 3
        ) !important;

        max-width: none !important;
    }


    .ftv-home-poster-card__image {
        border-radius: 9px !important;
    }


    .ftv-home-poster-card__body {
        padding-top: 6px !important;
    }


    .ftv-home-poster-card__title {
        font-size: 11px !important;
        line-height: 1.45 !important;

        -webkit-line-clamp: 2 !important;
    }


    .ftv-home-poster-card__category,
    .ftv-home-poster-card__type {
        top: 6px !important;

        min-height: 21px !important;

        padding: 3px 6px !important;

        font-size: 9px !important;

        border-radius: 6px !important;
    }


    .ftv-home-poster-card__category {
        right: 6px !important;
    }


    .ftv-home-poster-card__type {
        left: 6px !important;
    }


    /*
     * Episodes
     * 3 episode cards visible too.
     */
    .ftv-home-section .ftv-home-episode-card,
    .ftv-home-episode-card {
        flex: 0 0 calc(
            (100% - 16px) / 3
        ) !important;

        width: calc(
            (100% - 16px) / 3
        ) !important;

        max-width: none !important;

        border-radius: 9px !important;
    }


    .ftv-home-section
    .ftv-home-episode-card__image,
    .ftv-home-episode-card__image {
        aspect-ratio: 16 / 10 !important;
    }


    .ftv-home-section
    .ftv-home-episode-card__body,
    .ftv-home-episode-card__body {
        padding:
            7px
            30px
            7px
            7px !important;
    }


    .ftv-home-section
    .ftv-home-episode-card__title,
    .ftv-home-episode-card__title {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }


    .ftv-home-section
    .ftv-home-episode-card__meta,
    .ftv-home-episode-card__meta {
        margin-top: 2px !important;

        font-size: 9px !important;

        gap: 3px !important;
    }


    .ftv-home-section
    .ftv-home-episode-card__play,
    .ftv-home-episode-card__play {
        right: 6px !important;
        bottom: 6px !important;

        width: 24px !important;
        height: 24px !important;
    }


    .ftv-home-section
    .ftv-home-episode-card__play svg,
    .ftv-home-episode-card__play svg {
        width: 10px !important;
        height: 10px !important;
    }


    /*
     * Section spacing slightly tighter on phones.
     */
    .ftv-home-section {
        width: calc(100% - 20px) !important;

        margin-top: 24px !important;
        margin-bottom: 30px !important;
    }


    .ftv-home-section__head {
        margin-bottom: 13px !important;
    }
}

/* =========================================================
   5TV POSTER BADGES — YEAR / CATEGORY / QUALITY
   ========================================================= */

.ftv-home-poster-card__badges {
    position: absolute;
    z-index: 5;
    top: 8px;
    right: 8px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;

    pointer-events: none;
}


.ftv-poster-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 23px;

    padding: 3px 8px;

    border-radius: 999px;

    white-space: nowrap;

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

    backdrop-filter: blur(8px);

    box-shadow:
        0 2px 8px rgba(0,0,0,.16);
}


/*
 * YEAR
 */
.ftv-poster-badge--year {
    color: #fff;

    background:
        rgba(8,10,13,.78);

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


/*
 * MAIN CATEGORY
 */
.ftv-poster-badge--category {
    color: #151515;

    background:
        #e6b94f;

    border:
        1px solid rgba(230,185,79,.82);
}


/*
 * MOVIE QUALITY
 */
.ftv-poster-badge--quality {
    color: #151515;

    background:
        rgba(230,185,79,.88);

    border:
        1px solid rgba(230,185,79,.72);
}


/*
 * نلغي الـbadges القديمة لو كانت موجودة من CSS سابق.
 */
.ftv-home-poster-card__category,
.ftv-home-poster-card__type {
    display: none !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    .ftv-home-poster-card__badges {
        top: 9px;
        right: 9px;
        gap: 5px;
    }

    .ftv-poster-badge {
        min-height: 22px;

        padding:
            3px
            8px;

        font-size: 9.5px;
    }
}


/* =========================================================
   MOBILE — EXTRA COMPACT
   ========================================================= */

@media (max-width: 767px) {

    .ftv-home-poster-card__badges {
        top: 5px !important;
        right: 5px !important;

        gap: 3px !important;
    }


    .ftv-poster-badge {
        min-height: 17px !important;

        padding:
            2px
            5px !important;

        border-radius:
            999px !important;

        font-size:
            7.5px !important;

        font-weight:
            850 !important;

        box-shadow:
            0 1px 4px
            rgba(0,0,0,.17);
    }


    .ftv-poster-badge--category,
    .ftv-poster-badge--quality {
        background:
            rgba(230,185,79,.94);
    }
}


/* =========================================================
   POSTER BADGES — FINAL
   ========================================================= */

.ftv-home-poster-card__badges {
    position: absolute;
    z-index: 10;

    top: 8px;
    right: 8px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 4px;

    pointer-events: none;
}


.ftv-poster-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 135px;

    min-height: 21px;

    padding: 3px 8px;

    border-radius: 999px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

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

    box-shadow:
        0 2px 8px rgba(0,0,0,.17);

    backdrop-filter: blur(8px);
}


/* Year */
.ftv-poster-badge--year {
    color: #fff !important;

    background:
        rgba(8,10,13,.80) !important;

    border:
        1px solid rgba(255,255,255,.13) !important;
}


/* Main category */
.ftv-poster-badge--category {
    color: #171717 !important;

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

    border:
        1px solid rgba(230,185,79,.70) !important;
}


/* Movie quality */
.ftv-poster-badge--quality {
    color: #171717 !important;

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

    border:
        1px solid rgba(230,185,79,.62) !important;
}


/*
 * Kill legacy badges completely.
 */
.ftv-home-poster-card__category,
.ftv-home-poster-card__type {
    display: none !important;
}


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

@media (max-width: 767px) {

    .ftv-home-poster-card__badges {
        top: 5px !important;
        right: 5px !important;

        gap: 3px !important;
    }


    .ftv-poster-badge {
        max-width: 92px !important;

        min-height: 16px !important;

        padding:
            2px
            5px !important;

        font-size:
            7px !important;

        border-radius:
            999px !important;
    }


    .ftv-poster-badge--category,
    .ftv-poster-badge--quality {
        box-shadow:
            0 1px 5px rgba(0,0,0,.18) !important;
    }
}


/* =========================================================
   POSTER BADGES ALIGNMENT
   Year fixed to top-right
   ========================================================= */

.ftv-home-poster-card__badges {
    top: 7px !important;
    right: 7px !important;

    align-items: flex-end !important;
}


/*
 * السنة تفضل ملاصقة لليمين.
 */
.ftv-poster-badge--year {
    align-self: flex-end !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}


/*
 * التصنيف والجودة تحت السنة ناحية اليمين.
 */
.ftv-poster-badge--category,
.ftv-poster-badge--quality {
    align-self: flex-end !important;
    margin-right: 0 !important;
}


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

    .ftv-home-poster-card__badges {
        top: 5px !important;
        right: 5px !important;
    }

    .ftv-poster-badge--year,
    .ftv-poster-badge--category,
    .ftv-poster-badge--quality {
        align-self: flex-end !important;
    }
}

/* =========================================================
   5TV POSTER CARD — TITLE INSIDE POSTER
   ========================================================= */

.ftv-home-poster-card {
    position: relative !important;
    overflow: hidden !important;

    border-radius: 12px !important;
    background: #0b0d10 !important;

    border: 1px solid rgba(255,255,255,.07) !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.22) !important;
}


/*
 * Poster fills the whole card.
 */
.ftv-home-poster-card__image {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    overflow: hidden !important;

    border-radius: inherit !important;
}


.ftv-home-poster-card__image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    border-radius: inherit !important;

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


/*
 * Bottom dark gradient.
 */
.ftv-home-poster-card::after {
    content: "" !important;

    position: absolute !important;
    z-index: 3 !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    height: 31% !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            to top,
            rgba(3,5,7,.96) 0%,
            rgba(3,5,7,.72) 38%,
            rgba(3,5,7,.20) 76%,
            transparent 100%
        ) !important;
}


/*
 * The old body becomes an overlay INSIDE the poster.
 */
.ftv-home-poster-card__body {
    position: absolute !important;
    z-index: 8 !important;

    left: 8px !important;
    right: 8px !important;
    bottom: 9px !important;

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

    background: transparent !important;

    pointer-events: none !important;
}


/*
 * Title.
 */
.ftv-home-poster-card__title {
    display: -webkit-box !important;

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

    color: #fff !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.32 !important;

    text-align: center !important;

    text-decoration: none !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    overflow: hidden !important;

    text-shadow:
        0 2px 5px rgba(0,0,0,.95),
        0 1px 2px rgba(0,0,0,.85) !important;

    pointer-events: auto !important;
}


/*
 * Badges stay above everything.
 */
.ftv-home-poster-card__badges {
    z-index: 12 !important;

    top: 7px !important;
    right: 7px !important;

    align-items: flex-end !important;
}


/*
 * Hover — desktop only.
 */
@media (hover: hover) and (pointer: fine) {

    .ftv-home-poster-card:hover
    .ftv-home-poster-card__image img {
        transform: scale(1.035) !important;
        filter: brightness(.91) !important;
    }

    .ftv-home-poster-card:hover {
        border-color:
            rgba(230,185,79,.24) !important;
    }
}


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

@media (max-width: 767px) {

    .ftv-home-poster-card {
        border-radius: 9px !important;
    }


    .ftv-home-poster-card::after {
        height: 34% !important;
    }


    .ftv-home-poster-card__body {
        left: 4px !important;
        right: 4px !important;
        bottom: 6px !important;
    }


    .ftv-home-poster-card__title {
        font-size: 9px !important;
        line-height: 1.25 !important;

        -webkit-line-clamp: 2 !important;
    }


    .ftv-home-poster-card__badges {
        top: 5px !important;
        right: 5px !important;
    }
}


/* =========================================================
   WIDGET TITLES — DARK / LIGHT MODE
   ========================================================= */

/* Dark default */
.ftv-home-section__head h2 {
    color: #f5f5f5 !important;
}

/*
 * Light mode
 * يدعم prefers-color-scheme
 */
@media (prefers-color-scheme: light) {

    .ftv-home-section__head h2 {
        color: #20242a !important;
        text-shadow: none !important;
    }

    .ftv-home-section__head h2::after {
        background: rgba(230,185,79,.78) !important;
    }

    .ftv-home-section__head h2::before {
        background: rgba(230,185,79,.48) !important;
    }
}


/*
 * ولو القالب بيستخدم class للـ Light Mode
 * بدل prefers-color-scheme
 */
html.light .ftv-home-section__head h2,
body.light .ftv-home-section__head h2,
html[data-theme="light"] .ftv-home-section__head h2,
body[data-theme="light"] .ftv-home-section__head h2,
html[data-mode="light"] .ftv-home-section__head h2,
body[data-mode="light"] .ftv-home-section__head h2 {
    color: #20242a !important;
    text-shadow: none !important;
}


/*
 * Dark class support
 */
html.dark .ftv-home-section__head h2,
body.dark .ftv-home-section__head h2,
html[data-theme="dark"] .ftv-home-section__head h2,
body[data-theme="dark"] .ftv-home-section__head h2,
html[data-mode="dark"] .ftv-home-section__head h2,
body[data-mode="dark"] .ftv-home-section__head h2 {
    color: #f5f5f5 !important;
}


/* =========================================================
   5TV — MODERN HERO + CAROUSELS
   Accent: #e6b94f
   ========================================================= */

:root {
    --ftv-home-yellow: #e6b94f;
    --ftv-home-yellow-hover: #d6aa42;
}


/* =========================================================
   HERO — DESKTOP
   ========================================================= */

.ftv-hero-slider {
    border-radius: 18px !important;
    overflow: hidden !important;

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

    box-shadow:
        0 18px 50px rgba(0,0,0,.16) !important;
}


.ftv-hero-slide__content {
    width: min(520px, 42%) !important;
}


/*
 * العنوان أهدى شوية.
 */
.ftv-hero-slide h2 {
    font-size:
        clamp(29px, 2.45vw, 42px) !important;

    line-height: 1.18 !important;
    margin-bottom: 11px !important;
}


/*
 * الوصف
 */
.ftv-hero-slide p {
    max-width: 510px !important;

    font-size: 14px !important;
    line-height: 1.9 !important;

    color: rgba(255,255,255,.73) !important;
}


/*
 * Buttons smaller / cleaner
 */
.ftv-hero-slide__actions {
    gap: 9px !important;
    margin-top: 19px !important;
}


.ftv-hero-watch,
.ftv-hero-details {
    min-height: 42px !important;

    padding:
        0
        19px !important;

    border-radius: 10px !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease !important;
}


.ftv-hero-watch {
    background:
        var(--ftv-home-yellow) !important;

    border-color:
        var(--ftv-home-yellow) !important;

    color: #151515 !important;
}


.ftv-hero-watch:hover {
    background:
        var(--ftv-home-yellow-hover) !important;

    border-color:
        var(--ftv-home-yellow-hover) !important;

    transform:
        translateY(-1px) !important;
}


.ftv-hero-details {
    background:
        rgba(13,15,18,.52) !important;

    border:
        1px solid rgba(255,255,255,.26) !important;

    color: #fff !important;

    backdrop-filter:
        blur(10px) !important;
}


.ftv-hero-details:hover {
    background:
        rgba(255,255,255,.09) !important;

    border-color:
        rgba(255,255,255,.38) !important;

    transform:
        translateY(-1px) !important;
}


/* =========================================================
   MODERN HERO ARROWS
   ========================================================= */

.ftv-hero-nav {
    width: 42px !important;
    height: 42px !important;

    border-radius: 13px !important;

    border:
        1px solid rgba(255,255,255,.13) !important;

    background:
        rgba(8,10,13,.58) !important;

    color:
        transparent !important;

    font-size: 0 !important;

    backdrop-filter:
        blur(11px) !important;

    box-shadow:
        0 6px 20px rgba(0,0,0,.18) !important;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease !important;
}


.ftv-hero-nav:hover {
    background:
        rgba(230,185,79,.96) !important;

    border-color:
        var(--ftv-home-yellow) !important;
}


/*
 * SVG-style chevron without changing PHP.
 */
.ftv-hero-nav::before {
    content: "" !important;

    display: block !important;

    width: 9px !important;
    height: 9px !important;

    border-top:
        2px solid #fff !important;

    border-right:
        2px solid #fff !important;
}


.ftv-hero-nav:hover::before {
    border-color:
        #171717 !important;
}


.ftv-hero-nav--next::before {
    transform:
        rotate(-135deg) !important;
}


.ftv-hero-nav--prev::before {
    transform:
        rotate(45deg) !important;
}


.ftv-hero-nav--prev {
    right: 15px !important;
}


.ftv-hero-nav--next {
    left: 15px !important;
}


/* =========================================================
   HERO DOTS
   ========================================================= */

.ftv-hero-dots {
    gap: 5px !important;
    bottom: 15px !important;
}


.ftv-hero-dots button {
    width: 6px !important;
    height: 6px !important;

    background:
        rgba(255,255,255,.27) !important;

    transition:
        width .25s ease,
        background-color .25s ease !important;
}


.ftv-hero-dots button.is-active {
    width: 23px !important;

    height: 6px !important;

    border-radius:
        999px !important;

    background:
        var(--ftv-home-yellow) !important;
}


/* =========================================================
   ALL WIDGET CAROUSEL ARROWS
   ========================================================= */

.ftv-home-arrow {
    width: 38px !important;
    height: 38px !important;

    border-radius: 12px !important;

    border:
        1px solid rgba(255,255,255,.12) !important;

    background:
        rgba(10,12,15,.68) !important;

    backdrop-filter:
        blur(10px) !important;

    color:
        transparent !important;

    font-size: 0 !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,.16) !important;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        opacity .18s ease !important;
}


.ftv-home-arrow::before {
    content: "" !important;

    display: block !important;

    width: 8px !important;
    height: 8px !important;

    border-top:
        2px solid #fff !important;

    border-right:
        2px solid #fff !important;
}


.ftv-home-arrow--prev::before {
    transform:
        rotate(45deg) !important;
}


.ftv-home-arrow--next::before {
    transform:
        rotate(-135deg) !important;
}


.ftv-home-arrow:hover {
    background:
        var(--ftv-home-yellow) !important;

    border-color:
        var(--ftv-home-yellow) !important;
}


.ftv-home-arrow:hover::before {
    border-color:
        #151515 !important;
}


.ftv-home-arrow--prev {
    right: -16px !important;
}


.ftv-home-arrow--next {
    left: -16px !important;
}


/* =========================================================
   CAROUSEL DRAG FEEDBACK
   ========================================================= */

.ftv-home-carousel {
    cursor:
        grab !important;

    overscroll-behavior-x:
        contain !important;

    touch-action:
        pan-y !important;
}


.ftv-home-carousel.is-dragging {
    cursor:
        grabbing !important;

    scroll-snap-type:
        none !important;
}


.ftv-home-carousel.is-dragging * {
    user-select:
        none !important;
}


/* =========================================================
   HERO DRAG FEEDBACK
   ========================================================= */

.ftv-hero-slider {
    touch-action:
        pan-y !important;

    cursor:
        grab !important;
}


.ftv-hero-slider.is-dragging {
    cursor:
        grabbing !important;
}


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

@media (max-width: 767px) {

    .ftv-hero-slider {
        width:
            calc(100% - 28px) !important;

        height:
            clamp(470px, 132vw, 545px) !important;

        margin:
            14px auto 30px !important;

        border-radius:
            16px !important;
    }


    /*
     * Background position centered.
     */
    .ftv-hero-slide__background {
        object-position:
            center center !important;
    }


    /*
     * أغمق تحت النص بس.
     */
    .ftv-hero-slide__shade {
        background:
            linear-gradient(
                to top,
                rgba(5,7,10,.97) 0%,
                rgba(5,7,10,.90) 23%,
                rgba(5,7,10,.60) 53%,
                rgba(5,7,10,.15) 82%,
                rgba(5,7,10,.05) 100%
            ) !important;
    }


    /*
     * CENTER EVERYTHING ON MOBILE
     */
    .ftv-hero-slide__content {
        top: auto !important;

        right: 50% !important;
        left: auto !important;

        bottom: 45px !important;

        width:
            calc(100% - 46px) !important;

        max-width:
            380px !important;

        transform:
            translateX(50%) !important;

        text-align:
            center !important;
    }


    .ftv-hero-slide__kind,
    .ftv-hero-slide__note,
    .ftv-hero-slide__badge {
        margin-left:
            auto !important;

        margin-right:
            auto !important;
    }


    .ftv-hero-slide h2 {
        max-width:
            330px !important;

        margin:
            0 auto 10px !important;

        font-size:
            clamp(25px, 7.1vw, 31px) !important;

        line-height:
            1.17 !important;

        text-align:
            center !important;
    }


    .ftv-hero-slide p {
        max-width:
            330px !important;

        margin:
            0 auto !important;

        font-size:
            12px !important;

        line-height:
            1.75 !important;

        text-align:
            center !important;

        -webkit-line-clamp:
            3 !important;
    }


    .ftv-hero-slide__actions {
        justify-content:
            center !important;

        gap:
            7px !important;

        margin-top:
            16px !important;
    }


    .ftv-hero-watch,
    .ftv-hero-details {
        min-height:
            39px !important;

        padding:
            0 15px !important;

        border-radius:
            9px !important;

        font-size:
            12px !important;
    }


    /*
     * Smaller arrows, farther from text.
     */
    .ftv-hero-nav {
        top:
            47% !important;

        width:
            36px !important;

        height:
            36px !important;

        border-radius:
            11px !important;
    }


    .ftv-hero-nav--prev {
        right:
            8px !important;
    }


    .ftv-hero-nav--next {
        left:
            8px !important;
    }


    .ftv-hero-nav::before {
        width:
            7px !important;

        height:
            7px !important;
    }


    /*
     * Keep dots centered.
     */
    .ftv-hero-dots {
        bottom:
            14px !important;
    }


    /*
     * Widget arrows hidden on phone:
     * native swipe/drag is better.
     */
    .ftv-home-arrow {
        display:
            none !important;
    }


    /*
     * Smooth phone swipe.
     */
    .ftv-home-carousel {
        overflow-x:
            auto !important;

        scroll-snap-type:
            x proximity !important;

        -webkit-overflow-scrolling:
            touch !important;

        touch-action:
            pan-x pan-y !important;
    }
}


/* =========================================================
   5TV — ARROWS FINAL STYLE
   ========================================================= */

/*
 * Hero arrows
 */
.ftv-hero-nav {
    width: 46px !important;
    height: 46px !important;

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

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

    border-radius: 13px !important;

    line-height: 1 !important;
}


/*
 * نخلي السهم نفسه أكبر ومتوسطن فعليًا.
 */
.ftv-hero-nav::before {
    content: "" !important;

    display: block !important;

    width: 11px !important;
    height: 11px !important;

    margin: 0 !important;

    border-top:
        2.4px solid #fff !important;

    border-right:
        2.4px solid #fff !important;

    transform-origin:
        center center !important;
}


/*
 * RTL:
 * يمين الشاشة = التالي
 */
.ftv-hero-nav--prev::before {
    transform:
        translateX(-2px)
        rotate(45deg) !important;
}


.ftv-hero-nav--next::before {
    transform:
        translateX(2px)
        rotate(-135deg) !important;
}


/*
 * باقي سلايدرات الويدجت.
 */
.ftv-home-arrow {
    width: 44px !important;
    height: 44px !important;

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

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

    border-radius: 13px !important;

    line-height: 1 !important;
}


.ftv-home-arrow::before {
    content: "" !important;

    display: block !important;

    width: 10px !important;
    height: 10px !important;

    margin: 0 !important;

    border-top:
        2.3px solid #fff !important;

    border-right:
        2.3px solid #fff !important;

    transform-origin:
        center center !important;
}


.ftv-home-arrow--prev::before {
    transform:
        translateX(-2px)
        rotate(45deg) !important;
}


.ftv-home-arrow--next::before {
    transform:
        translateX(2px)
        rotate(-135deg) !important;
}


/* =========================================================
   DESKTOP DRAG — POSTERS INCLUDED
   ========================================================= */

.ftv-home-carousel,
.ftv-home-carousel * {
    -webkit-user-select: none !important;
    user-select: none !important;
}


.ftv-home-carousel img {
    -webkit-user-drag: none !important;
    user-drag: none !important;

    pointer-events: none !important;
}


/*
 * مهم:
 * الـAnchor يفضل موجود وقابل للضغط،
 * لكن الصورة نفسها لا تبدأ browser image drag.
 */
.ftv-home-poster-card__image,
.ftv-home-episode-card__image {
    -webkit-user-drag: none !important;
}


.ftv-home-carousel {
    cursor: grab !important;
}


.ftv-home-carousel.is-ftv-dragging {
    cursor: grabbing !important;

    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}


.ftv-home-carousel.is-ftv-dragging a {
    cursor: grabbing !important;
}


/* Mobile arrows أصغر قليلًا في Hero فقط */
@media (max-width: 767px) {

    .ftv-hero-nav {
        width: 39px !important;
        height: 39px !important;

        border-radius: 11px !important;
    }


    .ftv-hero-nav::before {
        width: 9px !important;
        height: 9px !important;

        border-width:
            2.2px !important;
    }


    /*
     * سلايدرات الأقسام على الموبايل Swipe،
     * لذلك لا نحتاج الأسهم.
     */
    .ftv-home-arrow {
        display: none !important;
    }
}


/* =========================================================
   CLEAN DRAG SUPPORT
   ========================================================= */

.ftv-home-carousel {
    cursor: grab !important;
    overscroll-behavior-x: contain;
}

.ftv-home-carousel.is-ftv-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.ftv-home-carousel.is-ftv-dragging,
.ftv-home-carousel.is-ftv-dragging * {
    user-select: none !important;
}

.ftv-home-carousel img {
    -webkit-user-drag: none !important;
    user-select: none !important;
}


/*
 * مهم:
 * ما نحطش pointer-events:none على الـ <a>.
 * الرابط نفسه لازم يفضل قابل للضغط.
 */
.ftv-home-poster-card__image,
.ftv-home-poster-card__title,
.ftv-home-episode-card__image,
.ftv-home-episode-card__title {
    pointer-events: auto !important;
}


/*
 * Hero swipe.
 */
.ftv-hero-slider {
    touch-action: pan-y !important;
}

.ftv-hero-slider.is-dragging {
    cursor: grabbing !important;
}


/*
 * Mobile widget carousel:
 * native horizontal swipe.
 */
@media (max-width: 767px) {

    .ftv-home-carousel {
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
}


/* =========================================================
   WIDGET CAROUSELS — HIDE RIGHT ARROW
   RTL flow uses the left arrow
   ========================================================= */

.ftv-home-carousel-wrap
.ftv-home-arrow--prev {
    display: none !important;
}


/*
 * Left arrow stays visible on desktop.
 */
@media (min-width: 768px) {

    .ftv-home-carousel-wrap
    .ftv-home-arrow--next {
        display: flex !important;
    }
}


/*
 * Mobile remains swipe-only.
 */
@media (max-width: 767px) {

    .ftv-home-carousel-wrap
    .ftv-home-arrow {
        display: none !important;
    }
}

/* =========================================================
   WIDGET ARROWS — DYNAMIC VISIBILITY
   ========================================================= */

/*
 * إلغاء الإخفاء الثابت السابق.
 */
@media (min-width: 768px) {

    .ftv-home-carousel-wrap
    .ftv-home-arrow--prev,

    .ftv-home-carousel-wrap
    .ftv-home-arrow--next {
        display: flex !important;
    }


    /*
     * الـJS هو اللي يحدد إمتى السهم يختفي.
     */
    .ftv-home-carousel-wrap
    .ftv-home-arrow.is-disabled {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transform:
            translateY(-50%)
            scale(.92) !important;
    }


    .ftv-home-carousel-wrap
    .ftv-home-arrow:not(.is-disabled) {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}


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

    .ftv-home-carousel-wrap
    .ftv-home-arrow {
        display: none !important;
    }
}


/* =========================================================
   POPUP META SEPARATORS — FINAL YELLOW FIX
   ========================================================= */

.ftv-details-modal__meta span + span::before,
.ftv-details-modal__meta span::before,
.ftv-details-modal__meta::before,
.ftv-details-modal__meta::after {
    color: #e6b94f !important;
    background: #e6b94f !important;
    border-color: #e6b94f !important;
}


/*
 * لو الـseparator معمول كنص bullet فعلي.
 */
.ftv-details-modal__meta {
    --ftv-meta-separator: #e6b94f !important;
}


/*
 * أي accent صغير داخل سطر السنة/النوع.
 */
.ftv-details-modal__meta .dot,
.ftv-details-modal__meta .separator,
.ftv-details-modal__meta .bullet,
.ftv-details-modal__meta [class*="dot"],
.ftv-details-modal__meta [class*="sep"],
.ftv-details-modal__meta [class*="bullet"] {
    color: #e6b94f !important;
    background-color: #e6b94f !important;
    border-color: #e6b94f !important;
}

/* =========================================================
   MOBILE EPISODE TITLE — SMALLER + MORE VISIBLE
   ========================================================= */

@media (max-width: 767px) {

    .ftv-home-episode-card__body {
        left: 5px !important;
        right: 5px !important;
        bottom: 5px !important;

        padding:
            0
            25px
            0
            2px !important;
    }

    .ftv-home-episode-card__title {
        display: -webkit-box !important;

        white-space: normal !important;

        font-size: 8.5px !important;
        font-weight: 750 !important;
        line-height: 1.22 !important;

        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;

        overflow: hidden !important;

        text-overflow: ellipsis !important;

        text-shadow:
            0 1px 3px rgba(0,0,0,.95) !important;
    }

    .ftv-home-episode-card__meta {
        margin-top: 2px !important;

        font-size: 7.5px !important;
        line-height: 1.15 !important;
    }

    .ftv-home-episode-card__play {
        width: 21px !important;
        height: 21px !important;

        right: 4px !important;
        bottom: 5px !important;
    }

    .ftv-home-episode-card__play svg {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-width: 767px) {

    .ftv-home-episode-card__title {
        font-size: 7.2px !important;
        line-height: 1.15 !important;
        font-weight: 750 !important;

        -webkit-line-clamp: 2 !important;
        white-space: normal !important;
    }

    .ftv-home-episode-card__meta {
        font-size: 6.8px !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 767px) {
    .ftv-home-episode-card__title {
        font-size: 8.1px !important;
    }
}


/* =========================================================
   DETAILS MODAL — CLOSE BUTTON TOP RIGHT
   ========================================================= */

.ftv-details-modal__close {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
}

@media (max-width: 767px) {
    .ftv-details-modal__close {
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
    }
}

/* FINAL MOBILE EPISODE TITLE SIZE */
@media (max-width: 767px) {

    .ftv-home-section .ftv-home-episode-card__title,
    .ftv-home-carousel .ftv-home-episode-card__title {
        font-size: 8.1px !important;
    }

}

/* =========================================================
   EPISODE TITLE — 2 LINES MAX ON DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    .ftv-home-section .ftv-home-episode-card__title,
    .ftv-home-carousel .ftv-home-episode-card__title {
        display: -webkit-box !important;

        white-space: normal !important;

        font-size: 11px !important;
        line-height: 1.25 !important;
        font-weight: 750 !important;

        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;

        max-height: calc(1.25em * 2) !important;
    }
}


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

    .ftv-home-section .ftv-home-episode-card__title,
    .ftv-home-carousel .ftv-home-episode-card__title {
        display: -webkit-box !important;

        white-space: normal !important;

        font-size: 8.1px !important;
        line-height: 1.15 !important;

        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* =========================================================
   MOBILE CAROUSELS — FREE SMOOTH SWIPE
   No one-card-at-a-time snapping
   ========================================================= */

@media (max-width: 767px) {

    .ftv-home-carousel {
        overflow-x: auto !important;
        overflow-y: hidden !important;

        /*
         * أهم حاجة:
         * إلغاء الوقوف الإجباري عند كل كارت.
         */
        scroll-snap-type: none !important;

        /*
         * السحب بالإصبع يفضل Native،
         * وده بيدي Momentum طبيعي.
         */
        -webkit-overflow-scrolling: touch !important;

        touch-action: pan-x !important;

        /*
         * أثناء السحب نفسه المتصفح هو اللي يتحكم،
         * مش CSS smooth animation.
         */
        scroll-behavior: auto !important;

        overscroll-behavior-x: contain !important;

        scrollbar-width: none !important;
    }


    .ftv-home-carousel::-webkit-scrollbar {
        display: none !important;
    }


    /*
     * إلغاء أي snap معمول على الكروت نفسها.
     */
    .ftv-home-carousel > *,
    .ftv-home-poster-card,
    .ftv-home-episode-card {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }


    /*
     * الصور ما تعطلش حركة الإصبع.
     */
    .ftv-home-carousel img {
        -webkit-user-drag: none !important;
        user-select: none !important;
    }
}

/* =========================================================
   MOBILE EPISODE TITLE — WIDER TEXT AREA
   ========================================================= */

@media (max-width: 767px) {

    .ftv-home-section .ftv-home-episode-card__body,
    .ftv-home-carousel .ftv-home-episode-card__body {
        left: 4px !important;
        right: 4px !important;
        bottom: 5px !important;

        padding:
            0
            18px
            0
            2px !important;
    }

    .ftv-home-section .ftv-home-episode-card__title,
    .ftv-home-carousel .ftv-home-episode-card__title {
        width: 100% !important;
        max-width: 100% !important;

        font-size: 8.1px !important;
        line-height: 1.15 !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;

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

    .ftv-home-section .ftv-home-episode-card__play,
    .ftv-home-carousel .ftv-home-episode-card__play {
        width: 18px !important;
        height: 18px !important;

        right: 3px !important;
        bottom: 4px !important;
    }

    .ftv-home-section .ftv-home-episode-card__play svg,
    .ftv-home-carousel .ftv-home-episode-card__play svg {
        width: 7px !important;
        height: 7px !important;
    }
}

@media (max-width: 767px) {

    .ftv-home-section .ftv-home-episode-card__play,
    .ftv-home-carousel .ftv-home-episode-card__play {
        width: 22px !important;
        height: 22px !important;

        right: 4px !important;
        bottom: 4px !important;
    }

    .ftv-home-section .ftv-home-episode-card__play svg,
    .ftv-home-carousel .ftv-home-episode-card__play svg {
        width: 9px !important;
        height: 9px !important;
    }

    .ftv-home-section .ftv-home-episode-card__body,
    .ftv-home-carousel .ftv-home-episode-card__body {
        padding-right: 21px !important;
    }
}

/* =========================================================
   MOBILE CAROUSEL — HORIZONTAL SWIPE + VERTICAL PAGE SCROLL
   ========================================================= */

@media (max-width: 767px) {

    .ftv-home-carousel {
        /*
         * مهم:
         * يسمح بالسحب الأفقي داخل الويدجت
         * وفي نفس الوقت يسمح للصفحة بالسكرول رأسيًا
         * حتى لو بداية اللمس فوق البوستر.
         */
        touch-action: pan-x pan-y !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch !important;

        scroll-snap-type: none !important;
        scroll-behavior: auto !important;

        overscroll-behavior-x: contain !important;
        overscroll-behavior-y: auto !important;
    }


    /*
     * البوسترات نفسها ما تمنعش Vertical Scroll.
     */
    .ftv-home-poster-card,
    .ftv-home-poster-card__image,
    .ftv-home-episode-card,
    .ftv-home-episode-card__image,
    .ftv-home-carousel a,
    .ftv-home-carousel img {
        touch-action: pan-x pan-y !important;
    }
}

@media (max-width: 767px) {

    .ftv-home-section .ftv-home-episode-card__body,
    .ftv-home-carousel .ftv-home-episode-card__body {
        padding-right: 23px !important;
    }

}

/* =========================================================
   WIDGET TITLE + "BROWSE MORE"
   ========================================================= */

.ftv-home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ftv-home-section__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ftv-home-section__title-row h2 {
    margin: 0;
}

/*
 * Browse more link
 */
.ftv-home-section__browse {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: rgba(255,255,255,.58);
    text-decoration: none;

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

    white-space: nowrap;

    transition:
        color .18s ease,
        opacity .18s ease;
}

.ftv-home-section__browse-mark {
    display: inline-block;

    width: 11px;
    height: 2px;

    border-radius: 999px;

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

.ftv-home-section__browse:hover {
    color: #e6b94f;
}


/*
 * Existing yellow underline slightly smaller
 */
.ftv-home-section__head h2::after {
    width: 38px !important;
    height: 3px !important;
}

.ftv-home-section__head h2::before {
    right: 44px !important;
}


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

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

    .ftv-home-section__browse {
        color: rgba(30,34,40,.55);
    }

    .ftv-home-section__browse:hover {
        color: #a9842f;
    }
}

html.light .ftv-home-section__browse,
body.light .ftv-home-section__browse,
html[data-theme="light"] .ftv-home-section__browse,
body[data-theme="light"] .ftv-home-section__browse {
    color: rgba(30,34,40,.55);
}


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

@media (max-width: 767px) {

    .ftv-home-section__title-row {
        gap: 7px;
    }

    .ftv-home-section__browse {
        gap: 4px;
        font-size: 7.5px;
    }

    .ftv-home-section__browse-mark {
        width: 8px;
        height: 2px;
    }

    .ftv-home-section__head h2::after {
        width: 32px !important;
    }

    .ftv-home-section__head h2::before {
        right: 37px !important;
    }
}


/* =========================================================
   5TV — LATEST EPISODES PAGE
   48 episodes / 6 per row desktop
   ========================================================= */

.ftv-latest-episodes-page {
    width: 100%;
    min-height: 70vh;
    padding: 34px 0 60px;
}

.ftv-latest-episodes-page__container {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.ftv-latest-episodes-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}

.ftv-latest-episodes-page__header h1 {
    margin: 0;

    color: #f5f5f5;

    font-size: clamp(23px, 2vw, 31px);
    font-weight: 850;
    line-height: 1.3;
}

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

    width: 40px;
    height: 3px;

    margin-top: 8px;

    border-radius: 999px;

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

.ftv-latest-episodes-page__count {
    color: #969ca6;

    font-size: 11px;
    font-weight: 650;
}


/* =========================================================
   GRID — 6 PER ROW
   ========================================================= */

.ftv-latest-episodes-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 16px 14px;
}


/*
 * نلغي flex الخاص بكارت الرئيسية
 * لأن هنا الكارت داخل CSS Grid.
 */
.ftv-latest-episodes-grid
.ftv-home-episode-card {
    position: relative;

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

    flex: none !important;

    margin: 0 !important;

    border-radius: 11px;

    overflow: hidden;
}


/*
 * نفس شكل الحلقة الحالي في الرئيسية.
 */



/*
 * العنوان سطرين كحد أقصى.
 */






/* =========================================================
   PAGINATION
   ========================================================= */

.ftv-latest-pagination {
    margin-top: 36px;
}

.ftv-latest-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ftv-latest-pagination a,
.ftv-latest-pagination span {
    min-width: 34px;
    height: 34px;

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

    padding: 0 10px;

    border-radius: 9px;

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

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

    color: #c8cbd0;

    text-decoration: none;

    font-size: 11px;
    font-weight: 750;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.ftv-latest-pagination a:hover {
    border-color:
        rgba(230,185,79,.45);

    color: #e6b94f;
}

.ftv-latest-pagination .current {
    background: #e6b94f;
    border-color: #e6b94f;

    color: #171717;
}


/* =========================================================
   EMPTY
   ========================================================= */

.ftv-latest-episodes-empty {
    padding: 50px 20px;

    text-align: center;

    color: #969ca6;

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

    border-radius: 14px;

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


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}


@media (max-width: 1000px) {

    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 767px) {

    .ftv-latest-episodes-page {
        padding:
            22px
            0
            42px;
    }

    .ftv-latest-episodes-page__container {
        width:
            calc(100% - 20px);
    }

    .ftv-latest-episodes-page__header {
        margin-bottom: 16px;
    }

    .ftv-latest-episodes-page__header h1 {
        font-size: 21px;
    }

    .ftv-latest-episodes-page__count {
        font-size: 9px;
    }


    /*
     * على الموبايل 2 في الصف
     * عشان اسم الحلقة يفضل مقروء.
     */
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            10px
            8px;
    }


    


    


    


    


    .ftv-latest-pagination {
        margin-top: 25px;
    }

    .ftv-latest-pagination a,
    .ftv-latest-pagination span {
        min-width: 31px;
        height: 31px;

        padding: 0 8px;

        border-radius: 8px;

        font-size: 10px;
    }
}


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

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

    .ftv-latest-episodes-page__header h1 {
        color: #20242a;
    }

    .ftv-latest-pagination a,
    .ftv-latest-pagination span {
        border-color:
            rgba(20,25,30,.09);

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

        color: #59606a;
    }
}

html.light
.ftv-latest-episodes-page__header h1,

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

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

body[data-theme="light"]
.ftv-latest-episodes-page__header h1 {
    color: #20242a !important;
}



/* =========================================================
   LATEST EPISODES PAGE
   USE EXACT HOME EPISODE CARD STYLE
   ========================================================= */

.ftv-latest-episodes-page {
    width: 100%;
    padding: 32px 0 60px;
}

.ftv-latest-episodes-page__container {
    width: min(1540px, calc(100% - 36px));
    margin-inline: auto;
}


/* Header */

.ftv-latest-episodes-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 24px;
}

.ftv-latest-episodes-page__header h1 {
    margin: 0;

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

    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 850;
    line-height: 1.25;
}

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

    width: 38px;
    height: 3px;

    margin-top: 7px;

    margin-inline-start: 0;

    border-radius: 999px;

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


/* =========================================================
   GRID ONLY
   لا نلمس تصميم الكارت نفسه
   ========================================================= */

.ftv-latest-episodes-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 16px;
}


/*
 * فقط نفصل الكارت عن flex الخاص بالسلايدر.
 * كل باقي التصميم يظل من كارت الرئيسية الأصلي.
 */
.ftv-latest-episodes-grid > .ftv-home-episode-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    flex: none !important;

    margin: 0 !important;
}


/* مهم:
   لا نضع هنا font-size
   لا نضع padding
   لا نغير play button
   لا نغير الصورة
   لا نغير body
   عشان يفضل نفس الرئيسية حرفياً
*/


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}


@media (max-width: 1050px) {

    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 820px) {

    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }
}


@media (max-width: 767px) {

    .ftv-latest-episodes-page {
        padding: 22px 0 45px;
    }

    .ftv-latest-episodes-page__container {
        width: calc(100% - 20px);
    }

    .ftv-latest-episodes-page__header {
        margin-bottom: 17px;
    }

    .ftv-latest-episodes-page__header h1 {
        font-size: 22px;
    }


    /*
     * نفس الرئيسية:
     * 3 حلقات في الصف على الموبايل.
     */
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
    }
}


/* =========================================================
   PAGINATION
   ========================================================= */

.ftv-latest-pagination {
    margin-top: 32px;
}

.ftv-latest-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ftv-latest-pagination a,
.ftv-latest-pagination span {
    min-width: 34px;
    height: 34px;

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

    padding-inline: 10px;

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

    border-radius: 9px;

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

    color: #bbb;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;
}

.ftv-latest-pagination .current {
    background: #e6b94f;
    border-color: #e6b94f;

    color: #111;
}


/* =========================================================
   LATEST EPISODES — SAME CARD AS HOME
   Only grid sizing is different.
   ========================================================= */

.ftv-latest-episodes-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.ftv-latest-episodes-grid > .ftv-home-episode-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .ftv-latest-episodes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}


/* =========================================================
   LATEST EPISODES — EXACT HOME CARD CONTEXT
   ========================================================= */

.ftv-latest-episodes-section {
    width: 100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/*
 * نحافظ على class الـcarousel عشان كل ستايل الحلقة
 * الموجود في الرئيسية يشتغل،
 * لكن هنا نبدل طريقة العرض فقط إلى Grid.
 */
.ftv-latest-episodes-section
.ftv-latest-episodes-grid {
    display: grid !important;

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

    gap:
        16px
        14px !important;

    width: 100% !important;

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

    overflow: visible !important;

    cursor: default !important;

    scroll-snap-type: none !important;
}


/*
 * نلغي فقط أبعاد الـflex الخاصة بالسلايدر.
 * لا نلمس title/body/image/play/meta.
 */
.ftv-latest-episodes-section
.ftv-latest-episodes-grid
.ftv-home-episode-card {
    width: 100% !important;

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

    flex:
        none !important;

    margin:
        0 !important;
}


/* Tablet */
@media (max-width: 1200px) {

    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 1000px) {

    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}


/*
 * Mobile:
 * نفس فكرة الرئيسية = 3 حلقات.
 */
@media (max-width: 767px) {

    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap:
            8px !important;
    }
}


/* =========================================================
   HERO TITLE LINK
   ========================================================= */

.ftv-hero-slide__title-link {
    color: inherit !important;
    text-decoration: none !important;

    transition:
        opacity .18s ease,
        color .18s ease;
}

.ftv-hero-slide__title-link:hover {
    color: #e6b94f !important;
    text-decoration: none !important;
}

.ftv-hero-slide__title-link:focus-visible {
    outline: 2px solid rgba(230,185,79,.65);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =========================================================
   DETAILS MODAL — PRIMARY CATEGORY SAME AS HERO BADGE
   ========================================================= */

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

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

    min-height: 24px !important;

    padding:
        4px
        10px !important;

    border-radius:
        999px !important;

    background:
        #e6b94f !important;

    border:
        1px solid rgba(230,185,79,.72) !important;

    color:
        #171717 !important;

    font-size:
        10px !important;

    font-weight:
        800 !important;

    line-height:
        1 !important;

    white-space:
        nowrap !important;

    box-shadow:
        0 2px 8px rgba(0,0,0,.14) !important;
}


/*
 * لو التصنيف داخل meta row
 * ما نخليش أي selector قديم يحوله لنص عادي.
 */
.ftv-details-modal__category *,
.ftv-details-modal__category span {
    color:
        #171717 !important;
}


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

@media (max-width: 767px) {

    .ftv-details-modal__category {
        min-height:
            21px !important;

        padding:
            3px
            8px !important;

        font-size:
            8.5px !important;
    }
}

/* =========================================================
   WIDGET CAROUSELS — NATURAL RTL START
   No JS jumping on page load
   ========================================================= */

.ftv-home-carousel {
    direction: rtl !important;
}


/*
 * نخلي ترتيب الكروت نفسه RTL طبيعي.
 * أول عنصر يبدأ من أقصى اليمين من أول Paint.
 */
.ftv-home-carousel {
    text-align: right !important;
}


/*
 * ممنوع أي animation في scroll position وقت تحميل الصفحة.
 * الـsmooth يفضل فقط في ضغط الأسهم عن طريق JS.
 */
.ftv-home-carousel {
    scroll-behavior: auto !important;
}


/* =========================================================
   MOBILE PERFORMANCE — HOME / WIDGETS
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Remove expensive glass blur on frequently visible UI.
     */
    .ftv-home-arrow,
    .ftv-hero-nav,
    .ftv-home-poster-card__badges,
    .ftv-poster-badge,
    .ftv-hero-details,
    .ftv-details-modal,
    .ftv-details-modal__panel {
        -webkit-backdrop-filter:
            none !important;

        backdrop-filter:
            none !important;
    }


    /*
     * Keep visual depth but cheaper.
     */
    .ftv-home-poster-card,
    .ftv-home-episode-card,
    .ftv-details-modal__panel {
        box-shadow:
            0 4px 14px rgba(0,0,0,.16) !important;
    }


    /*
     * Avoid heavy animated effects on touch devices.
     */
    .ftv-home-poster-card,
    .ftv-home-episode-card,
    .ftv-home-poster-card img,
    .ftv-home-episode-card img {
        transition:
            none !important;
    }


    /*
     * Sections far below viewport don't need immediate paint.
     */
    .ftv-home-section {
        content-visibility:
            auto;

        contain-intrinsic-size:
            320px;
    }
}


/* =========================================================
   MOBILE CAROUSEL — SHOW A PEEK OF THE 4TH CARD
   ========================================================= */

@media (max-width: 767px) {

    /*
     * خلي السلايدر ياخد العرض كامل
     * مع مساحة صغيرة تظهر بداية الكارت الرابع.
     */
    .ftv-home-carousel {
        gap: 7px !important;

        padding-left: 18px !important;
        padding-right: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
    }


    /*
     * بدل 3 كروت كاملة 100%
     * نخلي كل كارت حوالي 30.2%
     * فيظهر جزء من الرابع.
     */
    .ftv-home-poster-card,
    .ftv-home-episode-card {
        flex: 0 0 30.2% !important;

        width: 30.2% !important;
        min-width: 30.2% !important;
        max-width: 30.2% !important;
    }


    /*
     * لو فيه قواعد Grid/Flex قديمة أقوى.
     */
    .ftv-home-section
    .ftv-home-poster-card,

    .ftv-home-section
    .ftv-home-episode-card,

    .ftv-home-carousel
    .ftv-home-poster-card,

    .ftv-home-carousel
    .ftv-home-episode-card {
        flex-basis: 30.2% !important;

        width: 30.2% !important;
        min-width: 30.2% !important;
        max-width: 30.2% !important;
    }
}

/* MOBILE — KEEP FIRST RTL CARD FULL + PEEK NEXT CARD */

@media (max-width: 767px) {

    .ftv-home-carousel {
        gap: 7px !important;

        padding-right: 10px !important;
        padding-left: 10px !important;

        box-sizing: border-box !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .ftv-home-section .ftv-home-carousel .ftv-home-poster-card,
    .ftv-home-section .ftv-home-carousel .ftv-home-episode-card {
        flex: 0 0 29.5% !important;

        width: 29.5% !important;
        min-width: 29.5% !important;
        max-width: 29.5% !important;

        margin: 0 !important;
    }

}


/* =========================================================
   HERO — NATURAL POINTER / TOUCH FEEL
   No grab hand
   ========================================================= */

.ftv-hero-slider,
.ftv-hero-slider.is-dragging,
.ftv-hero-slide,
.ftv-hero-slide__content {
    cursor: default !important;
}


/*
 * Title remains recognisably clickable,
 * but no drag-hand cursor.
 */
.ftv-hero-slide__title-link {
    cursor: pointer !important;
}


/*
 * Mobile:
 * vertical page scroll + horizontal Hero gesture.
 */
@media (max-width: 767px) {

    .ftv-hero-slider,
    .ftv-hero-slide,
    .ftv-hero-slide__content,
    .ftv-hero-slide__title-link {
        touch-action: pan-x pan-y !important;
    }
}


/* =========================================================
   LATEST EPISODES PAGE
   IMPORTANT:
   Do NOT inherit mobile carousel 29.5% card width.
   ========================================================= */

.ftv-latest-episodes-section
.ftv-latest-episodes-grid {
    display: grid !important;

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

    gap: 14px !important;

    width: 100% !important;

    overflow: visible !important;
}


/*
 * These MUST be 100% of the GRID CELL.
 * The normal Home carousel uses ~29.5% on mobile,
 * which was making these cards tiny.
 */
.ftv-latest-episodes-section
.ftv-latest-episodes-grid
.ftv-home-episode-card,

.ftv-home-section
.ftv-latest-episodes-grid
.ftv-home-episode-card,

.ftv-latest-episodes-grid
.ftv-home-episode-card {
    flex: none !important;

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

    margin: 0 !important;
}


/* Tablet */

@media (max-width: 1200px) {

    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 1000px) {

    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}


/* Mobile */

@media (max-width: 767px) {

    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap:
            8px
            7px !important;

        padding:
            0 !important;

        overflow:
            visible !important;
    }


    /*
     * Stronger than the recent:
     * .ftv-home-carousel .ftv-home-episode-card { width:29.5% }
     */
    .ftv-latest-episodes-section
    .ftv-latest-episodes-grid.ftv-home-carousel
    .ftv-home-episode-card {

        flex:
            none !important;

        flex-basis:
            auto !important;

        width:
            100% !important;

        min-width:
            0 !important;

        max-width:
            100% !important;
    }
}


/* =========================================================
   HERO TITLE — DRAG LIKE THE SLIDER
   ========================================================= */

.ftv-hero-slide__title-link {
    -webkit-user-drag: none !important;

    user-select: none !important;
    -webkit-user-select: none !important;

    touch-action: pan-x pan-y !important;
}


/*
 * Prevent selecting the title while dragging.
 */
.ftv-hero-slider.is-dragging
.ftv-hero-slide__title-link {
    pointer-events: auto !important;

    user-select: none !important;
    -webkit-user-select: none !important;
}


/*
 * No browser "drag link" cursor/ghost behaviour.
 */
.ftv-hero-slide__title-link,
.ftv-hero-slide__title-link * {
    -webkit-user-drag: none !important;
}


/* =========================================================
   HERO — MOBILE TOUCH / DRAG
   ========================================================= */

@media (max-width: 767px) {

    .ftv-hero-slider,
    .ftv-hero-slide,
    .ftv-hero-slide__content {
        touch-action:
            pan-y !important;

        -webkit-user-select:
            none !important;

        user-select:
            none !important;
    }

    .ftv-hero-slider a,
    .ftv-hero-slide a,
    .ftv-hero-slide img {
        -webkit-user-drag:
            none !important;
    }

}


/* =========================================================
   HERO SLIDER — FINAL POINTER EVENTS ROOT FIX
   ========================================================= */

/*
 * كل السلايدات فوق بعض position:absolute.
 *
 * السلايد غير النشط لا يجب أن يستقبل أي Click/Touch،
 * حتى أثناء fade transition.
 */
.ftv-hero-slide {
    pointer-events: none !important;
    z-index: 1 !important;
}


/*
 * السلايد الحالي فقط هو القابل للضغط.
 *
 * بمجرد تغيير is-active:
 * - القديم يتوقف فورًا عن استقبال اللمس
 * - الجديد يستقبل اللمس فورًا
 *
 * بدون انتظار انتهاء opacity transition.
 */
.ftv-hero-slide.is-active {
    pointer-events: auto !important;
    z-index: 2 !important;
}


/*
 * المحتوى والأزرار والروابط داخل السلايد النشط
 * تظل قابلة للضغط طبيعي.
 */
.ftv-hero-slide.is-active
.ftv-hero-slide__content,

.ftv-hero-slide.is-active
.ftv-hero-slide__content a,

.ftv-hero-slide.is-active
.ftv-hero-slide__content button,

.ftv-hero-slide.is-active
.ftv-hero-slide__title-link {
    pointer-events: auto !important;
}


/*
 * الخلفية نفسها لا تحتاج استقبال أي ضغط،
 * وده يمنعها من التدخل مع الأزرار.
 */
.ftv-hero-slide__background,
.ftv-hero-slide__shade {
    pointer-events: none !important;
}


/*
 * Mobile:
 * السحب والـVertical scroll يفضلوا شغالين.
 */
@media (max-width: 767px) {

    .ftv-hero-slider {
        touch-action: pan-y !important;
    }

    .ftv-hero-slide.is-active,
    .ftv-hero-slide.is-active
    .ftv-hero-slide__content,
    .ftv-hero-slide.is-active
    .ftv-hero-slide__title-link {
        touch-action: pan-x pan-y !important;
    }
}


/* =========================================================
   HERO — ROOT INTERACTION MODEL
   ========================================================= */

/*
 * جميع السلايدات stacked absolute.
 * السلايد غير النشط ممنوع يلتقط أي Tap.
 */
.ftv-hero-slide {
    pointer-events: none !important;
    z-index: 1 !important;
}

.ftv-hero-slide.is-active {
    pointer-events: auto !important;
    z-index: 2 !important;
}


/*
 * طبقات الصورة والـgradient مجرد Visual.
 */
.ftv-hero-slide__background,
.ftv-hero-slide__shade {
    pointer-events: none !important;
}


/*
 * المحتوى الحقيقي Clickable فورًا.
 */
.ftv-hero-slide.is-active .ftv-hero-slide__content,
.ftv-hero-slide.is-active .ftv-hero-slide__content a,
.ftv-hero-slide.is-active .ftv-hero-slide__content button,
.ftv-hero-slide.is-active .ftv-hero-slide__title-link {
    pointer-events: auto !important;
}


/*
 * Scroll رأسي طبيعي على الهاتف.
 * الحركة الأفقية يفسرها JS فقط عند وجود Swipe حقيقي.
 */
@media (max-width: 767px) {

    .ftv-hero-slider,
    .ftv-hero-slide.is-active,
    .ftv-hero-slide.is-active .ftv-hero-slide__content {
        touch-action: pan-y !important;
    }

    .ftv-hero-slide__title-link,
    .ftv-hero-slide__actions a,
    .ftv-hero-slide__actions button {
        touch-action: manipulation !important;
    }
}


/* =========================================================
   HERO — FINAL INTERACTION ROOT FIX
   ========================================================= */

/*
 * Active slide only.
 */
.ftv-hero-slide {
    pointer-events: none !important;
}

.ftv-hero-slide.is-active {
    pointer-events: auto !important;
}


/*
 * Visual layers never intercept taps.
 */
.ftv-hero-slide__background,
.ftv-hero-slide__shade {
    pointer-events: none !important;
}


/*
 * Interactive content is ALWAYS immediately clickable.
 */
.ftv-hero-slide.is-active a,
.ftv-hero-slide.is-active button {
    pointer-events: auto !important;

    touch-action: manipulation !important;

    -webkit-tap-highlight-color: transparent;
}


/*
 * Never let the browser start native image/link dragging.
 */
.ftv-hero-slide a,
.ftv-hero-slide img {
    -webkit-user-drag: none !important;
}


/*
 * Hero background remains swipeable.
 */
@media (max-width: 767px) {

    .ftv-hero-slider,
    .ftv-hero-slide.is-active {
        touch-action: pan-y !important;
    }

    /*
     * Links/buttons are not part of Hero drag anymore.
     * Tap = immediate action.
     */
    .ftv-hero-slide.is-active a,
    .ftv-hero-slide.is-active button {
        touch-action: manipulation !important;
    }
}


/* =========================================================
   HERO MOBILE — TAP FEEDBACK
   Keep instant tap + show pressed state
   ========================================================= */

@media (max-width: 767px) {

    .ftv-hero-slide.is-active a,
    .ftv-hero-slide.is-active button,
    .ftv-hero-slide__title-link {
        transition:
            transform .08s ease,
            opacity .08s ease !important;

        -webkit-tap-highlight-color:
            transparent !important;
    }


    /*
     * الزرار يبان إنه اتضغط.
     */
    .ftv-hero-slide.is-active a:active,
    .ftv-hero-slide.is-active button:active {
        transform:
            scale(.96) !important;

        opacity:
            .82 !important;
    }


    /*
     * العنوان:
     * ضغط خفيف من غير ما يتحرك مكانه زيادة.
     */
    .ftv-hero-slide.is-active
    .ftv-hero-slide__title-link:active {
        opacity:
            .72 !important;

        transform:
            scale(.985) !important;
    }

}


/* =========================================================
   HERO MOBILE — REAL PRESSED STATE
   ========================================================= */

@media (max-width: 767px) {

    /*
     * بدل الاعتماد على :active بتاع المتصفح.
     */
    .ftv-hero-slide.is-active a,
    .ftv-hero-slide.is-active button,
    .ftv-hero-slide__title-link {

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


    /*
     * أزرار Hero.
     */
    .ftv-hero-slide.is-active
    a.is-ftv-pressed,

    .ftv-hero-slide.is-active
    button.is-ftv-pressed {

        transform:
            scale(.96) !important;

        opacity:
            .80 !important;

        filter:
            brightness(.90) !important;
    }


    /*
     * العنوان أخف شوية.
     */
    .ftv-hero-slide.is-active
    .ftv-hero-slide__title-link.is-ftv-pressed {

        transform:
            scale(.985) !important;

        opacity:
            .72 !important;
    }


    /*
     * نلغي تأثير :active القديم على الموبايل
     * عشان مايبقاش عندنا نظامين فوق بعض.
     */
    .ftv-hero-slide.is-active a:active,
    .ftv-hero-slide.is-active button:active,
    .ftv-hero-slide.is-active
    .ftv-hero-slide__title-link:active {

        transform:
            none;

        opacity:
            inherit;

        filter:
            none;
    }

}


/* =========================================================
   HERO TITLE — MOBILE PRESS ANIMATION
   No yellow hover/tap on mobile
   ========================================================= */

@media (max-width: 767px) {

    /*
     * العنوان يفضل أبيض على الفون.
     * مفيش أصفر وقت اللمس أو بعده.
     */
    .ftv-hero-slide__title-link,
    .ftv-hero-slide__title-link:hover,
    .ftv-hero-slide__title-link:focus,
    .ftv-hero-slide__title-link:active,
    .ftv-hero-slide__title-link:visited {
        color: inherit !important;
        text-decoration: none !important;
    }


    /*
     * نفس إحساس Animation الضغط.
     */
    .ftv-hero-slide__title-link {
        display: inline-block;

        transform-origin: right center;

        transition:
            transform .09s ease,
            opacity .09s ease !important;
    }


    /*
     * الـclass اللي بنضيفه من أول Touch.
     */
    .ftv-hero-slide__title-link.is-ftv-pressed {
        transform: scale(.975) !important;
        opacity: .68 !important;
        color: inherit !important;
    }

}


/* FTV quality badge right align only */
.ftv-home-poster-card .ftv-poster-badge--quality {
    align-self: flex-end !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

