@font-face {
    font-family: "QatarMediaCorporation";
    src: url("../fonts/Qmc/QatarMediaCorporation-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "QatarMediaCorporation";
    src: url("../fonts/Qmc/QatarMediaCorporation-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "QatarMediaCorporation";
    src: url("../fonts/Qmc/QatarMediaCorporation-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

html.home-overflow-lock,
body.home-overflow-lock {
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100%;
}

.home-redesign {
    --tabie-primary: #8c1723;
    --tabie-primary-strong: #75131d;
    --tabie-accent: #b12a37;
    --tabie-neutral: #3c3c3c;
    --tabie-bg: #090b18;
    --tabie-bg-2: #111429;
    --tabie-surface: #171a2d;
    --tabie-border: rgba(140, 23, 35, 0.42);
    --tabie-text: #f6f7fb;
    --tabie-muted: #b6b8c9;
    --tabie-font-family: "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    background: radial-gradient(1200px 700px at 10% -20%, rgba(140, 23, 35, 0.18), transparent 60%), radial-gradient(1000px 600px at 90% -30%, rgba(60, 60, 60, 0.3), transparent 62%), var(--tabie-bg);
    padding-bottom: 2rem;
    font-family: var(--tabie-font-family);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
}

body.home-stream-menu .stream-menu-header.stream-menu-home {
    margin-bottom: 0 !important;
}

body.home-stream-menu .home-redesign .mainSliderSection,
body.home-stream-menu .home-redesign .mainSlider,
body.home-stream-menu .home-redesign .mainSlider .swiper,
body.home-stream-menu .home-redesign .mainSlider .swiper-wrapper,
body.home-stream-menu .home-redesign .mainSlider .swiper-slide {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 1199px) and (min-width: 768px) {
    body.home-stream-menu .stream-menu-header.stream-menu-home {
        margin-bottom: 0 !important;
    }

    body.home-stream-menu .home-redesign .mainSliderSection {
        margin-top: calc(-1 * var(--header-height, 0px)) !important;
        padding-top: 0 !important;
    }
}

.home-redesign .container-fluid,
.home-redesign .container-fluid > .row,
.home-redesign .mainSliderSection,
.home-redesign .mainSlider,
.home-redesign .mainSlider .swiper,
.home-redesign .mainSlider .swiper-wrapper,
.home-redesign .mainSlider .swiper-slide {
    max-width: 100%;
}

.home-redesign .mainSliderSection,
.home-redesign .mainSlider,
.home-redesign .mainSlider .swiper {
    width: 100%;
}

.home-redesign h1,
.home-redesign h2,
.home-redesign h3,
.home-redesign h4,
.home-redesign h5,
.home-redesign h6 {
    font-family: var(--tabie-font-family);
}

.home-redesign .main-title {
    color: var(--tabie-text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.home-redesign .mainSliderSection {
    padding-top: 1rem;
}

.home-redesign .mainSlider {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.home-redesign .mainSlider .infodiv {
    background: linear-gradient(0deg, rgba(9, 11, 24, 0.96) 0%, rgba(9, 11, 24, 0.72) 45%, rgba(9, 11, 24, 0) 86%);
}

.home-redesign .mainSlider .playInfoBlock {
    background: #8c1723;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-redesign .mainSlider .displayInfo .rightInfo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-redesign .mainSlider .swiper-slide .infodiv .hoverlogo,
.home-redesign .mainSlider .swiper-slide .infodiv .logoSmall,
.home-redesign .mainSlider .hoverlogo {
    width: min(420px, 78%);
    max-width: 100%;
    margin-bottom: 0;
    transition: none !important;
}

.home-redesign .mainSlider .hoverlogo + .hero-classification {
    margin-top: 0;
    padding-top: 0;
}

.home-redesign .mainSlider .hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.25;
}

.home-redesign .mainSlider .textdiv {
    margin-bottom: 0.9rem;
}

.home-redesign .mainSlider .videoIsPlaying .textdiv {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
}

.home-redesign .mainSlider .clamp-text {
    max-width: 42rem;
    color: var(--tabie-text);
    margin: 0;
    margin-inline-start: 15px;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
}

.home-redesign .mainSlider .hero-classification {
    margin: 0;
    padding: 0;
    padding-inline-start: 20px;
    color: var(--tabie-muted);
    font-size: 30px;
    line-height: 1.2;
    font-family: "QatarMediaCorporationMedium", "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    font-weight: 500;
}

.home-redesign .mainSlider .hero-classification + .textdiv {
    margin-top: 0.6rem;
}

.home-redesign .mainSlider .slider-hero-actions {
    --slider-hero-action-width: 220px;
    --slider-hero-action-height: 48px;
    --slider-action-icon-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 45px 0 0;
    flex-wrap: wrap;
}

.home-redesign .mainSlider .playInfoBlock,
.home-redesign .mainSlider .videoIsPlaying .playInfoBlock {
    width: var(--slider-hero-action-width);
    min-width: var(--slider-hero-action-width);
    height: var(--slider-hero-action-height);
    min-height: var(--slider-hero-action-height);
    max-height: var(--slider-hero-action-height);
    margin: 0;
    padding-block: 0;
    padding-inline: 5px;
    border-radius: 999px;
    float: none;
    display: inline-flex;
    align-self: flex-start;
    box-sizing: border-box;
}

.home-redesign .mainSlider .slider-mylist-btn {
    width: var(--slider-hero-action-width);
    min-width: var(--slider-hero-action-width);
    height: var(--slider-hero-action-height);
    min-height: var(--slider-hero-action-height);
    max-height: var(--slider-hero-action-height);
    padding: 0 5px;
    border-radius: 999px;
    line-height: 1.1;
    white-space: nowrap;
    font-size: 25px;
    background: #3c3c3c !important;
    border-color: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.58rem;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.home-redesign .mainSlider .slider-mylist-btn .watchlist-label {
    flex: 1 1 auto;
    line-height: 1.08;
    font-size: 25px;
    font-family: "QatarMediaCorporationMedium", "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    letter-spacing: 0.01em;
    text-align: right;
    width: 100%;
}

.home-redesign .mainSlider .slider-mylist-btn .material-icons-round {
    font-size: var(--slider-action-icon-size);
    line-height: 1;
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    max-width: 2.35rem;
    max-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.home-redesign .mainSlider .slider-mylist-btn[data-in-list="1"] .material-icons-round {
    color: #ff6f80;
    border-color: rgba(255, 111, 128, 0.9);
    background: rgba(140, 23, 35, 0.34);
}

.home-redesign .mainSlider .slider-mylist-btn[data-in-list="0"] .material-icons-round,
.home-redesign .mainSlider .slider-mylist-btn:not([data-in-list="1"]) .material-icons-round {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.9);
    background: rgba(34, 197, 94, 0.16);
}

.home-redesign .mainSlider .episodeTitleInfo,
.home-redesign .mainSlider .videoIsPlaying .episodeTitleInfo {
    float: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-redesign .mainSlider .playInfoBlock .episodeTitle {
    min-width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.58rem;
    direction: rtl;
}

.home-redesign .mainSlider .watchText {
    padding-block: 0.12rem;
    padding-inline: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-start;
    text-align: right;
}

.home-redesign .mainSlider .watchText h2,
.home-redesign .mainSlider .videoIsPlaying .playInfoBlock .episodeTitle h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.08;
    font-family: "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: right;
    width: 100%;
}

.home-redesign .mainSlider .watchText h6,
.home-redesign .mainSlider .videoIsPlaying .playInfoBlock .episodeTitle h6 {
    display: none;
}

.home-redesign .mainSlider .watchBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    margin-bottom: 3px;
    background: var(--tabie-primary);
    border-color: rgba(255, 255, 255, 0.55);
}

.home-redesign .mainSlider .watchBtn .material-icons-round {
    font-size: var(--slider-action-icon-size);
    line-height: 1;
}

.home-redesign .mainSlider .muteIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.home-redesign .mainSlider .muteIcon .material-icons-round {
    font-size: 1.6rem;
    line-height: 1;
}

.home-redesign .horizontal_thumb_slider .swiper-wrapper .swiper-slide {
    opacity: 1;
}

.home-redesign .horizontal_thumb_slider .swiper-wrapper .swiper-slide .thumb-title-image {
    max-height: 62px;
    width: auto;
    filter: grayscale(1) brightness(0.62);
    opacity: 0.82;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.home-redesign .horizontal_thumb_slider .swiper-wrapper .swiper-slide .thumb-title-text {
    color: #8f90a0;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.2;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.home-redesign .horizontal_thumb_slider .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .thumb-title-image {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: translateY(-2px);
}

.home-redesign .horizontal_thumb_slider .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .thumb-title-text {
    color: var(--tabie-accent);
    transform: translateY(-1px);
}

.home-redesign .top-ten-block,
.home-redesign .continue-watching-block,
.home-redesign .categoryBlock,
.home-redesign .adsBannerSection {
    margin-top: 1.1rem;
}

.home-redesign .continue-watching-block + .top-ten-block {
    margin-top: 0;
}

.home-redesign .top-ten-block .overflow-hidden,
.home-redesign .categoryBlock .overflow-hidden {
    overflow: visible !important;
}

.home-redesign .top-ten-header,
.home-redesign .section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-redesign .top-ten-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.home-redesign .top-ten-inline-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
}

.home-redesign .top-ten-inline-nav .swiper-button {
    position: static;
    inset: auto;
    margin: 0;
    transform: none;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.home-redesign .top-ten-header-actions .view-all-link,
.home-redesign .top-ten-inline-nav .view-all-link {
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
}

.home-redesign .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #fff;
    border: 1px solid var(--tabie-border);
    background: linear-gradient(140deg, rgba(60, 60, 60, 0.68), rgba(22, 24, 40, 0.9));
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-redesign .view-all-link:hover {
    background: linear-gradient(140deg, rgba(140, 23, 35, 0.9), rgba(117, 19, 29, 0.9));
    color: #fff;
    transform: translateY(-1px);
}

.home-redesign .view-all-link .material-icons-round {
    font-size: 1.1rem;
}

.home-redesign .home-category-nav {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    position: sticky;
    top: 4.6rem;
    z-index: 90;
}

.home-redesign .category-nav-shell {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(120deg, rgba(60, 60, 60, 0.35), rgba(16, 20, 40, 0.9));
    scrollbar-width: thin;
    backdrop-filter: blur(10px);
}

.home-redesign .category-nav-shell::-webkit-scrollbar {
    height: 5px;
}

.home-redesign .category-nav-shell::-webkit-scrollbar-thumb {
    background: rgba(140, 23, 35, 0.66);
    border-radius: 99px;
}

.home-redesign .category-nav-item {
    white-space: nowrap;
    color: var(--tabie-text);
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.home-redesign .category-nav-item:hover,
.home-redesign .category-nav-item.active {
    background: linear-gradient(135deg, var(--tabie-primary), var(--tabie-primary-strong));
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.home-redesign .categoryBlock {
    padding-top: 0.4rem;
}

.home-redesign .categoryBlock .main-title {
    font-size: 24px;
}

.home-redesign .top-ten-block .movies_advanced_content .swiper-slide,
.home-redesign .categorySliderDiv .swiper-slide,
.home-redesign .continue-watching-block .swiper-slide {
    padding: 0 !important;
}

.home-redesign .top-ten-block .movies_advanced_content .swiper-slide {
    margin: 0 !important;
    width: 200px !important;
    flex: 0 0 200px;
}

.home-redesign .top-ten-block .movies_advanced_content .swiper-wrapper {
    gap: 10px;
}

.home-redesign .categorySliderDiv {
    --category-item-width: 380px;
    --category-item-height: calc((var(--category-item-width) * 9 / 18) + 50px);
}

.home-redesign .categorySliderDiv .swiper-slide {
    width: var(--category-item-width) !important;
    flex: 0 0 var(--category-item-width);
}

.home-redesign .categorySliderDiv .block-images,
.home-redesign .iq-top-ten-block .img-box {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(60, 60, 60, 0.62), rgba(140, 23, 35, 0.36));
}

.home-redesign .continue-watching-block .iq-image-box img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-redesign .iq-top-ten-block {
    height: 100%;
}

.home-redesign .iq-top-ten-block .block-image {
    padding: 0;
}

.home-redesign .categorySliderDiv .block-images {
    width: 100%;
    margin: 0;
    height: var(--category-item-height);
    aspect-ratio: auto;
    background: linear-gradient(
        115deg,
        rgba(60, 60, 60, 0.55) 0%,
        rgba(140, 23, 35, 0.38) 35%,
        rgba(60, 60, 60, 0.6) 52%,
        rgba(140, 23, 35, 0.34) 72%,
        rgba(60, 60, 60, 0.55) 100%
    );
    background-size: 220% 220%;
    animation: categorySkeletonGlow 2.4s ease-in-out infinite;
}

@keyframes categorySkeletonGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-redesign .categorySliderDiv .block-images {
        animation: none;
    }
}

.home-redesign .categorySliderDiv .block-images .home-poster-cover-link,
.home-redesign .categorySliderDiv .block-images .home-poster-main-image {
    width: 100%;
    height: 100%;
}

.home-redesign .categorySliderDiv .block-images .home-poster-main-image {
    display: block;
    object-fit: cover;
}

.home-redesign .categorySliderDiv .iq-card {
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.home-redesign .categorySliderDiv .home-poster-card-shell {
    overflow: visible;
    -webkit-clip-path: none;
    clip-path: none;
    width: 100%;
    height: var(--category-item-height);
}

.home-redesign .categorySliderDiv .home-poster-cover-link,
.home-redesign .categorySliderDiv .home-poster-main-image,
.home-redesign .categorySliderDiv .home-poster-hover-card,
.home-redesign .categorySliderDiv .home-poster-hover-media img {
    border-radius: 14px;
}

.home-redesign .categorySliderDiv .home-poster-hover-card {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    transform: none !important;
}

.home-redesign .categorySliderDiv .home-poster-hover-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    flex: none;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.home-redesign .categorySliderDiv .home-poster-hover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
}

.home-redesign .categorySliderDiv .home-poster-hover-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 6;
    min-height: 0;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.12rem;
    padding: 0.56rem 0.62rem 0.66rem;
    margin-top: 0;
    background: transparent !important;
    border-top: none;
}

.home-redesign .categorySliderDiv .home-poster-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.44rem;
    position: relative;
    z-index: 8;
}

.home-redesign .categorySliderDiv .home-poster-title-row .home-poster-title {
    margin: 0;
    flex: 1 1 auto;
}

.home-redesign .categorySliderDiv .home-poster-trailer-btn {
    flex: 0 0 auto;
    min-height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    padding: calc(5px + 10px) calc(0.35rem + 10px);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.84), rgba(140, 23, 35, 0.76));
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    position: relative;
    z-index: 9;
    pointer-events: auto;
}

.home-redesign .categorySliderDiv .home-poster-trailer-btn .material-icons-round {
    font-size: 0.94rem;
    line-height: 1;
}

.home-redesign .categorySliderDiv .home-poster-trailer-btn:hover,
.home-redesign .categorySliderDiv .home-poster-trailer-btn:focus {
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(140, 23, 35, 0.9), rgba(60, 60, 60, 0.88));
}

.home-redesign .categorySliderDiv .home-poster-title {
    -webkit-line-clamp: 1;
}

.home-redesign .categorySliderDiv .home-poster-classification {
    display: none !important;
}

.home-redesign .categorySliderDiv .home-poster-actions {
    margin-top: 0.08rem;
    flex-shrink: 0;
}

.home-redesign .categorySliderDiv .home-poster-continue-btn,
.home-redesign .categorySliderDiv .home-poster-list-btn {
    min-height: 44px;
    padding: 0.28rem 0.44rem;
    font-size: 14px;
    white-space: nowrap;
}

.home-redesign .categorySliderDiv .home-poster-list-btn .watchlist-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-redesign .categorySliderDiv .home-poster-hover-slider .home-poster-card-shell:hover,
.home-redesign .categorySliderDiv .home-poster-hover-slider .home-poster-card-shell:focus-within {
    min-width: 100% !important;
    min-height: var(--category-item-height) !important;
    width: 100% !important;
    height: var(--category-item-height) !important;
}

.home-redesign .iq-top-ten-block .img-box {
    width: 200px;
    margin: 0;
    height: 300px;
    aspect-ratio: auto;
    border: 1px solid rgba(140, 23, 35, 0.36);
    background: linear-gradient(155deg, rgba(60, 60, 60, 0.62), rgba(140, 23, 35, 0.36));
}

.home-redesign .top-ten-block .top-ten-poster-shell {
    cursor: pointer;
}

.home-redesign .top-ten-block .home-poster-hover-slider:not(.top-ten-has-hover) .top-ten-poster-shell {
    width: 200px;
    margin-inline: 0;
}

.home-redesign .top-ten-block .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-active .top-ten-poster-shell {
    width: 200px;
    margin-inline: 0;
}

.home-redesign .top-ten-block .home-poster-main-image,
.home-redesign .top-ten-block .home-poster-hover-media img {
    object-fit: cover;
    background: transparent;
}

.home-redesign .top-ten-block .home-poster-hover-card {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
}

.home-redesign .top-ten-block .home-poster-hover-media {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}

.home-redesign .top-ten-block .home-poster-hover-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
}

.home-redesign .top-ten-block .home-poster-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.44rem;
    position: relative;
    z-index: 8;
}

.home-redesign .top-ten-block .home-poster-title-row .home-poster-title {
    margin: 0;
    flex: 1 1 auto;
}

.home-redesign .top-ten-block .home-poster-trailer-btn {
    flex: 0 0 auto;
    min-height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    padding: calc(5px + 10px) calc(0.5rem + 10px);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.84), rgba(140, 23, 35, 0.76));
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    position: relative;
    z-index: 9;
    pointer-events: auto;
}

