/* POSTTEAM / HISTORIA MECZÓW — izolowane style, bez zmian istniejących stron */
.matches-page {--mx-bg:#0c1018;--mx-line:rgba(184,199,228,.12);--mx-muted:#8994a8;--mx-red:#ff4954;--mx-green:#57d986;--mx-gold:#ffc66f;width:min(1600px,calc(100% - 36px));margin:30px auto 60px;display:grid;gap:18px;color:#f3f5fa;font-family:Inter,Arial,Helvetica,sans-serif;box-sizing:border-box;min-width:0}
.matches-page *, .matches-page *::before,.matches-page *::after{box-sizing:border-box}
.matches-panel{min-width:0;position:relative;padding:26px 26px 20px;border-radius:17px;border:1px solid rgba(255,255,255,.115);background:radial-gradient(ellipse 680px 190px at 100% -60px,rgba(255,73,84,.12),transparent 80%),linear-gradient(155deg,#131822 0%,#0b0e15 62%,#0c1017 100%);box-shadow:0 15px 36px rgba(0,0,0,.26)}
.matches-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:25px}
.matches-heading-copy{min-width:0}.matches-eyebrow{display:flex;gap:11px;align-items:center;letter-spacing:2px;font-weight:800;font-size:10px;color:#aeb4c1}.matches-eyebrow i{width:26px;height:2px;background:var(--mx-red)}
.matches-section-head h1{font-size:clamp(33px,4.1vw,52px);line-height:1.04;font-weight:900;font-style:italic;letter-spacing:-1.5px;margin:12px 0!important;color:#fff!important}
.matches-section-head h1 em{color:var(--mx-red);font-style:italic}.matches-section-head p{margin:0;max-width:690px;color:#aab2c2;font-size:13px;line-height:1.7}
.matches-section-stamp{min-width:120px;display:grid;gap:6px;justify-items:end;align-items:center;border-right:2px solid var(--mx-red);padding-right:13px;letter-spacing:1.4px;flex:none}.matches-section-stamp span{font-size:9px;color:#9aa5b8;font-weight:800}.matches-section-stamp strong{font-size:12px;color:#e7eaf2;font-weight:900}
.matches-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.overview-metric{min-width:0;min-height:95px;border:1px solid rgba(255,255,255,.11);border-radius:11px;padding:16px 19px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.014));position:relative;overflow:hidden}
.overview-metric::before{content:"";height:2px;position:absolute;top:0;left:0;right:0;background:#c1c9d8;opacity:.42}.overview-metric.is-win::before{background:var(--mx-green);opacity:1}.overview-metric.is-loss::before{background:var(--mx-red);opacity:1}.overview-metric.is-draw::before{background:var(--mx-gold);opacity:1}
.overview-metric>span{font-size:10px;font-weight:900;letter-spacing:1.45px;color:#a7b0c1}.overview-metric strong{font-size:clamp(23px,2.4vw,31px);line-height:1.2;letter-spacing:-.7px;font-weight:900;color:#f3f5f9;font-variant-numeric:tabular-nums}.overview-metric.is-win strong{color:#9ef0b7}.overview-metric.is-loss strong{color:#ff9298}.overview-metric.is-draw strong{color:#ffdb98}.overview-metric small{font-size:10px;color:#838f9f}
.matches-filters{display:grid;grid-template-columns:minmax(145px,1.1fr) minmax(145px,1.05fr) minmax(138px,1fr) minmax(138px,1fr) minmax(160px,1.65fr) auto;align-items:end;gap:10px;padding:15px;border:1px solid var(--mx-line);background:rgba(5,7,12,.48);border-radius:11px;margin-bottom:22px}
.matches-filter{display:grid;gap:7px;min-width:0}.matches-filter label{font-size:10px;font-weight:900;color:#9fa9ba;letter-spacing:1.05px}
.matches-filter input,.matches-filter select,.matches-toolbar-actions select{width:100%;height:39px;min-width:0;border-radius:7px;background:#171d27;border:1px solid rgba(255,255,255,.16);color:#ecf0f5;padding:0 11px;font-size:12px;font-family:inherit;outline:0;color-scheme:dark}
.matches-filter input:focus,.matches-filter select:focus,.matches-toolbar-actions select:focus{border-color:rgba(255,73,84,.8);box-shadow:0 0 0 2px rgba(255,73,84,.18)}.matches-filter input::placeholder{color:#707d91}
.matches-clear{height:39px;border:1px solid rgba(255,255,255,.15);background:#20242e;padding:0 14px;color:#d7dce7;border-radius:7px;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer}.matches-clear:hover{border-color:#ff5965;color:#fff}
.matches-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:0 0 10px;color:#b1bac9}.matches-toolbar-info{display:flex;align-items:center;gap:9px;min-width:0}.matches-toolbar-info strong{font-weight:850;font-size:11px;letter-spacing:1.05px;color:#f4f5f9;white-space:nowrap}.matches-toolbar-count{font-size:11px;color:#8f9aa9}.matches-indicator{width:14px;height:2px;background:var(--mx-red)}.matches-toolbar-actions{display:flex;align-items:center;gap:10px}.matches-unit-info{color:#8793a5;font-size:9px;letter-spacing:.8px;font-weight:800}.matches-toolbar-actions label{color:#a6b2c2;font-size:11px}.matches-toolbar-actions select{height:29px;width:67px;padding:0 5px;font-size:11px}
.matches-scroll-note{display:none;font-size:9px;letter-spacing:.7px;color:#808a9a;padding:0 0 9px;text-align:right;font-weight:700}
.matches-table-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;border:1px solid rgba(255,255,255,.115);border-radius:10px;background:#0a0d14;scrollbar-color:#444d5e #111620;scrollbar-width:thin;overscroll-behavior-x:contain}
.matches-table-scroll::-webkit-scrollbar{height:9px}.matches-table-scroll::-webkit-scrollbar-thumb{background:#343e52;border-radius:15px}
.matches-table{border-spacing:0;border-collapse:separate;width:100%;min-width:1500px;table-layout:fixed;margin:0!important;font-variant-numeric:tabular-nums}
.matches-table th,.matches-table td{border:0;border-bottom:1px solid rgba(255,255,255,.076);text-align:center;vertical-align:middle;white-space:nowrap}
.matches-table th{position:sticky;top:0;z-index:3;background:#171b26;padding:0 3px;height:42px;border-bottom:1px solid rgba(255,255,255,.13);font-size:10px;letter-spacing:1px;color:#8190a7;text-transform:uppercase;font-weight:900}
.matches-table th button{cursor:pointer;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;width:100%;height:42px;padding:0 1px;display:flex;align-items:center;justify-content:center;gap:4px}
.matches-table th button:hover,.matches-table th button:focus-visible{color:#f3f5fa;outline:0}.matches-table th.is-sorted button{color:#f4f5f9}.matches-table th .sort-arrow{font-size:11px;color:#647087;opacity:.35}.matches-table th.is-sorted .sort-arrow{opacity:1;color:#ff6770}
.matches-table th.col-date{width:181px;left:0;z-index:6;text-align:left}.matches-table th.col-map{width:172px;left:181px;z-index:5}.matches-table th.col-score{width:79px}.matches-table th.col-rating{width:95px}.matches-table th.col-action{width:96px}
.matches-table th:not(.col-date):not(.col-map):not(.col-score):not(.col-rating):not(.col-action){width:60px}
.matches-table td{font-size:12px;color:#e4e9f2;height:65px;padding:10px 5px;font-weight:750}
.matches-table td:nth-child(1){position:sticky;left:0;z-index:2;text-align:left;background:#0f131d;border-right:1px solid rgba(255,255,255,.065)}.matches-table td:nth-child(2){position:sticky;left:181px;z-index:2;background:#0e121b;border-right:1px solid rgba(255,255,255,.06)}
.matches-table .match-main-row{cursor:pointer;transition:background .12s ease}.matches-table .match-main-row:hover td{background:#1a202c}.matches-table .match-main-row:hover td:nth-child(1),.matches-table .match-main-row:hover td:nth-child(2){background:#202535}
.matches-table .match-main-row.is-expanded td{background:#19202c;border-bottom-color:rgba(255,255,255,.12)}.matches-table .match-main-row.is-expanded td:nth-child(1),.matches-table .match-main-row.is-expanded td:nth-child(2){background:#1d2532}
.matches-table .match-main-row.is-win td:first-child{box-shadow:inset 3px 0 0 #35bd70}.matches-table .match-main-row.is-loss td:first-child{box-shadow:inset 3px 0 0 #f25762}.matches-table .match-main-row.is-draw td:first-child{box-shadow:inset 3px 0 0 #e6b45a}
.matches-table .expand-match{width:100%;display:flex;gap:10px;align-items:center;cursor:pointer;border:0;text-align:left;background:none;color:inherit;font-family:inherit;padding:2px 4px 2px 5px}
.matches-table .match-toggle{flex:none;border-radius:5px;border:1px solid rgba(255,255,255,.13);width:22px;height:22px;display:grid;place-items:center;color:#b4becf;font-size:15px;transition:transform .15s ease,background .15s ease}.matches-table .is-expanded .match-toggle{transform:rotate(90deg);background:rgba(255,73,84,.13);border-color:rgba(255,73,84,.3);color:#ff7780}
.matches-table .date-stack{display:grid;gap:4px;min-width:0}.matches-table .date-stack strong{font-weight:800;font-size:12px;white-space:nowrap}.matches-table .date-stack small{font-size:10px;color:#8590a2}
.matches-table .map-tag{display:flex;gap:9px;align-items:center;justify-content:flex-start;padding-left:8px;min-width:0}.matches-table .map-thumbnail{display:block;flex:none;width:53px;height:36px;border-radius:5px;background:#252a35 center/cover no-repeat;border:1px solid rgba(255,255,255,.15);box-shadow:inset 0 -12px 14px rgba(0,0,0,.24)}.matches-table .map-label{font-size:11px;font-weight:850;white-space:nowrap;text-align:left;overflow:hidden;text-overflow:ellipsis;max-width:98px}
.matches-table .match-score{font-size:14px;font-weight:950;letter-spacing:.2px}.matches-table .is-win .match-score{color:#69e48b}.matches-table .is-loss .match-score{color:#ff6570}.matches-table .is-draw .match-score{color:#ffce83}
.matches-table .stat-positive{color:#6de6a0!important}.matches-table .stat-negative{color:#ff7881!important}.matches-table .stat-neutral{color:#aab5c6!important}.matches-table .stat-muted{color:#5e6879!important}.matches-table .stat-rating-high{color:#81ee9e!important}.matches-table .stat-rating-low{color:#ff6b75!important}
.matches-table a.match-report-link{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:0 9px;color:#c2d9ff;border:1px solid rgba(122,161,240,.28);background:rgba(80,121,210,.08);font-size:10px;font-weight:850;border-radius:5px;text-decoration:none;transition:border-color .15s,color .15s}
.matches-table a.match-report-link:hover{color:#fff;border-color:#6a9fff}.matches-table .no-report{font-size:10px;font-weight:600;color:#627083}
.matches-table .match-player-row td{height:45px;padding:5px 5px;color:#b8c3d2;background:#0b111a;border-bottom-color:rgba(255,255,255,.052);font-size:11px}.matches-table .match-player-row td:nth-child(2){position:static;background:#0b111a;border-right:0}
.matches-table .match-player-row td.player-identity{position:sticky;left:0;z-index:2;text-align:left;background:#0e1620!important;padding-left:24px;border-right:1px solid rgba(255,255,255,.08);box-shadow:inset 3px 0 0 rgba(255,73,84,.35)}
.matches-table .player-identity-inner{display:flex;align-items:center;gap:10px;max-width:300px;overflow:hidden}.matches-table .player-identity-inner img{width:27px;height:27px;object-fit:cover;border-radius:50%;background:#1b2735;border:1px solid rgba(255,255,255,.13)}.matches-table .player-identity-inner strong{font-size:12px;font-weight:850;color:var(--player-color,#e1e7f2)}.matches-table .player-identity-inner small{color:#66768a;font-size:9px;margin-left:auto;font-weight:750;letter-spacing:.5px}
.matches-table .match-player-row:hover td{background:#141c28}.matches-table .match-player-row:hover td.player-identity{background:#172230!important}
.matches-table .match-details-caption td{height:auto!important;padding:10px 12px!important;text-align:left!important;position:static!important;background:#101824!important;font-weight:650;color:#8a9aaa!important;font-size:10px!important;letter-spacing:.4px;box-shadow:none!important;white-space:normal}.matches-table .match-details-caption td strong{color:#d4dbe7}
.matches-table .matches-empty td,.matches-table .matches-loading{height:180px!important;text-align:center!important;white-space:normal;color:#97a4b7!important;font-size:14px!important;position:static!important;box-shadow:none!important;background:#0d1119!important}
.matches-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;flex-wrap:wrap}.matches-legend{color:#8f9aac;font-size:11px;line-height:1.7;max-width:890px;margin:0}.matches-legend strong{color:#c3cbd8;font-weight:800}.matches-pagination{display:flex;gap:7px;align-items:center;margin-left:auto}.matches-pagination>span{font-size:11px;color:#a4b0c1;white-space:nowrap;margin-right:7px}.matches-pagination button{width:32px;height:31px;background:#1d2532;border:1px solid rgba(255,255,255,.14);border-radius:6px;display:grid;place-items:center;color:#ebeff6;font-size:15px;cursor:pointer}.matches-pagination button:not(:disabled):hover{background:#283245}.matches-pagination button:disabled{opacity:.32;cursor:not-allowed}.matches-announcement{margin-top:14px;padding:18px;border-radius:8px;border:1px solid rgba(255,153,80,.32);background:rgba(255,122,70,.07);color:#f0c3b1;font-size:13px}
.matches-page :focus-visible{outline:2px solid #ff7079;outline-offset:2px}
@media(max-width:1200px){.matches-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.matches-filter-search{grid-column:span 3}.matches-panel{padding:22px 18px}.matches-scroll-note{display:block}}
@media(max-width:720px){.matches-page{margin:30px auto 60px;gap:12px}.matches-panel{padding:17px 10px 14px;border-radius:11px}.matches-section-head{margin-bottom:16px}.matches-section-stamp{display:none}.matches-section-head p{font-size:12px}.matches-eyebrow{font-size:9px}.matches-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.overview-metric{min-height:81px;padding:12px}.overview-metric strong{font-size:24px}.matches-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}.matches-filter-search{grid-column:span 2}.matches-clear{width:100%;grid-column:span 2}.matches-toolbar-actions .matches-unit-info{display:none}.matches-toolbar-info{flex-wrap:wrap}.matches-toolbar-count{flex-basis:100%;margin-left:23px}.matches-footer{align-items:flex-start}.matches-pagination{width:100%;justify-content:flex-end}.matches-table th.col-map{position:sticky}.matches-table th.col-date{width:155px}.matches-table th.col-map{left:155px}.matches-table td:nth-child(1){left:0}.matches-table td:nth-child(2){left:155px}.matches-table .date-stack strong{font-size:11px}.matches-table .map-tag{gap:5px;padding-left:3px}.matches-table .map-thumbnail{width:38px;height:30px}.matches-table{min-width:1390px}.matches-table th.col-map{width:142px}.matches-table th.col-score{width:76px}.matches-table th:not(.col-date):not(.col-map):not(.col-score):not(.col-rating):not(.col-action){width:59px}.matches-table .match-player-row td.player-identity{min-width:0}.matches-table .player-identity-inner small{display:none}.matches-table .player-identity-inner strong{font-size:11px}}
@media(max-width:390px){.matches-table th.col-date{width:140px}.matches-table th.col-map{left:140px;width:130px}.matches-table td:nth-child(2){left:140px}.matches-table .map-thumbnail{width:32px}.matches-table .map-label{font-size:10px}.matches-table .expand-match{gap:5px;padding-left:1px}.matches-table .date-stack strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.matches-page *{scroll-behavior:auto!important;transition:none!important}}
/* Nawigacja jest identyczna z pozostałymi stronami; zachowaj jej warstwę ponad tabelą. */
body:has(.matches-page) nav{position:relative!important;z-index:10001!important}
@media(max-width:768px){body:has(.matches-page) .nav-links{background:#000!important;z-index:10000!important;display:none}body:has(.matches-page) .nav-links.active{display:flex!important}}


/* Szybki wybór miesięcy i lat z dostępnych meczów */
.matches-period-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 15px;margin-bottom:10px;border:1px solid var(--mx-line);border-radius:11px;background:rgba(5,7,12,.48)}
.matches-period-label,.matches-period-year span{font-size:10px;letter-spacing:1.1px;font-weight:900;color:#a1adbd}
.matches-period-buttons{display:flex;gap:7px;flex-wrap:wrap}
.matches-period-button{height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:#171d27;color:#c6cedb;font:800 11px Inter,Arial,sans-serif;letter-spacing:.25px;cursor:pointer;transition:background .16s,border-color .16s,color .16s}
.matches-period-button:hover{color:#fff;border-color:rgba(255,73,84,.6)}
.matches-period-button.is-active{color:#fff;background:rgba(255,73,84,.17);border-color:#ff4954}
.matches-period-year{margin-left:auto;display:flex;align-items:center;gap:10px}
.matches-period-year select{height:36px;min-width:160px;padding:0 11px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:#171d27;color:#ecf0f5;font:800 11px Inter,Arial,sans-serif;color-scheme:dark;cursor:pointer}
.matches-period-button:focus-visible,.matches-period-year select:focus-visible{outline:2px solid #ff4954;outline-offset:2px}
@media(max-width:720px){.matches-period-bar{padding:10px;gap:9px}.matches-period-label{width:100%}.matches-period-buttons{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.matches-period-button{height:42px;padding:0 6px;font-size:10px}.matches-period-year{margin:0;width:100%;justify-content:space-between}.matches-period-year select{min-width:0;flex:1;max-width:245px}}

/* Najlepszy wynik każdego parametru w rozwiniętym meczu — styl rekordu z Rozkładu meczów. */
.matches-table .match-player-row td.match-best-cell {font-weight:900;color:#8ddbbb;}
.matches-table .match-player-row .match-best-value {position:relative;display:inline-block;padding:3px 5px;border-radius:5px;line-height:1.15;font-weight:900;white-space:nowrap;color:#71eab7;background:rgba(42,194,129,.095);box-shadow:inset 0 -2px 0 rgba(77,211,150,.76);}
.matches-table .match-player-row .match-best-value::after {content:"✦";position:absolute;top:-6px;right:-6px;font-size:10px;line-height:1;filter:drop-shadow(0 1px 4px currentColor);}
.matches-table .match-player-row:hover td.match-best-cell .match-best-value {background:rgba(42,194,129,.16);}

/* Historia meczów — rama i rytm tabeli Porównaj z profilu gracza. */
.matches-page .matches-table-scroll{display:block;width:100%;max-width:100%;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow-x:auto;overflow-y:hidden;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:#10131b;box-shadow:0 10px 26px rgba(0,0,0,.2);-webkit-overflow-scrolling:touch;scrollbar-color:#6c2c35 #11151f}
.matches-page .matches-table-scroll::-webkit-scrollbar-thumb{background:#6c2c35}
.matches-page .matches-table{display:table!important;width:100%;min-width:1500px;max-width:none;height:auto;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;border-collapse:separate;border-spacing:0;table-layout:auto;background:transparent}
.matches-page .matches-table th,.matches-page .matches-table td{border:0;border-bottom:1px solid rgba(255,255,255,.075);padding:14px 12px;text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}
.matches-page .matches-table th{position:static;padding:0 12px;height:auto;background:#1b1e28;color:#aab4c5;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:1px}
.matches-page .matches-table th.col-date button{justify-content:flex-start}
.matches-page .matches-table th.is-sorted button{color:#f4f5f9}
.matches-page .matches-table td{height:auto;color:#dce1eb;font-size:14px;font-weight:650}
.matches-page .matches-table .match-main-row:nth-of-type(even){background:rgba(255,255,255,.016)}
.matches-page .matches-table .match-main-row:hover{background:rgba(255,68,77,.065)}
.matches-page .matches-table .match-main-row.is-expanded{background:rgba(255,68,77,.085)}
.matches-page .matches-table .match-main-row td,.matches-page .matches-table .match-main-row:nth-of-type(even) td{background:transparent}
.matches-page .matches-table .match-main-row td:nth-child(-n+2){background:transparent;border-right:0;box-shadow:none}
.matches-page .matches-table .match-main-row:hover td,.matches-page .matches-table .match-main-row.is-expanded td{background:transparent}
.matches-page .matches-table .match-main-row.is-win td:first-child{box-shadow:inset 3px 0 0 #35bd70}
.matches-page .matches-table .match-main-row.is-loss td:first-child{box-shadow:inset 3px 0 0 #f25762}
.matches-page .matches-table .match-main-row.is-draw td:first-child{box-shadow:inset 3px 0 0 #e6b45a}
.matches-page .matches-table .date-stack strong{color:#aab3c3;font-size:14px;font-weight:700}
.matches-page .matches-table .map-label{color:#fff;font-size:14px;font-weight:900;text-transform:uppercase}
.matches-page .matches-table .match-score{font-weight:900}
.matches-page .matches-table a.match-report-link{min-height:31px;border-color:rgba(255,88,99,.4);background:rgba(255,68,77,.11);color:#ffc9ce;font-size:14px;font-weight:900}
.matches-page .matches-table .no-report{font-size:14px}
.matches-page .matches-table a.match-report-link:hover{border-color:#ff6871;background:rgba(255,68,77,.25);color:#fff}
.matches-page .matches-table .match-player-row td{height:auto;padding:10px 8px;color:#c1c9d5;background:#10141c;font-size:14px}
.matches-page .matches-table .player-identity-inner strong{font-size:14px}
.matches-page .matches-table .match-player-row td.player-identity{background:#15181e!important}
.matches-page .matches-table .match-player-row:hover td{background:#211e27}
.matches-page .matches-table .match-player-row:hover td.player-identity{background:#22202a!important}
.matches-page .matches-table .match-player-row .match-best-value{color:#ffdf89;background:rgba(241,191,77,.105);box-shadow:inset 0 -2px 0 rgba(250,194,73,.48)}
.matches-page .matches-table .match-player-row:hover td.match-best-cell .match-best-value{background:rgba(241,191,77,.17)}
.matches-page .matches-table tbody tr:last-child td{border-bottom:0}

/* Cała tabela przewija się razem; data, mapa i nazwiska nie zasłaniają statystyk. */
.matches-page .matches-table th.col-date,
.matches-page .matches-table th.col-map,
.matches-page .matches-table td:nth-child(1),
.matches-page .matches-table td:nth-child(2),
.matches-page .matches-table .match-player-row td.player-identity{position:static!important;left:auto!important;z-index:auto!important}
.matches-page .matches-table .match-main-row.is-full-squad td{font-weight:900}
.matches-page .matches-table .match-player-mobile-row{display:none}
.matches-filters-toggle{display:none}

@media(max-width:768px){
  .matches-period-bar{display:grid;grid-template-columns:1fr;gap:7px;padding:8px;margin-bottom:7px}
  .matches-period-label{display:none}
  .matches-period-buttons{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .matches-period-button{height:34px;padding:0 4px;font-size:9px}
  .matches-period-year{margin:0;width:100%;gap:7px}
  .matches-period-year select{height:34px;min-width:0;max-width:none;flex:1}
  .matches-filters-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;height:36px;margin-bottom:8px;padding:0 11px;border:1px solid var(--mx-line);border-radius:7px;background:#171d27;color:#e6eaf2;font:850 11px Inter,Arial,sans-serif;cursor:pointer}
  .matches-filters-toggle[aria-expanded="true"] span{transform:rotate(180deg)}
  .matches-filters{display:none;margin-bottom:12px}
  .matches-filters.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}
  .matches-filter{gap:4px}
  .matches-filter label{font-size:9px}
  .matches-filter input,.matches-filter select{height:34px;font-size:11px;padding:0 7px}
  .matches-filter-search,.matches-clear{grid-column:auto}
  .matches-clear{height:34px;width:100%}
  .matches-page .matches-table{min-width:1300px}
  .matches-page .matches-table th.col-date{width:112px}
  .matches-page .matches-table th.col-map{width:100px}
  .matches-page .matches-table th.col-score{width:64px}
  .matches-page .matches-table .map-thumbnail{display:none}
  .matches-page .matches-table .map-tag{padding-left:0;justify-content:center}
  .matches-page .matches-table .map-label{max-width:92px;font-size:14px}
  .matches-page .matches-table .expand-match{gap:5px;padding-left:1px}
  .matches-page .matches-table .match-toggle{width:19px;height:19px}
  .matches-page .matches-table .date-stack strong{font-size:14px}
  .matches-page .matches-table .date-stack small{font-size:8px}
  .matches-page .matches-table .match-player-row td.player-identity{padding-left:6px}
  .matches-page .matches-table .player-identity-inner{gap:4px}
  .matches-page .matches-table .player-identity-inner img{width:20px;height:20px}
  .matches-page .matches-table .player-identity-inner strong{font-size:14px}
  .matches-page .matches-table .player-identity-inner small{display:none}
  .matches-page .matches-table .match-player-row td.player-row-gap{background:#10141c;border-right:0}
  .matches-page .matches-table .match-player-row{display:none}
  .matches-page .matches-table .match-player-mobile-row{display:table-row}
  .matches-page .matches-table .match-player-mobile-row td{padding:8px 6px;background:#0d1119;text-align:left;white-space:normal}
  .matches-page .match-player-mobile-card{width:calc(100vw - 54px);max-width:100%;padding:11px;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:#151a24}
  .matches-page .match-player-mobile-head{display:flex;align-items:center;gap:7px;margin-bottom:10px;color:#fff}
  .matches-page .match-player-mobile-head img{width:27px;height:27px;object-fit:cover;border-radius:50%}
  .matches-page .match-player-mobile-head strong{font-size:12px}
  .matches-page .match-player-mobile-head .match-report-link{margin-left:auto}
  .matches-page .match-player-mobile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .matches-page .match-player-mobile-metric{display:flex;flex-direction:column;gap:4px;min-width:0;padding:7px 5px;border:1px solid rgba(255,255,255,.07);border-radius:5px;background:#10141c;text-align:center}
  .matches-page .match-player-mobile-metric span{font-size:9px;color:#aab4c5;font-weight:850}
  .matches-page .match-player-mobile-metric strong{font-size:14px;color:#e8edf5;font-variant-numeric:tabular-nums}
  .matches-page .match-player-mobile-metric.is-best strong{color:#ffdf89}
}
@media(max-width:720px){
  .matches-page .matches-table-scroll{width:calc(100% + 20px);max-width:none;margin-left:-10px!important;border-left:0;border-right:0;border-radius:0}
  .matches-page .matches-table th{padding:0 7px}
  .matches-page .matches-table .match-main-row td{padding:10px 7px}
}

/* Mobilny skrót meczu pojawia się po przewinięciu mapy i wyniku. */
.matches-page .matches-table-frame{position:relative;min-width:0}
.matches-page .matches-floating-column{display:none}
@media(max-width:768px){
  .matches-page .matches-table-frame.has-floating-match .matches-floating-column{
    display:block;position:absolute;z-index:12;top:0;left:0;width:92px;height:100%;
    border-right:1px solid #445067;box-shadow:3px 0 12px #000b;pointer-events:none;
  }
  .matches-page .matches-floating-head{
    display:flex;align-items:center;height:42px;padding:0 7px;
    background:#171b26;border-bottom:1px solid rgba(255,255,255,.13);
    color:#aab4c5;font-size:10px;font-weight:900;letter-spacing:1px;
  }
  .matches-page .matches-floating-rows{position:absolute;inset:0;pointer-events:none}
  .matches-page .matches-floating-row{
    position:absolute;left:0;width:100%;display:grid;
    grid-template-columns:1fr auto;align-content:center;gap:3px 2px;
    padding:5px 6px;box-sizing:border-box;background:#11151d;
    border-bottom:1px solid rgba(255,255,255,.075);
    font-variant-numeric:tabular-nums;text-align:left;
  }
  .matches-page .matches-floating-row:nth-child(even){background:#161a23}
  .matches-page .matches-floating-row small{grid-column:1;grid-row:1;color:#a7b4c7;font-size:9px;font-weight:800;white-space:nowrap}
  .matches-page .matches-floating-row b{grid-column:2;grid-row:1;font-size:11px;font-weight:950;white-space:nowrap}
  .matches-page .matches-floating-row strong{grid-column:1 / -1;grid-row:2;overflow:hidden;color:#f2f5fb;font-size:10px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
  .matches-page .matches-floating-row.is-win b{color:#69e48b}
  .matches-page .matches-floating-row.is-loss b{color:#ff6570}
  .matches-page .matches-floating-row.is-draw b{color:#ffce83}
}
@media(max-width:720px){
  .matches-page .matches-table-frame.has-floating-match .matches-floating-column{left:-10px}
}

/* Krótszy nagłówek i jeden rząd sterowania tabelą na telefonach. */
.matches-page .matches-section-head h1{margin-bottom:0!important}
.matches-scroll-note-mobile{display:none}
@media(max-width:720px){
  .matches-page .matches-table-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
  .matches-page .matches-scroll-note{order:-1;display:block;flex:none;margin:0;padding:0;text-align:left;font-size:9px;white-space:nowrap}
  .matches-page .matches-section-head{align-items:flex-start;margin-bottom:14px}
  .matches-page .matches-section-head h1{
    margin:9px 0 0!important;font-size:clamp(27px,8vw,38px);
    line-height:1.04;letter-spacing:-1.2px;white-space:nowrap;
  }
  .matches-page .matches-toolbar{
    display:flex;align-items:center;justify-content:space-between;
    flex-wrap:nowrap;gap:8px;margin:0;
  }
  .matches-page .matches-toolbar-info{display:none}
  .matches-page .matches-toolbar-info .matches-indicator,
  .matches-page .matches-toolbar-info strong{display:none}
  .matches-page .matches-toolbar-count{
    flex:none;margin:0;color:#d3dbe7;font-size:11px;
    font-weight:800;white-space:nowrap;
  }
  .matches-page .matches-toolbar-actions{flex:none;gap:6px;margin-left:auto}
  .matches-page .matches-toolbar-actions .matches-unit-info{display:none}
  .matches-page .matches-toolbar-actions label{font-size:10px;font-weight:750;white-space:nowrap}
  .matches-page .matches-toolbar-actions select{width:56px;height:30px}
  .matches-page .matches-scroll-note-desktop{display:none}
  .matches-page .matches-scroll-note-mobile{display:inline}
}

/* Rozwinięty mecz na telefonie pozostaje częścią tej samej tabeli. */
@media(max-width:768px){
  .matches-page .matches-table .match-player-row{display:table-row}
  .matches-page .matches-table .match-player-mobile-row,
  .matches-page .matches-table .match-details-caption{display:none}
  .matches-page .matches-table .match-player-row td{height:48px;padding:7px 6px;font-size:12px}
  .matches-page .matches-table .match-player-row td.player-identity{padding-left:6px}
  .matches-page .matches-table .match-player-row .player-identity-inner{min-width:0;gap:5px;flex-wrap:nowrap}
  .matches-page .matches-table .match-player-row .player-identity-inner img{flex:none;width:25px;height:25px}
  .matches-page .matches-table .match-player-row .player-identity-inner strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  .matches-page .matches-floating-row.is-player{display:flex;align-items:center;padding:5px 6px;background:#17202a}
  .matches-page .matches-floating-row.is-player:nth-child(even){background:#1c2631}
  .matches-page .matches-floating-row.is-player .player-identity-inner{display:flex;align-items:center;gap:5px;min-width:0;width:100%}
  .matches-page .matches-floating-row.is-player img{flex:none;width:24px;height:24px;object-fit:cover;border:1px solid #ffffff26;border-radius:50%}
  .matches-page .matches-floating-row.is-player strong{display:block;min-width:0;overflow:hidden;color:var(--player-color,#e1e7f2);font-size:10px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
  .matches-page .matches-floating-row.is-player small{display:none}
}

@media(max-width:768px){
  .matches-page .matches-section-head{display:none}
}

