/* 5 items per row layout */
.trending__product .row:last-child {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Remove bootstrap column behavior */
.trending__product .row:last-child > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
    flex: none !important;
}

/* Responsive fallbacks */
@media (max-width: 1200px) {
    .trending__product .row{
        padding: 1rem;
    }
    .trending__product .row:last-child {
        grid-template-columns: repeat(4, 1fr);
    }
    iframe {
    height: 540px !important;
}
}

@media (max-width: 992px) {
    .trending__product .row:last-child {
        grid-template-columns: repeat(3, 1fr);
    }
    iframe {
    height: 420px !important;
}
}

@media (max-width: 768px) {
    .product__item__pic{
        height: 320px;
    }
   .heads-sec {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-left: 0;   /* remove Bootstrap row negative margin */
        margin-right: 0;  /* remove Bootstrap row negative margin */
        width: 100%;      /* make it fully inside container */
        box-sizing: border-box;
        gap: 10rem;
    }

    /* Remove padding from columns to avoid extra width */
    .heads-sec > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
    .heads-sec .section-title h4{
         font-size: 20px;
         /* width: 200%; */
    }
   
    .trending__product .row:last-child {
        grid-template-columns: repeat(3, 1fr); /* 2 items per row on tablets/small screens */
    }
    .anime__details__pic {
	height: 540px !important;
}
}

@media (max-width: 590px) {
    .trending__product .row:last-child {
        grid-template-columns: repeat(2, 1fr);
    }
    .product__item__pic{
        height: 360px;
    }
    iframe {
    height: 290px !important;
}
}

@media (max-width: 540px) {
    .trending__product .row:last-child {
        grid-template-columns: repeat(2, 1fr);
    }
    .product__item__pic{
        height: 360px;
    }
    iframe {
    height: 290px !important;
}
}

@media (max-width: 480px) {
    .product__item__pic{
        height: 240px;
    }
    .trending__product .row:last-child {
        grid-template-columns: repeat(2, 1fr); /* 1 item per row for very small screens like Galaxy Fold */
    }
    iframe {
    height: 200px !important;
}
}

/* search bar */
/* Header Search Bar */
/* Header Search Bar */
/* Make header relative to allow absolute positioning */
/* Header setup */
/* Header */
/* Header */
.header {
     position: fixed;
    top: 0;                 /* REQUIRED */
    left: 0;
    height: 130px;
    width: 100%;
    display: flex;
    align-items: center;
    
    z-index: 9999; 
}
.breadcrumb-option{
    margin-top: 120px;
}
.main-ind{
    margin-top: 120px;
}
/* Logo */
.header__logo img {
    max-height: 50px;
    width: auto;
}

/* Search bar container */
.header__search-wrapper {
    display: flex;
    flex: 1;                /* Take remaining space */
    justify-content: flex-end; /* Push search bar to the right */
}

/* Search bar form */
.header__search {
    display: flex;
    width: 90%;
    max-width: 350px; /* desktop max width */
    box-sizing: border-box;
}

.header__search input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
}

.header__search input:focus {
    border-color: #ff4c3b;
    box-shadow: 0 0 5px rgba(255, 76, 59, 0.5);
}

.header__search button {
    padding: 8px 15px;
    background-color: #ff4c3b;
    border: none;
    color: white;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__search button:hover {
    background-color: #e04334;
}

.header__search button i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .header__search {
        max-width: 100%;   /* Take full width inside container */
        box-sizing: border-box; /* include padding in width */
    }

    .header__search input {
        padding: 6px 10px;
        font-size: 13px;
    }

    .header__search button {
        padding: 6px 10px;
    }
}

.product__item .product__item__text{
    border-radius: 1% !important;
}

/* ifram */
iframe {
     /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;   /* use % instead of vw to prevent overflow */
    height: 640px;
    border: 0;
    border-radius: 1rem;
}


/* download section */
/* Section styling */
.download-section {
    padding: 30px 20px;
    /* background-color: #979595; */
    text-align: left;
    font-family: Arial, sans-serif;
    width: 90%;
    margin: auto;
    border-radius: 1rem;
    border: 1px solid grey;
}

.download-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
    font-weight: 600;
}

/* Button container */
.download-buttons {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 15px;
}

/* episode download */
.episode-download{
    width: 100%;
}

/* Common button styling */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Video button color */
.download-btn.video-btn {
    background-color: #ff4c3b;
}

