/* Ballinciagas — kierunek „Pink Night" z makiet. */
:root {
  --ink: #0E0E10;
  --card: #1A1A1D;
  --card-2: #1F1F24;
  --line: #26262B;
  --line-2: #2C2C32;
  --edge: #3A3A42;
  --txt: #F7F6FA;
  --soft: #B9B7C4;
  --mute: #9A98A6;
  --dim: #6E6C78;
  --pink: #FF3D9A;
  --vio: #7A4DFF;
  --grad: linear-gradient(180deg, #FF3D9A, #7A4DFF);
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --body: Manrope, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--txt); font: 500 15px/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--txt); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }

/* Nawigacja */
.top { border-bottom: 1px solid #232328; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.nav-logo img { display: block; height: 44px; width: auto; }
.nav-links { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { padding: 8px 0; }
.nav-links a[aria-current] { color: var(--pink); }
.pill { font-size: 12px; font-weight: 700; color: var(--mute); border: 1px solid #34343B; border-radius: 999px; padding: 6px 12px; }

.foot { border-top: 1px solid #232328; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; font-weight: 700; color: var(--mute); }

/* Typografia */
.h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 56px); line-height: 1; }
.h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 36px); line-height: 1.05; letter-spacing: .01em; }
.h3 { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.mute { color: var(--mute); }
.soft { color: var(--soft); }
.dim { color: var(--dim); }
.txt { color: var(--txt); }
.pink { color: var(--pink); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-xl { font-family: var(--display); font-size: clamp(96px, 14vw, 168px); line-height: .95; }
.num-l { font-family: var(--display); font-size: clamp(72px, 10vw, 112px); line-height: .95; }
.num-m { font-family: var(--display); font-size: 34px; line-height: 1; }
.num-key { font-family: var(--display); font-size: 32px; line-height: 1; }
.num-lead { font-family: var(--display); font-size: 60px; line-height: .9; }
.num-tile { font-family: var(--display); font-size: 40px; line-height: 1; }
.num-row { font-family: var(--display); font-size: 20px; color: #C9C7D3; }
.name-m { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: .01em; }
.name-l { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.them { color: #8E8C99; }
.link-pink { font-size: 14px; font-weight: 800; color: var(--pink); }

/* Układ */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-2 { display: flex; flex-direction: column; gap: 2px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.row-wrap.center { justify-content: center; }
.row-wrap.end, .row-end { align-items: flex-end; }
.row-end { display: flex; gap: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between.end { align-items: flex-end; }
.row-center { display: flex; align-items: center; justify-content: center; }
.gap-20 { gap: 20px; }
.grow { flex: 1 1 auto; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.grid { display: grid; gap: 12px; }
.grid-140 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.grid-150 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-170 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-180 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.row-cards > .wide { flex: 3 1 560px; min-width: 0; }
.row-cards > .narrow { flex: 2 1 360px; min-width: 0; }

/* Karty */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
a.card:hover { border-color: #3A3A44; color: inherit; }
.empty { align-items: flex-start; gap: 12px; }
.back { font-size: 14px; font-weight: 700; color: var(--mute); align-self: flex-start; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--txt); color: var(--ink); font-weight: 800; font-size: 15px; }
.btn:hover { color: var(--ink); background: #fff; }
.btn-ghost { background: transparent; color: var(--txt); border: 1.5px solid #4A4A52; }
.btn-ghost:hover { background: transparent; color: var(--txt); border-color: var(--pink); }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; border-radius: 6px; padding: 6px 10px; }
.tag-win { background: var(--pink); color: var(--ink); }
.tag-loss { background: #33333A; color: #D9D7E0; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; border-radius: 6px; padding: 4px 8px; }
.badge-w { background: var(--pink); color: var(--ink); }
.badge-l { background: #2E2E35; color: #C9C7D3; }
.chip { font-size: 13px; font-weight: 700; background: rgba(247,246,250,.08); border: 1px solid rgba(247,246,250,.12); border-radius: 999px; padding: 8px 14px; }
.chip-light { font-size: 13px; font-weight: 700; background: #E7E5EE; border-radius: 999px; padding: 8px 14px; }
.note { font-size: 13px; font-weight: 700; color: #D9D2FF; background: rgba(122,77,255,.14); border: 1px solid rgba(122,77,255,.45); border-radius: 14px; padding: 12px 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 28px; display: flex; flex-wrap: wrap; min-height: 540px;
  background: radial-gradient(120% 80% at 70% 120%, rgba(255,61,154,.55), rgba(122,77,255,.35) 45%, rgba(26,26,29,0) 75%), var(--card); }
.hero-score { flex: 1 1 420px; padding: 48px; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 2; }
.hero-score .eyebrow { color: var(--soft); }
.score-block { display: flex; flex-direction: column; gap: 4px; }
.team-name { font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.rule { width: 64px; height: 3px; background: var(--pink); border-radius: 2px; }
.hero-actions { margin-top: auto; padding-top: 16px; }
.hero-mvp { flex: 1 1 420px; position: relative; min-height: 500px; display: flex; justify-content: center; align-items: flex-end; }
.mvp-bg { position: absolute; top: 40px; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: clamp(160px, 20vw, 260px); line-height: 1; color: rgba(247,246,250,.09); }
.hero-photo { position: relative; z-index: 1; display: block; height: 500px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.hero-no { position: relative; z-index: 1; font-family: var(--display); font-size: 320px; line-height: .9; color: transparent; -webkit-text-stroke: 3px rgba(247,246,250,.35); padding-bottom: 120px; }
.mvp-card { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: rgba(14,14,16,.74); border: 1px solid rgba(247,246,250,.12); border-radius: 18px; padding: 18px 22px; backdrop-filter: blur(6px); }
.mvp-name { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.mini-stats { display: flex; gap: 20px; }
.mini-stats div { display: flex; flex-direction: column; align-items: center; }
.mini-stats b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.mini-stats span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--soft); }

.hero-player { background: radial-gradient(70% 60% at 75% 110%, rgba(255,61,154,.5), rgba(122,77,255,.3) 50%, rgba(26,26,29,0) 80%), var(--card); }
.player-no-bg { position: absolute; right: -40px; top: -60px; font-family: var(--display); font-size: 520px; line-height: 1; color: transparent; -webkit-text-stroke: 2px #2E2E35; pointer-events: none; }
.player-name { font-family: var(--display); font-size: clamp(64px, 9vw, 104px); line-height: .92; }
.hero-player .hero-mvp { min-height: 480px; }

/* Kafelki */
.game-tile { padding: 18px; gap: 10px; border-radius: 18px; }
.leader { gap: 18px; padding: 24px; }
.tile { background: var(--card); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile .eyebrow { font-size: 11px; opacity: .85; }
.tile-pink { background: var(--pink); color: var(--ink); }
.tile-white { background: var(--txt); color: var(--ink); }
.next { background: var(--txt); color: var(--ink); border: 0; justify-content: space-between; gap: 24px; flex: 1 1 340px; }
.next .eyebrow { color: #5A5866; }
.next-opp { font-family: var(--display); font-size: 44px; line-height: 1; }
.clips { flex: 2 1 560px; }
.clip { display: flex; flex-direction: column; gap: 8px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, #2A2A31, #1F1F24); border: 1px solid #303037; display: flex; align-items: center; justify-content: center; }
.play { width: 44px; height: 44px; border-radius: 50%; background: rgba(247,246,250,.95); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.thumb-time { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 800; background: rgba(14,14,16,.8); border-radius: 6px; padding: 3px 7px; }

/* Mecz */
.match-head { background: radial-gradient(90% 140% at 50% 140%, rgba(255,61,154,.45), rgba(122,77,255,.25) 50%, rgba(26,26,29,0) 80%), var(--card); border-radius: 28px; padding: 36px 40px; gap: 20px; }
.match-score { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 48px; }
.match-score .num-xl { font-size: clamp(80px, 11vw, 128px); }
.side { display: flex; flex-direction: column; gap: 8px; }
.side-us { align-items: flex-end; }
.side-them { align-items: flex-start; }
.colon { font-family: var(--display); font-size: 56px; color: #55535E; }
.keys { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.key { background: rgba(14,14,16,.55); border: 1px solid rgba(247,246,250,.08); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.key .eyebrow { font-size: 11px; }
.key-line { display: inline-flex; align-items: center; gap: 8px; }
.key-line i { width: 18px; height: 3px; border-radius: 2px; }
.chart, .court { width: 100%; height: auto; display: block; }
.court { background: #151518; border-radius: 14px; }
.court text { pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 700; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.table-box { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 820px; }
.tbl th, .tbl td { text-align: right; padding: 13px 10px; border-bottom: 1px solid #222227; white-space: nowrap; font-size: 15px; font-weight: 600; }
.tbl thead th { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mute); border-bottom-color: var(--line-2); padding-top: 10px; padding-bottom: 10px; }
.tbl th:first-child, .tbl td:first-child, .tbl .left { text-align: left; }
.tbl tbody th { font-weight: 800; }
.tbl tbody tr:hover > * { background: #202025; }
.tbl tfoot th, .tbl tfoot td { border-bottom: 0; font-weight: 700; }
.tbl .big { font-size: 17px; font-weight: 800; }
.tbl .pinkv { color: var(--pink); font-weight: 800; }
.who { display: inline-flex; align-items: center; gap: 12px; }
.who-no { width: 30px; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--mute); }

.clip-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 12px; }
.clip-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 12px; border-radius: 12px; }
a.clip-row:hover { background: #222228; color: inherit; }
.clip-time { font-family: var(--display); font-size: 16px; color: var(--pink); width: 52px; flex: 0 0 52px; }
.clip-play { margin-left: auto; color: var(--soft); }

/* Lista meczów */
.next-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 20px 24px; }
.game-row { flex-direction: row; align-items: center; gap: 16px; padding: 16px 24px; border-radius: 18px; }
.game-date { display: flex; flex-direction: column; width: 120px; flex: 0 0 auto; }
.arrow { color: var(--dim); font-weight: 800; }

/* Zawodnicy */
.roster { padding: 0; overflow: hidden; gap: 14px; }
.roster > .stack-2, .roster-stats { padding: 0 22px; }
.roster-stats { display: flex; gap: 16px; padding-bottom: 22px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--mute); }
.roster-stats b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--txt); letter-spacing: 0; margin-right: 4px; }
.roster-pic { position: relative; height: 240px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 120%, rgba(255,61,154,.45), rgba(122,77,255,.25) 55%, rgba(26,26,29,0) 85%), #151518; }
.roster-pic img { position: relative; z-index: 1; height: 400px; width: auto; align-self: flex-start; margin-top: 14px; }
.roster-no { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 180px; color: transparent; -webkit-text-stroke: 2px rgba(247,246,250,.22); }

/* Forma i porównania */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 230px; }
.bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bar-v { font-family: var(--display); font-size: 18px; }
.bar-fill { width: 100%; max-width: 44px; border-radius: 8px 8px 0 0; min-height: 4px; }
.bar-w { background: var(--grad); }
.bar-l { background: var(--edge); }
.bar-d { font-size: 11px; font-weight: 700; color: var(--mute); text-align: center; padding-top: 6px; border-top: 1px solid var(--line-2); width: 100%; }
.cmp { display: flex; flex-direction: column; gap: 6px; }
.cmp-track { position: relative; height: 8px; border-radius: 4px; background: #26262C; }
.cmp-team { position: absolute; left: 0; top: 0; height: 8px; border-radius: 4px; background: #55535E; }
.cmp-me { position: absolute; left: 0; top: 2px; height: 4px; border-radius: 2px; background: var(--pink); }

/* Rankingi */
.season-card { flex: 2 1 420px; border-radius: 24px; padding: 32px; background: radial-gradient(90% 120% at 100% 120%, rgba(255,61,154,.5), rgba(122,77,255,.3) 50%, rgba(26,26,29,0) 80%), var(--card); }
.season-card .num-xl { font-size: clamp(88px, 10vw, 120px); line-height: .9; }
.row-cards > .grid.wide { flex: 3 1 520px; }
.key-card { padding: 20px; gap: 8px; border-radius: 18px; justify-content: space-between; }
.wl { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.wl span { width: 32px; height: 32px; border-radius: 8px; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.wl-w { background: var(--pink); color: var(--ink); }
.wl-l { background: #33333A; color: #C9C7D3; }
.board { padding: 24px; gap: 12px; }
.board-first { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.board-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; font-size: 15px; font-weight: 700; }
.pos { display: inline-block; width: 24px; }
.seg { display: flex; gap: 4px; background: #121215; border-radius: 999px; padding: 4px; }
.seg a { min-height: 40px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #C9C7D3; }
.seg a[aria-current] { background: var(--txt); color: var(--ink); font-weight: 800; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .page { padding-top: 20px; gap: 18px; }
  .card { padding: 20px; border-radius: 18px; }
  .hero-score { padding: 28px 22px; }
  .hero-mvp { min-height: 420px; }
  .hero-photo { height: 420px; }
  .hero-no { font-size: 220px; padding-bottom: 140px; }
  .mvp-card { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .mvp-name { font-size: 28px; }
  .match-head { padding: 24px 18px; }
  .side-us, .side-them { align-items: center; }
  .game-row { padding: 14px 16px; gap: 12px; }
  .game-date { width: auto; }
  .game-date .small { display: none; }
  .game-row .name-m { font-size: 20px; }
  .game-row .num-m { font-size: 26px; }
  .arrow { display: none; }
  .player-no-bg { font-size: 340px; }
  .nav { justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 6px; }
  .nav-logo img { height: 38px; }
  .nav-links { order: 3; flex-basis: 100%; gap: 4px 18px; font-size: 13px; }
  .num-lead { font-size: 48px; }
}

/* Zawodnik bez zdjęcia */
.hero-sil { position: relative; z-index: 1; display: block; width: min(400px, 90%); height: auto; }
.roster-sil { position: relative; z-index: 1; width: 190px; height: auto; display: block; }
.roster-pic:has(.roster-sil) .roster-no { display: none; }

/* Rywale i zapowiedź meczu */
.opp-logo { flex: 0 0 auto; border-radius: 50%; object-fit: contain; background: #fff; display: inline-block; }
.opp-initials { display: inline-flex; align-items: center; justify-content: center; background: #2A2A31; color: var(--soft); font-family: var(--display); letter-spacing: .02em; border: 1px solid var(--edge); }
.us-logo { background: transparent; border-radius: 0; }
.matchup { min-height: 0; justify-content: center; }
.matchup-in { flex: 1 1 100%; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.matchup-teams { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; }
.matchup-team { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 220px; }
.matchup-team .team-name { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .02em; line-height: 1.1; }
.matchup-vs { font-family: var(--display); font-size: 56px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown { font-size: 16px; font-weight: 800; color: var(--txt); background: rgba(14,14,16,.6); border: 1px solid rgba(247,246,250,.12); border-radius: 999px; padding: 10px 18px; }
.game-next { border-color: rgba(255,61,154,.45); }
@media (max-width: 640px) {
  .matchup-in { padding: 28px 12px; gap: 20px; }
  .matchup-teams { flex-wrap: nowrap; gap: 10px; }
  .matchup-team { width: 112px; gap: 10px; }
  .matchup .opp-logo { width: 76px !important; height: 76px !important; font-size: 26px !important; }
  .matchup-team .team-name { font-size: 17px; }
  .matchup-vs { font-size: 32px; }
  .countdown { font-size: 14px; }
  .game-row .opp-logo { width: 32px !important; height: 32px !important; font-size: 12px !important; }
  .game-row { flex-wrap: wrap; row-gap: 8px; }
  .game-row .game-date { flex-basis: 100%; flex-direction: row; gap: 8px; align-items: baseline; }
  .game-row .game-date .small { display: inline; }
  .game-row .name-m { font-size: 20px; min-width: 0; flex: 1 1 0; }
  .game-next .badge { display: none; }
  .game-row .game-date .strong { font-size: 13px; white-space: nowrap; }
}
