/* ============================================================
   RESPAWN.MEDIA — responsive.css
   
   ============================================================ */

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}


.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.mobile-nav.open { 
    display: flex; 
}

.mobile-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav .menu-item {
    border-bottom: 1px solid var(--border);
}

.mobile-nav .menu-item:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a,
.mobile-nav a.active {
    color: var(--primary-light);
    background: var(--primary-dim);
    border-left-color: var(--primary);
}

.mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg3);
}

.mobile-nav .sub-menu a {
    padding-left: 40px;
    font-size: 13px;
}


.lang-switcher {
    position: relative;
    z-index: 999;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .5px;
    transition: background .2s;
    white-space: nowrap;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.18);
}
.lang-arrow {
    transition: transform .2s;
    opacity: .7;
}
.lang-toggle[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}


.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    min-width: 72px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.lang-dropdown.open {
    display: flex;
    flex-flow: column nowrap;
}


.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.lang-option:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.lang-option.active {
    color: #fff;
    background: rgba(255,255,255,.05);
}
.lang-code {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    width: 24px;
}
.lang-name {
    font-size: 13px;
    opacity: .85;
}



/* ============================================================
   ≤1200px — LARGE TABLET / SMALL LAPTOP
   ============================================================ */

@media (max-width: 1200px) {

    .hero-grid {
        grid-template-columns: 3fr 2fr;
    }

    .hero-img { height: 380px; }
    .hero-title { font-size: 21px; }


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


    .footer-grid > div:last-child {
        display: none;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    nav a {
        padding: 0 10px;
        font-size: 12px;
    }
}


/* ============================================================
   ≤1024px — TABLET LANDSCAPE
   ============================================================ */

@media (max-width: 1024px) {

    .main-layout {
        grid-template-columns: 1fr 260px;
        gap: 20px;
    }


    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .hero-img { height: 320px; }
    .hero-title { font-size: 19px; }

    .side-card-img { height: 90px; }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-grid > div:nth-child(4),
    .footer-grid > div:nth-child(5) {
        display: none;
    }

    nav a { padding: 0 8px; font-size: 12px; }

    /* Grid-4 → 2 */
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Tier list heroes */
    .tier-hero { font-size: 10px; padding: 2px 8px; }
    
    .archive-banner-meta { display:none; }
    .archive-filter-bar .container { flex-direction:column; align-items:flex-start; }
    .archive-sort-wrap { width:100%; }
}


/* ============================================================
   ≤768px — MOBILE
   ============================================================ */

@media (max-width: 768px) {

    /* ── TOPBAR ── */
    .topbar-inner > div:last-child { display: none; }

    /* ── HEADER ── */
    .header-inner {
        gap: 12px;
        height: 56px;
    }

    header > .container > .header-inner > nav,
    header nav:not(.mobile-nav) {
        display: none;
    }

    .burger-btn { display: flex; }

    .game-tabs { top: 56px; }

    /* ── GAME TABS ── */
    .game-tabs-inner, .live-matches {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        overflow-y: hidden;
            
        scrollbar-width: none;
            
        -ms-overflow-style: none;
    }
    
    .game-tabs-inner::-webkit-scrollbar, .live-matches::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .game-tab {
        padding: 10px 14px;
        font-size: 11px;
        scroll-snap-align: start;
    }

    .game-emoji { font-size: 14px; }


    .trending-label {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 0 10px;
    }

    .trending-item { font-size: 11px; }

    /* ── HERO ── */
    .hero { padding: 14px 0 0; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-img { height: 250px; }

    .hero-title { font-size: 18px; }

    .hero-overlay { padding: 20px 16px 16px; }

    .hero-game-badge { font-size: 10px; }


    .hero-side {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hero-side::-webkit-scrollbar { display: none; }

    .side-card {
        min-width: 220px;
        flex-shrink: 0;
        flex-direction: row;
    }

    .side-card-img {
        width: 90px;
        height: auto;
        min-height: 80px;
        flex-shrink: 0;
    }

    /* ── LIVE MATCHES ── */
    .live-match-card { min-width: 180px; padding: 12px 14px; }

    .live-match-score { font-size: 15px; }

    /* ── AD BANNER ── */
    .ad-slot-banner { height: 60px; margin: 8px 0 12px; }

    .main-layout {
        gap: 20px;
        padding: 16px 0 32px;
        display: flex;
        flex-flow: column nowrap;
    }


    .sidebar-col,
    .main-layout > aside,
    .main-layout > div:last-child {
        position: static !important;
    }

  
    .main-layout > aside .widget,
    .sidebar > .widget {
        margin-bottom: 14px;
    }

 
    .ad-slot-sq:first-child { display: none; }

    /* ── GRIDS ── */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
  

    /* ── CARD IMG HEIGHT ── */
    .card-img { height: 130px; }

    /* ── CLIPS GRID ── */
    .clip-img { height: 120px; }

    /* ── TIER LIST ── */
    .tierlist-header { padding: 12px 14px; }
    .tierlist-title { font-size: 11px; letter-spacing: 1px; }

    .tier-row { padding: 8px 12px; gap: 8px; }
    .tier-label { width: 26px; height: 26px; font-size: 11px; }
    .tier-hero { font-size: 10px; padding: 2px 7px; }

    /* ── GUIDE CARDS ── */
    .guide-card { padding: 16px; }
    .guide-card-title { font-size: 14px; }

    /* ── HORIZONTAL CARDS ── */
    .card-h-img { width: 90px; height: 64px; }
    .card-h-title { font-size: 12px; }

    /* ── RELATED ── */
    .related-grid { grid-template-columns: 1fr 1fr; }
    .related-img { height: 70px; }

    /* ── NEWSLETTER ── */
    .newsletter { padding: 20px 16px; }
    .newsletter h3 { font-size: 16px; }
    .nl-form { flex-direction: column; gap: 8px; }
    .nl-input, .btn-nl { width: 100%; }
    .btn-nl { padding: 12px; }

    /* ── SECTION TITLE ── */
    .section-title { font-size: 11px; letter-spacing: 1.5px; }

    /* ── PAGINATION ── */
    .pagination { gap: 4px; margin-top: 24px; }
    .page-btn { width: 34px; height: 34px; font-size: 12px; }

    /* ── FOOTER ── */
    footer { padding: 32px 0 20px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid > div:nth-child(4),
    .footer-grid > div:nth-child(5) {
        display: none;
    }

    .footer-desc { font-size: 12px; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 14px;
    }

    .footer-tags { gap: 6px; }
    .footer-tag { font-size: 10px; padding: 3px 10px; }
    
    .archive-title  { font-size:22px; }
    .archive-badge  { font-size:10px; }
    .archive-author-header { gap:16px; }
    .archive-avatar-img    { width:60px;height:60px; }
    .ali-thumb { width:80px;height:60px; }
    .ali-title { font-size:13px; }
    .archive-filter-bar { position:static; }
    .sort-pill  { font-size:11px;padding:4px 10px; }
}


/* ============================================================
   ≤480px — SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    /* ── CONTAINER ── */
    .container { padding: 0 12px; }

    .topbar { display: none; }

    /* ── LOGO ── */
    .logo { font-size: 20px; }
    .logo-media { display: none; }

    /* ── HEADER ── */
    .header-inner { height: 52px; gap: 8px; }
    .search-btn { width: 32px; height: 32px; font-size: 14px; }
    .game-tabs { top: 52px; }

    /* ── TRENDING BAR ── */
    .trending-label { display: none; }

    /* ── HERO ── */
    .hero-img { height: 210px; }
    .hero-title { font-size: 16px; line-height: 1.25; }
    .hero-meta { font-size: 10px; gap: 8px; flex-wrap: wrap; }

    .hero-side { display: none; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }

    /* ── CLIPS ── */
    .clips-grid { grid-template-columns: 1fr; }
    .clip-img { height: 180px; }

    /* ── RELATED ── */
    .related-grid { grid-template-columns: 1fr; }

    /* ── TIER LIST ── */
    .tier-heroes { gap: 4px; }
    .tier-hero { font-size: 9px; padding: 2px 6px; }
    .tierlist-title { font-size: 10px; }
    .tierlist-game { font-size: 10px; }

    /* ── LIVE MATCHES ── */
    .live-match-card { min-width: 160px; padding: 10px 12px; }
    .live-match-teams { font-size: 12px; gap: 5px; }
    .live-match-score { font-size: 14px; }

    /* ── SIDE CARD ── */
    .side-card { min-width: 180px; }
    .side-card-img { width: 70px; min-height: 70px; font-size: 16px; }
    .side-card-title { font-size: 11px; }

    /* ── CARD ── */
    .card-img { height: 150px; }
    .card-title { font-size: 13px; }

    /* ── WIDGET ── */
    .widget-header { font-size: 10px; letter-spacing: 1.5px; }

    /* ── TREND RANK ── */
    .trend-rank { font-size: 18px; width: 22px; }

    /* ── CREATOR ── */
    .creator-avatar { width: 36px; height: 36px; font-size: 14px; }
    .creator-name { font-size: 12px; }

    /* ── FOOTER ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid > div:nth-child(3),
    .footer-grid > div:nth-child(4),
    .footer-grid > div:nth-child(5) {
        display: none;
    }

    .footer-social a { width: 32px; height: 32px; font-size: 12px; }

    /* ── PAGINATION ── */
    .page-btn { width: 30px; height: 30px; font-size: 11px; border-radius: 6px; }

    /* ── SECTION TITLE ── */
    .section-title { font-size: 10px; letter-spacing: 1px; margin-bottom: 12px; }

    /* ── AD ── */
    .ad-slot-banner { height: 50px; }
    .ad-slot-sq { height: 200px; }
    
    .archive-banner { padding:24px 0 20px; }
        .archive-game-tabs {
        gap: 2px;
        flex-flow: row wrap;
    }
    .archive-tab  { padding:5px 10px;font-size:12px; }
    .view-toggle  { display:none; }
    .grid-3       { grid-template-columns: 1fr; }
    .grid-2       { grid-template-columns: 1fr; }
}
