/* Responsive stabilization layer for the public website. */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    overflow-x: clip;
}

img,
video,
iframe,
canvas {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
.title,
.desc,
.name,
.btn,
.solid__btn {
    overflow-wrap: anywhere;
}

.row > *,
.header__left,
.header__meta,
.header__meta .flex__wrap,
.swiper,
.swiper-slide,
.grid-3 > *,
.grid-4 > *,
.grid-5 > *,
.grid-6 > *,
.grid-7 > *,
.grid-8 > * {
    min-width: 0;
}

.container-fluid {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: 64px;
}

.btn,
.solid__btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.btn__group,
.movieDetails__info .action__area,
.footer__bottom .footer__content {
    flex-wrap: wrap;
}

.custom__popup .modal-dialog {
    width: calc(100% - 32px);
    margin-inline: auto;
}

.custom__popup .modal-content,
.form__wrapper {
    max-width: 100%;
}

.dropdown__list,
.notification__dropdown .dropdown__list {
    max-width: calc(100vw - 32px);
}

@media screen and (max-width: 1599px) {
    .container-fluid {
        padding-inline: 40px;
    }
}

@media screen and (max-width: 1399px) {
    .container-fluid {
        padding-inline: 28px;
    }

    .header__left {
        gap: 24px;
    }

    .header__wrapper .header__menu .main__menu {
        gap: 12px;
    }

    .header__wrapper .header__menu .main__menu li a {
        font-size: 15px;
    }

    .header__wrapper .header__menu .main__menu li .sub__menu.mega__menu {
        width: 760px !important;
        min-width: 760px;
        max-width: calc(100vw - 56px);
    }

    .header__wrapper
        .header__menu
        .main__menu
        li
        .sub__menu.mega__menu
        .mega__menu-wrapper
        .inner__wrapper:first-of-type {
        min-width: 220px;
        max-width: 220px;
    }

    .header__wrapper
        .header__menu
        .main__menu
        li
        .sub__menu.mega__menu
        .slider__width {
        width: calc(100% - 220px);
    }
}

@media screen and (max-width: 1199px) {
    .container-fluid {
        padding-inline: 24px;
    }

    .header__wrapper {
        flex-wrap: nowrap;
        gap: 16px;
    }

    .header__left {
        flex: 0 1 auto;
    }

    .header__meta {
        flex: 0 1 auto;
        margin-inline-start: auto;
        justify-content: flex-end;
    }

    .header__meta .flex__wrap {
        gap: 16px;
    }

    .hero__text .title,
    .rentVideo__wrapper .hero__text .title {
        font-size: 42px;
        line-height: 50px;
    }

    .movieDetails__info .title {
        font-size: 36px;
        line-height: 44px;
    }
}

@media screen and (max-width: 991px) {
    .container-fluid {
        padding-inline: 20px;
    }

    .bannerSlide__wrapper {
        padding-block: 180px;
    }

    .section__title {
        gap: 12px;
        margin-bottom: 26px;
    }

    .section__title .title {
        line-height: 30px;
    }

    .form__wrapper {
        width: 100%;
        padding: 40px 32px;
    }

    .userDetails,
    .payment__history,
    .subscription__plan,
    .user__accordion {
        width: 100%;
    }

    .paymentCard {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .paymentCard .left,
    .paymentCard .right {
        min-width: 0;
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    body {
        font-size: 1.5rem;
        line-height: 2.4rem;
    }

    p {
        font-size: 16px;
        line-height: 26px;
    }

    h1 {
        font-size: 34px;
        line-height: 42px;
    }

    h2 {
        font-size: 30px;
        line-height: 38px;
    }

    h3 {
        font-size: 26px;
        line-height: 34px;
    }

    h4 {
        font-size: 21px;
        line-height: 29px;
    }

    .bannerSlide__wrapper {
        padding-block: 160px;
    }

    .hero__text .title,
    .rentVideo__wrapper .hero__text .title {
        font-size: 34px;
        line-height: 42px;
        margin-block: 12px 16px;
    }

    .banner__text .title {
        font-size: 30px;
        line-height: 38px;
    }

    .section__title {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 22px;
    }

    .section__title .title {
        font-size: 21px;
        line-height: 28px;
    }

    .section__title .view__btn {
        font-size: 14px;
        line-height: 22px;
    }

    .flex__input {
        display: block;
    }

    .form__wrapper,
    .custom__popup .form__wrapper {
        padding: 32px 24px !important;
    }

    .heading__content .title,
    .heading__content .title2 {
        font-size: 22px;
        line-height: 29px;
    }

    .user__pannel {
        padding: 22px 20px;
    }

    .userDetails,
    .subscription__plan,
    .user__accordion {
        padding: 22px 18px;
    }

    .movieDetails__info .title {
        font-size: 30px;
        line-height: 38px;
    }

    .swiper__navigation .swiper-button-next,
    .swiper__navigation .swiper-button-prev {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media screen and (max-width: 575px) {
    .container-fluid {
        padding-inline: 16px;
    }

    .header__wrapper {
        gap: 10px;
    }

    .header__wrapper .header__logo img {
        max-width: 112px;
        height: 24px;
        object-fit: contain;
    }

    .header__meta,
    .header__meta .flex__wrap {
        gap: 10px;
    }

    .language__dropdown {
        width: 62px;
    }

    .language__dropdown::after {
        display: none;
    }

    .language__dropdown .selected {
        font-size: 14px;
        gap: 4px;
    }

    .language__dropdown .selected i {
        font-size: 17px;
    }

    .solid__btn {
        font-size: 14px;
        line-height: 20px;
    }

    .flyoutMenu .flyout__flip {
        width: min(88vw, 360px);
    }

    .movies-list.grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .video__card .video__content {
        padding: 12px 10px;
        gap: 8px;
    }

    .video__card .video__content .title {
        font-size: 14px;
        line-height: 18px;
    }

    .paymentCard .left,
    .paymentCard .right {
        width: 100%;
    }

    .plan__card .plan__info p,
    .toggle__item {
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 399px) {
    .header__wrapper .header__logo img {
        max-width: 92px;
        height: 22px;
    }

    .language__dropdown {
        width: 42px;
    }

    .language__dropdown .selected i,
    .language__dropdown .selected::after {
        display: none;
    }

    .hero__text .title,
    .rentVideo__wrapper .hero__text .title,
    .banner__text .title {
        font-size: 30px;
        line-height: 37px;
    }

    .form__wrapper,
    .custom__popup .form__wrapper {
        padding: 28px 18px !important;
    }
}
