        .match-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            margin-bottom: 0.5rem;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.02);
            transition: background 0.2s;
        }

        .match-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        /* Region row with ladder rank */
        .stat-region-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .stat-ladder-rank {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--theme-accent-yellow);
            padding: 2px 8px;
            border-radius: 4px;
            background: rgba(255, 214, 31, 0.08);
            border: 1px solid rgba(255, 214, 31, 0.15);
            font-family: var(--font-body);
        }



        .ranked-lp {
            font-family: var(--font-body);
            font-size: 0.85rem;
            color: var(--fg-muted);
            text-align: left;
        }

        /* Match item â€” redesigned horizontal single-row layout */
        .match-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.25rem;
            padding: 0.6rem 0.75rem;
            margin-bottom: 0.75rem;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.02);
            transition: background 0.2s;
            overflow: hidden;
        }

        .match-item:hover {
            background: rgba(255, 255, 255, 0.04);
        }

        .match-item.win {
            border-left: 3px solid var(--theme-accent-blue);
        }

        .match-item.loss {
            border-left: 3px solid var(--theme-accent-red);
        }

        .match-col {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .match-col-group-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .match-col-group-core {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* 1. Mode and Date */
        .match-col-mode {
            width: 140px;
            flex-shrink: 0;
            gap: 2px;
            overflow: hidden;
        }
        .match-mode-tag {
            font-size: 0.70rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--theme-text-main);
            font-family: var(--font-body);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .match-date {
            font-size: 0.75rem;
            color: var(--fg-muted);
            font-family: var(--font-body);
            white-space: nowrap;
        }

        /* 2. Result */
        .match-col-result {
            width: 60px;
            flex-shrink: 0;
        }
        .match-result {
            font-weight: 700;
            font-size: 1.0rem;
            text-align: left;
        }
        .match-result.win { color: var(--theme-accent-blue); }
        .match-result.loss { color: var(--theme-accent-red); }
        .match-duration {
            font-size: 0.85rem;
            color: var(--fg-muted);
            text-align: left;
        }

        /* 3. Champion Icon */
        .match-col-champ {
            flex-direction: row;
            align-items: center;
        }
        .match-champ {
            width: 52px;
            height: 52px;
            border-radius: 8px;
            flex-shrink: 0;
        }

        /* Group Build: Spells, Runes, Items */
        .match-col-group-build {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* 4 & 5. Spells + Runes */
        .match-col-spells, .match-col-runes {
            gap: 2px;
        }
        .match-col-spells img, .match-col-runes img {
            width: 24px;
            height: 24px;
            border-radius: 3px;
        }

        /* 6. Items */
        .match-col-items {
            flex-direction: row;
            gap: 2px;
            align-items: center;
            flex-shrink: 0;
        }
        .match-col-items img, .match-col-items .item-empty {
            width: 36px;
            height: 36px;
            border-radius: 4px;
        }
        .match-col-items img {
            background: rgba(255, 255, 255, 0.05);
        }
        .match-col-items .item-empty {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* 7. KDA */
        .match-col-kda {
            min-width: 70px;
            text-align: center;
            align-items: center;
        }
        .kda-score {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--theme-text-main);
            white-space: nowrap;
        }
        .kda-ratio {
            font-size: 0.85rem;
            color: var(--theme-accent-yellow);
            white-space: nowrap;
        }

        /* 8. CS */
        .match-col-cs {
            min-width: 60px;
            text-align: center;
            align-items: center;
        }
        .cs-number {
            font-size: 0.9rem;
            color: var(--fg-muted);
            white-space: nowrap;
        }
        .cs-per-min {
            font-size: 0.85rem;
            color: var(--theme-accent-yellow);
            white-space: nowrap;
        }

        /* 9 & 10. Gold + Vision */
        .match-col-stat {
            min-width: 65px;
            text-align: center;
            align-items: center;
            gap: 1px;
        }
        .match-stat-header {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--fg-muted);
            font-family: var(--font-body);
            font-weight: 600;
            white-space: nowrap;
        }
        .match-gold-value {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            font-size: 0.9rem;
            color: var(--theme-accent-yellow);
        }
        .gold-icon {
            width: 18px;
            height: 18px;
            filter: brightness(1.2);
        }
        .match-vision-value {
            font-size: 0.9rem;
            color: var(--theme-accent-yellow);
        }

        /* 11. Participants */
        .match-col-participants {
            flex-direction: row;
            gap: 0.5rem;
            min-width: 220px;
        }
        .match-team-col {
            display: flex;
            flex-direction: column;
            gap: 1px;
            width: 110px;
        }
        .match-participant {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .match-participant img {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            flex-shrink: 0;
        }
        .match-participant a {
            font-size: 0.8rem;
            color: var(--fg-muted);
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 85px;
        }
        .match-participant a:hover {
            color: var(--theme-text-main);
        }
        .match-participant.current-player a {
            color: var(--theme-text-main);
            font-weight: 600;
        }

        /* Match Details Panel & Toggle */
        .match-toggle-btn {
            background: rgba(255, 214, 31, 0.08);
            border: 1px solid rgba(255, 214, 31, 0.2);
            color: var(--theme-accent-yellow);
            cursor: pointer;
            width: 32px;
            height: 60px;
            margin-left: 12px;
            border-radius: 4px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .match-toggle-btn:hover {
            background: rgba(255, 214, 31, 0.15);
        }
        .match-toggle-btn svg {
            width: 16px;
            height: 16px;
            transition: transform 0.2s;
            fill: currentColor;
        }
        .match-toggle-btn.active svg {
            transform: rotate(180deg);
        }

        .match-details-container {
            display: none;
            margin-top: -0.75rem;
            margin-bottom: 0.75rem;
            border-radius: 0 0 8px 8px;
            background: var(--theme-bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top: none;
            overflow: hidden;
        }
        .match-details-container.open {
            display: block;
        }

        .md-table-header {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1.5fr;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.03);
            font-size: 0.65rem;
            color: var(--fg-muted);
            text-transform: uppercase;
            font-weight: 600;
            text-align: center;
        }
        .md-table-header > div:first-child { text-align: left; }
        .md-table-header > div:last-child { text-align: right; }
        
        .md-team-section {
            display: flex;
            flex-direction: column;
        }
        .md-team-blue { border-left: 4px solid #2b5f8c; }
        .md-team-red { border-left: 4px solid #b73838; }

        .md-row {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1.5fr;
            padding: 6px 12px;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.02);
            font-size: 0.8rem;
        }
        .md-row:last-child { border-bottom: none; }
        .md-row.current-player { background: rgba(255, 255, 255, 0.03); }

        .md-col-player { display: flex; align-items: center; gap: 8px; }
        .md-champ-icon-container { position: relative; }
        .md-champ-icon { width: 32px; height: 32px; border-radius: 50%; }
        .md-champ-level {
            position: absolute; bottom: -4px; right: -4px;
            background: #000; color: #fff; font-size: 0.55rem;
            padding: 1px 4px; border-radius: 50%; font-weight: bold;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .md-spells-runes { display: flex; gap: 2px; }
        .md-spells-runes .col { display: flex; flex-direction: column; gap: 2px; }
        .md-spells-runes img { width: 15px; height: 15px; border-radius: 2px; }
        .md-player-name { color: var(--fg-muted); max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .md-col-kda { display: flex; flex-direction: column; align-items: center; }
        .md-kda-score { color: var(--theme-text-main); font-weight: 600; font-size: 0.85rem; }
        .md-kda-ratio { font-size: 0.7rem; color: var(--theme-accent-yellow); font-weight: bold; }
        .md-kda-ratio.high { color: var(--theme-accent-yellow); }

        .md-col-dmg { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 3px; }
        .md-dmg-val { font-size: 0.75rem; color: var(--theme-text-main); }
        .md-dmg-bar-bg { width: 100%; max-width: 60px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
        .md-dmg-bar-fill { height: 100%; background: #e04a4a; border-radius: 2px; }

        .md-col-wards { display: flex; flex-direction: column; align-items: center; }
        .md-ward-val { font-size: 0.8rem; color: var(--theme-text-main); }
        .md-ward-sub { font-size: 0.65rem; color: var(--fg-muted); }

        .md-col-cs { display: flex; flex-direction: column; align-items: center; }
        .md-cs-val { font-size: 0.8rem; color: var(--theme-text-main); }
        .md-cs-sub { font-size: 0.65rem; color: var(--fg-muted); }
        
        .md-col-items { display: flex; gap: 2px; justify-content: flex-end; }
        .md-item-icon { width: 22px; height: 22px; border-radius: 3px; background: rgba(255,255,255,0.05); }

        /* Team summary divider */
        .md-team-summary {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 8px 16px;
            background: #111;
            font-size: 0.75rem;
            align-items: center;
        }
        .md-summary-row {
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: center;
            gap: 12px;
        }
        .md-summary-bar {
            display: flex;
            align-items: center;
            width: 100%;
            height: 18px;
            background: rgba(255, 255, 255, 0.1);
            overflow: hidden;
            position: relative;
        }
        .md-summary-fill-blue { background: #2b5f8c; height: 100%; position: absolute; left: 0; }
        .md-summary-fill-red { background: #b73838; height: 100%; position: absolute; right: 0; }
        .md-summary-label {
            position: absolute; width: 100%; text-align: center;
            font-size: 0.65rem; font-weight: bold; color: #fff; z-index: 1; line-height: 18px;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .md-summary-val-blue { color: #5c9fd6; font-weight: bold; width: 40px; text-align: right; }
        .md-summary-val-red { color: #df6464; font-weight: bold; width: 40px; text-align: left; }

        .md-obj-stats {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.65rem;
            color: var(--fg-muted);
            flex-wrap: wrap;
            flex: 1;
        }
        .md-obj-blue { justify-content: flex-start; }
        .md-obj-red { justify-content: flex-end; }
        .md-obj-stats span {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.05);
            padding: 2px 6px;
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Load more button */
        .load-more-btn {
            display: block;
            width: 100%;
            padding: 0.75rem;
            margin-top: 1rem;
            background: transparent;
            border: 1px solid var(--glass-border);
            color: var(--fg-muted);
            font-family: var(--font-body);
            font-size: 0.85rem;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
        }

        .load-more-btn:hover {
            background: rgba(255, 214, 31, 0.05);
            color: var(--lime-main);
            border-color: var(--lime-main);
        }

        @media (max-width: 900px) {
            .stat-grid {
                grid-template-columns: 1fr;
            }
            .match-items {
                display: none;
            }
            .match-participants-row {
                display: none;
            }
        }

        #stat-career-btn {
            transition: all 0.3s ease;
        }

        #stat-career-btn:hover {
            background-color: var(--theme-accent-blue) !important;
            color: #FFFFFF !important;
            box-shadow: 0 0 15px rgba(1, 58, 254, 0.4);
            border-color: var(--theme-accent-blue) !important;
        }