.home-redesign .top-ten-block .home-poster-trailer-btn .material-icons-round {
    font-size: 0.94rem;
    line-height: 1;
}

.home-redesign .top-ten-block .home-poster-trailer-btn:hover,
.home-redesign .top-ten-block .home-poster-trailer-btn:focus {
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(140, 23, 35, 0.9), rgba(60, 60, 60, 0.88));
}

.home-redesign .top-ten-block .home-poster-actions {
    margin-top: 0.08rem;
}

.home-redesign .home-poster-card-shell {
    position: relative;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-redesign .top-ten-block .home-poster-card-shell,
.home-redesign .categorySliderDiv .home-poster-card-shell {
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s ease, border-color 0.32s ease, filter 0.36s ease, opacity 0.32s ease, min-width 0.36s ease, min-height 0.36s ease, width 0.36s ease, height 0.36s ease;
}

.home-redesign .top-ten-block .home-poster-main-image,
.home-redesign .top-ten-block .home-poster-hover-media img,
.home-redesign .categorySliderDiv .home-poster-main-image,
.home-redesign .categorySliderDiv .home-poster-hover-media img {
    transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), filter 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-redesign .top-ten-block .home-poster-hover-card,
.home-redesign .categorySliderDiv .home-poster-hover-card {
    transition: opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1), transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-redesign .home-poster-cover-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.home-redesign .home-poster-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.24s ease;
}

