
/* Local shell styles to keep this page independent from styl.css changes */


.about {
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-left: 4px solid #c40000;
  border-right: 4px solid #c40000;
}

.about h2 {
  color: #c40000;
  letter-spacing: 2px;
}

.about p {
  color: #cccccc;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer {
  background: #0b0b0b;
  border-top: 2px solid #c40000;
  margin-top: 80px;
  padding-top: 40px;
  color: #aaa;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px 30px;
  flex-wrap: wrap;
}

.footer-logo h2 {
  color: #ff2a2a;
  letter-spacing: 2px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.footer-socials a {
  text-decoration: none !important;
  outline: none;
  display: flex;
  align-items: center;
}

.footer-socials img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.footer-socials img:hover {
  transform: scale(1.1);
}

:root {
  --red: #ff2a2a;
  --dark: #0f0f0f;
  --card: #171717;
  --border: rgba(255, 42, 42, 0.35);
  --text: #f5f5f5;
}

body {
  background: #0b0b0b;
  color: var(--text);
}

.player-page {
  max-width: 1300px;
  margin: 0 auto 80px;
  padding: 30px 20px 60px;
}

.player-hero {
  text-align: center;
  margin: 20px auto 30px;
}

.player-hero h1 {
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.filters-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.filters-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.player-avatar-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  min-width: 220px;
  flex: 0 0 240px;
}

.player-avatar-card.is-empty {
  opacity: 0.7;
}

.player-avatar-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.player-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-avatar-meta span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c9c9c9;
}

.player-avatar-meta strong {
  font-size: 16px;
  color: #fff;
}

.filters-fields {
  flex: 1 1 480px;
  display: grid;
  gap: 16px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-item {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item label {
  font-weight: 400;
  color: #f4cccc;
  font-size: 14px;
}

.filter-item select,
.filter-item input {
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
}

.quick-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-range {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.quick-range:hover {
  background: rgba(255, 42, 42, 0.2);
}

.filters-info {
  font-size: 14px;
  color: #b5b5b5;
}

.tabs {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-button {
  background: #101010;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  transition: 0.2s ease;
}

.tab-button.active,
.tab-button:hover {
  background: var(--red);
  color: #fff;
}

.tab-panel {
  display: none;
  margin-top: 25px;
}

.tab-panel.active {
  display: block;
}

.tab-panel.active#tab-stats {
  display: grid;
  gap: 24px;
}

.stats-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stats-visual-card {
  height: 300px;
  min-height: 300px;
  background:
    radial-gradient(circle at top right, rgba(255, 42, 42, 0.2), transparent 55%),
    linear-gradient(160deg, rgba(255, 42, 42, 0.1), rgba(255, 255, 255, 0.02));
}

.stats-visual-card canvas {
  height: 230px !important;
  min-height: 230px;
  max-height: 230px;
  width: 100% !important;
}

.graph-results-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.results-legend-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe3f5;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
}

.results-legend-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--legend-color);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.results-legend-item.is-inactive {
  opacity: 0.45;
  text-decoration: line-through;
}

.graphs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.graph-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.graph-card-wide {
  grid-column: 1 / -1;
}

.graph-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f9c9c9;
}


.tab-empty-state {
  display: none;
  padding: 20px;
  text-align: center;
  color: #aaa;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.player-page.no-player-selected #tab-stats .stats-visuals,
.player-page.no-player-selected #tab-stats .stats-grid,
.player-page.no-player-selected #tab-stats .recent-matches,
.player-page.no-player-selected #tab-stats > h3,
.player-page.no-player-selected #tab-graphs .graphs-grid,
.player-page.no-player-selected #tab-maps .maps-grid,
.player-page.no-player-selected #tab-matches .table-wrapper,
.player-page.no-player-selected #tab-compare .table-wrapper,
.player-page.no-player-selected #tab-moments .moments-grid {
  display: none;
}

.player-page.no-player-selected .tab-panel.active .tab-empty-state {
  display: block;
}

.stats-grid {
  display: grid;
  gap: 20px;
}

