/* Category Mega Menu Styles */

/* Desktop Category Menu */
.mega-menu-category {
    position: relative;
}

.mega-menu-category .category-trigger {
    display: inline-block;
    padding: 23px 15px 19px 15px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.mega-menu-category .category-trigger i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mega-menu-category:hover .category-trigger i {
    transform: rotate(180deg);
}

.mega-menu-category:hover .category-trigger,
.mega-menu-category .category-trigger:hover {
    color: #ff0015;
}

/* MODIFIED: Centered mega menu dropdown */
.category-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    background: #101011;
    border: 1px solid #242426;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
	/*transition: all 0.3s ease;
    margin-top: 8px; */
    min-width: 1024px;
	overscroll-behavior: contain;
}

.mega-menu-category:hover .category-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.category-dropdown-content {
    padding: 20px;
}

/* Category Navigation Tabs */
.category-nav-tabs {
    display: flex;
    border-bottom: 1px solid #242426;
    margin-bottom: 10px;
    gap: 0;
}

.category-nav-tab {
    background: none;
    border: none;
    color: #b5b5b5;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-nav-tab:hover,
.category-nav-tab.active {
    color: #ffffff;
}

.category-nav-tab.active {
    border-bottom-color: #ff0015;
}

.tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.tab-dot.indian-dot {
    background: #ff0015;
}

.tab-dot.english-dot {
    background: #22d3ee;
}

.tab-dot.anime-dot {
    background: #a78bfa;
}

.category-nav-tab.active .tab-dot.english-dot {
    background: #22d3ee;
}

.category-nav-tab.active .tab-dot.anime-dot {
    background: #a78bfa;
}

/* Category Panels */
.category-panels {
    position: relative;
}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

.category-grid {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;*/
    max-height: 300px;
    overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}

.category-item {
    background: #242426;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 10px 30px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    /*overflow: hidden;*/
    text-overflow: ellipsis;
    display: block;
	width: calc(15.35% - 0px);
	margin: calc(var(--bs-gutter-x) * .25);
}

.category-item:hover {
    background: #ff0015;
    color: #ffffff;
    border-color: #ff0015;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Mobile Category Menu */
.mobile-category-menu {
    display: none;
}

.mobile-category-trigger {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
    justify-content: space-between;
    align-items: center;
}

.mobile-category-trigger:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    text-decoration: none;
}

.mobile-category-content {
    background: #101011;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-category-content.active {
    max-height: 350px;
}

.mobile-category-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-category-tab {
    flex: 1;
    background: none;
    border: none;
    color: #b5b5b5;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.mobile-category-tab.active {
    color: #ffffff;
    border-bottom-color: #ff0015;
}

/* ENHANCED: Mobile category panels with scroll indicator */
.mobile-category-panels {
    position: relative;
}

.mobile-category-panel {
    display: none;
}

.mobile-category-panel.active {
    display: block;
}

/* Scroll indicator for mobile */
.mobile-category-panel.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #101011);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-category-panel.active:hover::after {
    opacity: 1;
}

/* ENHANCED: Mobile Category Grid with Better Scrolling */
.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    padding: 15px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.mobile-category-pill {
    background: #242426;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-category-pill:hover {
    background: #ff0015;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.02);
}

/* Scrollbar for category grid (Desktop) */
.category-grid::-webkit-scrollbar {
    width: 6px;
}

.category-grid::-webkit-scrollbar-track {
    background: transparent;
}

.category-grid::-webkit-scrollbar-thumb {
    background: #242426;
    border-radius: 3px;
}

.category-grid::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* ENHANCED: Scrollbar for mobile category grid */
.mobile-category-grid::-webkit-scrollbar {
    width: 6px;
}

.mobile-category-grid::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-category-grid::-webkit-scrollbar-thumb {
    background: #242426;
    border-radius: 3px;
}

.mobile-category-grid::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* MODIFIED: Responsive Design with centered positioning and enhanced mobile */
@media only screen and (max-width: 1200px) {
    .category-mega-dropdown {
        min-width: 1000px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .category-mega-dropdown {
        min-width: 550px;
    }
}

@media only screen and (max-width: 767px) {
    .mobile-category-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 479px) {
    .mobile-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
        padding: 12px;
        max-height: 250px;
    }
    
    .mobile-category-pill {
        padding: 5px 8px;
        font-size: 10px;
    }
}

@media only screen and (max-width: 359px) {
    .mobile-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 5px;
        padding: 10px;
        max-height: 220px;
    }
    
    .mobile-category-pill {
        padding: 4px 6px;
        font-size: 10px;
    }
}



/* Search Input Styles */
.category-search-container {
    position: relative;
    margin-bottom: 10px;
    border-bottom: 1px solid #242426;
    padding-bottom: 15px;
}

.category-search-input {
    width: 100%;
    background: #242426;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.category-search-input:focus {
    border-color: #ff0015;
    box-shadow: 0 0 0 2px rgba(255, 0, 21, 0.1);
}

.category-search-input::placeholder {
    color: #b5b5b5;
    font-weight: 400;
}

.category-search-icon {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-50%);
    color: #b5b5b5;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.category-search-input:focus + .category-search-icon {
    color: #ff0015;
}

.category-search-clear {
    position: absolute;
    right: 35px;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b5b5b5;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.category-search-clear:hover {
    color: #ff0015;
    background: rgba(255, 255, 255, 0.1);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #b5b5b5;
}

.no-results p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Category Item Highlight */
.category-item.highlight,
.mobile-category-pill.highlight {
    background: #ff0015 !important;
    color: #ffffff !important;
    border-color: #ff0015 !important;
    animation: highlightPulse 0.3s ease;
}

@keyframes highlightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile Search Styles */
.mobile-category-search-container {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-category-search-input {
    width: 100%;
    background: #242426;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 35px 10px 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-category-search-input:focus {
    border-color: #ff0015;
}

.mobile-category-search-input::placeholder {
    color: #b5b5b5;
}

.mobile-category-search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #b5b5b5;
    font-size: 12px;
    pointer-events: none;
}
.celebs-grid .celebs-card{
	width: calc(11.4% - 0px);
	padding: 0;
	margin: calc(var(--bs-gutter-x) * .25);
}