#new-games-scroll {
    padding-top: 50px;
}
@media (min-width: 841px) {
    .search-modal {
        display: none;
    }
}

@media (max-width: 915px) and (max-height: 9999px) {
    .search-bar,
    #recently-played {
        display: none !important;
    }

    .btn-search-mobile {
        display: block;
    }
}

@media (min-width: 451px) {
    .mobile-menu {
        width: 255px;
    }
}

@media (max-width: 640px) {
    .search-bar,
    #recently-played {
        display: none !important;
    }
    .btn-search-mobile {
        display: block;
    }
    #new-games-scroll {
        padding-top: 70px !important;
    }
    .container {
        padding: 0 5px;
    }

    .game-action-btn {
        padding: 8px 10px !important;
    }

    .game-card {
        flex: 0 0 120px;
        /* height: 110px!important; */
    }

    .section-title {
        font-size: 20px;
    }

    .game-title-overlay {
        font-size: 11px !important; /* Smaller font */
        padding: 5px; /* Less padding */
    }

    .featured-grid {
        grid-template-columns: repeat(3, auto);
    }
    
    .featured-grid .game-card {
        height: 120px!important;
    }
    .categories-scroll-container {
        gap: 0;
    }

    .category-item {
        flex: 0 0 110px !important; /* Width */
        min-height: 110px !important; /* Height */
        max-width: 110px !important;
        padding: 8px !important;
    }
    .category-item span:not(.category-icon) {
        font-size: 0.9em !important;
        line-height: 1.3;
    }
    /* Background image items  */
    .category-item[style*="background-image"] {
        padding: 3px !important;
    }

    .category-item .category-icon {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }

    /* Scroll arrows */
    .scroll-arrow {
        font-size: 1.8em !important;
        opacity: 0.7;
    }

    .game-card {
        flex: 0 0 100px; /* Smaller width */
        height: 105px; /* Smaller height  */
    }

    .section-header h2 {
        font-size: 20px !important;
    }

    .categories-scroll-container {
        gap: 0;
        padding: 5px 0;
    }

    .category-item {
        flex: 0 0 100px !important; /* Width */
        min-height: 100px !important; /* Height */
        max-width: 110px !important;
        padding: 8px !important;
        border-radius: 6px !important;
        outline-width: 1px !important;
    }

    .category-item span:not(.category-icon) {
        font-size: 1rem;
        line-height: 1.1;
        font-weight: 400;
    }

    /* Micro icons */
    .category-item .category-icon {
        font-size: 1.2rem !important;
        margin-bottom: 3px !important;
    }

    /* Background image adjustments  */
    .category-item[style*="background-image"] {
        padding: 2px !important;
    }

    .scroll-arrow {
        font-size: 1.5em !important;
        width: 25px !important;
    }
}
/*
 * 
 * 
}
/*
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Hide search bar on mobile landscape (small screens) 
    .search-bar {
        display: none !important;
    }
    
    /* Show mobile search button 
    .btn-search-mobile {
        display: block !important;
    }
    
    
    
    .header-content {
        gap: 10px !important;
    }   
}



/*

@media (max-width: 320px)  {
    .category-item {
        flex: 0 0 70px !important;
        min-height: 70px !important;
    }
    .category-item span:not(.category-icon) {
        font-size: 0.65em !important;
    }
}
*/
#recently-played .scroll-arrow,
#recently-played .scroll-arrow-left,
#recently-played .scroll-arrow-right {
    opacity: 0;
    visibility: hidden;
}

#recently-played .games-scroll-container:hover .scroll-arrow {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 921px) {
    #recently-played .scroll-arrow,
    #recently-played .scroll-arrow-left,
    #recently-played .scroll-arrow-right {
        visibility: visible !important;
        opacity: 0.5;
    }
    #recently-played .scroll-arrow:hover {
        opacity: 1 !important;
    }
}

@media (max-width: 250px) {
    .featured-grid {
        grid-template-columns: repeat(2, auto);
    }
    
    .featured-grid .game-card {
        height: 110px!important;
    }
}