/* =============================================================================
   FINAL, ROBUST OVERRIDES
============================================================================= */

/* Default Rule: Compact, 5-column grid for desktops */
.anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
}

/* Mobile Override: Revert to a spacious 2-column grid */
@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Rule for a standard, uniform card image aspect ratio */
#trending-section .anime-card img,
#new-releases-section .anime-card img,
#search-grid .anime-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
}

/* Desktop & Tablet Override: Compact banner fonts */
@media (min-width: 769px) {
    /* Reposition banner content to the left */
    .banner-content {
        justify-content: flex-start !important;
        align-items: center !important;
        padding-left: 5% !important;
    }

    /* Style the info box for better readability and center its content */
    .banner-info {
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(8px) !important;
        padding: 2rem !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        max-width: 550px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37) !important;
        text-align: center !important; /* Center all content, including the button */
    }

    .banner-title {
        font-size: 2.5rem !important;
    }

    .banner-description {
        font-size: 1rem !important;
        max-width: 100%;
        margin-bottom: 1rem; /* Add some space before the button */
    }

    .banner-buttons {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
}
