/* ============================================================
   Moban 8-10-40 — responsive.css
   Điểm ngắt: 768px (máy tính bảng) · 480px (điện thoại)
   ============================================================ */

/* ---------- ≤ 1024px: thu gọn lưới poster ---------- */
@media (max-width: 1024px) {
    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- ≤ 768px: máy tính bảng ---------- */
@media (max-width: 768px) {
    /* Header chuyển sang chế độ menu gấp */
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .site-header.nav-open .site-nav {
        max-height: 420px;
        padding-bottom: 12px;
    }

    .site-header.nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        flex-direction: column;
        gap: 2px;
    }

    .nav-menu a {
        border-radius: 12px;
    }

    .header-cta .btn-header {
        padding: 8px 16px;
        font-size: 0.84rem;
    }

    /* Giới thiệu xếp chồng một cột */
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-text,
    .intro-features {
        grid-area: auto;
    }

    /* Lưới tin tức còn hai cột */
    .news-grid,
    .news-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: 92vh;
        padding: 70px 18px;
    }

    .hero-stats {
        gap: 12px 26px;
    }

    .single-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* ---------- ≤ 480px: điện thoại ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .news-grid,
    .news-grid-3,
    .poster-grid {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero,
    .btn-ghost {
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .filter-bar {
        padding: 8px 16px;
        border-radius: 18px;
    }

    .filter-input {
        font-size: 0.92rem;
    }

    .section {
        padding: 52px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-legal {
        padding: 20px 0;
    }

    .legal-warning {
        font-size: 0.86rem;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}
