/* Statystyki: panele, tabele i podpowiedzi. Wspólna góra serwisu — barwy,
   kroje, tytuł, kafelki i menu — siedzi w site-header.css, wczytywanym wcześniej. */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel h2 {
  margin: 0;
  padding: 10px 14px;
  font-family: "Handel Gothic", "Courier New", monospace;
  background: var(--panel-2);
  border-bottom: 2px solid var(--line);
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--gold);
}
.scroll { overflow-x: auto; }
/* Narrow screens keep the SWOS-style abbreviations; from tablet width up the
   table has room for the full column names. */
th .full { display: none; }
@media (min-width: 720px) {
  th .full { display: inline; }
  th .short { display: none; }
}
table {
  width: 100%; border-collapse: collapse; white-space: nowrap;
  font-variant-numeric: tabular-nums; /* columns stay aligned if Courier falls back */
}
th {
  background: var(--header);
  padding: 8px 10px;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: right;
  color: #fff;
}
th .material-symbols-outlined {
  font-size: 18px;
  cursor: help;
  opacity: 0.85;
}
th .material-symbols-outlined:hover {
  opacity: 1;
}
th:nth-child(2), td:nth-child(2) { text-align: left; }
td { padding: 7px 10px; text-align: right; border-bottom: 1px solid #0a121c; }
tbody tr:nth-child(odd) { background: var(--row); }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr.leader td { font-weight: bold; }
.pts { color: var(--gold); font-weight: bold; }
/* Numer miejsca stoi w każdej tabeli tak samo szeroko, więc przy przełączaniu
   zakładek kolumna LP i nazwa gracza obok niej nie przeskakują w bok. */
th.lp, td.lp { width: 56px; padding-right: 14px; text-align: right; }
/* Nicknames wear the game's menu face wherever they appear. */
.name, .match-result-name, .squad {
  font-family: "Handel Gothic", "Courier New", monospace;
}
.name { letter-spacing: 1px; }
.name a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.name a:hover { color: var(--green); }
.scorers-table td.squad { text-align: left; letter-spacing: 1px; font-size: 13px; }
.results td { text-align: center; }
.results td.host { text-align: right; width: 34%; }
.results td.guest { text-align: left; width: 34%; }
.results td.date { text-align: left; color: #fff; font-size: 13px; }

/* Wynik meczu wygląda tak samo na każdej stronie i mieszka w site-header.css;
   tu zostaje tylko to, czego używa wyłącznie tabela historii. */
.win { font-weight: bold; }
.score { color: var(--gold); font-weight: bold; letter-spacing: 1px; }
.score a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.score a:hover, .score a:focus-visible { color: var(--green); }
.scorers { color: var(--muted); font-size: 13px; text-align: left; white-space: normal; }
.scorers .minute { color: #fff; }
/* Hover effect for all tables */
table tbody tr:hover {
  background-color: #1a2d45 !important;
  cursor: pointer;
}
/* Make the history table rows clickable */
.results tbody tr {
  cursor: pointer;
}
.team-tag {
  display: block;
  font-size: 10px; letter-spacing: 1px; opacity: 0.7; font-weight: normal;
  text-transform: uppercase;
}
/* Platforma gracza pod nazwą reprezentacji — w barwie tła strony, nie kitu,
   żeby nie konkurowała z nazwiskiem. Nie jest przemalowywana przez JS,
   dlatego stoi obok .team-tag, a nie w nim. */
.platform-tag {
  display: block;
  font-size: 10px; letter-spacing: 1px; font-weight: normal;
  color: var(--muted) !important; font-family: "Courier New", ui-monospace, monospace;
}
.empty { padding: 26px 14px; text-align: center; color: var(--muted); }
/* Karta jednej paczki na zakładce POBIERZ. */
.download {
  margin-bottom: 16px; padding: 12px; background: var(--row);
  border-left: 3px solid var(--gold);
}
.download-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: bold; color: var(--gold); margin-bottom: 6px;
}
.download-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.download-meta code { background: #000; padding: 2px 4px; }
.download-button {
  display: inline-block; background: var(--gold); color: #000;
  padding: 8px 16px; text-decoration: none; font-weight: bold;
  border-radius: 2px; cursor: pointer;
}
.changelog-entry {
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 4px;
}
/* Tytuł wpisu i jego data to nagłówek, który gracz przegląda z odległości —
   data czyta się jak w kafelkach na górze strony: biała, nie przygaszona. */
.changelog-title { color: var(--gold); font-weight: bold; font-size: 18px; letter-spacing: 0.5px; }
.changelog-date { color: #fff; font-size: 15px; white-space: nowrap; }
.changelog-group {
  color: var(--muted); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 8px 0 3px;
}
.changelog-items { margin: 0; padding-left: 18px; }
.changelog-items li { font-size: 14px; color: var(--text); padding: 2px 0; }
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}
/* Podpowiedzi: dymek jest jednym elementem doklejanym do <body> i ustawianym z
   JavaScriptu, więc nie przycina go przewijana tabela. */
.tooltip {
  position: fixed; z-index: 50; max-width: 260px;
  padding: 7px 10px;
  background: var(--panel-2); color: var(--text);
  border: 2px solid var(--line); box-shadow: 3px 3px 0 #000;
  font-family: "Courier New", ui-monospace, monospace; font-size: 12px;
  line-height: 1.35; letter-spacing: 0.5px; text-align: left;
  pointer-events: none; opacity: 0; transform: translateY(3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.tooltip.visible { opacity: 1; transform: translateY(0); }
/* Strzałka celuje w element, nad którym stoi dymek — nawet gdy dymek został
   dosunięty do krawędzi okna. */
.tooltip::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); margin-left: -6px;
  border: 6px solid transparent; border-top-color: var(--line);
  top: 100%;
}
.tooltip.below::after {
  top: auto; bottom: 100%;
  border-top-color: transparent; border-bottom-color: var(--line);
}
[data-tip] { cursor: help; }

/* Ruch w tabeli czyta się kolorem, zanim przeczyta się liczbę. */
.delta-up { color: var(--green); font-weight: bold; }
.delta-down { color: var(--red); font-weight: bold; }
.delta-flat { color: var(--muted); }
.delta-new { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.filter { text-align: center; margin-bottom: 14px; }
.filter a { color: var(--green); text-decoration: none; border-bottom: 1px dotted; }
/* Objaśnienie pod tabelą, a nie nad nią: nad tabelą przesuwałoby jej pierwszy
   wiersz w dół tylko na jednej zakładce. */
.note { margin: 0; padding: 10px 14px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 620px) {
  td, th { padding: 6px 7px; }
  .scorers { display: none; }
}
@media (min-width: 1440px) {
  th { font-size: 15px; }
  td { font-size: 16px; }
  .panel h2 { font-size: 20px; }
}
