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

    .breadcrumb {
        margin-bottom: 0.75rem;
    }

    .brawler-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;
    }

    /* Right Column */
    .right-column {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 0;
    }

    /* Right top: 3 panels, all stretch to tallest (340px from scrollable) */
    .right-top {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
        align-items: stretch;
    }

    /* ─── Hero Card ─── */
    .brawler-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;
    }

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

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

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

    .brawler-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 left card shell ─── */
    .left-card {
        background: var(--card);
        backdrop-filter: blur(10px);
        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: border-color 0.2s ease, box-shadow 0.2s ease;
    }

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

    .left-card-header {
        background: var(--dark);
        padding: 0.4rem 0.7rem;
        font-size: 0.72rem;
        font-weight: 800;
        border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text);
        flex-shrink: 0;
    }

    .left-card-body {
        padding: 0.3rem;
        background: var(--bg);
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* ─── Player rows ─── */
    .player-row {
        background: var(--dark);
        padding: 0.35rem 0.5rem;
        border-radius: 7px;
        border: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        gap: 0.45rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.15s ease;
    }

    .player-row:hover {
        background: rgba(var(--primary-rgb), 0.1);
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.15);
    }

    /* ─── Shared rank badge ─── */
    .rank-badge {
        font-size: 0.6rem;
        font-weight: 800;
        min-width: 17px;
        height: 17px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background: rgba(255,255,255,0.05);
        color: var(--text-dim);
        flex-shrink: 0;
    }

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

    /* ─── Shared row info block ─── */
    .row-info {
        flex: 1;
        min-width: 0;
    }

    .row-name {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .row-sub {
        font-size: 0.57rem;
        color: var(--text-dim);
        margin-top: 0.04rem;
    }

    .row-wr {
        font-size: 0.8rem;
        font-weight: 800;
        flex-shrink: 0;
    }

    .row-picks {
        font-size: 0.55rem;
        color: var(--text-dim);
        flex-shrink: 0;
        text-align: right;
    }

    .row-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.05rem;
        flex-shrink: 0;
    }

    /* ─── Right sections ─── */
    .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: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .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.8rem;
        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;
        gap: 0.5rem;
    }

    .stats-content {
        padding: 0.3rem;
        background: var(--bg);
        overflow-y: auto;
        flex: 1;
    }

    .stats-content.scrollable {
        max-height: 340px;
    }