.home-redesign .home-poster-hover-card {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    background: #3c3c3c;
}

.home-redesign .home-poster-hover-close-btn {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12;
    cursor: pointer;
    padding: 0;
}

.home-redesign .home-poster-hover-close-btn .material-icons-round {
    font-size: 1rem;
    line-height: 1;
}

.home-redesign .home-poster-hover-media {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.home-redesign .home-poster-hover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-redesign .home-poster-hover-content {
    padding: 0.64rem 0.7rem 0.74rem;
    background: #3c3c3c;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
    max-height: 600px;
    overflow: visible;
}

.home-redesign .home-poster-title {
    margin: 0;
    font-size: calc(0.98rem + 5px);
    line-height: 1.25;
    color: #fff;
    font-weight: 800;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-redesign .home-poster-classification {
    margin: 0.08rem 0 0;
    color: rgba(246, 247, 251, 0.86);
    font-size: calc(0.78rem + 5px);
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex-shrink: 0;
}

.home-redesign .home-poster-actions {
    margin-top: 0.08rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    flex-shrink: 0;
}

.home-redesign .home-poster-continue-btn,
.home-redesign .home-poster-list-btn {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.34rem 0.52rem;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-family: var(--tabie-font-family);
}

.home-redesign .home-poster-continue-btn {
    background: linear-gradient(145deg, rgba(140, 23, 35, 0.96), rgba(117, 19, 29, 0.96));
}

.home-redesign .home-poster-list-btn {
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.86), rgba(33, 35, 47, 0.9));
    cursor: pointer;
}

