/* ================================================================
   PORTAL ŻEŃSKIEJ KOSZYKÓWKI – Design System
   Styl: Editorial Sportowy – ciemny, dynamiczny, energetyczny
   Fonty: Barlow Condensed (nagłówki) + Barlow (tekst) + DM Mono (liczby)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700;1,800&family=Barlow:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Kolory */
  --ink:        #08090c;      /* tło najgłębsze */
  --void:       #0e1016;      /* tło strony */
  --surface:    #13161e;      /* karty, sekcje */
  --surface2:   #1a1e29;      /* hover, wzniesione */
  --rim:        #252a38;      /* obramowania */
  --rim2:       #323848;      /* obramowania active */
  --smoke:      #4a5168;      /* muted tekst ciemny */
  --ash:        #8892a4;      /* muted tekst jasny */
  --fog:        #b8c0cc;      /* tekst drugorzędny */
  --snow:       #e8ecf4;      /* tekst główny */
  --white:      #f4f6fa;      /* nagłówki, akcenty */

  /* Akcenty */
  --fire:       #e8502a;      /* pomarańcz – główny akcent */
  --fire2:      #ff6840;      /* hover */
  --ember:      #c93d1c;      /* pressed */
  --glow:       rgba(232, 80, 42, .12);

  /* Wyniki */
  --win:        #22c55e;
  --loss:       #ef4444;
  --draw:       #f59e0b;

  /* Typografia */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Rytm */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Layout */
  --content-w:  1200px;
  --sidebar-w:  320px;
  --nav-h:      64px;
  --radius:     6px;
  --radius-lg:  12px;

  /* Animacje */
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-in:    cubic-bezier(.55, 0, 1, .45);
  --t-fast:     120ms;
  --t-mid:      240ms;
  --t-slow:     400ms;
}

/* ── BODY ─────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--void);
  color: var(--fog);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtelna faktura tła */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232,80,42,.07) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 60L60 0M-15 15L15 -15M45 75L75 45' stroke='%23ffffff' stroke-width='.3' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── WRAPPER ──────────────────────────────────────────────────── */
.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}
.wrap--narrow { max-width: 860px; }
.wrap--wide   { max-width: 1440px; }

/* ── NAVEGACIÓN ───────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(8, 9, 12, .92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--rim);
}
.nav-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo__mark {
  width: 38px;
  height: 38px;
  background: var(--fire);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.5px;
  transition: background var(--t-fast);
}
.nav-logo:hover .nav-logo__mark { background: var(--fire2); }
.nav-logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.nav-logo__name span { color: var(--fire); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--fire);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--rim2);
  border-radius: var(--radius);
  color: var(--fog);
  width: 38px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--t-fast);
}
.nav-burger:hover { border-color: var(--ash); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fog);
  border-radius: 2px;
  transition: all var(--t-mid) var(--ease);
}

/* ── BREAKING NEWS TICKER ────────────────────────────────────── */
.ticker {
  background: var(--fire);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker__label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 16px;
  background: rgba(0,0,0,.2);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker__track {
  display: flex;
  align-items: center;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .3px;
  color: #fff;
  padding: 0 40px;
  text-decoration: none;
  opacity: .95;
  transition: opacity var(--t-fast);
}
.ticker__item::before {
  content: '●';
  margin-right: 12px;
  opacity: .5;
  font-size: .5rem;
}
.ticker__item:hover { opacity: 1; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SEKCJA HERO ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2px;
  background: var(--rim);
  margin-bottom: 40px;
}
.hero-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  min-height: 420px;
  background: var(--surface);
  cursor: pointer;
}
.hero-main__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero-main:hover .hero-main__img { transform: scale(1.03); }
.hero-main__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8,9,12,.97) 0%,
    rgba(8,9,12,.6) 45%,
    rgba(8,9,12,.1) 100%
  );
}
.hero-main__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
}
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--rim);
}
.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.hero-card:hover .hero-card__img { transform: scale(1.05); }
.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8,9,12,.95) 0%,
    rgba(8,9,12,.3) 100%
  );
}
.hero-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
}

