html, body {
        overflow: hidden;
        height: 100vh;
    }

    .breadcrumb {
        margin-bottom: 0.75rem;
    }

    .map-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1rem;
        width: 100%;
        align-items: start;
    }

    /* Left Column */
    .left-column {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-self: start;
    }

    /* Right Column: matches (420px) | brawlers (rest) — mirrors h2h layout */
    .right-column {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 0.5rem;
        min-width: 0;
        height: calc(100vh - 160px);
    }

    .right-column > .stats-section {
        min-height: 0;
    }

    .right-column > .stats-section .stats-content {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        max-height: none !important;
    }

    /* Hero Card */
    .map-hero-card {
        background: var(--card);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 0.6rem;
        border: 2px solid rgba(var(--primary-rgb), 0.25);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .map-hero-icons {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-team-img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        filter: drop-shadow(0 4px 12px rgba(var(--primary-rgb), 0.4));
    }

    .hero-map-img {
        width: 52px;
        height: 52px;
        object-fit: cover;
        border-radius: 8px;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }

    .hero-separator {
        font-size: 1.2rem;
        color: var(--text-dim);
        font-weight: 900;
    }

    .map-hero-card h1 {
        font-size: 1.1rem;
        font-weight: 900;
        margin: 0;
        line-height: 1.2;
        color: var(--text);
        letter-spacing: -0.3px;
        text-align: center;
    }

    .hero-sub {
        text-align: center;
        color: var(--text-dim);
        font-size: 0.65rem;
        line-height: 1.3;
    }

    /* Overview Stats */
    .overview-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        width: 100%;
    }

    .overview-stat-card {
        background: var(--dark);
        padding: 0.45rem;
        border-radius: 8px;
        text-align: center;
        overflow: hidden;
        min-width: 0;
    }

    .overview-stat-label {
        font-size: 0.55rem;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 700;
        letter-spacing: 0.2px;
        margin-bottom: 0.1rem;
    }

    .overview-stat-value {
        font-size: 0.9rem;
        font-weight: 900;
        color: var(--text);
        line-height: 1.2;
    }

    /* Shared card styles */
    .stats-section {
        background: var(--card);
        backdrop-filter: blur(15px);
        border-radius: 16px;
        overflow: hidden;
        border: 2px solid rgba(var(--primary-rgb), 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        transition: all 0.2s ease;
        min-height: 0;
    }

    .stats-section:hover {
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.2);
    }

    .stats-header {
        background: var(--dark);
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        font-weight: 800;
        border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
        flex-shrink: 0;
        color: var(--text);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .stats-content {
        padding: 0.35rem;
        background: var(--bg);
        overflow-y: auto;
        max-height: calc(100vh - 200px);
    }

    /* Sort controls */
    .sort-controls {
        display: flex;
        gap: 0.3rem;
    }

    .sort-btn {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        color: var(--text-dim);
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .sort-btn:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: var(--text);
    }

    .sort-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--bg);
    }

    .sort-icon {
        font-size: 0.6rem;
        transition: transform 0.2s ease;
    }

    .sort-btn.ascending .sort-icon {
        transform: rotate(180deg);
    }

    /* Brawlers grid */
    .brawlers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.3rem;
    }

    .brawler-card {
        background: var(--dark);
        border-radius: 8px;
        padding: 0.35rem;
        border: 1px solid rgba(255,255,255,0.06);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.2rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
        cursor: pointer;
        position: relative;
    }

    .brawler-card:hover {
        background: rgba(var(--primary-rgb), 0.08);
        border-color: rgba(var(--primary-rgb), 0.5);
    }

    .brawler-rank-badge {
        position: absolute;
        top: 4px;
        left: 4px;
        font-size: 0.55rem;
        font-weight: 900;
        color: var(--text-dim);
        background: rgba(255,255,255,0.06);
        width: 18px;
        height: 18px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .brawler-rank-badge.top-1 { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
    .brawler-rank-badge.top-2 { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; }
    .brawler-rank-badge.top-3 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }

    .brawler-img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-top: 0.2rem;
    }

    .brawler-name {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .brawler-mini-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem;
        width: 100%;
    }

    .brawler-mini-stat {
        background: rgba(255,255,255,0.04);
        border-radius: 4px;
        padding: 0.2rem;
        text-align: center;
    }

    .brawler-mini-value {
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--text);
    }

    .brawler-mini-label {
        font-size: 0.45rem;
        color: var(--text-dim);
        text-transform: uppercase;
    }

    /* Win rate colors */
    .wr-s { color: #10b981; }
    .wr-a { color: #84cc16; }
    .wr-b { color: #fbbf24; }
    .wr-c { color: #fb923c; }
    .wr-d { color: #f87171; }
    .wr-f { color: #dc2626; }

    .no-data {
        text-align: center;
        padding: 1.5rem 0.5rem;
        color: var(--text-dim);
        font-size: 0.8rem;
        grid-column: 1 / -1;
    }

    /* ─── H2H-style match cards (exact copy) ─── */
    .match-card {
        background: var(--dark);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.07);
        margin-bottom: 0.4rem;
        overflow: hidden;
        transition: all 0.15s ease;
    }
    .match-card:hover {
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.15);
    }
    .match-card:last-child { margin-bottom: 0; }

    .match-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.6rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .match-header-team { display: flex; align-items: center; gap: 0.35rem; }
    .match-header-team.left  { flex-direction: row;         justify-content: flex-start; }
    .match-header-team.right { flex-direction: row-reverse; justify-content: flex-start; }
    .match-header-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
    .match-header-team-score { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.5px; flex-shrink: 0; line-height: 1; }

    .match-header-centre {
        display: flex; flex-direction: column; align-items: center; gap: 0.05rem; min-width: 0;
    }
    .match-header-mode { display: flex; align-items: center; gap: 0.25rem; }
    .match-header-mode-icon { width: 19px; height: 19px; object-fit: contain; flex-shrink: 0; }
    .match-header-mode-name { font-size: 0.75rem; color: var(--text-dim); font-weight: 700; white-space: nowrap; }
    .match-header-time { font-size: 0.68rem; color: rgba(255,255,255,0.38); white-space: nowrap; font-weight: 600; }

    .match-body {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.6rem;
    }
    .match-comp { display: flex; flex-direction: column; gap: 0.32rem; min-width: 0; }
    .brawler-row { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
    .match-comp.right .brawler-row { flex-direction: row-reverse; }

    .comp-brawler { width: 38px; height: 38px; object-fit: contain; border-radius: 5px; flex-shrink: 0; }

    .brawler-row-info { display: flex; flex-direction: column; min-width: 0; gap: 0.06rem; }
    .match-comp.right .brawler-row-info { align-items: flex-end; }

    .brawler-slot-name {
        font-size: 0.82rem; font-weight: 800; color: var(--text);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 110px; text-transform: uppercase; letter-spacing: 0.3px;
    }
    .brawler-slot-player {
        font-size: 0.72rem; color: rgba(255,255,255,0.5);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 110px; font-weight: 500;
    }

    .match-center {
        display: flex; flex-direction: column; align-items: center;
        gap: 0.2rem; flex-shrink: 0; width: 90px;
    }
    .match-map-img {
        width: 90px; height: auto; display: block; object-fit: contain;
        border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4);
    }
    .match-map-name {
        font-size: 0.72rem; color: rgba(255,255,255,0.35);
        white-space: nowrap; text-align: center; max-width: 90px;
        overflow: hidden; text-overflow: ellipsis;
    }

    /* Custom scrollbar */
    .stats-content::-webkit-scrollbar {
        width: 4px;
    }

    .stats-content::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.02);
    }

    .stats-content::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.4);
        border-radius: 2px;
    }

    .stats-content::-webkit-scrollbar-thumb:hover {
        background: rgba(var(--primary-rgb), 0.6);
    }

    @media (max-width: 768px) {
        html, body { overflow-x: hidden !important; overflow-y: auto !important; height: auto !important; }

        .map-layout, .left-column, .right-column, .map-hero-card,
        .stats-section {
            max-width: 100% !important;
            box-sizing: border-box !important;
            min-width: 0 !important;
        }

        .breadcrumb { font-size: 0.72rem; margin-bottom: 0.4rem; }

        .map-layout {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.5rem !important;
        }

        .left-column {
            gap: 0.5rem !important;
            width: 100% !important;
            align-self: stretch !important;
        }
        .right-column { gap: 0.5rem !important; width: 100% !important; }

        /* Hero card: [icons filling space] [stats 2x2] */
        .map-hero-card {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 0.75rem !important;
            padding: 0.6rem 0.75rem !important;
            border-radius: 10px !important;
            width: 100% !important;
        }

        .map-hero-icons {
            flex: 1 !important;
            justify-content: center !important;
            gap: 0.5rem !important;
        }

        .hero-team-img { width: 56px !important; height: 56px !important; }
        .hero-map-img { width: 56px !important; height: 56px !important; }
        .hero-separator { font-size: 1.1rem !important; }

        .map-hero-card h1 { display: none !important; }
        .hero-sub { display: none !important; }

        .overview-stats {
            align-self: center !important;
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 0.25rem !important;
            width: auto !important;
            flex-shrink: 0 !important;
        }

        .overview-stat-label { font-size: 0.52rem !important; }
        .overview-stat-value { font-size: 0.85rem !important; }

        /* Brawlers section */
        .stats-section { border-radius: 10px !important; }
        .stats-header { padding: 0.3rem 0.6rem !important; font-size: 0.72rem !important; flex-wrap: wrap !important; gap: 0.3rem !important; }
        .sort-btn { padding: 0.2rem 0.45rem !important; font-size: 0.62rem !important; }
        .stats-content { max-height: 320px !important; overflow-y: auto !important; padding: 0.3rem !important; }
        .brawlers-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important; gap: 0.25rem !important; }
        .brawler-card { padding: 0.3rem !important; border-radius: 6px !important; }
        .brawler-img { width: 36px !important; height: 36px !important; }
        .brawler-name { font-size: 0.6rem !important; }
        .brawler-mini-value { font-size: 0.62rem !important; }
        .brawler-mini-label { font-size: 0.42rem !important; }
        .brawler-rank-badge { width: 14px !important; height: 14px !important; font-size: 0.48rem !important; }
        .right-column { height: auto !important; display: flex !important; flex-direction: column !important; }
        .stats-section.matches-box { max-height: 420px !important; }
        .right-column > .stats-section:last-child .stats-content { max-height: 320px !important; overflow-y: auto !important; }
        .comp-brawler { width: 26px !important; height: 26px !important; }
        .brawler-slot-name { font-size: 0.6rem !important; max-width: 65px !important; }
        .brawler-slot-player { font-size: 0.55rem !important; max-width: 65px !important; }
        .match-center { width: 60px !important; }
        .match-map-img { width: 60px !important; }
    }
