/* UFLIX site fixes (2 Dec 2026). Loaded after style.css / rtl.css. */

/* ---- Grid / search cards: portrait poster + title (C.20) ---- */
.filter__items .grid-5.movies-list,
.grid-5.movies-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media screen and (max-width: 1440px) {
    .filter__items .grid-5.movies-list,
    .grid-5.movies-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media screen and (max-width: 1199px) {
    .filter__items .grid-5.movies-list,
    .grid-5.movies-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
    .filter__items .grid-5.movies-list,
    .grid-5.movies-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media screen and (max-width: 480px) {
    .filter__items .grid-5.movies-list,
    .grid-5.movies-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid__card .video__thumb img,
.video_poster.grid__card .video__thumb img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    background: #1b1b20;
}
.grid__card .card__caption {
    display: block;
    padding: 8px 2px 0;
    color: var(--color-white, #fff);
    text-decoration: none;
}
.grid__card .card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}
.grid__card .card__year {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.65;
}

/* Empty pills / meta (no genre, no rating) (C.24) */
.video__tag span:empty,
.video__meta .meta__item:empty { display: none !important; }

/* ---- Phone menu (C.27) ---- */
.flyoutMenu { z-index: 100000000; }
.flyoutMenu .flyout__flip { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
body.flyout-open { overflow: hidden; touch-action: none; }
body.flyout-open .flyoutMenu { touch-action: auto; }
body.flyout-open #toTop,
body.flyout-open .swiper-button-prev,
body.flyout-open .swiper-button-next { visibility: hidden; }
.flyoutMenu .flyout__flip .swiper-button-prev,
.flyoutMenu .flyout__flip .swiper-button-next { visibility: visible; }
.flyoutMenu .flyout-main__menu li a { min-height: 32px; }

/* ---- Tap targets (C.27) ---- */
@media screen and (max-width: 767px) {
    .section__title .view__btn a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 8px; }
    .footer__widget .widget__list li a { display: inline-flex; align-items: center; min-height: 32px; }
    .social__list li a { min-width: 36px; min-height: 36px; }
}

/* ---- Hero readability + arrows (C.27, C.28) ---- */
.banner__video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
    z-index: 0;
}
.banner__video .bannerSlide__wrapper { z-index: 1; }
.hero__text .title,
.hero__text .desc { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
@media screen and (max-width: 767px) {
    /* Arrows sat on top of "Watch Now": the slider swipes on phones. */
    .banner__swiper__navigation,
    .featureM__slider .swiper__navigation { display: none !important; }
    .featureM__slider .btn__group,
    .banner__sliderSection .btn__group { padding-bottom: 36px; }
}

/* ---- Series page episode list (C.27) ---- */
.videolist .thumb { display: block; position: relative; }
.videolist .content .title a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.videolist .overlay .play__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
}
@media screen and (max-width: 767px) {
    .playlist__overflow { max-height: none !important; overflow: visible !important; }
    .videolist .content .title,
    .videolist .content .title a { white-space: normal !important; text-overflow: clip !important; }
}
.playlist__area .collapse__btn { min-width: 40px; min-height: 40px; }

/* Empty-state block */
.no-data p { margin-top: 12px; }
