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

    .breadcrumb {
        margin-bottom: 0.75rem;
    }

    .mode-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1rem;
        width: 100%;
        height: calc(100vh - 170px);
    }

    /* Left Column */
    .left-column {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-height: 0;
        overflow: visible;
    }

    /* Hero Card */
    .mode-hero-card {
        background: var(--card);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 0.75rem;
        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;
        flex-shrink: 0;
    }

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

    .mode-hero-card h1 {
        font-size: 1.5rem;
        font-weight: 900;
        text-align: center;
        margin: 0;
        line-height: 1.1;
        color: #ffffff;
        letter-spacing: -0.3px;
    }

    .mode-hero-desc {
        text-align: center;
        color: var(--text-dim);
        font-size: 0.8rem;
    }

    .overview-stats {
        display: grid;
        grid-template-columns: 1fr 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;
    }

    /* Maps Section (sidebar) */
    .maps-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;
        flex-shrink: 0;
    }

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

    .section-header {
        background: var(--dark);
        padding: 0.6rem 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);
    }

    .maps-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        padding: 0.4rem;
    }

    .map-item {
        background: var(--dark);
        padding: 0.4rem 0.5rem;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        gap: 0.4rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
        cursor: pointer;
        flex-shrink: 0;
    }

    .map-item:hover {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: rgba(var(--primary-rgb), 0.5);
    }

    .map-icon {
        width: 32px;
        height: 32px;
        border-radius: 4px;
        flex-shrink: 0;
        object-fit: cover;
        border: 1px solid rgba(255,255,255,0.08);
    }

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

    .map-name {
        font-weight: 700;
        font-size: 0.8rem;
        line-height: 1.15;
        margin-bottom: 0.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

    /* Top Teams Section (sidebar) */
    .teams-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;
        flex-shrink: 0;
    }

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

    .teams-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.4rem;
    }

    .team-item {
        background: var(--dark);
        padding: 0.4rem 0.5rem;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        gap: 0.4rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
        cursor: pointer;
        flex-shrink: 0;
    }

    .team-item:hover {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: rgba(var(--primary-rgb), 0.5);
    }

    .team-rank {
        font-size: 0.65rem;
        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;
    }

    .team-rank.top-3 {
        background: rgba(var(--primary-rgb), 0.15);
        color: var(--primary);
    }

    .team-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .team-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        border-radius: 4px;
    }

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

    .team-name {
        font-weight: 700;
        font-size: 0.75rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

    .team-wr {
        font-size: 0.85rem;
        font-weight: 800;
        flex-shrink: 0;
    }

    /* Right Column - Brawlers Panel */
    .right-column {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        overflow: visible;
    }

    .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;
        flex: 1;
        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.6rem 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.4rem;
        background: var(--bg);
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }

    /* 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.7rem;
        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.65rem;
        transition: transform 0.2s ease;
    }

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

    /* Brawler Cards Grid */
    .brawlers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(115px, 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;
    }

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

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

    /* Color-coded win rates */
    .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;
    }

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

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

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

    .stats-content::-webkit-scrollbar-thumb:hover,
    .maps-list::-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; }

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

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

        /* Single column stack */
        .mode-layout {
            grid-template-columns: 1fr !important;
            height: auto !important;
            gap: 0.5rem !important;
        }

        .left-column {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.5rem !important;
            width: 100% !important;
        }

        .right-column {
            overflow: visible !important;
            width: 100% !important;
        }

        /* Hero card: flex row — icon + name left, stats right */
        .mode-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;
        }

        .mode-hero-image {
            width: 56px !important;
            height: 56px !important;
            flex-shrink: 0 !important;
        }

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

        .mode-hero-desc {
            display: none !important;
        }

        /* Overview stats fill the remaining space */
        .overview-stats {
            flex: 1 !important;
            grid-template-columns: 1fr 1fr 1fr !important;
            gap: 0.25rem !important;
            width: auto !important;
            align-self: center !important;
        }

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

        /* Maps section */
        .maps-section { border-radius: 10px !important; }
        .section-header { padding: 0.3rem 0.6rem !important; font-size: 0.7rem !important; }
        .maps-list { max-height: none !important; overflow-y: visible !important; padding: 0.25rem !important; gap: 0.2rem !important; }
        .map-item { padding: 0.3rem 0.4rem !important; gap: 0.35rem !important; border-radius: 6px !important; }
        .map-icon { width: 26px !important; height: 26px !important; }
        .map-name { font-size: 0.68rem !important; }
        .map-picks { font-size: 0.55rem !important; }

        /* Best team section */
        .teams-section { border-radius: 10px !important; }
        .team-item { padding: 0.3rem 0.4rem !important; border-radius: 6px !important; }
        .team-icon { width: 20px !important; height: 20px !important; }
        .team-icon img { width: 20px !important; height: 20px !important; }
        .team-name { font-size: 0.72rem !important; }
        .team-sub { font-size: 0.55rem !important; }
        .team-wr { font-size: 0.8rem !important; }

        /* Brawlers section */
        .stats-section { border-radius: 10px !important; flex: none !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; }
    }