.stats-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stats-section {
  display: grid;
  gap: 16px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(255, 42, 42, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.stats-section h3 {
  margin: 0;
  color: #ffe1e1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.stat-card strong {
  font-size: 24px;
  color: var(--red);
  text-shadow: 0 0 18px rgba(255, 42, 42, 0.25);
}

.stat-card em {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.stat-card.summary-win em,
.stat-card.summary-loss em,
.stat-card.summary-draw em {
  padding: 2px 8px;
  border-radius: 999px;
}

.stat-card.summary-win em {
  color: #a6f3be;
  background: rgba(46, 204, 113, 0.22);
}

.stat-card.summary-loss em {
  color: #ffb1a9;
  background: rgba(231, 76, 60, 0.22);
}

.stat-card.summary-draw em {
  color: #ffe58a;
  background: rgba(241, 196, 15, 0.22);
}

.stat-card.highlight {
  border-color: var(--border);
  background: linear-gradient(135deg, rgba(255, 42, 42, 0.12), rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, 0.1);
}

.stat-card.primary {
  border-color: rgba(255, 42, 42, 0.45);
}

.recent-matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.match-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: 86px 1fr;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 42, 0.45);
}

.match-map {
  height: 86px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.match-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

.match-result {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.match-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}

.match-info h4 {
  margin: 0;
  color: var(--red);
}

.chips-row {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.match-result-chip,
.side-chip {
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.match-result-chip.win {
  background: rgba(63, 185, 80, 0.2);
  color: #7ce39a;
}

.match-result-chip.loss {
  background: rgba(255, 102, 102, 0.2);
  color: #ff9a9a;
}

.match-result-chip.draw {
  background: rgba(242, 204, 96, 0.22);
  color: #ffdf87;
}

.side-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #e8ecf7;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.map-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: 140px 1fr;
}

.map-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.map-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-card-body h4 {
  margin: 0;
  color: var(--red);
  text-align: center;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 13px;
}

.map-stats span {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 10px;
}

.map-stats span:last-child {
  grid-column: 1 / -1;
  justify-content: center;
}

.map-stats strong {
  color: #fff;
}
.map-stats span:nth-child(1) { background: linear-gradient(135deg, rgba(78, 115, 255, 0.35), rgba(78, 115, 255, 0.14)); }
.map-stats span:nth-child(2) { background: linear-gradient(135deg, rgba(43, 212, 125, 0.35), rgba(43, 212, 125, 0.14)); }
.map-stats span:nth-child(3) { background: linear-gradient(135deg, rgba(255, 100, 100, 0.35), rgba(255, 100, 100, 0.14)); }
.map-stats span:nth-child(4) { background: linear-gradient(135deg, rgba(246, 207, 100, 0.35), rgba(246, 207, 100, 0.14)); }
.map-stats span:nth-child(5) { background: linear-gradient(135deg, rgba(141, 107, 255, 0.35), rgba(141, 107, 255, 0.14)); }
.map-stats span:nth-child(6) { background: linear-gradient(135deg, rgba(255, 126, 198, 0.35), rgba(255, 126, 198, 0.14)); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
}

.matches-table th,
.matches-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.matches-table th {
  background: rgba(255, 42, 42, 0.15);
  color: #ffe6e6;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.matches-table td.date-cell {
  white-space: nowrap;
  min-width: 140px;
  font-size: 11px;
}

.matches-table td.map-cell {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)), var(--map-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.matches-table td.map-cell,
.matches-table td.score-cell {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


.result-win {
  color: #7bff9d;
  font-weight: 700;
}

.result-lose {
  color: #ff7b7b;
  font-weight: 700;
}

.result-tie {
  color: #ffd27b;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

.compare-table th,
.compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.compare-table th {
  background: rgba(255, 42, 42, 0.15);
  color: #ffe6e6;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.compare-table td.better {
  color: #7bff9d;
  font-weight: 400;
}

.compare-table td.worse {
  color: #ff7b7b;
  font-weight: 400;
}

.compare-table td.self {
  color: #ffd27b;
  font-weight: 400;
}

.compare-self td {
  background: rgba(255, 255, 255, 0.04);
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.moment-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.moment-card h4 {
  margin-top: 0;
  color: var(--red);
}

.moment-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #ffb3b3;
}

.moment-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.moment-icon {
  font-size: 20px;
}

.moment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #d0d0d0;
}

.moment-meta span {
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 10px;
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: #aaa;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .player-page {
    padding: 20px 10px 44px;
    overflow-x: hidden;
    z-index: 1 !important;
  }

  .stats-visuals {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .stats-visual-card {
    height: 260px;
    min-height: 260px;
  }

  .stats-visual-card canvas {
    height: 190px !important;
    min-height: 190px;
    max-height: 190px;
  }

  .stats-header-grid,
  .stats-cards,
  .recent-matches,
  .moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maps-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    padding: 16px;
  }

  .player-avatar-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  .filter-item {
    min-width: 0;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }

  .tab-button {
    flex: 1 1 140px;
  }
}

.recent-matches .match-card.clickable{cursor:pointer;transition:transform .15s ease,border-color .2s ease;}
.recent-matches .match-card.clickable:hover{transform:translateY(-2px);border-color:rgba(255,60,60,.55);}
.open-match-btn{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;}
.open-match-btn:hover{background:#ff2a2a;border-color:#ff6a6a;}

.moment-meta .open-match-btn{margin-top:6px;padding:5px 9px;font-size:11px;}


/* ============================================================
   POSTTEAM – tabela startowa wszystkich zawodników.
   Widoczna tylko, gdy nie wybrano gracza. Pozostałe zakładki
   i oryginalny widok „Porównaj” zachowują dotychczasowe style.
   ============================================================ */
.player-page .players-overview { display: none; }
.player-page.no-player-selected .players-overview {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 24px;
  background: #171717;
  border: 1px solid rgba(255,42,42,.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
}
.player-page.no-player-selected > .tabs,
.player-page.no-player-selected > .tab-panel {
  display: none !important;
}
.players-overview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 20px 14px;
  text-align: left;
}
.players-overview-heading h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: 1px;
}
.players-overview-heading p {
  margin: 0;
  color: #bfbfbf;
  font-size: 13px;
  line-height: 1.5;
}
.players-overview-count {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(255,42,42,.42);
  border-radius: 7px;
  color: #ffb1b1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  white-space: nowrap;
}
.players-overview-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.players-overview-table {
  min-width: 1060px;
  border-radius: 0;
  overflow: visible;
}
.players-overview-table th,
.players-overview-table td { white-space: nowrap; }
.players-overview-table td { font-variant-numeric: tabular-nums; }
.players-overview-table .overview-name-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 110px;
  text-align: left;
  background: #171717;
  box-shadow: 1px 0 0 rgba(255,255,255,.10);
}
.players-overview-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #372022;
  text-align: left;
}
.players-overview-table tbody tr:nth-child(even) .overview-name-cell { background: #1e1e1e; }
.players-overview-table tbody tr:hover .overview-name-cell { background: #2a2222; }
.players-overview-table .overview-player-link {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.players-overview-table .overview-player-link:hover,
.players-overview-table .overview-player-link:focus-visible {
  color: #ff6868;
  text-decoration-color: currentColor;
}
.players-overview-table.compare-table td.overview-best {
  color: #ffe29a;
  font-weight: 800;
  background: rgba(255,207,87,.16);
  box-shadow: inset 0 0 0 1px rgba(255,207,87,.25);
}
.players-overview-table.compare-table tr:hover td.overview-best {
  background: rgba(255,207,87,.24);
}
.players-overview-table .overview-no-data { color: #777; }
.players-overview-note {
  margin: 0;
  padding: 12px 20px 16px;
  text-align: left;
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}
.players-overview-swatch {
  display: inline-block;
  vertical-align: -1px;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  background: rgba(255,207,87,.48);
  border: 1px solid rgba(255,207,87,.7);
  border-radius: 3px;
}
@media (max-width: 680px) {
  .players-overview-heading { padding: 17px 14px 12px; align-items: flex-start; }
  .players-overview-heading p { font-size: 12px; }
  .players-overview-count { display: none; }
  .players-overview-table.compare-table { display: table; }
  .players-overview-table.compare-table th,
  .players-overview-table.compare-table td { padding: 12px 10px; }
  .players-overview-note { padding: 12px 14px 16px; }
}


/* =======================================================================
   POSTTEAM / PLAYER DATABASE — editorial redesign (2026)
   Wyłącznie .player-page. Styl globalny, nagłówek, nawigacja i footer są nietknięte.
   ======================================================================= */
.player-page {
  --pg-red:#ff444d; --pg-redsoft:rgba(255,68,77,.13);
  --pg-line:rgba(255,255,255,.105); --pg-text:#f5f6fa;
  --pg-muted:#a5adbc; --pg-surface:#13161e; --pg-deep:#0b0e14;
  max-width:1500px; width:min(1500px,100%); box-sizing:border-box;
  min-width:0; text-align:left;
}
.player-page * {box-sizing:border-box}
.player-page button,.player-page input,.player-page select{font-family:inherit}
.player-page button:focus-visible,.player-page input:focus-visible,.player-page select:focus-visible,
.player-page a:focus-visible {outline:2px solid #ff656c;outline-offset:3px}
.player-page .pg-eyebrow {
  display:flex;align-items:center;gap:10px;font-size:10px;
  letter-spacing:2.15px;text-transform:uppercase;font-weight:900;color:#ecabb1;
}
.player-page .pg-eyebrow i,.player-page .pg-table-kicker i,.player-page .pg-nav-intro i {
  display:block;flex:none;height:2px;width:23px;background:var(--pg-red);
  box-shadow:0 0 15px rgba(255,68,77,.35);
}
.player-page .pg-display-title {
  margin:12px 0 11px;line-height:1.02;font-size:clamp(29px,3.4vw,52px);
  letter-spacing:-1.5px;font-weight:900;text-transform:uppercase;color:#fff;
}
.player-page .pg-display-title em,.player-page .pg-filter-title em,.player-page .pg-subhead h3 em {
  color:var(--pg-red);font-style:italic;
}
.player-page .pg-display-title + p,.player-page .pg-module-heading p {
  margin:0;color:var(--pg-muted);font-size:13px;line-height:1.75;max-width:670px;
}
.player-page .pg-shell-panel,.player-page .players-overview,
.player-page .tab-panel.pg-module {
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:16px;
  background:radial-gradient(ellipse 660px 260px at 100% 0%,rgba(212,29,44,.085),transparent 75%),linear-gradient(162deg,rgba(22,25,34,.975),rgba(10,12,18,.978) 76%);
  box-shadow:0 19px 45px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.026);
}
.player-page .pg-shell-panel::before,.player-page .players-overview::before,.player-page .tab-panel.pg-module::before{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.013) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.013) 1px,transparent 1px);
  background-size:40px 40px;mask-image:linear-gradient(#000 0,transparent 420px);
}
.player-page .pg-shell-panel::after,.player-page .players-overview::after,.player-page .tab-panel.pg-module::after{
  content:"";position:absolute;top:0;left:29px;width:50%;height:2px;
  background:linear-gradient(90deg,var(--pg-red),rgba(255,68,77,.12) 42%,transparent);
  pointer-events:none;
}
/* Selektor / centrum sterowania */
.player-page .filters-panel.pg-shell-panel{padding:clamp(19px,2.4vw,32px);gap:0}
.player-page .pg-filter-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid var(--pg-line)}
.player-page .pg-filter-title{font-size:clamp(24px,2.65vw,37px);font-style:italic;letter-spacing:-.7px;line-height:1.08;font-weight:900;margin:10px 0 8px;color:#fff}
.player-page .pg-filter-heading p{margin:0;color:var(--pg-muted);font-size:12px;line-height:1.65;max-width:700px}
.player-page .pg-data-stamp{flex:none;display:grid;gap:7px;text-align:right;padding:13px 17px;border:1px solid rgba(255,255,255,.085);background:rgba(255,255,255,.022);border-radius:7px}
.player-page .pg-data-stamp small{font-size:9px;letter-spacing:1.2px;color:#7c8596;font-weight:800}
.player-page .pg-data-stamp strong{font-weight:900;font-size:13px;letter-spacing:1px;color:#d4d8e3}
.player-page .filters-layout{display:grid;grid-template-columns:minmax(205px,255px) minmax(0,1fr);gap:18px;align-items:stretch}
.player-page .player-avatar-card{min-width:0;flex:auto;position:relative;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:12px;padding:18px;border-radius:10px;border:1px solid rgba(255,255,255,.11);background:radial-gradient(ellipse at 50% 24%,rgba(255,64,75,.14),transparent 65%),#0d1017;overflow:hidden}
.player-page .player-avatar-card::after{content:"PLAYER FILE";position:absolute;top:10px;left:12px;color:#727986;font-size:8px;font-weight:900;letter-spacing:1.8px}
.player-page .player-avatar-card img{height:97px;width:105px;object-fit:contain;max-width:100%;border:0;border-radius:0;background:transparent;mix-blend-mode:normal;filter:drop-shadow(0 12px 15px rgba(0,0,0,.35))}
.player-page .player-avatar-card.is-empty img{opacity:.45}
.player-page .player-avatar-card.is-empty{opacity:1}
.player-page .player-avatar-meta{align-items:center;gap:6px}
.player-page .player-avatar-meta span{font-weight:800;color:#818998;letter-spacing:1.6px;font-size:9px}
.player-page .player-avatar-meta strong{font-weight:900;letter-spacing:.4px;font-size:18px;text-transform:uppercase}
.player-page .filters-fields{min-width:0;gap:16px;display:flex;flex-direction:column;justify-content:center}
.player-page .filters-row{gap:13px}
.player-page .filter-item{flex:1 1 165px;min-width:0;gap:9px}
.player-page .filter-item label{font-size:10px;letter-spacing:1.25px;text-transform:uppercase;color:#afb7c7;font-weight:900}
.player-page .filter-item select,.player-page .filter-item input{
  background:#0c0e15;color:#f1f3f7;border:1px solid rgba(255,255,255,.16);
  padding:13px 14px;min-height:45px;border-radius:8px;font-size:13px;
  transition:border-color .2s,box-shadow .2s;
}
.player-page .filter-item select:hover,.player-page .filter-item input:hover{border-color:rgba(255,255,255,.32)}
.player-page .filter-item select:focus,.player-page .filter-item input:focus{border-color:rgba(255,68,77,.8);box-shadow:0 0 0 3px rgba(255,68,77,.11);outline:none}
.player-page .filter-item input::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.7}
.player-page .quick-ranges{gap:8px}
.player-page .quick-range{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12);border-radius:7px;color:#c0c7d2;min-height:35px;padding:8px 11px;font-size:10px;font-weight:800;letter-spacing:.55px;transition:transform .18s,background .18s,border-color .18s}
.player-page .quick-range:hover{background:rgba(255,68,77,.12);border-color:rgba(255,68,77,.5);transform:translateY(-1px)}
.player-page .quick-range:active{transform:translateY(0)}
.player-page .filters-info{padding:15px 0 0;margin-top:20px;border-top:1px solid var(--pg-line);font-size:11px;color:#9aa4b6;letter-spacing:.2px;display:flex;align-items:center;gap:9px}
.player-page .filters-info::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#43ce85;box-shadow:0 0 12px rgba(67,206,133,.6)}
/* Widok bez wyboru — tabelka całej ekipy */
.player-page.no-player-selected .players-overview{padding:clamp(19px,2.55vw,33px);margin-top:19px;width:100%;border:1px solid rgba(255,255,255,.13)}
.player-page .players-overview-heading{padding:0;margin-bottom:24px;align-items:center;gap:25px}
.player-page .players-overview-heading>div{min-width:0}
.player-page .players-overview-heading h2{margin:12px 0 10px}
.player-page .players-overview-heading p{color:var(--pg-muted);font-size:13px;line-height:1.6}
.player-page .players-overview-count{display:grid;gap:8px;min-width:130px;text-align:center;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.03);border-radius:8px;color:#aab1c0;letter-spacing:1px;font-weight:900;padding:14px 16px}
.player-page .players-overview-count small{font-size:8px;color:#818a99;letter-spacing:1.35px}
.player-page .players-overview-count strong{font-size:29px;line-height:1;color:#fff;letter-spacing:-1px}
.player-page .pg-table-kicker,.player-page .pg-nav-intro{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-bottom:11px;min-width:0;
}
.player-page .pg-table-kicker span:first-child,.player-page .pg-nav-intro>span{display:flex;align-items:center;gap:10px;color:#e9edf6;font-size:10px;font-weight:900;letter-spacing:1.7px}
.player-page .pg-table-kicker span:last-child,.player-page .pg-nav-intro small{color:#7d8595;font-size:9px;font-weight:800;letter-spacing:1px;white-space:nowrap}
.player-page .players-overview-scroll,.player-page .tab-panel .table-wrapper{border:1px solid rgba(255,255,255,.105);border-radius:9px;background:rgba(6,8,12,.52);max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-color:#6c2c35 #11151f}
.player-page .players-overview-table,.player-page .compare-table,.player-page .matches-table{border-collapse:separate;border-spacing:0;border-radius:0;background:transparent;width:100%}
.player-page .players-overview-table th,.player-page .players-overview-table td,
.player-page .compare-table th,.player-page .compare-table td,
.player-page .matches-table th,.player-page .matches-table td{
  border:0;border-bottom:1px solid rgba(255,255,255,.075);padding:14px 12px;text-align:center;font-variant-numeric:tabular-nums;
}
.player-page .players-overview-table th,.player-page .compare-table th,.player-page .matches-table th{background:#1b1e28;color:#aab4c5;font-weight:900;text-transform:uppercase;font-size:10px;letter-spacing:1px}
.player-page .players-overview-table td,.player-page .compare-table td,.player-page .matches-table td{color:#dce1eb;font-size:12px;font-weight:650}
.player-page .players-overview-table tbody tr:nth-child(2n),.player-page .compare-table tbody tr:nth-child(2n),.player-page .matches-table tbody tr:nth-child(2n){background:rgba(255,255,255,.016)}
.player-page .players-overview-table tbody tr:hover,.player-page .compare-table tbody tr:hover,.player-page .matches-table tbody tr:hover{background:rgba(255,68,77,.065)}
.player-page .players-overview-table .overview-name-cell{background:#11151d!important;box-shadow:2px 0 0 rgba(255,255,255,.08);min-width:136px}
.player-page .players-overview-table tbody tr:nth-child(2n) .overview-name-cell{background:#161a23!important}
.player-page .players-overview-table tbody tr:hover .overview-name-cell{background:#22202a!important}
.player-page .players-overview-table thead th:first-child{background:#1b1e28!important;min-width:136px}
.player-page .players-overview-table .overview-player-link{text-decoration:none;font-size:12px;letter-spacing:.35px;font-weight:900;position:relative}
.player-page .players-overview-table .overview-player-link::after{content:"↗";margin-left:7px;color:var(--pg-red);font-size:13px}
.player-page .players-overview-table .overview-player-link:hover{color:#ff858b}
.player-page .players-overview-table.compare-table td.overview-best{color:#ffdf89;background:rgba(241,191,77,.105);box-shadow:inset 0 -2px 0 rgba(250,194,73,.48);font-weight:900}
.player-page .players-overview-table.compare-table tr:hover td.overview-best{background:rgba(241,191,77,.17)}
.player-page .players-overview-note{font-size:11px;color:#9099a9;padding:17px 0 0;margin-top:16px;border-top:1px solid var(--pg-line)}
.player-page .players-overview-swatch{border-radius:2px}
/* nawigacja modułowa */
.player-page .pg-nav-intro{margin:26px 0 12px;padding:0 4px}
.player-page.no-player-selected .pg-nav-intro{display:none}
.player-page .tabs{margin:0;display:flex;gap:6px;flex-wrap:wrap;min-width:0;padding:7px;background:rgba(13,16,23,.92);border:1px solid var(--pg-line);border-radius:10px}
.player-page .tab-button{flex:1 1 125px;margin:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#a6aebe;font-weight:900;letter-spacing:.85px;font-size:11px;padding:13px 10px;white-space:nowrap;transition:background .2s,color .2s,border-color .2s;min-height:44px}
.player-page .tab-button:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.095);color:#fff}
.player-page .tab-button.active{background:linear-gradient(135deg,#ef3e49,#ac192d);color:#fff;border-color:#ff5961;box-shadow:0 5px 17px rgba(221,28,48,.17)}
.player-page .tab-panel.pg-module{margin-top:17px;padding:clamp(17px,2.6vw,33px);min-width:0}
.player-page .tab-panel.pg-module.active#tab-stats{display:grid;gap:21px}
.player-page .pg-module-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--pg-line)}
.player-page #tab-stats .pg-module-heading{margin-bottom:0}
.player-page .pg-module-stamp{flex:none;color:#798292;text-transform:uppercase;font-weight:900;font-size:10px;letter-spacing:1.2px;padding:11px 12px;border:1px solid rgba(255,255,255,.075);border-radius:6px;background:rgba(255,255,255,.018)}
.player-page .pg-mini-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;margin:0 0 12px}
.player-page .pg-mini-heading span{font-size:9px;color:#ff737c;letter-spacing:1.4px;font-weight:900}
.player-page .pg-mini-heading h4{font-size:13px;color:#f0f2fa;letter-spacing:.5px;text-align:right;line-height:1.4;margin:0;text-transform:uppercase;font-weight:900}
.player-page .stats-visuals{gap:12px}
.player-page .stats-visual-card,.player-page .graph-card{
  position:relative;min-width:0;padding:19px;background:linear-gradient(155deg,rgba(255,255,255,.035),rgba(4,6,10,.35));
  border:1px solid var(--pg-line);border-radius:10px;box-shadow:none;
}
.player-page .stats-visual-card::before,.player-page .graph-card::before{content:"";position:absolute;top:0;left:17px;right:45%;height:2px;background:linear-gradient(90deg,rgba(255,68,77,.65),transparent)}
.player-page .stats-visual-card{height:300px;min-height:300px;display:block}
.player-page .stats-visual-card canvas{height:225px!important;min-height:225px;max-height:225px}
.player-page .graph-card-wide{min-height:315px}
.player-page .graphs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.player-page .graphs-grid .graph-card:nth-child(4),.player-page .graphs-grid .graph-card:nth-child(5){grid-column:auto}
.player-page .graph-card canvas{max-width:100%}
.player-page .stats-grid{gap:14px}
.player-page .stats-header-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.player-page .stat-card{align-items:flex-start;text-align:left;border:1px solid rgba(255,255,255,.09);background:linear-gradient(145deg,rgba(255,255,255,.048),rgba(255,255,255,.015));border-radius:9px;padding:17px 16px;gap:7px;position:relative;overflow:hidden;box-shadow:none;min-width:0}
.player-page .stat-card::before{content:"";height:3px;width:28px;background:#525b6c;margin-bottom:8px;border-radius:3px}
.player-page .stat-card>span{font-size:10px;letter-spacing:.8px;color:#a6afbd;text-transform:uppercase;font-weight:800}
.player-page .stat-card strong{font-size:clamp(20px,2vw,30px);line-height:1.2;letter-spacing:-.6px;color:#fff;text-shadow:none;font-weight:900;font-variant-numeric:tabular-nums}
.player-page .stat-card em{color:#8995a5;font-weight:800;font-size:10px;margin:0}
.player-page .stat-card.highlight{border-color:rgba(255,255,255,.12);background:radial-gradient(ellipse at 100% 0%,rgba(255,68,77,.085),transparent 75%),rgba(255,255,255,.025);box-shadow:none}
.player-page .stat-card.highlight::before{background:var(--pg-red)}
.player-page .stat-card.summary-win::before{background:#49d38c}.player-page .stat-card.summary-loss::before{background:#ff6570}.player-page .stat-card.summary-draw::before{background:#e5ba53}
.player-page .stat-card.summary-win strong{color:#71e6ab}.player-page .stat-card.summary-loss strong{color:#ffa4a7}.player-page .stat-card.summary-draw strong{color:#f0cb77}
.player-page .stats-section{gap:17px;background:linear-gradient(155deg,rgba(255,255,255,.029),rgba(255,255,255,.008));border:1px solid var(--pg-line);border-radius:10px;padding:18px;box-shadow:none}
.player-page .stats-section h3{border:0;padding:0;display:flex;align-items:center;gap:11px;color:#e9edf5;font-size:12px;letter-spacing:1.5px;margin:0}
.player-page .stats-section h3::before{content:"";background:var(--pg-red);width:19px;height:2px;flex:none}
.player-page .stats-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.player-page .stats-cards .stat-card strong{font-size:23px}
.player-page .pg-subhead{margin:10px 0 -1px;padding:17px 0 0;border-top:1px solid var(--pg-line)}
.player-page .pg-subhead h3{margin:11px 0 7px;font-size:clamp(24px,3vw,35px);font-weight:900;font-style:italic;letter-spacing:-.7px;line-height:1.1;color:#fff}
.player-page .pg-subhead p{margin:0;color:var(--pg-muted);font-size:12px}
.player-page .recent-matches{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.player-page .match-card{grid-template-rows:100px 1fr;border-radius:9px;background:linear-gradient(150deg,#181b24,#0c0f16);border:1px solid rgba(255,255,255,.11);box-shadow:none;overflow:hidden;min-width:0}
.player-page .match-card.clickable:hover{transform:translateY(-3px);border-color:rgba(255,68,77,.48);box-shadow:0 10px 28px rgba(0,0,0,.33)}
.player-page .match-map{height:100px}
.player-page .match-map::after{background:linear-gradient(180deg,rgba(0,0,0,.1) 15%,rgba(6,7,12,.82))}
.player-page .match-info{padding:14px;gap:8px;align-items:flex-start;text-align:left}
.player-page .match-info h4{font-size:16px;color:#f5f5f9;font-weight:900;letter-spacing:-.25px;text-transform:uppercase}
.player-page .match-info>span:last-child{color:#87909e;font-size:10px}
.player-page .match-info .match-result{font-size:20px;font-weight:900;color:#fff;letter-spacing:-.5px}
.player-page .match-result-chip,.player-page .side-chip{font-weight:900;text-transform:uppercase;letter-spacing:.5px;padding:4px 7px;font-size:9px;border-radius:5px}
.player-page .match-result-chip.win{color:#5ee59c;background:rgba(58,196,117,.13)}
.player-page .match-result-chip.loss{color:#ff8e94;background:rgba(255,83,91,.13)}
.player-page .match-result-chip.draw{color:#f9d47b;background:rgba(249,196,82,.13)}
.player-page .side-chip{color:#adb7c5;background:rgba(255,255,255,.06)}
.player-page .maps-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.player-page .map-card{grid-template-rows:175px 1fr;border-radius:10px;background:linear-gradient(165deg,#181b25,#0d1017);border:1px solid var(--pg-line);min-width:0;position:relative}
.player-page .map-card img{height:175px;width:100%;object-fit:cover;filter:saturate(.82) contrast(1.08)}
.player-page .map-card::before{content:"";position:absolute;top:117px;left:0;right:0;height:58px;background:linear-gradient(transparent,#11141d);z-index:1;pointer-events:none}
.player-page .map-card-body{padding:19px 17px 17px;gap:17px}
.player-page .map-card-body h4{text-transform:uppercase;text-align:left;color:#fff;font-size:26px;font-style:italic;letter-spacing:-.5px;font-weight:900;line-height:1}
.player-page .map-stats{gap:7px}
.player-page .map-stats span,.player-page .map-stats span:nth-child(n){min-width:0;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:6px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:10px;text-align:left;font-size:10px;color:#a2adbc;line-height:1.4}
.player-page .map-stats span strong{color:#fff;font-size:18px;font-weight:900}
.player-page .map-stats span:nth-child(2){border-left:2px solid #43cf86}.player-page .map-stats span:nth-child(3){border-left:2px solid #fa6975}.player-page .map-stats span:nth-child(4){border-left:2px solid #e7c16b}
.player-page .map-stats span:last-child{grid-column:1/-1;align-items:center;flex-direction:row;justify-content:space-between;border-left:2px solid var(--pg-red);font-weight:900}
.player-page .map-stats span:last-child strong{color:#fff}
.player-page .compare-table,.player-page .matches-table{min-width:1040px}
.player-page .matches-table .date-cell{font-weight:700;color:#aab3c3;min-width:150px}
.player-page .matches-table .map-cell{min-width:118px;color:#fff;font-weight:900;text-transform:uppercase}
.player-page .matches-table .score-cell{font-size:14px;font-weight:900}
.player-page .compare-table td.better{color:#80dda7;font-weight:800}.player-page .compare-table td.worse{color:#ff9298;font-weight:750}.player-page .compare-table td.self{color:#f2d17f;font-weight:900}
.player-page .compare-self td{background:rgba(241,187,67,.07)}
.player-page .open-match-btn{border:1px solid rgba(255,88,99,.4);background:rgba(255,68,77,.11);color:#ffc9ce;border-radius:5px;padding:8px 10px;font-weight:900;letter-spacing:.25px;white-space:nowrap}
.player-page .open-match-btn:hover{border-color:#ff6871;background:rgba(255,68,77,.25);color:#fff}
.player-page .moments-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.player-page .moment-card{position:relative;display:flex;flex-direction:column;gap:14px;align-items:flex-start;text-align:left;background:radial-gradient(circle at 100% 0%,rgba(255,68,77,.07),transparent 57%),linear-gradient(155deg,#181b24,#0d1017);border:1px solid var(--pg-line);border-radius:10px;box-shadow:none;padding:22px;min-width:0;overflow:hidden;transition:transform .2s,border-color .2s}
.player-page .moment-card:hover{transform:translateY(-3px);border-color:rgba(255,68,77,.32)}
.player-page .moment-card::before{content:"";position:absolute;left:21px;top:0;height:2px;width:52px;background:linear-gradient(90deg,var(--pg-red),transparent)}
.player-page .moment-header{justify-content:flex-start;gap:12px;margin:0;align-items:center}
.player-page .moment-icon{width:37px;height:37px;background:rgba(255,68,77,.1);border:1px solid rgba(255,68,77,.17);border-radius:8px;display:grid;place-items:center;font-size:17px;flex:none}
.player-page .moment-card h4{color:#d7dce6;font-weight:900;text-transform:uppercase;font-size:11px;letter-spacing:1.1px;line-height:1.5;margin:0}
.player-page .moment-highlight{font-size:clamp(23px,2.6vw,38px);line-height:1.08;color:#fff;font-weight:900;letter-spacing:-1px;margin:0;font-variant-numeric:tabular-nums}
.player-page .moment-meta{justify-content:flex-start;gap:7px;line-height:1.65;font-size:10px;margin-top:auto;color:#9ca5b5}
.player-page .moment-meta span{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.045);padding:5px 7px;border-radius:5px}
.player-page .moment-meta .open-match-btn{margin-top:0;font-size:10px}
.player-page .graph-results-legend{gap:6px}.player-page .results-legend-item{background:rgba(255,255,255,.04);border:1px solid var(--pg-line);font-size:10px;border-radius:5px}
/* Responsive */
@media (max-width:1220px){
 .player-page .recent-matches{grid-template-columns:repeat(3,minmax(0,1fr))}
 .player-page .maps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .player-page .stats-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
 .player-page .filters-layout{grid-template-columns:1fr}
 .player-page .player-avatar-card{flex-direction:row;text-align:left;justify-content:flex-start;min-height:125px}
 .player-page .player-avatar-meta{align-items:flex-start}
 .player-page .pg-data-stamp,.player-page .pg-module-stamp{display:none}
 .player-page .graphs-grid{grid-template-columns:1fr}
 .player-page .moments-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .player-page .stats-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .player-page .stats-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
 .player-page{padding:22px 10px 42px;overflow-x:clip}
 .player-page .pg-display-title{font-size:clamp(27px,7.5vw,37px);letter-spacing:-.9px}
 .player-page .pg-eyebrow{font-size:9px;letter-spacing:1.4px}
 .player-page .pg-filter-title{font-size:27px}
 .player-page .filters-panel.pg-shell-panel{padding:19px 14px}
 .player-page .pg-filter-heading{margin-bottom:15px;padding-bottom:16px}
 .player-page .pg-filter-heading p{font-size:11px}
 .player-page .filters-layout{gap:11px}
 .player-page .player-avatar-card{padding:15px;min-height:100px}
 .player-page .player-avatar-card img{width:70px;height:71px}
 .player-page .player-avatar-meta strong{font-size:16px}
 .player-page .filter-item{flex:1 1 145px}
 .player-page .filter-item select,.player-page .filter-item input{min-height:42px;padding:10px 11px}
 .player-page .quick-ranges{gap:6px}.player-page .quick-range{font-size:9px;padding:8px 10px}
 .player-page .filters-info{margin-top:15px;padding-top:13px}
 .player-page.no-player-selected .players-overview{padding:20px 13px}
 .player-page .players-overview-heading{margin-bottom:19px}
 .player-page .players-overview-count{display:none}
 .player-page .pg-table-kicker span:last-child,.player-page .pg-nav-intro small{font-size:8px;letter-spacing:.3px}
 .player-page .pg-table-kicker span:first-child{font-size:9px;letter-spacing:1px}
 .player-page .players-overview-table.compare-table{display:table;min-width:1100px}
 .player-page .tabs{gap:4px;padding:5px}
 .player-page .tab-button{flex:1 1 calc(50% - 5px);font-size:10px;padding:12px 7px}
 .player-page .tab-panel.pg-module{padding:19px 13px;margin-top:12px}
 .player-page .pg-module-heading{padding-bottom:17px;margin-bottom:17px}
 .player-page .pg-module-heading p{font-size:11px}
 .player-page .pg-mini-heading{align-items:flex-start;flex-direction:column;gap:6px}
 .player-page .pg-mini-heading h4{text-align:left;font-size:12px}
 .player-page .stats-visuals{grid-template-columns:1fr;gap:10px}
 .player-page .stats-visual-card{height:265px;min-height:265px}
 .player-page .stats-visual-card canvas{height:188px!important;min-height:188px;max-height:188px}
 .player-page .graphs-grid{gap:9px}
 .player-page .graph-card{padding:14px}
 .player-page .stats-header-grid{gap:7px}
 .player-page .stats-cards{gap:7px}
 .player-page .stats-section{padding:14px}
 .player-page .stat-card{padding:12px 11px}
 .player-page .stat-card strong{font-size:21px}
 .player-page .stats-cards .stat-card strong{font-size:19px}
 .player-page .stat-card>span{font-size:9px}
 .player-page .recent-matches{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .player-page .match-card{grid-template-rows:80px 1fr}
 .player-page .match-map{height:80px}
 .player-page .match-info{padding:11px 9px}
 .player-page .match-info h4{font-size:13px}
 .player-page .maps-grid{grid-template-columns:1fr}
 .player-page .moments-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .player-page .moment-card{padding:16px 12px;gap:10px}
 .player-page .moment-icon{width:30px;height:30px;font-size:14px}
 .player-page .moment-header{gap:6px}
 .player-page .moment-card h4{font-size:9px;letter-spacing:.5px}
 .player-page .moment-highlight{font-size:23px}
 .player-page .moment-meta{font-size:9px}
}
@media (max-width:370px){
 .player-page .moments-grid{grid-template-columns:1fr}
 .player-page .tab-button{font-size:9px}
 .player-page .players-overview-heading h2{font-size:27px}
}
@media (prefers-reduced-motion:reduce){.player-page .moment-card,.player-page .match-card,.player-page .quick-range{transition:none;transform:none!important}}


/* POSTTEAM / UX: tylko kafel wybranego gracza w bieli, grafiki mają białe tło. */
.player-page .player-avatar-card,
.player-page .player-avatar-card.is-empty{
  background:#fff!important;
  border:1px solid #e8e8e9!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),0 9px 25px rgba(0,0,0,.12);
}
.player-page .player-avatar-card::after{color:#727984;}
.player-page .player-avatar-card .player-avatar-meta span{color:#69707b;}
.player-page .player-avatar-card .player-avatar-meta strong{color:#171b25;}
.player-page .player-avatar-card img{
  background:#fff!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
/* Porównanie startowe: nagłówek osobno, tabelę zamyka wyłącznie własna ramka. */
.player-page.no-player-selected .players-overview{
  display:block;
  width:100%;min-width:0;
  height:auto;min-height:0;
  padding:0!important;
  margin-top:22px;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible;
}
.player-page .players-overview::before,.player-page .players-overview::after{display:none!important;}
.player-page .players-overview-heading{margin:0 0 15px;padding:0;}
.player-page .players-overview-heading h2{margin:8px 0 7px;}
.player-page .players-overview-heading p{margin:0;}
.player-page .players-overview .pg-table-kicker{margin:0 0 9px;}
.player-page .players-overview .players-overview-scroll{
  display:block;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:0!important;margin:0!important;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:#10131b;
  overflow-x:auto;overflow-y:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.2);
}
.player-page .players-overview .players-overview-table{
  display:table!important;margin:0!important;
  border-radius:0!important;border:0!important;
  width:100%;max-width:none;
}
.player-page .players-overview .players-overview-table th,
.player-page .players-overview .players-overview-table td{vertical-align:middle;}
.player-page .players-overview .players-overview-table tbody tr:last-child td{border-bottom:0;}
.player-page .players-overview .players-overview-note{
  padding:9px 1px 0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
}
@media(max-width:640px){
  .player-page.no-player-selected .players-overview{padding:0!important;margin-top:18px;}
  .player-page .players-overview-heading{margin-bottom:12px;}
  .player-page .players-overview .pg-table-kicker{margin-bottom:7px;}
  .player-page .players-overview .players-overview-note{padding-top:8px!important;}
}


/* ====================================================================
   POSTTEAM — korekta karty zawodnika / Porównaj
   Tylko wygląd sekcji Porównaj, bez wpływu na pozostałe tabele.
   ==================================================================== */
.player-page #tab-compare.pg-module {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  isolation: auto;
}
.player-page #tab-compare.pg-module::before,
.player-page #tab-compare.pg-module::after { display: none !important; }
.player-page #tab-compare .pg-module-heading { margin: 0 0 15px; }
.player-page #tab-compare .pg-table-kicker { margin: 0 0 9px; }
.player-page #tab-compare .pg-compare-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;
  background: #10131b;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  -webkit-overflow-scrolling: touch;
}
.player-page #tab-compare .pg-compare-table {
  display: table !important;
  width: 100%;
  min-width: 1040px;
  max-width: none;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
.player-page #tab-compare .pg-compare-table tbody tr:last-child td { border-bottom: 0; }
.player-page #tab-compare .pg-compare-table th,
.player-page #tab-compare .pg-compare-table td { vertical-align: middle; }
@media (max-width:640px) {
  .player-page #tab-compare.pg-module { margin-top: 18px; }
  .player-page #tab-compare .pg-module-heading { margin-bottom: 12px; }
  .player-page #tab-compare .pg-table-kicker { margin-bottom: 7px; }
}


/* ===================================================================
   POSTTEAM / aktywny zakres czasu + avatary w obu porównywarkach
   =================================================================== */
.player-page .quick-range.is-active,
.player-page .quick-range[aria-pressed="true"] {
  border-color: rgba(255, 78, 88, .9);
  background: linear-gradient(155deg, rgba(214, 37, 52, .38), rgba(115, 18, 31, .27));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 0 1px rgba(255,53,70,.08);
}
.player-page .quick-range.is-active::before { content: "✓"; display: inline-block; margin-right: 6px; font-weight: 900; color: #ff858c; }
.player-page .quick-range:focus-visible { outline: 2px solid #ff727a; outline-offset: 3px; }

.player-page .pg-compare-person {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  vertical-align: middle;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.player-page .pg-compare-avatar {
  flex: 0 0 35px;
  width: 35px;
  height: 37px;
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.25));
}
.player-page .pg-compare-person-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15px;
  color: var(--player-accent, #edf0f5);
}
.player-page .players-overview-table .overview-name-cell,
.player-page .players-overview-table thead th:first-child { min-width: 165px; }
.player-page .players-overview-table .overview-player-link {
  display: inline-flex;
  align-items: center;
  padding: 1px 0;
}
.player-page .players-overview-table .overview-player-link::after { margin-left: 4px; }
.player-page #tab-compare .pg-compare-name-cell {
  text-align: left;
  min-width: 158px;
}
.player-page #tab-compare .pg-compare-name-cell .pg-compare-person-name { color: var(--player-accent, #fff); }
@media(max-width:640px) {
  .player-page .pg-compare-avatar { flex-basis: 29px; width: 29px; height: 32px; }
  .player-page .pg-compare-person { gap: 6px; }
  .player-page .pg-compare-person-name { font-size: 11px; }
  .player-page .players-overview-table .overview-name-cell,
  .player-page .players-overview-table thead th:first-child { min-width: 145px; }
  .player-page #tab-compare .pg-compare-name-cell { min-width: 145px; }
}