.home-redesign .home-poster-continue-btn .material-icons-round,
.home-redesign .home-poster-list-btn .material-icons-round {
    font-size: 1.02rem;
    line-height: 1;
}

.home-redesign .home-poster-list-btn .material-icons-round {
    width: 1.22rem;
    height: 1.22rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    font-size: 0.78rem;
}

.home-redesign .home-poster-list-btn[data-in-list="1"] .material-icons-round {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.16);
}

.home-redesign .home-poster-list-btn[data-in-list="0"] .material-icons-round,
.home-redesign .home-poster-list-btn:not([data-in-list="1"]) .material-icons-round {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.16);
}

.home-redesign .home-poster-list-btn .watchlist-label {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

.home-redesign .addRemovInMyListBtn,
.home-redesign .addRemovInMyListBtn:hover,
.home-redesign .addRemovInMyListBtn:focus,
.home-redesign .addRemovInMyListBtn .watchlist-label {
    text-decoration: none !important;
}

.home-redesign .home-poster-card-shell:hover,
.home-redesign .home-poster-card-shell:focus-within {
    transform: translateY(-3px);
    border-color: rgba(140, 23, 35, 0.78);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.42);
}

.home-redesign .home-poster-card-shell:hover .home-poster-main-image,
.home-redesign .home-poster-card-shell:focus-within .home-poster-main-image {
    transform: scale(1.08);
    filter: brightness(0.8);
}

.home-redesign .home-poster-card-shell:hover .home-poster-hover-card,
.home-redesign .home-poster-card-shell:focus-within .home-poster-hover-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.home-redesign .home-poster-hover-slider .home-poster-card-shell {
    transform-origin: center center;
    z-index: 1;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    border-radius: 14px;
    overflow: hidden;
    -webkit-clip-path: inset(0 round 14px);
    clip-path: inset(0 round 14px);
    isolation: isolate;
}

.home-redesign .home-poster-hover-slider .home-poster-main-image,
.home-redesign .home-poster-hover-slider .home-poster-hover-card,
.home-redesign .home-poster-hover-slider .home-poster-hover-media img {
    border-radius: 14px;
}

.home-redesign .home-poster-hover-slider .home-poster-card-shell:hover,
.home-redesign .home-poster-hover-slider .home-poster-card-shell:focus-within {
    min-width: 300px;
    transform: perspective(1500px) translateY(-8px) translateZ(110px) scaleX(1.12) scaleY(1.04);
    z-index: 18;
}

.home-redesign .top-ten-block .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-active.top-ten-hover-shifted .home-poster-card-shell {
    transform: perspective(1500px) translateY(-8px) translateZ(110px) translateX(var(--top-ten-hover-shift-x, 0px)) scaleX(1.12) scaleY(1.04);
}

.home-redesign .home-poster-hover-slider .home-poster-card-shell:hover .home-poster-main-image,
.home-redesign .home-poster-hover-slider .home-poster-card-shell:focus-within .home-poster-main-image {
    transform: scale(1.06);
    filter: brightness(0.6) blur(2px);
    opacity: 0;
}

.home-redesign .home-poster-hover-slider .home-poster-hover-card {
    background: #3c3c3c;
}

.home-redesign .home-poster-hover-slider .home-poster-hover-media img {
    transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    will-change: transform;
}

.home-redesign .home-poster-hover-slider .home-poster-card-shell:hover .home-poster-hover-media img,
.home-redesign .home-poster-hover-slider .home-poster-card-shell:focus-within .home-poster-hover-media img {
    transform: scale(1.03);
}

.home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:hover .home-poster-hover-media img,
.home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:focus-within .home-poster-hover-media img {
    transform: none;
}

.home-redesign .top-ten-block .home-poster-hover-card .home-poster-hover-media img {
    border-radius: 14px 14px 0 0;
}

.home-redesign .home-poster-hover-slider .swiper-wrapper,
.home-redesign .home-poster-hover-slider .swiper-slide {
    overflow: visible;
}