/* Placeholder gdy brak zdjęcia */
.hero-placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-placeholder::after {
  content: '🏀';
  font-size: 3rem;
  opacity: .15;
}

/* ── ETYKIETY KATEGORII ───────────────────────────────────────── */
.cat-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .65rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
  color: #fff;
  background: var(--fire);
}
.cat-tag--wyniki     { background: var(--win); }
.cat-tag--transfery  { background: #3b82f6; }
.cat-tag--repr       { background: #f59e0b; }
.cat-tag--wywiady    { background: #a855f7; }
.cat-tag--zapowiedzi { background: #06b6d4; }
.cat-tag--breaking {
  background: var(--fire);
  animation: pulse-cat 2s ease infinite;
}
@keyframes pulse-cat {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

/* ── TYTUŁY NEWSÓW ────────────────────────────────────────────── */
.news-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.2px;
  text-decoration: none;
  display: block;
  transition: color var(--t-fast);
}
.news-title:hover { color: var(--fire); }
.news-title--hero   { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.news-title--card   { font-size: clamp(1rem, 2vw, 1.25rem); }
.news-title--list   { font-size: 1rem; }
.news-title--xl     { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: var(--ash);
  margin-top: 6px;
  flex-wrap: wrap;
}
.news-meta__date  { }
.news-meta__author{ }
.news-meta__dot   { opacity: .4; }
.news-meta__views { display: flex; align-items: center; gap: 4px; }

/* ── CONTENT GRID ─────────────────────────────────────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 32px;
  align-items: start;
}
.main-col { min-width: 0; }
.side-col  { position: sticky; top: calc(var(--nav-h) + 16px); }

/* ── SEKCJE ───────────────────────────────────────────────────── */
.section { margin-bottom: 48px; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rim);
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--fire);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-more {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fire);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.section-more:hover { color: var(--fire2); }

/* ── KARTY NEWSÓW ─────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-grid--2col { grid-template-columns: repeat(2, 1fr); }
.news-grid--4col { grid-template-columns: repeat(4, 1fr); }

.news-card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-mid), transform var(--t-mid) var(--ease);
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  border-color: var(--rim2);
  transform: translateY(-2px);
}
.news-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface2);
  flex-shrink: 0;
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-card__thumb img { transform: scale(1.06); }
.news-card__thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: .3;
}
.news-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card__excerpt {
  font-size: .83rem;
  color: var(--ash);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lista newsów (sidebar / lista) */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rim);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast);
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child  { border-bottom: none; }
.news-list-item:hover .news-title { color: var(--fire); }
.news-list-item__thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: var(--surface2);
  flex-shrink: 0;
}
.news-list-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.news-list-item:hover .news-list-item__thumb img { transform: scale(1.08); }

/* ── WYNIKI MECZÓW ────────────────────────────────────────────── */
.score-widget {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.score-widget__header {
  background: var(--surface2);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rim);
}
.score-widget__league {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fire);
}
.score-widget__date { font-size: .72rem; color: var(--ash); }

.match-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(37,42,56,.6);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast);
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--surface2); }

.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--fog);
}
.match-team--home { justify-content: flex-end; flex-direction: row-reverse; }
.match-team__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
.match-team__logo-ph {
  width: 24px;
  height: 24px;
  background: var(--surface2);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: .7rem;
  color: var(--smoke);
  flex-shrink: 0;
}
.match-team.winner { color: var(--white); }

.match-score {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 500;
}
.match-score__result {
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 1px;
}
.match-score__time {
  font-size: .68rem;
  color: var(--ash);
  margin-top: 2px;
  letter-spacing: .5px;
}
.match-score__live {
  display: inline-block;
  background: var(--loss);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .6rem;
  letter-spacing: 1.5px;
  padding: 2px 6px;
  border-radius: 3px;
  animation: live-blink 1.5s ease infinite;
}
@keyframes live-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}