.download-btn.video-btn:hover {
    background-color: #e04334;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Subtitle button color */
.download-btn.subtitle-btn {
    background-color: #007bff;
}

.download-btn.subtitle-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* tenss button color */
.download-btn.tens-btn {
    background-color: #8B0000;
}

.download-btn.tens-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Icon styling */
.download-btn i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .download-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .download-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* banners in header */
.join-banners {
    display: flex;
    gap: 15px;
    width: 62%;
    padding: 2px;
    box-sizing: border-box;
    margin: auto;
}

/* Common banner styles */
.join-banner {
    flex: 1;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* WhatsApp */
.join-banner.whatsapp {
    background: #25D366;
}

/* Telegram */
.join-banner.telegram {
    background: #0088cc;
}

/* Hover effect */
.join-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Icons */
.join-banner i {
    font-size: 26px;
}

/* Tablet */
@media (max-width: 1024px) {
    .join-banners {
        flex-direction: row;
        justify-content: center;
        width: 90%;
    }

    .join-banner {
        font-size: 16px;
    }
}
@media (max-width: 768px) {
    .join-banners {
        flex-direction: row;
        justify-content: center;
        width: 90%;
    }

    .join-banner {
        font-size: 16px;
    }
    .blog-comms{
        width: 90% !important;
    }
    .blog-com-form{
        width: 90% !important;
    }
}

/* Small phones */
@media (max-width: 600px) {
    .join-banner {
        flex: none;
        font-size: 10px;
        padding: 4px;
        width: 60% !important;
        min-height: 36px;
    }

    .join-banner i {
        font-size: 22px;
    }
}
@media (max-width: 540px) {
    .join-banner {
        flex: none;
        font-size: 10px;
        padding: 4px;
        width: 55% !important;
        min-height: 36px;
    }

    .join-banner i {
        font-size: 22px;
    }
}

/* quick links */
.quick-links {
    width: 100%;
    padding: 25px 15px;
    box-sizing: border-box;
}

/* Center content to page width */
.quick-links-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Link boxes */
.ql {
    background: #2f2f2f;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ql:hover {
    background: #444;
    transform: translateY(-2px);
}

/* 18+ special style */
.ql.adult {
    background: #aa1e1e;
}

.ql.adult:hover {
    background: #c62828;
}

.ql i {
    margin-right: 6px;
}

/* Tablet */
@media (max-width: 768px) {
    .ql {
        font-size: 13px;
        padding: 7px 12px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ql {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* episode latest */
.episode-lates-det{
    margin-bottom: 0% !important;
}

.righ ul li{
    border-radius: 12% !important;
    border: 1px solid #E53637;
    background-color: transparent;
}

/* pagination */
/* Container for pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;   /* center items horizontally */
    width: 100%;               /* take full width of parent */
    margin: 40px 0;
}

.pagination {
    display: flex;
    flex-wrap: nowrap;         /* no wrapping on big screens */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;                 /* spacing between buttons */
    justify-content: center;   /* center if container is wide */
}

.pagination li {
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: inline-flex;      /* inline-flex keeps them on same line */
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
    transition: background 0.3s;
}

.pagination li a:hover {
    background-color: #e50914;
}

.pagination li.active span {
    background-color: #e50914;
    font-weight: bold;
    cursor: default;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;       /* wrap on tablets */
        width: 100% !important;
    }

    .pagination li a,
    .pagination li span {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 28px;
    }
}

@media (max-width: 480px) {
    .pagination li a,
    .pagination li span {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 24px;
    }
}

.product__item {
    display: flex !important;
    flex-direction: column !important;
}

.product__item__pic {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0 !important;
}



/* genre pagination */
/* Container */
.pagination-wrap {
    text-align: center; /* Center pagination */
    margin: 2rem 0;
}

/* Pagination list */
.pagination-wrap ul.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 8px;
}

/* Pagination items */
.pagination-wrap ul.pagination li {
    display: inline-block;
}

/* Pagination links */
.pagination-wrap ul.pagination li a,
.pagination-wrap ul.pagination li span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
    min-width: 36px;
    text-align: center;
}

/* Hover effect */
.pagination-wrap ul.pagination li a:hover {
    background-color: #e53637;
    color: #fff;
    border-color: #e53637;
}

/* Active page */
.pagination-wrap ul.pagination li.active span {
    background-color: #e53637;
    color: #fff;
    border-color: #e53637;
    font-weight: bold;
}

/* Responsive: smaller padding on small screens */
@media (max-width: 768px) {
    .pagination-wrap ul.pagination li a,
    .pagination-wrap ul.pagination li span {
        padding: 6px 10px;
        min-width: 30px;
    }
}

/* Wrap properly on very small screens */
@media (max-width: 480px) {
    .pagination-wrap ul.pagination {
        justify-content: flex-start; /* align left */
        gap: 6px;
    }
}



/* BROWSE MORE BUTTON */
.browse-more-wrap{
    text-align: center;
    margin: 50px 0;
}

.browse-more-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,.75);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 40px;
    text-decoration: none;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}

.browse-more-btn i{
    font-size: 13px;
    opacity: .85;
}

/* Hover – subtle, not flashy */
.browse-more-btn:hover{
    background: rgba(0,0,0,.9);
    border-color: rgba(255,255,255,.5);
}

/* Mobile refinement */
@media (max-width: 576px){
    .browse-more-wrap{
        margin: 35px 0;
    }
    .browse-more-btn{
        padding: 12px 22px;
        font-size: 13px;
    }
}


.badge-movie{
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    color: #fff;
}

.badge-series{
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 12px;
    background: rgba(0,194,255,.2);
    color: #00c2ff;
}

/* Force 2 items per row at ~600px EPISODE LATEST */ 
@media (max-width: 767px) and (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