.home-redesign .home-poster-hover-slider,
.home-redesign .home-poster-hover-slider.swiper,
.home-redesign .home-poster-hover-slider .swiper-wrapper {
    overflow: visible;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.home-redesign .home-poster-hover-slider .swiper-slide {
    transition: z-index 0.24s ease;
}

.home-redesign .home-poster-hover-slider.top-ten-has-hover .swiper-slide {
    z-index: 1;
}

.home-redesign .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-active {
    z-index: 40;
}

.home-redesign .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-before,
.home-redesign .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-after {
    z-index: 12;
}

.home-redesign .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-before .home-poster-card-shell {
    transform: perspective(1500px) translateZ(-50px) rotateY(16deg) scale(0.94);
    opacity: 0.72;
    filter: saturate(0.78) brightness(0.78);
}

.home-redesign .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-after .home-poster-card-shell {
    transform: perspective(1500px) translateZ(-50px) rotateY(-16deg) scale(0.94);
    opacity: 0.72;
    filter: saturate(0.78) brightness(0.78);
}

/* Keep category cards stable on hover (no bounce/reflow on long rows). */
.home-redesign .categorySliderDiv .home-poster-hover-slider .home-poster-card-shell {
    transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease, filter 0.24s ease, opacity 0.24s ease !important;
}

.home-redesign .categorySliderDiv .home-poster-hover-slider .home-poster-card-shell:hover,
.home-redesign .categorySliderDiv .home-poster-hover-slider .home-poster-card-shell:focus-within {
    min-width: 100% !important;
    min-height: var(--category-item-height) !important;
    width: 100% !important;
    height: var(--category-item-height) !important;
    transform: translateY(-2px) !important;
    z-index: 6;
}

.home-redesign .continue-watching-block .data-left-timing {
    color: #fff;
}

.home-redesign .continue-watching-block {
    margin-top: 0.3rem;
    margin-bottom: 0;
    --continue-item-width: 380px;
    --continue-item-height: calc((var(--continue-item-width) * 9 / 18) + 50px);
}

.home-redesign .continue-watching-block.continue-watching-block-rtl {
    width: auto;
    max-width: none;
    margin-inline: 0;
    margin-left: 0;
    margin-right: 0;
}

.home-redesign .continue-watching-block .swiper {
    margin-bottom: 1.5rem;
}

.home-redesign .continue-watching-block .swiper-wrapper {
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
}

.home-redesign .continue-watching-title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
}

.home-redesign .continue-watch-card .block-images {
    --continue-progress-band: 28px;
    width: 100%;
    margin: 0;
    height: var(--continue-item-height);
    aspect-ratio: auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.home-redesign .continue-watching-block .swiper-slide {
    width: var(--continue-item-width) !important;
    flex: 0 0 var(--continue-item-width);
}

.home-redesign .continue-watch-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.home-redesign .continue-watch-card .iq-image-box,
.home-redesign .continue-watch-card .overly-images {
    width: 100%;
    height: 100%;
}

.home-redesign .continue-watch-link img {
    display: block;
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center;
}

.home-redesign .continue-watch-link::after {
    content: none;
}

.home-redesign .continue-watch-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: calc(var(--continue-progress-band) + 20px);
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 12px;
    direction: rtl;
    text-align: right;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-redesign .continue-watch-play {
    width: clamp(34px, 3.2vw, 44px);
    height: clamp(34px, 3.2vw, 44px);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    flex: 0 0 auto;
}

.home-redesign .continue-watch-play .material-icons-round {
    font-size: clamp(1.05rem, 1.6vw, 1.55rem);
    line-height: 1;
    color: #fff;
}

.home-redesign .continue-watch-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    direction: rtl;
    gap: 0;
}

.home-redesign .continue-watch-poster {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
    width: 100%;
}

.home-redesign .continue-watch-episode {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.16;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
    width: 100%;
}

.home-redesign .continue-watch-progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 4;
    min-height: var(--continue-progress-band);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 4px;
    direction: rtl;
    text-align: right;
}

.home-redesign .continue-watch-progress .data-left-timing {
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 1.6vw, 1.8rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.home-redesign .continue-watch-progress .progress {
    flex: 1 1 auto;
    height: 6px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    overflow: visible;
    box-shadow: none;
}

.home-redesign .continue-watch-progress .progress .progress-bar {
    position: relative;
    border-radius: 999px;
    background: linear-gradient(135deg, #b2264b, #8f1d3d);
}

.home-redesign .continue-watching-block-rtl .continue-watch-overlay {
    direction: rtl;
    text-align: right;
}

.home-redesign .continue-watching-block-rtl .continue-watch-meta {
    align-items: flex-end;
    text-align: right;
}

.home-redesign .continue-watching-block-ltr .continue-watch-overlay {
    direction: rtl;
    text-align: right;
}

.home-redesign .continue-watching-block-ltr .continue-watch-meta {
    align-items: flex-end;
    text-align: right;
}

.home-redesign .continue-watching-more-btn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.home-redesign .continue-watch-modal .category-modal-dialog {
    width: min(980px, 96vw);
    max-height: 88vh;
}

.home-redesign .continue-watch-modal .category-modal-body {
    padding: 0.9rem;
}

.home-redesign .continue-watch-modal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 0.9rem;
}

.home-redesign .continue-watch-modal-item {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(26, 29, 46, 0.9), rgba(12, 14, 28, 0.92));
    padding: 0.55rem;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-redesign .continue-watch-modal-item:hover,
.home-redesign .continue-watch-modal-item:focus-visible {
    color: #fff;
    border-color: rgba(140, 23, 35, 0.8);
    background: linear-gradient(160deg, rgba(39, 42, 62, 0.95), rgba(20, 24, 38, 0.95));
    transform: translateY(-1px);
}

.home-redesign .continue-watch-modal-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.26);
}

.home-redesign .continue-watch-modal-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-redesign .continue-watch-modal-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
    direction: rtl;
}

