/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    .hero-slider {
        height: 60vh;
    }
    .slide-content h1 {
        font-size: 42px;
    }
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .navbar .container {
        padding: 10px 15px;
    }
    .navbar-search {
        display: none; /* Hide on mobile to save space, or use a toggle */
    }
    
    .hero-slider {
        height: 50vh;
        margin-top: 55px;
    }
    .slide-content h1 {
        font-size: 32px;
    }
    .slide-content p {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    /* THE FIX: Show 2 posters per row on mobile to avoid cutting */
    .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .movie-card img {
        height: 220px; /* Adjust height for 2-column layout */
    }
    
    .movie-info h3 {
        font-size: 14px;
    }

    /* Top 10 Mobile Adjustments */
    .top-10-grid {
        padding-left: 50px;
        gap: 40px;
    }
    .rank-number {
        font-size: 8rem;
        left: -40px;
        bottom: 0;
    }
    .top-10-card {
        flex: 0 0 140px !important;
        width: 140px !important;
    }
    .top-10-card .movie-card img {
        height: 200px;
    }

    /* Big Banner Section Mobile */
    .banner-grid {
        grid-template-columns: 1fr !important; /* Stack banners on mobile */
    }
    .big-banner-card {
        height: 180px !important;
    }

    /* Movie Detail Page Mobile */
    .movie-header {
        height: auto;
        min-height: 500px;
        padding-bottom: 40px;
    }
    .movie-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 100px;
        gap: 20px;
    }
    .movie-poster {
        display: block !important;
        margin: 0 auto 20px auto;
        z-index: 5;
    }
    .movie-poster img {
        width: 200px !important;
        height: 300px !important;
        border: 3px solid rgba(255,255,255,0.2);
    }
    .movie-main-info h1 {
        font-size: 32px;
    }
    .movie-meta-info {
        justify-content: center;
    }
    .movie-genres {
        justify-content: center;
    }
    .movie-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .movie-actions .btn {
        width: 100%;
        margin: 5px 0 !important;
    }
    
    .box-office-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .movie-card img {
        height: 200px;
    }
}
