/* ==========================================================================
   Home Inline Styles — Extracted from home.php
   ========================================================================== */

/* Trending Swiper Responsive Widths */
.trending-slide {
    width: 38% !important;
    /* Mobile: ~2.5 items */
    margin-right: 15px;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .trending-slide {
        width: 28% !important;
        /* Small Tablet: ~3.5 items */
    }
}

@media (min-width: 768px) {
    .trending-slide {
        width: 24% !important;
        /* Tablet: 4 items */
    }
}

@media (min-width: 992px) {
    .trending-slide {
        width: 20% !important;
        /* laptop: 5 items */
    }
}

@media (min-width: 1200px) {
    .trending-slide {
        width: calc(20% - 15px) !important;
        /* Desktop: 5 items */
    }
}

/* Hide Scrollbar for Trending Swiper */
.trending-list .swiper-wrapper::-webkit-scrollbar {
    display: none;
}

.trending-list .swiper-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Featured Blocks (Top Airing, etc.) Layout Fix */
.anif-block-ul li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.anif-block-ul li:last-child {
    border-bottom: none;
}

.anif-block-ul li .film-poster {
    width: 50px !important;
    padding-bottom: 70px !important;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.anif-block-ul li .film-detail {
    padding-left: 15px !important;
    flex-grow: 1;
    min-width: 0;
}

.anif-block-ul li .film-name {
    font-size: 14px !important;
    margin-bottom: 5px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    line-height: 1.4;
    font-weight: 500;
    color: #fff;
}

.anif-block-ul li .fd-infor {
    display: flex;
    align-items: center;
    gap: 0;
}

.anif-block-ul li .tick-item {
    color: #111 !important;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 11px !important;
    height: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.anif-block-ul li .tick-item.tick-sub {
    background: #b0eacD !important;
}

.anif-block-ul li .tick-item.tick-dub {
    background: #b9e7ff !important;
    margin-right: 10px;
}

/* Override global spacing - keep badges connected in featured blocks */
.anif-block-ul li .tick {
    gap: 0 !important;
}

.anif-block-ul li .tick .tick-item {
    margin-left: 0 !important;
}

.anif-block-ul li .tick .tick-item + .tick-item {
    margin-left: 0 !important;
}

/* If only sub exists (no dub), it needs right radius too.
   This simple CSS assumes Sub comes before Dub.
   We can add a helper class or just let it be square on right if mostly both exist.
   Better: use :last-child if we grouped them in a span, but they are siblings in .fd-infor
*/

.anif-block-ul li .tick-item.tick-eps {
    background: transparent !important;
    color: #fff !important;
    padding-left: 0;
}

.anif-block-ul li .tick-item i {
    font-size: 10px;
    margin-right: 3px;
}

.anif-block-ul li .fdi-item {
    font-size: 12px;
    color: #aaa;
}

.anif-block .anif-block-header {
    color: #FFBADE;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Spotlight Slider Navigation Buttons - Desktop: bottom right stacked */
.swiper-navigation {
    position: absolute;
    bottom: 30px;
    right: 30px;
    top: auto;
    left: auto;
    transform: none;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swiper-button {
    width: 45px;
    height: 45px;
    background: rgba(50, 50, 70, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: #aaa;
    font-size: 18px;
}

.swiper-button:hover {
    background: rgba(80, 80, 100, 0.9);
    color: #fff;
}

.swiper-button-next {
    order: 1;
}

.swiper-button-prev {
    order: 2;
}

/* Desktop: Show arrows only, hide dots */
@media (min-width: 992px) {
    .swiper-navigation {
        display: flex !important;
    }

    .deslide-wrap .swiper-pagination {
        display: none !important;
    }
}

/* Mobile/Tablet: Hide arrows, show dots */
@media (max-width: 991px) {
    .swiper-navigation {
        display: none !important;
    }

    .deslide-wrap .swiper-pagination {
        display: flex !important;
    }
}

/* Slider pagination dots styling - vertical on right side (mobile only) */
.deslide-wrap .swiper-pagination {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: none !important;
    /* Hidden by default */
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 10 !important;
    width: auto !important;
    left: auto !important;
    bottom: auto !important;
}

/* Show dots only on mobile/tablet */
@media (max-width: 991px) {
    .deslide-wrap .swiper-pagination {
        display: flex !important;
    }
}

.deslide-wrap .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    margin: 0 !important;
}

.deslide-wrap .swiper-pagination-bullet-active {
    background: #FFBADE !important;
    transform: scale(1.3);
}

/* Trending Navigation on Mobile */
@media screen and (max-width: 768px) {
    #trending-home .trending-navi {
        display: none !important;
    }
}

/* Trending Header Navigation Buttons - Mobile Only */
.trending-header-nav {
    display: none;
    /* Hidden by default (desktop) */
    gap: 8px;
    margin-left: auto;
}

@media screen and (max-width: 768px) {
    .trending-header-nav {
        display: flex !important;
        /* Show on mobile */
    }
}

.trending-header-nav .thn-prev,
.trending-header-nav .thn-next {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    transition: all 0.2s ease;
}

.trending-header-nav .thn-prev:hover,
.trending-header-nav .thn-next:hover {
    background: #FFBADE;
    color: #111;
    border-color: #FFBADE;
}

.block_area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.block_area-header .bah-heading {
    flex: 1;
}