.home-redesign .continue-watch-modal-poster {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-redesign .continue-watch-modal-episode {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-redesign .continue-watch-modal-time {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.home-redesign .continue-watch-modal-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.home-redesign .continue-watch-modal-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #b2264b, #8f1d3d);
}

@media (max-width: 991px) {
    .home-redesign .continue-watching-block {
        --continue-item-width: 300px;
        --continue-item-height: calc((var(--continue-item-width) * 9 / 16) + 50px);
    }

    .home-redesign .continue-watching-title {
        font-size: 24px;
    }

    .home-redesign .continue-watch-overlay {
        padding: 2px 10px;
        gap: 8px;
    }

    .home-redesign .continue-watch-play {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }

    .home-redesign .continue-watch-play .material-icons-round {
        font-size: 1rem;
    }

    .home-redesign .continue-watch-poster,
    .home-redesign .continue-watch-episode {
        font-size: 18px;
    }

    .home-redesign .continue-watch-modal-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .home-redesign .continue-watching-block {
        --continue-item-width: 260px;
        --continue-item-height: calc((var(--continue-item-width) * 9 / 16) + 34px - clamp(18px, 5vw, 24px));
    }

    .home-redesign .continue-watch-overlay {
        bottom: calc(var(--continue-progress-band) + 15px);
    }

    .home-redesign .continue-watch-card .block-images {
        --continue-progress-band: 24px;
    }

    .home-redesign .continue-watch-progress {
        padding: 0 10px 3px;
    }

    .home-redesign .continue-watch-progress .data-left-timing {
        font-size: 0.92rem;
    }

    .home-redesign .continue-watch-progress .progress {
        height: 5px !important;
    }

    .home-redesign .continue-watch-modal-item {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.48rem;
    }

    .home-redesign .continue-watch-modal-time {
        grid-column: 1 / -1;
        justify-self: end;
        font-size: 0.92rem;
    }
}

.home-redesign .change-speaker .material-icons-round {
    font-size: 1.2rem;
    color: #fff;
    vertical-align: middle;
}

.home-redesign .swiper-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(60, 60, 60, 0.72), rgba(18, 22, 40, 0.88));
    border: 1px solid rgba(140, 23, 35, 0.55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.home-redesign .swiper-button::after {
    content: none;
}

.home-redesign .swiper-button .material-icons-round {
    font-size: 1.55rem;
    color: #fff;
}

.home-redesign .adsBannerSection img {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-redesign .footer-default {
    border-top: 1px solid rgba(140, 23, 35, 0.24);
}

.category-modal-open {
    overflow: hidden;
}

html.modal-scroll-locked,
body.modal-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.home-redesign .category-modal {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 6, 18, 0.78);
    backdrop-filter: blur(6px);
}

.home-redesign .category-modal.is-open {
    display: flex;
}

.home-redesign .category-modal-dialog {
    width: min(1100px, 96vw);
    max-height: 88vh;
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(165deg, rgba(26, 29, 46, 0.98), rgba(12, 14, 28, 0.98));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.home-redesign .category-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(140, 23, 35, 0.5);
}

.home-redesign .category-modal-title {
    margin: 0;
    color: var(--tabie-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.home-redesign .category-modal-close {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-redesign .category-modal-close .material-icons-round {
    font-size: 1.2rem;
}

.home-redesign .category-modal-body {
    max-height: calc(88vh - 66px);
    overflow: auto;
    padding: 1rem;
}

.home-redesign .category-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.home-redesign .category-modal-poster-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(22, 24, 40, 0.95), rgba(12, 14, 26, 0.95));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-redesign .category-modal-poster-card:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 23, 35, 0.72);
}

.home-redesign .category-modal-poster-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1d2f;
}

.home-redesign .category-modal-poster-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(9, 10, 18, 0.9) 0%, rgba(9, 10, 18, 0.45) 38%, rgba(9, 10, 18, 0) 72%);
}

.home-redesign .category-modal-poster-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-redesign .category-modal-poster-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 3;
    padding: 0.62rem 0.66rem 0.72rem;
    background: transparent;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.home-redesign .category-modal-poster-card:hover .category-modal-poster-content,
.home-redesign .category-modal-poster-card:focus-within .category-modal-poster-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: none) {
    .home-redesign .category-modal-poster-content {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

.home-redesign .category-modal-poster-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.44rem;
}

.home-redesign .category-modal-poster-title {
    margin: 0;
    color: #fff;
    font-size: calc(0.98rem + 5px);
    line-height: 1.24;
    font-weight: 800;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.home-redesign .category-modal-poster-classification {
    display: none;
}

.home-redesign .category-modal-poster-actions {
    margin-top: 0.08rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
}

.home-redesign .category-modal-poster-trailer {
    flex: 0 0 auto;
    min-height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    padding: calc(5px + 10px) calc(0.35rem + 10px);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.84), rgba(140, 23, 35, 0.76));
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.home-redesign .category-modal-poster-trailer:hover,
.home-redesign .category-modal-poster-trailer:focus {
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(140, 23, 35, 0.9), rgba(60, 60, 60, 0.88));
}