/* Nadchodzące mecze */
.upcoming-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(37,42,56,.6);
}
.upcoming-match:last-child { border-bottom: none; }
.upcoming-vs {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: 2px;
  color: var(--smoke);
  text-align: center;
}
.upcoming-date {
  font-size: .7rem;
  color: var(--ash);
  text-align: center;
  margin-top: 3px;
}

/* ── TABELA LIGOWA ────────────────────────────────────────────── */
.league-table { width: 100%; border-collapse: collapse; }
.league-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ash);
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--rim);
}
.league-table thead th:first-child { text-align: left; padding-left: 14px; }
.league-table thead th:nth-child(2) { text-align: left; }
.league-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(37,42,56,.5);
  font-size: .82rem;
  text-align: center;
  color: var(--fog);
}
.league-table tbody td:first-child {
  text-align: left;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--smoke);
  width: 32px;
}
.league-table tbody td:nth-child(2) { text-align: left; }
.league-table tbody tr:last-child td { border-bottom: none; }
.league-table tbody tr:hover { background: var(--surface2); }
.league-table tbody tr.highlight td { background: rgba(232,80,42,.05); }
.team-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--snow);
}
.team-name-cell img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
}
.pts-cell {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--white) !important;
}
/* Strefy w tabeli */
.zone-playoff::before { content: ''; display: block; height: 100%; width: 3px; background: var(--fire); position: absolute; left: 0; }
.form-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 1px;
}
.form-dot--w { background: var(--win); }
.form-dot--l { background: var(--loss); }

/* ── LIDERZY STATYSTYK ────────────────────────────────────────── */
.stat-leaders { display: flex; flex-direction: column; gap: 0; }
.stat-leader-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr 64px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(37,42,56,.5);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast);
}
.stat-leader-row:last-child { border-bottom: none; }
.stat-leader-row:hover { background: var(--surface2); }
.stat-leader-rank {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--smoke);
  text-align: center;
}
.stat-leader-rank.top1 { color: #F5C842; font-weight: 500; }
.stat-leader-rank.top2 { color: #B0B8C1; }
.stat-leader-rank.top3 { color: #CD7F32; }
.stat-leader-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rim2);
  flex-shrink: 0;
}
.stat-leader-photo-ph {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-size: .85rem;
  border: 1px solid var(--rim);
  flex-shrink: 0;
}
.stat-leader-info { min-width: 0; }
.stat-leader-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--snow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-leader-club { font-size: .72rem; color: var(--ash); }
.stat-leader-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--fire);
  text-align: right;
}

/* ── PROFIL ARTYKUŁU ──────────────────────────────────────────── */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rim);
}
.article-header .cat-tag { margin-bottom: 14px; }
.article-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid var(--rim);
}
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fog);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin: 32px 0 12px;
  letter-spacing: -.2px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--snow);
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body strong { color: var(--snow); font-weight: 600; }
.article-body em { color: var(--snow); }
.article-body a { color: var(--fire); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--fire2); }
.article-body blockquote {
  border-left: 3px solid var(--fire);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--snow);
  font-size: 1.05rem;
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rim);
  margin: 16px 0;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body li { margin-bottom: 6px; }

