html, body { overflow: hidden; height: 100vh; }
    *::-webkit-scrollbar-button { display: none !important; height: 0 !important; width: 0 !important; }

    .container {
        height: calc(100vh - 64px);
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .breadcrumb { flex-shrink: 0; margin-bottom: 0; }

    /* ── Two-column layout ── */
    .bracket-page-layout {
        flex: 1;
        min-height: 0;
        height: 0;
        display: grid;
        grid-template-columns: 230px 1fr;
        grid-template-rows: 1fr;
        gap: 1rem;
        overflow: visible;
    }

    /* ── Left sidebar ── */
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        overflow: visible;
        min-height: 0;
        /* Small padding so card hover shadows don't get cut off by the grid */
        padding: 2px 4px 2px 2px;
        margin: -2px -4px -2px -2px;
    }

    /* Hero card — matches analyzer/esport/meta style */
    .hero-card {
        background: var(--card);
        border-radius: 16px;
        border: 2px solid rgba(var(--primary-rgb), 0.3);
        box-shadow: 0 4px 24px rgba(0,0,0,0.35);
        padding: 1.25rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .hero-icon { font-size: 2rem; line-height: 1; }

    .hero-title {
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
        letter-spacing: -0.5px;
    }

    .hero-sub {
        font-size: 0.85rem;
        color: var(--text-dim);
        line-height: 1.4;
    }

    /* Filter card — matches analyzer style */
    .filter-card {
        background: var(--card);
        border-radius: 16px;
        border: 2px solid rgba(var(--primary-rgb), 0.2);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        flex-shrink: 0;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        overflow: hidden;
    }

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

    .filter-header {
        background: var(--dark);
        padding: 0.5rem 0.9rem;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
        border-radius: 14px 14px 0 0;
        color: var(--text);
    }

    .filter-body {
        padding: 0.7rem;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .filter-label {
        font-size: 0.6rem;
        font-weight: 700;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-left: 0.1rem;
    }

    .selector-row {
        display: flex;
        gap: 0.3rem;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Buttons */
    .tab-btn {
        padding: 0.35rem 0.75rem;
        border-radius: 6px;
        border: 1.5px solid rgba(var(--primary-rgb), 0.3);
        background: transparent;
        color: var(--text-dim);
        cursor: pointer;
        font-size: 0.78rem;
        font-weight: 500;
        transition: all 0.2s;
        font-family: inherit;
    }

    .tab-btn:hover:not(.active) {
        border-color: var(--primary);
        color: var(--primary);
    }

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

    /* ── Right: bracket panel ── */
    .bracket-wrap {
        min-height: 0;
        display: flex;
        flex-direction: column;
        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);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

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

    /* Toolbar — styled like panel-header in analyzer */
    .bracket-toolbar {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.85rem;
        background: var(--dark);
        border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
    }

    .bracket-toolbar-title {
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text);
    }

    .bracket-toolbar-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-dim);
        font-weight: 700;
    }

    .zoom-btn {
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
        border: 1.5px solid rgba(var(--primary-rgb), 0.3);
        background: transparent;
        color: var(--text-dim);
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1;
        transition: all 0.2s;
        font-family: inherit;
    }

    .zoom-btn:hover { border-color: var(--primary); color: var(--primary); }

    /* Bracket scroll area */
    .bracket-outer {
        flex: 1;
        min-height: 0;
        overflow: auto;
        padding: 0.8rem 1rem 1rem;
        background: var(--bg);
    }

    .bracket-outer::-webkit-scrollbar { width: 5px; height: 5px; }
    .bracket-outer::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
    .bracket-outer::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb),0.35); border-radius: 3px; }
    .bracket-outer::-webkit-scrollbar-button { display: none; }

    /* mob-set-card: shown on both desktop and mobile */
    .mob-set-card { display: block; }
    /* series-overview: hidden — replaced by mob-set-card */
    .series-overview { display: none; }

    /* ── Desktop scaling for mob-set-card ── */
    .mob-set-card {
        background: var(--dark);
        border: 1px solid rgba(var(--primary-rgb), 0.18);
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 0.75rem;
    }
    .mob-set-card:last-child { margin-bottom: 0; }
    .mob-set-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.6rem;
        padding: 0.6rem 0.75rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        background: rgba(0,0,0,0.2);
    }
    .mob-set-team { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
    .mob-set-team--left  { flex-direction: row; justify-content: flex-start; }
    .mob-set-team--right { flex-direction: row-reverse; justify-content: flex-start; }
    .mob-set-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
    .mob-set-logo-name { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
    .mob-set-team--right .mob-set-logo-name { align-items: flex-end; }
    .mob-team-name { display: none; }  /* hidden on desktop */
    .mob-score { font-size: 2.2rem; font-weight: 900; line-height: 1; }
    .mob-score--win  { color: #10b981; }
    .mob-score--loss { color: rgba(255,255,255,0.28); }
    .mob-score--draw { color: rgba(255,255,255,0.45); }
    .mob-set-centre { display: flex; flex-direction: column; align-items: center; gap: 0.18rem; flex-shrink: 0; min-width: 0; }
    .mob-mode-row { display: flex; align-items: center; gap: 0.35rem; }
    .mob-mode-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
    .mob-centre-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; display: block; }
    .mob-mode-name { font-size: 1rem; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
    .mob-map-name  { font-size: 0.68rem; color: rgba(255,255,255,0.38); white-space: nowrap; }
    .mob-obj-row { display: flex; align-items: center; gap: 0.3rem; }
    .mob-obj-score { font-size: 1rem; font-weight: 700; line-height: 1; color: rgba(255,255,255,0.5); }
    .mob-obj-sep { font-size: 0.8rem; color: var(--text-dim); font-weight: 400; }
    /* Bans: 3-col grid so icons align above their team's brawlers */
    .mob-bans-row {
        display: grid; grid-template-columns: 1fr auto 1fr;
        align-items: center; gap: 0.5rem;
        padding: 0.4rem 0.75rem;
        background: rgba(239,68,68,0.04);
        border-bottom: 1px solid rgba(239,68,68,0.1);
    }
    /* Desktop-only bans belt — same style, hidden on mobile */
    .mob-bans-belt {
        display: grid; grid-template-columns: 1fr auto 1fr;
        align-items: center; gap: 0.5rem;
        padding: 0.4rem 0.75rem;
        background: rgba(239,68,68,0.04);
        border-bottom: 1px solid rgba(239,68,68,0.1);
    }
    .mob-bans-side { display: flex; gap: 0.35rem; align-items: center; justify-content: flex-end; padding-right: 3rem; }
    .mob-bans-side--right { justify-content: flex-start; padding-right: 0; padding-left: 3rem; }
    .mob-ban-img {
        width: 38px; height: 38px; object-fit: contain; border-radius: 5px;
        opacity: 0.6; filter: grayscale(40%);
        border: 1px solid rgba(239,68,68,0.35); flex-shrink: 0;
    }
    .mob-bans-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(239,68,68,0.7); text-align: center; flex-shrink: 0; }
    .mob-set-body {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.6rem;
        padding: 0.65rem 1rem;
    }
    .mob-comp { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
    .mob-brawler-row {
        display: flex; align-items: center; gap: 0.5rem; min-width: 0;
        flex-direction: row;
        justify-content: flex-end;
    }
    .mob-brawler-row--right {
        flex-direction: row;
        justify-content: flex-start;
    }
    .mob-brawler-img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
    .mob-brawler-info { display: flex; flex-direction: column; min-width: 0; gap: 0.05rem; align-items: flex-end; overflow: hidden; max-height: 48px; }
    .mob-brawler-info--right { align-items: flex-start; }
    .mob-brawler-name {
        font-size: 0.78rem; font-weight: 700; color: var(--text);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        display: block; min-width: 0; max-width: 140px;
    }
    .mob-build-row { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
    .mob-build-icon { width: 18px; height: 18px; max-width: 18px; max-height: 18px; object-fit: contain; border-radius: 2px; flex-shrink: 0; display: block; }
    .mob-build-icon.gear { border-radius: 50%; }
    .mob-stat-line {
        font-size: 0.62rem; color: rgba(255,255,255,0.38);
        white-space: nowrap; display: block; line-height: 1.3;
    }
    /* Player tag on desktop (second line, after player name) */
    .mob-player-tag {
        font-size: 0.6rem; color: rgba(255,255,255,0.32);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        display: block; max-width: 140px;
    }
    .mob-map-col { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex-shrink: 0; width: 120px; }
    .mob-map-img {
        width: 110px; height: auto; display: block;
        object-fit: contain; border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4);
    }
    .mob-map-label { font-size: 0.6rem; color: rgba(255,255,255,0.32); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
    .mob-game-dots { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }

    /* Desktop: stat-body visible, brawler-body + mobile-bans hidden */
    .mob-set-body   { display: none; }
    .mob-stat-body  { display: grid; }
    .mob-bans-strip { display: none; }



    /* Desktop stat body */
    .mob-stat-body {
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        gap: 0.5rem;
        padding: 0.6rem 0.75rem 0.75rem;
    }
    .mob-stat-body > div { min-width: 0; }
    /* Push map down to align with brawler rows (past the th header row) */
    .mob-stat-body .ov-center { padding-top: 2.1rem; }

    /* Fullscreen */
    .bracket-wrap:fullscreen,
    .bracket-wrap:-webkit-full-screen { border-radius: 0; }

    #fsFiltersSlot { display: none; }
    .bracket-wrap:fullscreen #fsFiltersSlot,
    .bracket-wrap:-webkit-full-screen #fsFiltersSlot {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 0.45rem 0.85rem;
        background: var(--card);
        border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
        flex-shrink: 0;
        flex-wrap: wrap;
    }

    #fsFiltersSlot .filter-card {
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        flex-shrink: 0;
    }
    #fsFiltersSlot .filter-header { display: none; }
    #fsFiltersSlot .filter-body {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        padding: 0;
    }
    #fsFiltersSlot .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
    }
    #fsFiltersSlot .filter-label {
        white-space: nowrap;
    }

    #zoomHint { display: none; }
    .bracket-wrap:fullscreen #zoomHint,
    .bracket-wrap:-webkit-full-screen #zoomHint { display: inline; }

    /* ── Bracket content ── */
    #bracketScroll { display: inline-block; min-width: 100%; }

    .bracket-section { margin-bottom: 2.5rem; }

    .section-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 0.85rem;
    }

    .rounds-row { display: flex; align-items: flex-start; }

    .round-col { position: relative; overflow: visible; flex-shrink: 0; }

    .round-header {
        font-size: 0.58rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-dim);
        text-align: center;
        padding: 0.25rem 0.4rem;
        background: rgba(255,255,255,0.04);
        border-radius: 4px;
        margin: 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .match-slot { box-sizing: border-box; }

    .match-card {
        background: var(--dark);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 8px;
        overflow: hidden;
        width: 100%;
        height: 60px;
        display: flex;
        flex-direction: column;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .match-card:not([style*="cursor:default"]):hover {
        border-color: rgba(var(--primary-rgb), 0.5);
        box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.15);
        cursor: pointer;
    }

    .competitor {
        display: flex;
        align-items: center;
        padding: 0 0.55rem;
        font-size: 0.74rem;
        gap: 0.4rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        flex: 1;
        min-height: 0;
    }

    .competitor:last-child { border-bottom: none; }

    .competitor.winner {
        background: rgba(var(--primary-rgb), 0.13);
        color: var(--text);
        font-weight: 600;
    }

    .competitor.loser { color: var(--text-dim); opacity: 0.7; }

    .competitor.tbd-slot { color: var(--text-dim); opacity: 0.35; font-style: italic; }

    .seed { font-size: 0.58rem; color: var(--text-dim); min-width: 1.3rem; text-align: right; flex-shrink: 0; }
    .cname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cscore { font-weight: 700; min-width: 1.1rem; text-align: center; font-size: 0.78rem; flex-shrink: 0; }
    .competitor.winner .cscore { color: var(--primary); }

    /* Connector lines */
    .conn-h, .conn-v { position: absolute; background: rgba(var(--primary-rgb), 0.22); pointer-events: none; }
    .conn-h { height: 1px; }
    .conn-v { width: 1px; }

    /* Loading / error */
    .state-msg {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        color: var(--text-dim);
        font-size: 1rem;
        gap: 0.75rem;
    }

    .spinner {
        width: 22px; height: 22px;
        border: 3px solid rgba(var(--primary-rgb), 0.25);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 0.75s linear infinite;
        flex-shrink: 0;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Match detail modal ── */
    .modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.75);
        z-index: 400;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .modal-overlay.open { display: flex; }

    .modal {
        background: var(--card);
        border-radius: 16px;
        max-width: 700px;
        width: 100%;
        max-height: 85vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border: 2px solid rgba(var(--primary-rgb), 0.3);
        box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--primary-rgb), 0.08);
    }

    /* Non-scrollable top section: close btn + title + series result header */
    .modal-fixed-header {
        flex-shrink: 0;
        padding: 0.75rem 1.5rem 0;
    }

    /* The ms-header row gets a subtle bottom border when it's pinned above scroll */
    #modalSeriesHeader {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        margin-bottom: 0;
    }
    #modalSeriesHeader:empty { display: none; }

    /* Scrollable body below the pinned header */
    #modalBody {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 0.75rem 1.5rem 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
        scrollbar-gutter: stable;
    }
    #modalBody::-webkit-scrollbar { width: 4px; }
    #modalBody::-webkit-scrollbar-track { background: transparent; }
    #modalBody::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 4px; }
    #modalBody::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.55); }
    #modalBody::-webkit-scrollbar-button { display: none; }

    @media (min-width: 800px) { .modal { max-width: 1100px; } }

    .modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--primary); }

    .close-btn {
        float: right;
        background: none;
        border: none;
        color: var(--text-dim);
        font-size: 1.4rem;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }

    .close-btn:hover { color: var(--text); }
    .modal-loading { text-align: center; padding: 1.5rem; color: var(--text-dim); }

    .game-block { background: var(--dark); border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }

    .game-meta { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

    .game-score-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }

    .game-team-label { font-size: 0.82rem; font-weight: 700; flex: 1; }
    .game-team-label.right { text-align: right; }
    .game-team-label.winner { color: #10b981; }
    .game-team-label.loser { color: var(--text-dim); font-weight: 400; }

    .game-score { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-align: center; }

    .result-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 0.4rem; }
    .result-badge.win { background: rgba(16,185,129,0.2); color: #10b981; }

    .team-stats-section { margin-bottom: 0.6rem; }
    .team-stats-header { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.15rem 0; margin-bottom: 0.2rem; }
    .team-stats-header.winner { color: #10b981; }
    .team-stats-header.loser  { color: var(--text-dim); }

    .stats-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
    .stats-table th { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); padding: 0.2rem 0.35rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
    .stats-table th:first-child { text-align: left; }
    .stats-table td { padding: 0.28rem 0.35rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: top; white-space: nowrap; }
    .stats-table td:first-child { text-align: left; }
    .stats-table tr:last-child td { border-bottom: none; }
    .stats-table .b-name { font-weight: 600; }
    .stats-table .b-sub { font-size: 0.62rem; color: var(--text-dim); white-space: normal; max-width: 110px; }

    .game-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 0.6rem 0; }

    .bans-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.7rem; color: var(--text-dim); }
    .bans-label { font-weight: 600; margin-right: 0.2rem; }

    /* ── Team logo on bracket match cards ── */
    .comp-logo {
        width: 16px;
        height: 16px;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 2px;
    }
    .competitor.tbd-slot .comp-logo { opacity: 0.25; }

    /* ── Modal: series header ── */
    .ms-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.4rem;
        padding: 0;
        margin-bottom: 0;
    }
    .ms-header-left  { display: flex; align-items: center; gap: 0.55rem; justify-content: flex-end; min-width: 0; }
    .ms-header-right { display: flex; align-items: center; gap: 0.55rem; justify-content: flex-start; min-width: 0; }
    .ms-team { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
    .ms-team.left  { flex-direction: row; }
    .ms-team.right { flex-direction: row-reverse; }
    .ms-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
    .ms-name { font-size: 1.15rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ms-score-centre { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; flex-shrink: 0; padding: 0 0.3rem; }
    .ms-score { font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1; display: flex; align-items: center; gap: 0.3rem; }
    .ms-share-btn {
        background: rgba(var(--primary-rgb), 0.1);
        border: 1px solid rgba(var(--primary-rgb), 0.28);
        border-radius: 6px;
        color: var(--primary);
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.22rem 0.65rem;
        cursor: pointer;
        transition: background 0.15s;
        letter-spacing: 0.3px;
        font-family: inherit;
        white-space: nowrap;
    }
    .ms-share-btn:hover { background: rgba(var(--primary-rgb), 0.25); }
    .ms-dots { display: flex; gap: 4px; align-items: center; }
    .game-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .game-dot.win  { background: #10b981; }
    .game-dot.loss { background: #f87171; }

    /* ── Modal: per-game card ── */
    .game-card {
        background: var(--dark);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 0.6rem;
    }
    .game-card:last-child { margin-bottom: 0; }

    /* 3-col header: [team+score] [mode+map+time] [score+team] */
    .match-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.4rem;
        padding: 0.38rem 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .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: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
    .match-header-team-score { font-size: 1rem; font-weight: 900; letter-spacing: 0.5px; flex-shrink: 0; line-height: 1; }
    .match-header-team-score.wr-s { color: #10b981; }
    .match-header-team-score.wr-f { color: var(--text-dim); }
    .match-header-centre { display: flex; flex-direction: column; align-items: center; gap: 0.06rem; min-width: 0; }
    .match-header-mode { display: flex; align-items: center; gap: 0.25rem; }
    .match-header-mode-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
    .match-header-mode-name { font-size: 0.72rem; color: var(--text-dim); font-weight: 700; white-space: nowrap; }
    .match-header-map-label { font-size: 0.62rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
    .match-header-time { font-size: 0.63rem; color: rgba(255,255,255,0.35); white-space: nowrap; font-weight: 600; }

    /* 3-col body: [left comp] [map img] [right comp] */
    .match-body {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    .match-comp { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
    .match-comp.right .brawler-row      { flex-direction: row-reverse; }
    .match-comp.right .brawler-row-info { align-items: flex-end; }
    .brawler-row      { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
    .comp-brawler     { width: 34px; height: 34px; object-fit: contain; border-radius: 5px; flex-shrink: 0; }
    .brawler-row-info { display: flex; flex-direction: column; min-width: 0; gap: 0.05rem; }
    .brawler-slot-name   { font-size: 0.7rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92px; text-transform: uppercase; }
    .brawler-slot-player { font-size: 0.59rem; color: rgba(255,255,255,0.36); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92px; }
    .match-center   { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; flex-shrink: 0; width: 106px; }
    .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.62rem; color: rgba(255,255,255,0.32); white-space: nowrap; text-align: center; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
    .game-center-score { display: flex; align-items: baseline; gap: 0.25rem; line-height: 1; }
    .gcs-num { font-size: 1.2rem; font-weight: 900; line-height: 1; }
    .gcs-num.win  { color: #10b981; }
    .gcs-num.loss { color: rgba(255,255,255,0.22); }
    .gcs-sep { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
    .game-center-mode { display: flex; align-items: center; gap: 0.15rem; font-size: 0.57rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

    /* Collapsible stats under each game */
    .mg-stats { border-top: 1px solid rgba(255,255,255,0.06); padding: 0 0.75rem; }
    .mg-stats > summary {
        font-size: 0.68rem;
        color: var(--text-dim);
        cursor: pointer;
        padding: 0.38rem 0;
        list-style: none;
        user-select: none;
    }
    .mg-stats > summary::-webkit-details-marker { display: none; }
    .mg-stats > summary::before { content: '▶  '; font-size: 0.55rem; vertical-align: middle; }
    details.mg-stats[open] > summary::before { content: '▼  '; }
    .mg-stats-body { padding-bottom: 0.5rem; }

    /* ── Pick order badge on brawler icon ── */
    .comp-brawler-wrap { position: relative; flex-shrink: 0; }
    .pick-badge {
        position: absolute;
        top: -4px;
        left: -4px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 0.56rem;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        pointer-events: none;
        box-shadow: 0 1px 5px rgba(0,0,0,0.6);
        line-height: 1;
    }
    /* For left-side team, put badge on the right so it doesn't cover the player name */
    .ov-brawler-wrap { position: relative; flex-shrink: 0; }
    .ov-brawler-wrap .pick-badge {
        left: auto;
        right: -4px;
        top: -4px;
    }
    /* Right team: badge back to left side (toward the map / center) */
    .ov-player-cell-r .ov-brawler-wrap .pick-badge {
        right: auto;
        left: -4px;
        top: -4px;
    }

    /* ── Per-game bans row ── */
    .game-bans {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.35rem;
        padding: 0.38rem 0.75rem;
        background: rgba(0,0,0,0.18);
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .bans-side { display: flex; align-items: center; gap: 0.22rem; }
    .bans-side.right { flex-direction: row-reverse; }
    .ban-brawler {
        width: 26px;
        height: 26px;
        object-fit: contain;
        border-radius: 4px;
        opacity: 0.6;
        filter: grayscale(55%);
        border: 1px solid rgba(239,68,68,0.4);
        flex-shrink: 0;
    }
    .bans-center-label {
        font-size: 0.57rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(239,68,68,0.8);
        flex-shrink: 0;
        padding: 0 0.1rem;
    }

    /* ── Per-game collapsible details ── */
    .game-details {
        background: var(--dark);
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }
    .game-details:last-child { margin-bottom: 0; }
    .game-details > summary {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.75rem;
        cursor: pointer;
        background: var(--dark);
        list-style: none;
        user-select: none;
    }
    .game-details > summary::-webkit-details-marker { display: none; }
    .game-details > summary::before { content: '▶'; font-size: 0.52rem; color: rgba(var(--primary-rgb),0.7); margin-right: 0.05rem; vertical-align: middle; flex-shrink: 0; }
    .game-details[open] > summary::before { content: '▼'; }
    .game-details[open] > summary { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .game-details-inner { background: rgba(0,0,0,0.1); }
    .gd-num  { font-size: 0.75rem; font-weight: 800; color: var(--text); flex-shrink: 0; }
    .gd-dot  { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
    .gd-map  { font-size: 0.7rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .game-summary-score { font-size: 0.8rem; font-weight: 800; margin-left: auto; flex-shrink: 0; white-space: nowrap; }
    .game-summary-score.w { color: #10b981; }
    .game-summary-score.l { color: #f87171; }
    .game-summary-score.d { color: var(--text-dim); }

    /* ── Clickable logos in series header ── */
    .ms-logo-wrap {
        display: inline-flex;
        flex-shrink: 0;
        border-radius: 4px;
        transition: transform 0.15s ease, filter 0.15s ease;
        text-decoration: none;
    }
    a.ms-logo-wrap:hover .ms-logo {
        filter: drop-shadow(0 0 7px rgba(var(--primary-rgb), 0.75));
        transform: scale(1.1);
    }
    /* Clickable comp-logo on bracket cards */
    .comp-logo-wrap {
        display: inline-flex;
        flex-shrink: 0;
        line-height: 0;
        border-radius: 2px;
        transition: transform 0.15s ease;
    }
    .comp-logo-wrap:hover { transform: scale(1.2); }

    /* ── 2×2 ability grid in comp view (SP / gadget / gear1 / gear2) ── */
    .ability-grid { display: grid; grid-template-columns: 16px 16px; gap: 2px; flex-shrink: 0; align-content: center; }
    .ability-icon-sm { width: 16px; height: 16px; max-width: 16px; max-height: 16px; object-fit: contain; border-radius: 2px; flex-shrink: 0; display: block; }
    .ability-icon-sm.gear { border-radius: 50%; }
    .ability-grid-empty { display: block; width: 16px; height: 16px; }

    /* ── Match section label (when multiple matches shown) ── */
    .match-section-label {
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--primary);
        margin: 0.75rem 0 0.4rem;
    }

    /* ── Series / match stats panel ── */
    .series-stats-panel {
        background: var(--card);
        border-radius: 12px;
        border: 2px solid rgba(var(--primary-rgb), 0.25);
        overflow: hidden;
        margin-top: 0.75rem;
        margin-bottom: 0.85rem;
    }
    .series-stats-body { padding: 0.75rem; }

    /* ── Per-game stats table (inside expanded game card) ── */
    .pg-stats { padding: 0 0.75rem 0.6rem; border-top: 1px solid rgba(255,255,255,0.05); }
    .pg-stats table { width: 100%; border-collapse: collapse; font-size: 0.69rem; margin-top: 0.35rem; }
    .pg-stats th { font-size: 0.57rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); padding: 0.16rem 0.28rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.07); white-space: nowrap; }
    .pg-stats th:first-child, .pg-stats th:nth-child(2) { text-align: left; }
    .pg-stats td { padding: 0.18rem 0.28rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; white-space: nowrap; }
    .pg-stats td:first-child, .pg-stats td:nth-child(2) { text-align: left; }
    .pg-stats .t1 td { background: rgba(16,185,129,0.04); }
    .pg-stats .t2 td { background: rgba(248,113,113,0.04); }
    .pg-stats .div-row td { height: 3px; padding: 0; background: rgba(255,255,255,0.07); border: none; }

    /* ── Set tabs (per-game switcher in match modal) ── */
    .set-tabs { display: flex; gap: 0.35rem; padding: 0.5rem 0.75rem 0; flex-wrap: wrap; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
    .set-tab-btn { padding: 0.28rem 0.65rem; border-radius: 6px; border: 1.5px solid rgba(var(--primary-rgb),0.3); background: transparent; color: var(--text-dim); cursor: pointer; font-size: 0.72rem; font-weight: 700; transition: all 0.2s; font-family: inherit; margin-bottom: 0.4rem; }
    .set-tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
    .set-tab-btn.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }
    .set-panel { display: none; }
    .set-panel.active { display: block; }

    /* ── Series Overview Main Panel ── */
    .series-overview {
        background: var(--dark);
        border: 1px solid rgba(var(--primary-rgb), 0.2);
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 0.75rem;
    }
    .series-overview-header {
        display: flex;
        align-items: center;
        padding: 0.4rem 0.9rem;
        background: rgba(0,0,0,0.25);
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .series-overview-title {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--primary);
    }
    .series-overview-body {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    .series-overview-body > div { min-width: 0; }
    /* Overview tables — fixed layout so columns are consistent */
    .ov-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
    .ov-th-player {
        text-align: left;
        padding: 0 0.4rem 0.45rem 0;
        font-size: 0.63rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        width: 170px;
    }
    .ov-th-player-r { text-align: right; padding: 0 0 0.45rem 0.4rem; }
    .ov-tname-win  { color: #10b981; }
    .ov-tname-loss { color: var(--text-dim); }
    .ov-th-stat {
        text-align: center;
        padding: 0 0.25rem 0.45rem;
        font-size: 0.6rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-dim);
        white-space: nowrap;
        width: 44px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .ov-th-k { color: #10b981; }
    .ov-tr { vertical-align: middle; }
    .ov-td-player { padding: 0.35rem 0.4rem 0.35rem 0; }
    .ov-td-player-r { padding: 0.35rem 0 0.35rem 0.4rem; text-align: right; }
    .ov-td-stat {
        text-align: center;
        padding: 0.35rem 0.25rem;
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .ov-td-k { font-weight: 800; color: var(--text); }
    .ov-game-score { font-size: 0.78rem; font-weight: 800; color: var(--text); text-align: center; white-space: nowrap; margin-top: 0.1rem; }
    /* Player cell: brawler + info side by side */
    .ov-tr            { height: 54px; max-height: 54px; overflow: hidden; }
    .ov-td-player, .ov-td-player-r { overflow: hidden; }
    .ov-player-cell   { display: flex; align-items: center; gap: 0.25rem; width: 100%; justify-content: flex-end; height: 46px; overflow: hidden; }
    .ov-player-cell-r { justify-content: flex-start; }
    .ov-brawler-wrap  { position: relative; flex-shrink: 0; }
    .ov-brawler { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; display: block; }
    .ov-player-info   { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; overflow: hidden; flex-shrink: 1; max-height: 46px; }
    .ov-player-info-r { align-items: flex-start; }
    .ov-pname { font-size: 0.72rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 110px; text-align: right; line-height: 1.2; }
    .ov-player-info-r .ov-pname { text-align: left; }
    .ov-player-info-r .ov-build { justify-content: flex-start; }
    /* Build row: ability icons in one horizontal line */
    .ov-build { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
    .ov-ability-icon { width: 20px; height: 20px; max-width: 20px; max-height: 20px; object-fit: contain; border-radius: 3px; flex-shrink: 0; display: block; }
    .ov-ability-icon.gear { border-radius: 50%; }
    /* Center column: per-game entries stacked vertically */
    .ov-center { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.75rem; padding: 0 0.4rem; flex-shrink: 0; }
    .ov-series-record { font-size: 1.35rem; font-weight: 900; color: var(--text); text-align: center; letter-spacing: 1px; line-height: 1; margin-bottom: 0.1rem; }
    .ov-game-bans { display: flex; align-items: center; gap: 0.25rem; justify-content: center; flex-wrap: nowrap; }
    .ov-game-bans-side { display: flex; gap: 3px; align-items: center; }
    .ov-game-bans .ov-ban-icon { width: 24px; height: 24px; }
    /* Bans row above each team's table */
    .ov-bans-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.4rem; }
    /* ── Team search bar ── */
    .search-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }
    .search-icon {
        position: absolute;
        left: 0.5rem;
        color: var(--text-dim);
        font-size: 0.75rem;
        pointer-events: none;
        line-height: 1;
    }
    .team-search-input {
        width: 100%;
        box-sizing: border-box;
        padding: 0.32rem 0.55rem 0.32rem 0.55rem;
        border-radius: 6px;
        border: 1.5px solid rgba(var(--primary-rgb), 0.3);
        background: rgba(255,255,255,0.04);
        color: var(--text);
        font-size: 0.75rem;
        font-family: inherit;
        transition: border-color 0.2s;
        outline: none;
    }
    .team-search-input::placeholder { color: var(--text-dim); opacity: 0.7; }
    .team-search-input:focus { border-color: var(--primary); }
    .search-clear-btn {
        position: absolute;
        right: 0.4rem;
        background: none;
        border: none;
        color: var(--text-dim);
        font-size: 0.8rem;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        display: none;
    }
    .search-clear-btn:hover { color: var(--text); }
    .search-no-results {
        font-size: 0.68rem;
        color: var(--text-dim);
        padding: 0.2rem 0.1rem;
        display: none;
    }
    /* highlight matched team names in bracket */
    .match-card .cname.search-highlight {
        color: var(--primary);
        font-weight: 700;
    }
    .match-card.search-dim { opacity: 0.25; }
    .match-card.search-match { opacity: 1 !important; }

    .ov-bans-icons { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
    .ov-team-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
    .ov-ban-icon { width: 40px; height: 40px; object-fit: contain; border-radius: 5px; opacity: 0.55; filter: grayscale(50%); border: 1px solid rgba(239,68,68,0.4); flex-shrink: 0; display: block; }
    .ov-ban-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
    .ov-ban-wrap::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; color: rgba(239,68,68,0.85); pointer-events: none; text-shadow: 0 0 4px rgba(0,0,0,0.8); }
    .ov-map-entry { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-top: 1rem; }
    .ov-mode-icon { width: 24px; height: 24px; object-fit: contain; display: block; }
    .ov-map-img { width: 96px; height: auto; object-fit: contain; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4); display: block; }
    .ov-map-name { font-size: 0.58rem; color: rgba(255,255,255,0.32); white-space: nowrap; text-align: center; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }

    /* ── Live match indicator ── */
    @keyframes live-pulse-ring {
        0%   { box-shadow: 0 0 0 0   rgba(239,68,68,0.7); }
        70%  { box-shadow: 0 0 0 5px rgba(239,68,68,0);   }
        100% { box-shadow: 0 0 0 0   rgba(239,68,68,0);   }
    }
    .live-rdot {
        display: inline-block; width: 7px; height: 7px;
        border-radius: 50%; background: #ef4444; flex-shrink: 0;
        animation: live-pulse-ring 1.5s ease-out infinite;
    }
    .live-card-row {
        display: flex; align-items: center; gap: 0.28rem;
        flex-shrink: 0;
        padding: 0.12rem 0.55rem 0.1rem;
        background: rgba(239,68,68,0.07);
        border-bottom: 1px solid rgba(239,68,68,0.12);
    }
    .live-card-label { font-size: 0.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #ef4444; line-height: 1; }
    .match-card.is-live { border-color: rgba(239,68,68,0.45); }

    /* ── Live modal badge ── */
    .live-modal-badge {
        display: inline-flex; align-items: center; gap: 0.25rem;
        background: rgba(239,68,68,0.12); color: #ef4444;
        border: 1px solid rgba(239,68,68,0.3);
        border-radius: 4px; padding: 0.1rem 0.45rem;
        font-size: 0.6rem; font-weight: 800;
        text-transform: uppercase; letter-spacing: 1px;
        margin-left: 0.4rem; vertical-align: middle; line-height: 1.5;
    }

    /* ── Live game section in modal ── */
    .live-game-wrap {
        background: var(--dark);
        border: 1px solid rgba(239,68,68,0.22);
        border-radius: 10px; overflow: hidden; margin-bottom: 0.6rem;
    }
    .live-game-hdr {
        display: flex; align-items: center; gap: 0.5rem;
        padding: 0.38rem 0.8rem;
        background: rgba(239,68,68,0.07);
        border-bottom: 1px solid rgba(239,68,68,0.13);
    }
    .live-game-hdr-title { font-size: 0.7rem; font-weight: 800; color: var(--text); }
    .live-phase-chip {
        font-size: 0.57rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.5px; color: var(--text-dim);
        background: rgba(255,255,255,0.06); border-radius: 3px; padding: 0.1rem 0.35rem;
    }
    .live-hdr-score { font-size: 0.65rem; font-weight: 700; color: var(--text-dim); }
    .live-hdr-score b { color: var(--primary); }
    .live-picks-grid {
        display: grid; grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem; padding: 0.6rem 0.8rem; align-items: start;
    }
    .live-picks-col { display: flex; flex-direction: column; gap: 0.32rem; }
    .live-picks-col.right .live-pick-row { flex-direction: row-reverse; }
    .live-picks-col.right .live-pick-info { align-items: flex-end; }
    .live-pick-row { display: flex; align-items: center; gap: 0.38rem; }
    .live-pick-brawler { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
    .live-pick-info { display: flex; flex-direction: column; min-width: 0; gap: 0.04rem; }
    .live-pick-bname { font-size: 0.66rem; font-weight: 800; color: var(--text); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
    .live-pick-player { font-size: 0.57rem; color: rgba(255,255,255,0.38); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
    .live-picks-center { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; flex-shrink: 0; padding: 0 0.15rem; }
    .live-center-vs { font-size: 0.6rem; color: var(--text-dim); font-weight: 700; }
    .live-bans-row {
        display: grid; grid-template-columns: 1fr auto 1fr;
        gap: 0.35rem; align-items: center;
        padding: 0.38rem 0.8rem 0.55rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .live-bans-side { display: flex; gap: 0.22rem; align-items: center; }
    .live-bans-side.right { flex-direction: row-reverse; }
    .live-bans-label { font-size: 0.52rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(239,68,68,0.75); text-align: center; flex-shrink: 0; }
    .live-ban-icon { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; opacity: 0.55; filter: grayscale(55%); border: 1px solid rgba(239,68,68,0.4); flex-shrink: 0; }

    /* ── Match Predict card ── */
    .predict-card {
        background: var(--card);
        border-radius: 16px;
        border: 2px solid rgba(var(--primary-rgb), 0.2);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .predict-card:hover {
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.2);
    }
    .predict-card .filter-body {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .predict-card .filter-group:last-child {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .predict-search-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }
    /* Autocomplete suggestions */
    .predict-suggestions {
        position: fixed;
        background: var(--card);
        border: 1.5px solid rgba(var(--primary-rgb), 0.35);
        border-radius: 8px;
        overflow: hidden;
        z-index: 9999;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5);
        max-height: 140px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
    }
    .predict-suggestions::-webkit-scrollbar { width: 3px; }
    .predict-suggestions::-webkit-scrollbar-track { background: transparent; }
    .predict-suggestions::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb),0.3); border-radius: 2px; }
    .predict-suggestions::-webkit-scrollbar-button { display: none; }
    .predict-suggestions:empty { display: none; }
    .predict-sug-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.38rem 0.6rem;
        cursor: pointer;
        font-size: 0.75rem;
        color: var(--text);
        transition: background 0.12s;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .predict-sug-item:last-child { border-bottom: none; }
    .predict-sug-item:hover, .predict-sug-item.active { background: rgba(var(--primary-rgb), 0.15); color: var(--primary); }
    .predict-sug-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
    .predict-search-input {
        width: 100%;
        background: rgba(255,255,255,0.05);
        border: 1.5px solid rgba(var(--primary-rgb), 0.25);
        border-radius: 8px;
        color: var(--text);
        font-family: inherit;
        font-size: 0.78rem;
        padding: 0.38rem 1.8rem 0.38rem 0.6rem;
        outline: none;
        transition: border-color 0.2s, background 0.2s;
        box-sizing: border-box;
    }
    .predict-search-input::placeholder { color: var(--text-dim); opacity: 0.7; }
    .predict-search-input:focus {
        border-color: rgba(var(--primary-rgb), 0.6);
        background: rgba(255,255,255,0.08);
    }
    .predict-clear-btn {
        position: absolute;
        right: 0.4rem;
        background: none;
        border: none;
        color: var(--text-dim);
        cursor: pointer;
        font-size: 0.75rem;
        line-height: 1;
        padding: 0.15rem;
        display: none;
    }
    .predict-clear-btn:hover { color: var(--text); }
    .predict-results {
        display: flex;
        flex-direction: column;
        gap: 0.32rem;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        padding-right: 2px;
    }
    .predict-results::-webkit-scrollbar { width: 3px; }
    .predict-results::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb),0.3); border-radius: 2px; }
    .predict-results::-webkit-scrollbar-button { display: none; }
    .predict-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.38rem 0.5rem;
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.06);
        font-size: 0.72rem;
        flex-wrap: wrap;
        transition: background 0.15s;
    }
    .predict-row:hover { background: rgba(var(--primary-rgb), 0.07); }
    .predict-rlabel {
        font-size: 0.58rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--primary);
        min-width: 15px;
        flex-shrink: 0;
    }
    .predict-vs {
        font-size: 0.6rem;
        color: var(--text-dim);
        flex-shrink: 0;
    }
    .predict-opp {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        text-decoration: none;
        color: var(--text);
        font-weight: 600;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    .predict-opp:hover { color: var(--primary); }
    .predict-logo {
        width: 18px; height: 18px;
        object-fit: contain;
        border-radius: 3px;
        flex-shrink: 0;
    }
    .predict-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .predict-predicted {
        font-size: 0.58rem;
        color: var(--text-dim);
        font-style: italic;
        flex-shrink: 0;
    }
    .predict-both {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        flex: 1;
        min-width: 0;
        flex-wrap: wrap;
    }
    .predict-both-team {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text);
    }
    .predict-sep {
        font-size: 0.65rem;
        color: var(--text-dim);
    }
    .predict-uncertain {
        font-size: 0.7rem;
        color: var(--text-dim);
        font-style: italic;
    }
    .predict-w {
        font-size: 0.65rem;
        font-weight: 700;
        color: #10b981;
        flex-shrink: 0;
        margin-left: auto;
    }
    .predict-l {
        font-size: 0.65rem;
        font-weight: 700;
        color: #f87171;
        flex-shrink: 0;
        margin-left: auto;
    }
    .predict-empty {
        font-size: 0.72rem;
        color: var(--text-dim);
        text-align: center;
        padding: 0.5rem 0;
        opacity: 0.7;
    }