.home-redesign .category-modal-poster-continue,
.home-redesign .category-modal-poster-list {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.34rem 0.52rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.home-redesign .category-modal-poster-continue {
    background: linear-gradient(145deg, rgba(140, 23, 35, 0.96), rgba(117, 19, 29, 0.96));
    border-color: rgba(255, 255, 255, 0.2);
}

.home-redesign .category-modal-poster-list {
    background: linear-gradient(145deg, rgba(78, 82, 95, 0.92), rgba(60, 62, 74, 0.95));
    cursor: pointer;
}

.home-redesign .category-modal-poster-continue .material-icons-round,
.home-redesign .category-modal-poster-list .material-icons-round,
.home-redesign .category-modal-poster-trailer .material-icons-round {
    font-size: 0.9rem;
    line-height: 1;
}

.home-redesign .category-modal-poster-list .watchlist-label {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

.home-redesign .category-modal-empty {
    margin: 0;
    color: var(--tabie-muted);
    text-align: center;
    padding: 1.2rem 0.4rem;
}

.top-ten-trailer-modal-open {
    overflow: hidden;
}

.home-redesign .trailer-player-modal {
    position: fixed;
    inset: 0;
    z-index: 22000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    background: transparent;
    backdrop-filter: none;
}

.home-redesign .trailer-player-modal.is-open {
    display: flex;
}

.home-redesign .trailer-player-dialog {
    width: min(980px, 98vw);
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #3c3c3c;
    background: #0f1220;
    box-shadow: 0 24px 50px #000;
}

/* Keep home slider content behind popup overlays when modal is open. */
.category-modal-open .mainSlider .infodiv,
.category-modal-open .mainSlider .displayInfo .leftInfo,
.category-modal-open .mainSlider .displayInfo .rightInfo,
.category-modal-open .mainSliderSection .logo-default {
    z-index: 0 !important;
}

.home-redesign .trailer-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #3c3c3c;
    background: rgba(140, 23, 35, 0.5);
}

.home-redesign .trailer-player-title {
    margin: 0;
    color: var(--tabie-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-redesign .trailer-player-close {
    border: 1px solid #3c3c3c;
    background: #232a40;
    color: #fff;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-redesign .trailer-player-close .material-icons-round {
    font-size: 1.2rem;
    line-height: 1;
}

.home-redesign .trailer-player-body {
    padding: 0.9rem;
}

.home-redesign .trailer-player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    isolation: isolate;
}

.home-redesign .trailer-player-video,
.home-redesign .trailer-player-stage .video-js,
.home-redesign .trailer-player-stage .vjs-tech,
.home-redesign .trailer-player-stage .vjs-poster {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
}

.home-redesign .trailer-player-stage .video-js {
    position: absolute;
    inset: 0;
}

/* Hide all loading indicators/text in trailer modal. */
.home-redesign .trailer-player-modal .vjs-loading-spinner,
.home-redesign .trailer-player-modal .vjs-modal-dialog,
.home-redesign .trailer-player-modal .vjs-modal-dialog-content,
.home-redesign .trailer-player-modal .vjs-control-text,
.home-redesign .trailer-player-modal .spinner-border,
.home-redesign .trailer-player-modal .spinner-grow,
.home-redesign .trailer-player-modal [class*="loading-spinner"],
.home-redesign .trailer-player-modal [class*="spinner"] {
    display: none !important;
}

.home-redesign .trailer-player-modal video::-webkit-media-controls,
.home-redesign .trailer-player-modal video::-webkit-media-controls-enclosure,
.home-redesign .trailer-player-modal video::-webkit-media-controls-panel,
.home-redesign .trailer-player-modal video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
}

.home-redesign .trailer-overlay-control {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(10, 14, 24, 0.72);
    color: #fff;
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-redesign .trailer-overlay-control:hover,
.home-redesign .trailer-overlay-control:focus {
    transform: scale(1.05);
    background: rgba(18, 24, 38, 0.88);
    border-color: rgba(255, 255, 255, 0.5);
}

.home-redesign .trailer-overlay-control .material-icons-round {
    line-height: 1;
    font-size: 1.5rem;
}

.home-redesign .trailer-overlay-mute {
    top: 0.65rem;
    left: 0.65rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.home-redesign .trailer-overlay-play {
    top: 50%;
    left: 50%;
    width: 3.8rem;
    height: 3.8rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(12, 18, 30, 0.76);
}

.home-redesign .trailer-overlay-play:hover,
.home-redesign .trailer-overlay-play:focus {
    transform: translate(-50%, -50%) scale(1.07);
}

.home-redesign .trailer-overlay-play .material-icons-round {
    font-size: 2rem;
}

@media (max-width: 1024px) {
    header.header-sticky,
    header .header-sticky {
        position: absolute !important;
        top: 0;
        right: 0;
        left: 0;
    }

    .home-redesign .mainSliderSection {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .home-redesign .mainSlider .horizontalPosterImage,
    .home-redesign .mainSlider .verticalPosterImage {
        position: absolute !important;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    .home-redesign .mainSlider .infodiv {
        position: absolute !important;
        inset-inline: 0;
        bottom: 0;
        width: 100%;
        height: auto !important;
        margin: 0 !important;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        background: linear-gradient(0deg, rgba(9, 11, 24, 0.96) 0%, rgba(9, 11, 24, 0.78) 55%, rgba(9, 11, 24, 0.12) 100%) !important;
    }

    .home-redesign .mainSlider .textdiv,
    .home-redesign .mainSlider .videoIsPlaying .textdiv {
        display: none !important;
    }

    .home-redesign .mainSlider .hero-video-holder,
    .home-redesign .mainSlider .hero-video-holder .video-player,
    .home-redesign .mainSlider .hero-video-holder .video-js,
    .home-redesign .mainSlider .hero-video-holder .vjs-tech,
    .home-redesign .mainSlider .hero-video-holder video {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    .home-redesign .mainSlider .hero-video-holder,
    .home-redesign .mainSlider .videoIsPlaying .hero-video-holder {
        display: none !important;
    }

    .home-redesign .mainSlider .displayInfo {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        width: 100% !important;
        padding: 0.9rem 1rem !important;
        text-align: center;
        background: linear-gradient(0deg, rgba(9, 11, 24, 0.96) 0%, rgba(9, 11, 24, 0.78) 55%, rgba(9, 11, 24, 0.12) 100%) !important;
    }

    .home-redesign .mainSlider .displayInfo .leftInfo {
        display: none !important;
    }

    .home-redesign .mainSlider .displayInfo .rightInfo {
        width: 100% !important;
        max-width: min(92vw, 700px);
        float: none !important;
        margin: 0 auto;
        top: 0 !important;
        position: relative !important;
        align-items: center !important;
        text-align: center !important;
    }

    .home-redesign .mainSlider .infodiv > [class^="col-"],
    .home-redesign .mainSlider .infodiv > [class*=" col-"] {
        padding-inline: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-redesign .categorySliderDiv {
        --category-item-width: 300px;
        --category-item-height: calc((var(--category-item-width) * 9 / 16) + 50px);
    }

    .home-redesign .main-title {
        font-size: 24px;
    }

    .home-redesign .category-nav-item {
        font-size: 0.84rem;
    }

    .home-redesign .mainSlider .slider-hero-actions {
        --slider-action-icon-size: 1.35rem;
    }

    .home-redesign .mainSlider .swiper-slide .infodiv .hoverlogo,
    .home-redesign .mainSlider .swiper-slide .infodiv .logoSmall,
    .home-redesign .mainSlider .hoverlogo {
        display: block;
        margin-inline: auto;
        width: min(340px, 72%);
    }

    .home-redesign .mainSlider .playInfoBlock,
    .home-redesign .mainSlider .videoIsPlaying .playInfoBlock {
        align-self: auto;
        margin-inline: auto;
    }

    .home-redesign .mainSlider .slider-hero-actions {
        width: 100%;
        justify-content: center;
    }

    .home-redesign .mainSlider .episodeTitleInfo,
    .home-redesign .mainSlider .videoIsPlaying .episodeTitleInfo,
    .home-redesign .mainSlider .playInfoBlock .episodeTitle {
        justify-content: flex-start;
    }

    .home-redesign .mainSlider .hero-classification {
        padding-inline-start: 0;
        margin-inline: auto;
        text-align: center;
    }

    .home-redesign .mainSlider .clamp-text {
        margin-inline-start: 0;
        text-align: center;
    }

    .home-redesign .categorySliderDiv .iq-card {
        width: 100%;
    }

    .home-redesign .categorySliderDiv .block-images {
        height: var(--category-item-height);
        aspect-ratio: auto;
    }

    .home-redesign .iq-top-ten-block .img-box {
        width: 200px;
        margin: 0;
        height: 300px;
        aspect-ratio: auto;
    }

}

@media (max-width: 768px) {
    .home-redesign .category-modal,
    .home-redesign .trailer-player-modal {
        align-items: flex-start !important;
        padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
        padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
        padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .home-redesign .category-modal-dialog,
    .home-redesign .trailer-player-dialog {
        width: min(100%, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 767px) {
    .home-redesign .mainSlider .slider-hero-actions {
        --slider-hero-action-width: auto;
        gap: 0.7rem;
        margin-top: 1.15rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(94vw, 560px);
        margin-inline: auto;
    }

    .home-redesign .mainSlider .watchText h2,
    .home-redesign .mainSlider .videoIsPlaying .playInfoBlock .episodeTitle h2 {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.08;
    }

    .home-redesign .mainSlider .slider-mylist-btn .watchlist-label {
        font-size: 15px;
        line-height: 1.08;
        font-family: "QatarMediaCorporationMedium", "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    }

    .home-redesign .mainSlider .watchBtn,
    .home-redesign .mainSlider .slider-mylist-btn .material-icons-round {
        width: 2.1rem;
        min-width: 2.1rem;
        max-width: 2.1rem;
        height: 2.1rem;
        min-height: 2.1rem;
        max-height: 2.1rem;
        flex-shrink: 0;
    }

    .home-redesign .mainSlider .playInfoBlock,
    .home-redesign .mainSlider .videoIsPlaying .playInfoBlock,
    .home-redesign .mainSlider .slider-mylist-btn {
        width: 100%;
        min-width: 0;
    }

    .home-redesign .mainSlider .slider-mylist-btn {
        justify-content: flex-start;
    }

    .home-redesign .mainSlider .slider-mylist-btn .watchlist-label {
        text-align: right;
    }

    .home-redesign .categorySliderDiv {
        --category-item-width: 260px;
        --category-item-height: calc((var(--category-item-width) * 9 / 16) + 50px);
    }

    .home-redesign .swiper-button {
        width: 36px;
        height: 36px;
    }

    .home-redesign .swiper-button .material-icons-round {
        font-size: 1.3rem;
    }

    .home-redesign .view-all-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-height: 32px;
        height: 32px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .home-redesign .top-ten-header-actions {
        gap: 0.4rem;
    }

    .home-redesign .top-ten-inline-nav {
        gap: 0.3rem;
        min-height: 32px;
    }

    .home-redesign .top-ten-inline-nav .swiper-button {
        width: 32px;
        height: 32px;
    }

    .home-redesign .category-nav-shell {
        border-radius: 16px;
    }

    .home-redesign .mainSlider .hero-classification {
        font-size: 30px;
        line-height: 1.2;
    }

    .home-redesign .categorySliderDiv .iq-card {
        width: 100%;
    }

    .home-redesign .categorySliderDiv .block-images {
        height: var(--category-item-height);
        aspect-ratio: auto;
    }

    .home-redesign .iq-top-ten-block .img-box {
        width: 200px;
        margin: 0;
        height: 300px;
        aspect-ratio: auto;
    }

    .home-redesign .top-ten-block .home-poster-hover-close-btn {
        display: inline-flex;
    }

    /* Mobile Top 10: prevent accidental hover-card reveal while swiping. */
    .home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:hover,
    .home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:focus-within {
        min-width: 200px !important;
        width: 200px !important;
        min-height: 300px !important;
        height: 300px !important;
        transform: none !important;
        z-index: 1 !important;
        box-shadow: none !important;
    }

    .home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:hover .home-poster-main-image,
    .home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:focus-within .home-poster-main-image {
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:hover .home-poster-hover-card,
    .home-redesign .top-ten-block .home-poster-hover-slider .home-poster-card-shell:focus-within .home-poster-hover-card {
        opacity: 0 !important;
        transform: translateY(12px) scale(0.96) !important;
        pointer-events: none !important;
    }

    .home-redesign .top-ten-block .home-poster-hover-slider.top-ten-has-hover .swiper-slide.top-ten-hover-active .home-poster-hover-card {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }

    .home-redesign .top-ten-block .home-poster-hover-slider.top-ten-touch-scrolling .swiper-slide.top-ten-hover-active .home-poster-hover-card {
        opacity: 0 !important;
        transform: translateY(12px) scale(0.96) !important;
        pointer-events: none !important;
    }

    .home-redesign .home-poster-hover-content {
        padding: 0.56rem 0.58rem 0.62rem;
    }

    .home-redesign .home-poster-title {
        font-size: calc(0.86rem + 5px);
    }

    .home-redesign .home-poster-classification {
        font-size: calc(0.7rem + 5px);
    }

    .home-redesign .home-poster-continue-btn,
    .home-redesign .home-poster-list-btn {
        min-height: 44px;
        font-size: 14px;
        padding: 0.28rem 0.36rem;
    }

    .home-redesign .category-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 14px;
    }

    .home-redesign .category-modal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
    }

    .home-redesign .trailer-overlay-mute {
        top: 0.55rem;
        left: 0.55rem;
        width: 2.25rem;
        height: 2.25rem;
    }

    .home-redesign .trailer-overlay-play {
        width: 3.2rem;
        height: 3.2rem;
    }

    .home-redesign .trailer-overlay-play .material-icons-round {
        font-size: 1.72rem;
    }

    .home-redesign .category-modal-poster-title {
        font-size: calc(0.86rem + 5px);
    }

    .home-redesign .category-modal-poster-continue,
    .home-redesign .category-modal-poster-list,
    .home-redesign .category-modal-poster-trailer {
        min-height: 42px;
        font-size: 14px;
        padding: calc(0.3rem + 10px) calc(0.45rem + 10px);
    }

}