/* ── PROFIL ZAWODNICZKI ───────────────────────────────────────── */
.player-hero-card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}
.player-hero-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(232,80,42,.15) 100%);
  position: relative;
}
.player-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23ffffff' stroke-width='.4' opacity='.06'/%3E%3C/svg%3E");
}
.player-hero-content {
  padding: 0 28px 24px;
  position: relative;
}
.player-hero-photo {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--void);
  margin-top: -50px;
  display: block;
  position: relative;
  z-index: 1;
}
.player-hero-photo-ph {
  width: 100px;
  height: 120px;
  background: var(--surface2);
  border-radius: 8px;
  border: 3px solid var(--void);
  margin-top: -50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: .6;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR WIDGETY ──────────────────────────────────────────── */
.widget {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.widget__header {
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--rim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ash);
}
.widget__more {
  font-size: .7rem;
  color: var(--fire);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.widget__more:hover { color: var(--fire2); }

/* Wybór ligi (tabsy w widgecie) */
.widget-tabs {
  display: flex;
  border-bottom: 1px solid var(--rim);
  background: var(--surface);
}
.widget-tab {
  flex: 1;
  padding: 8px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ash);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.widget-tab:hover { color: var(--fog); }
.widget-tab.active { color: var(--fire); border-bottom-color: var(--fire); }

/* ── PRZYCISKI ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn--fire {
  background: var(--fire);
  color: #fff;
  padding: 10px 20px;
  font-size: .82rem;
}
.btn--fire:hover { background: var(--fire2); }
.btn--ghost {
  background: transparent;
  border-color: var(--rim2);
  color: var(--fog);
  padding: 8px 16px;
  font-size: .78rem;
}
.btn--ghost:hover { border-color: var(--ash); color: var(--snow); }
.btn--sm { padding: 6px 14px; font-size: .75rem; }
.btn--lg { padding: 13px 28px; font-size: .9rem; }

/* ── PAGINATION ───────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  color: var(--ash);
  border: 1px solid var(--rim);
  transition: all var(--t-fast);
}
.page-link:hover { color: var(--snow); border-color: var(--rim2); }
.page-link.active { background: var(--fire); border-color: var(--fire); color: #fff; }
.page-link--wide { width: auto; padding: 0 14px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--space-3xl);
  background: var(--surface);
  border-top: 1px solid var(--rim);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand { }
.footer-brand__desc {
  font-size: .85rem;
  color: var(--ash);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: .84rem;
  color: var(--smoke);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--fire); }
.footer-bottom {
  border-top: 1px solid var(--rim);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: .78rem; color: var(--smoke); }

/* ── RESPONSYWNOŚĆ ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 300px; }
  .content-layout { grid-template-columns: 1fr; }
  .side-col { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: auto auto; grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --space-lg: 14px; }
  .news-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-main { min-height: 280px; }
}

/* ── ANIMACJE WEJŚCIA ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fade-up .5s var(--ease) both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

/* ── SEARCH ───────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--rim);
  border-radius: 999px;
  padding: 0 16px;
  gap: 8px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-bar:focus-within {
  border-color: var(--fire);
  box-shadow: 0 0 0 3px var(--glow);
}
.search-bar input {
  background: none;
  border: none;
  color: var(--snow);
  font-family: var(--font-body);
  font-size: .88rem;
  padding: 9px 0;
  outline: none;
  width: 200px;
}
.search-bar input::placeholder { color: var(--smoke); }

/* ── BADGE STATUSU MECZU ─────────────────────────────────────── */
.match-status {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.match-status--live      { background: var(--loss); color: #fff; }
.match-status--finished  { background: var(--surface2); color: var(--ash); }
.match-status--upcoming  { background: rgba(59,130,246,.15); color: #93c5fd; }
.match-status--postponed { background: rgba(245,158,11,.15); color: #fbbf24; }

/* ── STATYSTYKI TABLE (PUBLIC) ───────────────────────────────── */
.stats-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.stats-tbl thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ash);
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--rim);
  white-space: nowrap;
}
.stats-tbl thead th:first-child,
.stats-tbl thead th:nth-child(2) { text-align: left; }
.stats-tbl tbody td {
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(37,42,56,.4);
  color: var(--fog);
}
.stats-tbl tbody td:first-child,
.stats-tbl tbody td:nth-child(2) { text-align: left; }
.stats-tbl tbody tr:hover { background: var(--surface2); }
.stats-tbl .pts-val {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .9rem;
}
.pct-good { color: var(--win); }
.pct-ok   { color: var(--fog); }
.pct-bad  { color: var(--ash); }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8,9,12,.97);
  backdrop-filter: blur(10px);
  padding: var(--space-xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-sm);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--rim);
  transition: color var(--t-fast);
}
.mobile-nav a:hover { color: var(--fire); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--surface2);
  border: 1px solid var(--rim2);
  color: var(--fog);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