.stats-content::-webkit-scrollbar { width: 3px; }
    .stats-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
    .stats-content::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.35); border-radius: 2px; }

    /* ─── Map list rows (right panel) ─── */
    .list-item {
        background: var(--dark);
        padding: 0.48rem 0.55rem;
        border-radius: 7px;
        border: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.15s ease;
        margin-bottom: 0.28rem;
    }

    .list-item:last-child { margin-bottom: 0; }

    .list-item:hover {
        background: rgba(var(--primary-rgb), 0.1);
        border-color: rgba(var(--primary-rgb), 0.4);
    }

    .item-rank {
        font-size: 0.6rem;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background: rgba(255,255,255,0.05);
        color: var(--text-dim);
        flex-shrink: 0;
    }

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

    .item-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .item-icon img {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .item-info {
        flex: 1;
        min-width: 0;
    }

    .item-name {
        font-weight: 700;
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text);
    }

    .item-sub {
        font-size: 0.63rem;
        color: var(--text-dim);
        margin-top: 0.04rem;
    }

    .item-stats {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.05rem;
        flex-shrink: 0;
    }

    .item-wr {
        font-size: 0.9rem;
        font-weight: 800;
    }

    .item-picks {
        font-size: 0.58rem;
        color: var(--text-dim);
    }

    /* ─── Bottom vs-teams bar ─── */
    .vsteams-bar {
        background: var(--card);
        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: border-color 0.2s ease, box-shadow 0.2s ease;
    }

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

    .vsteams-header {
        background: var(--dark);
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        font-weight: 800;
        border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text);
        flex-shrink: 0;
    }

    .vsteams-content {
        padding: 0.35rem 0.4rem;
        background: var(--bg);
        display: grid;
        grid-template-columns: repeat(11, 1fr);
        gap: 0.35rem;
        overflow: hidden;
    }

    .vsteam-card {
        background: var(--dark);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.06);
        padding: 0.45rem 0.4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.12rem;
        min-width: 0;
        text-decoration: none;
        color: inherit;
        transition: all 0.15s ease;
    }

    .vsteam-card:hover {
        background: rgba(var(--primary-rgb), 0.1);
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.15);
    }

    .vsteam-logo {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .vsteam-name {
        font-size: 0.6rem;
        font-weight: 800;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
    }

    .vsteam-wr {
        font-size: 0.9rem;
        font-weight: 900;
        line-height: 1.1;
    }

    .vsteam-sub {
        font-size: 0.52rem;
        color: var(--text-dim);
    }

    .map-inline-wr { display: none; }

    .map-mode-tag {
        display: inline-block;
        font-size: 0.48rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--text-dim);
        padding: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    /* ─── 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: 1rem 0.5rem;
        color: var(--text-dim);
        font-size: 0.75rem;
    }

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

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

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

        .brawler-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] */
        .brawler-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;
        }

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

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

        .brawler-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; }

        /* Left cards */
        .left-card { border-radius: 10px !important; }
        .left-card-header { padding: 0.3rem 0.6rem !important; font-size: 0.7rem !important; }
        .left-card-body { padding: 0.25rem !important; gap: 0.2rem !important; }
        .player-row { padding: 0.4rem 0.6rem !important; gap: 0.4rem !important; border-radius: 8px !important; }
        .row-name { font-size: 0.78rem !important; }
        .row-sub { font-size: 0.6rem !important; }
        .row-wr { font-size: 0.85rem !important; }

        /* Right top: stack vertically */
        .right-top {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.5rem !important;
        }

        .stats-section { border-radius: 10px !important; height: auto !important; max-height: none !important; }
        .stats-header { padding: 0.3rem 0.6rem !important; font-size: 0.7rem !important; }
        .stats-content { overflow-y: visible !important; max-height: none !important; padding: 0.25rem !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0.2rem !important; }
        .list-item { padding: 0.35rem 0.4rem !important; gap: 0.35rem !important; border-radius: 6px !important; margin-bottom: 0 !important; }
        .item-icon { width: 28px !important; height: 28px !important; }
        .item-icon img { width: 28px !important; height: 28px !important; }
        .item-name { font-size: 0.65rem !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; }
        .item-sub { font-size: 0.52rem !important; }
        /* Maps only: smaller icons */
        .map-list-item .item-icon { width: 22px !important; height: 22px !important; }
        .map-list-item .item-icon img { width: 22px !important; height: 22px !important; }
        .map-list-item .item-name { font-size: 0.6rem !important; }
        .map-list-item .item-sub { font-size: 0.5rem !important; }
        .item-stats { flex-direction: column !important; align-items: flex-end !important; gap: 0.02rem !important; }
        .item-wr { font-size: 0.68rem !important; }
        .item-picks { font-size: 0.46rem !important; }
        /* Maps: WR shown inline below mode, item-stats hidden */
        .map-list-item .item-stats { display: none !important; }
        .map-inline-wr { display: block !important; font-size: 0.68rem !important; font-weight: 800 !important; margin-top: 0.05rem !important; }

        /* Vs teams: scrollable horizontal */
        .vsteams-bar { border-radius: 10px !important; }
        .vsteams-header { padding: 0.3rem 0.6rem !important; font-size: 0.7rem !important; }
        .vsteams-content {
            grid-template-columns: repeat(11, minmax(60px, 1fr)) !important;
            overflow-x: auto !important;
            padding: 0.3rem !important;
            gap: 0.25rem !important;
        }
        .vsteam-logo { width: 24px !important; height: 24px !important; }
        .vsteam-name { font-size: 0.52rem !important; }
        .vsteam-wr { font-size: 0.78rem !important; }
        .vsteam-sub { font-size: 0.46rem !important; }
    }
