/* ==========================================================================
   DRE4M — WIDOK TURNIEJU (TURNIEJ / TABELA / TERMINARZ / DRUŻYNY)
   Odtworzenie wyglądu SuperLigi: pasek z logo i nawigacją, hero z reflektorami
   i liniami boiska, chromowany tytuł, pasek wyników, tabela, kafle meczów.
   ========================================================================== */
:root{ --th-display:'Barlow Condensed','Space Grotesk','Inter',sans-serif; }

.th-page{ position:relative; }

/* ---------- Pasek turnieju (logo + nawigacja) ---------- */
.th-bar{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  padding:4px 0 14px; margin-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.th-back{
  width:36px; height:36px; flex:0 0 auto; border-radius:50%;
  border:1px solid var(--line2); background:transparent; color:var(--ink-dim);
  font-size:16px; line-height:1; transition:color .2s,border-color .2s,transform .2s;
}
.th-back:hover{ color:#fff; border-color:#fff; transform:translateX(-2px); }
.th-brand{ display:flex; align-items:center; gap:10px; min-width:0; flex:0 1 auto; }
.th-brand-name{
  font-family:var(--th-display); font-weight:800; font-size:28px; line-height:1;
  text-transform:uppercase; letter-spacing:.04em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:46vw;
}
.th-brand-lead{ color:#fff; }
.th-chrome{
  background:linear-gradient(180deg,#fff 0%,#d9d9d9 42%,#8c8c8c 52%,#ececec 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.th-outline{ color:transparent; -webkit-text-stroke:2px rgba(255,255,255,.9); }

img.th-logo,span.th-logo{
  width:40px; height:40px; flex:0 0 auto; object-fit:contain;
  transition:transform .6s cubic-bezier(.34,1.56,.64,1);
}
.th-brand:hover .th-logo{ transform:rotate(-6deg) scale(1.1); }
.th-logo.sm{ width:26px; height:26px; margin-right:6px; vertical-align:middle; }
.th-logo-fallback{ display:inline-flex; align-items:center; justify-content:center; color:rgba(255,255,255,.55); }
.th-logo-fallback svg{ width:100%; height:100%; }
.th-logo.xl{ width:clamp(190px,32vw,350px); height:clamp(190px,32vw,350px); }
.th-logo.xl.th-logo-fallback{ color:rgba(255,255,255,.4); }

.th-nav{ display:flex; align-items:center; justify-content:center; gap:2px; flex:1 1 auto; }
.th-nav-link{
  position:relative; background:transparent; border:0; padding:9px 14px;
  font-family:var(--th-display); font-size:19px; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase; color:var(--ink-dim);
  white-space:nowrap; transition:color .3s;
}
.th-nav-link::after{
  content:''; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background:#fff;
  transform:scaleX(0); transform-origin:left; transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.th-nav-link:hover{ color:#fff; }
.th-nav-link:hover::after,
.th-nav-link.active::after{ transform:scaleX(1); }
.th-nav-link.active{ color:#fff; }
.th-bar-actions{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }

.th-btn{
  display:inline-block; padding:13px 28px; border-radius:6px; cursor:pointer;
  font-family:var(--th-display); font-size:18px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:#fff;
  border:1px solid rgba(255,255,255,.25); background:transparent;
  transition:background .3s,border-color .3s,box-shadow .3s,color .3s;
}
.th-btn:hover{ border-color:#fff; background:rgba(255,255,255,.06); }
.th-btn.solid{ background:#fff; color:#000; border-color:#fff; }
.th-btn.solid:hover{ background:#e4e4e4; box-shadow:0 12px 32px -10px rgba(255,255,255,.55); }
.th-btn.sm{ padding:7px 14px; font-size:14px; }
.th-btn.danger{ border-color:rgba(255,107,107,.5); color:#ff8b8b; }
.th-btn.danger:hover{ background:rgba(255,107,107,.1); border-color:#ff6b6b; }

@media (max-width:820px){
  .th-nav{ order:4; flex-basis:100%; justify-content:flex-start; overflow-x:auto; scrollbar-width:none; }
  .th-nav::-webkit-scrollbar{ display:none; }
  .th-bar-actions{ margin-left:auto; }
  .th-brand-name{ font-size:24px; max-width:52vw; }
}

/* ---------- Nagłówek podstrony (Tabela / Terminarz / Drużyny) ---------- */
.th-pagehead{ position:relative; margin-bottom:34px; padding-bottom:28px; border-bottom:1px solid rgba(255,255,255,.1); }
.th-pagehead::before{
  content:''; position:absolute; top:-90px; right:0; z-index:-1; width:32rem; max-width:100%; height:18rem;
  border-radius:50%; background:rgba(255,255,255,.05); filter:blur(100px); pointer-events:none;
}
.th-eyebrow{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--ink-dim);
}
.th-pulse{ width:6px; height:6px; border-radius:50%; background:#fff; animation:thPulse 1.8s ease-in-out infinite; }
@keyframes thPulse{ 50%{ opacity:.25; } }
.th-pagehead h1{
  margin-top:8px; font-family:var(--th-display); font-weight:900; text-transform:uppercase;
  line-height:.9; letter-spacing:-.005em; font-size:clamp(3rem,10vw,5.8rem); color:#fff;
  animation:thRise .7s cubic-bezier(.22,1,.36,1) both;
}
.th-pagehead p{ margin-top:14px; max-width:42rem; font-size:14px; line-height:1.65; color:var(--ink-dim); }
@keyframes thRise{ from{ opacity:0; transform:translateY(34px); } to{ opacity:1; transform:none; } }

/* ---------- HERO ---------- */
.th-hero{
  position:relative; isolation:isolate; overflow:hidden;
  border:1px solid rgba(255,255,255,.1); border-radius:24px; background:#040404;
}
.th-pitch{
  position:absolute; inset:0; z-index:-1; opacity:.85; pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 90px,transparent 90px 180px),
    radial-gradient(circle at 50% 50%,transparent 0 96px,rgba(255,255,255,.08) 97px 99px,transparent 100px);
  -webkit-mask-image:linear-gradient(#000 35%,transparent 100%);
          mask-image:linear-gradient(#000 35%,transparent 100%);
}
.th-pitch::before{ content:''; position:absolute; inset:26px; border:1px solid rgba(255,255,255,.07); border-radius:10px; }
.th-pitch::after{ content:''; position:absolute; left:50%; top:26px; bottom:26px; width:1px; background:rgba(255,255,255,.07); }
.th-flood{ position:absolute; top:-12%; width:62%; height:125%; z-index:-1; pointer-events:none; filter:blur(16px); }
.th-flood.l{ left:-6%; background:conic-gradient(from 112deg at 6% 0%,transparent 0deg,rgba(255,255,255,.15) 20deg,transparent 42deg); }
.th-flood.r{ right:-6%; background:conic-gradient(from 206deg at 94% 0%,transparent 0deg,rgba(255,255,255,.15) 20deg,transparent 42deg); }
.th-hero::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.07; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.th-hero-in{
  position:relative; z-index:1; display:grid; grid-template-columns:1fr; gap:34px; align-items:center;
  padding:46px 24px 40px;
}
.th-title{
  margin-top:18px; font-family:var(--th-display); font-weight:900; text-transform:uppercase;
  line-height:.84; letter-spacing:-.005em; font-size:var(--th-size,6rem); word-break:break-word;
}
.th-line{ display:block; padding-bottom:.05em; animation:thRise .9s cubic-bezier(.22,1,.36,1) both; }
.th-line:nth-child(2){ animation-delay:.12s; }
.th-line:nth-child(3){ animation-delay:.24s; }
.th-lead{ margin-top:20px; max-width:30rem; font-size:16px; line-height:1.65; color:#b9b4aa; animation:thFade .8s .3s both; }
.th-lead b{ color:#fff; }
.th-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; animation:thFade .8s .4s both; }
@keyframes thFade{ from{ opacity:0; } to{ opacity:1; } }

.th-progress{ margin-top:36px; max-width:30rem; animation:thFade .8s .5s both; }
.th-progress-top{
  display:flex; justify-content:space-between; gap:10px; margin-bottom:9px;
  font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-dim);
}
.th-segs{ display:flex; gap:4px; }
.th-seg{ flex:1; height:6px; border-radius:99px; background:rgba(255,255,255,.12); }
.th-seg.done{ background:#fff; }
.th-seg.live{ background:#bdbdbd; animation:thPulse 1.8s ease-in-out infinite; }

.th-hero-logo{ position:relative; display:flex; align-items:center; justify-content:center; min-height:240px; }
.th-hero-logo::before{
  content:''; position:absolute; width:78%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.17),transparent 66%); filter:blur(8px);
}
.th-ring{
  position:absolute; width:88%; aspect-ratio:1; border-radius:50%;
  border:1px dashed rgba(255,255,255,.2); animation:thSpin 50s linear infinite;
}
.th-hero-logo .th-logo.xl{
  position:relative; z-index:1; filter:drop-shadow(0 28px 50px rgba(255,255,255,.22));
  animation:thFloat 7s ease-in-out infinite;
}
@keyframes thFloat{ 50%{ transform:translateY(-10px); } }
@keyframes thSpin{ to{ transform:rotate(360deg); } }

/* ---------- Pasek ostatnich wyników ---------- */
.th-ticker{
  overflow:hidden; margin-top:18px; border-block:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.015);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.th-ticker-track{ display:flex; width:max-content; animation:thTick 70s linear infinite; }
.th-ticker:hover .th-ticker-track{ animation-play-state:paused; }
@keyframes thTick{ to{ transform:translateX(-50%); } }
.th-tick{
  display:flex; align-items:center; gap:10px; padding:13px 26px; white-space:nowrap;
  font-family:var(--th-display); font-weight:700; font-size:20px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-dim);
}
.th-tick i{ font:400 10px 'JetBrains Mono',monospace; letter-spacing:.2em; color:#5c5c5c; }
.th-tick em{ font-style:normal; min-width:3.2rem; text-align:center; color:#fff; }
.th-tick .th-mini{ width:22px; height:22px; border-radius:50%; border:1px solid rgba(255,255,255,.15); background:#000 center/cover no-repeat; }

/* ---------- Statystyki + czołówka ---------- */
.th-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:18px; }
.th-stat{
  border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:18px 14px; text-align:center;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
  transition:transform .35s cubic-bezier(.34,1.56,.64,1),border-color .25s;
}
.th-stat:hover{ transform:translateY(-3px); border-color:rgba(255,255,255,.35); }
.th-stat b{ display:block; font-family:var(--th-display); font-size:42px; font-weight:800; line-height:1; color:#fff; }
.th-stat span{ display:block; margin-top:6px; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-dim); }

.th-sec{ margin-top:34px; }
.th-sec-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.th-sec-head h3{ font-family:var(--th-display); font-size:30px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.th-sec-head button{ background:transparent; border:0; color:var(--ink-dim); font-family:var(--th-display); font-size:15px; letter-spacing:.14em; text-transform:uppercase; }
.th-sec-head button:hover{ color:#fff; }
.th-top-row{
  display:flex; align-items:center; gap:14px; padding:11px 16px; margin-bottom:6px; cursor:pointer;
  border:1px solid rgba(255,255,255,.08); border-left:2px solid rgba(255,255,255,.3); border-radius:6px;
  transition:transform .3s,background .3s;
}
.th-top-row:first-child{ border-left-color:#fff; }
.th-top-row:hover{ transform:translateX(4px); background:rgba(255,255,255,.05); }
.th-top-pos{ width:34px; font-family:var(--th-display); font-size:24px; font-weight:900; color:#6d6d6d; }
.th-top-row:first-child .th-top-pos{ color:#fff; }
.th-top-row .team-logo{ width:30px; height:30px; flex:0 0 auto; border-radius:50%; border:1px solid rgba(255,255,255,.15); background:#000 center/cover no-repeat; }
.th-top-name{ flex:1; min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.th-top-pts{ font-family:var(--th-display); font-size:26px; font-weight:900; }

/* ---------- Tabela (istniejąca .t-table w stylu wzoru) ---------- */
.th-body .group-block{ overflow-x:auto; margin-bottom:26px; }
.th-body .group-block h4{ margin-bottom:12px; font-family:var(--th-display); font-size:26px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.th-body .t-table{
  width:100%; min-width:560px; border-collapse:separate; border-spacing:0;
  border:1px solid rgba(255,255,255,.1); border-radius:8px; overflow:hidden; font-size:14px;
}
.th-body .t-table thead th{
  padding:13px 10px; text-align:center; background:rgba(255,255,255,.035);
  border-bottom:1px solid rgba(255,255,255,.1);
  font-family:var(--th-display); font-size:15px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-dim);
}
.th-body .t-table thead th:nth-child(2){ text-align:left; }
.th-body .t-table td{ padding:11px 10px; text-align:center; border-bottom:1px solid rgba(255,255,255,.05); font-family:'JetBrains Mono',monospace; color:#b9b4aa; transition:background .3s; }
.th-body .t-table td.team-cell{ text-align:left; font-family:'Inter',sans-serif; font-weight:500; color:var(--ink); }
.th-body .t-table tbody tr:last-child td{ border-bottom:0; }
.th-body .t-table td:first-child{ width:48px; font-family:var(--th-display); font-size:24px; font-weight:900; color:#6d6d6d; box-shadow:inset 2px 0 rgba(255,255,255,.3); }
.th-body .t-table tbody tr:first-child td:first-child{ color:#fff; box-shadow:inset 2px 0 #fff; }
.th-body .t-table td:last-child{ font-family:var(--th-display); font-size:26px; font-weight:900; color:#fff; }
.th-body .t-table td:last-child b{ font-weight:900; }
.th-body .team-cell .team-cell{ padding:0; }

/* ---------- Terminarz ---------- */
.th-body .round-selector{ display:flex; align-items:center; gap:8px; margin-bottom:22px; overflow-x:auto; padding-bottom:6px; scrollbar-width:none; }
.th-body .round-selector::-webkit-scrollbar{ display:none; }
.th-body .round-selector-label{ flex:0 0 auto; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-dim); }
.th-body .round-btn{
  flex:0 0 auto; min-width:42px; padding:7px 14px; border-radius:6px; background:transparent;
  border:1px solid rgba(255,255,255,.15); color:#b9b4aa;
  font-family:var(--th-display); font-size:17px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  transition:border-color .3s,color .3s,background .3s;
}
.th-body .round-btn:hover{ border-color:rgba(255,255,255,.45); color:#fff; }
.th-body .round-btn.active{ background:#fff; border-color:#fff; color:#000; }
.th-body .match-row{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin-bottom:10px;
  padding:15px 18px; border:1px solid rgba(255,255,255,.1); border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.008));
  transition:transform .3s,border-color .3s,background .3s;
}
.th-body .match-row:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.045); }
.th-body .m-side{ display:flex; align-items:center; gap:12px; min-width:0; }
.th-body .m-home{ justify-content:flex-end; text-align:right; }
.th-body .m-team{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--th-display); font-size:21px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#fff; }
.th-body .m-logo{ width:32px; height:32px; flex:0 0 auto; border-radius:50%; border:1px solid rgba(255,255,255,.15); background-color:#000; background-size:cover; background-position:center; }
.th-body .m-score{ display:flex; align-items:center; justify-content:center; gap:10px; min-width:84px; }
.th-body .score-num{ font-family:var(--th-display); font-size:32px; font-weight:800; color:#fff; }
.th-body .score-sep{ color:#6d6d6d; font-family:var(--th-display); font-size:26px; }
.th-body .m-status{ grid-column:1 / -1; justify-self:center; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-dim); }
.th-body .m-status.done{ color:#cfcfcf; }

/* ---------- Drużyny ---------- */
.th-teams{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.th-teams .th-team{
  position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:30px 14px; text-align:center; cursor:pointer;
  border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(255,255,255,.02);
  transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .35s;
}
.th-teams .th-team::before{ content:''; position:absolute; inset:0; opacity:0; transition:opacity .3s; background:radial-gradient(260px circle at 50% 40%,rgba(255,255,255,.12),transparent 65%); }
.th-teams .th-team:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.4); }
.th-teams .th-team:hover::before{ opacity:1; }
.th-teams .th-team .team-logo{ position:relative; width:68px; height:68px; border-radius:50%; border:1px solid rgba(255,255,255,.15); background-color:#000; background-size:cover; background-position:center; transition:transform .5s cubic-bezier(.34,1.56,.64,1); }
.th-teams .th-team:hover .team-logo{ transform:scale(1.08); }
.th-teams .th-team-name{ position:relative; max-width:100%; font-family:var(--th-display); font-size:19px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- Okno wgrywania logo ---------- */
.th-ov{ position:fixed; inset:0; z-index:1500; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(2,2,2,.82); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.th-ov-box{ position:relative; width:100%; max-width:430px; padding:28px 22px 22px; text-align:center; border:1px solid var(--line2); border-radius:20px; background:radial-gradient(120% 90% at 50% -10%,rgba(255,255,255,.1),transparent 62%),#08090a; animation:thRise .3s cubic-bezier(.22,1,.36,1) both; }
.th-ov-box h3{ font-family:var(--th-display); font-size:32px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.th-ov-box p{ margin-top:2px; font-size:12.5px; color:var(--ink-dim); }
.th-ov-x{ position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%; border:1px solid var(--line2); background:var(--panel); color:var(--ink-dim); }
.th-ov-x:hover{ color:#fff; border-color:#fff; }
.th-ov-prev{ display:flex; align-items:center; justify-content:center; height:170px; margin:18px 0; border:1px dashed rgba(255,255,255,.2); border-radius:14px; background:rgba(255,255,255,.02); }
.th-ov-prev .th-logo{ width:130px; height:130px; }
.th-ov-actions{ display:flex; flex-direction:column; gap:9px; }
.th-ov-actions .th-btn{ width:100%; padding:11px 18px; font-size:16px; }
.th-ov-hint{ margin-top:14px; font-size:11.5px; line-height:1.55; color:var(--ink-dim); }
.th-ov-busy{ opacity:.6; pointer-events:none; }

/* ---------- Wyróżnienia (TURNIEJ) ---------- */
.th-mini{ width:24px; height:24px; flex:0 0 auto; border-radius:50%; border:1px solid rgba(255,255,255,.15); background:#000 center/cover no-repeat; }
.th-hl-grid{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:34px; }
.th-hl{
  display:flex; flex-direction:column; gap:12px; padding:18px;
  border:1px solid rgba(255,255,255,.1); border-radius:10px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
  transition:transform .35s cubic-bezier(.34,1.56,.64,1),border-color .25s;
}
.th-hl:hover{ transform:translateY(-3px); border-color:rgba(255,255,255,.35); }
.th-hl-l{ font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-dim); }
.th-hl-b{ display:flex; align-items:center; gap:10px; min-width:0; font-family:var(--th-display); font-size:22px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.th-hl-b span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.th-hl-v{ font-family:var(--th-display); font-size:40px; font-weight:900; line-height:1; color:#fff; }

/* ---------- Okno edycji napisu ---------- */
.th-ov-title{ margin-top:16px; padding:18px 10px; text-align:center; overflow:hidden; border:1px dashed rgba(255,255,255,.2); border-radius:14px; background:rgba(255,255,255,.02); }
.th-ov-title .th-title{ --th-size:2.6rem !important; margin:0; }
.th-ov-title .th-line{ animation:none; }
.th-ov-text{
  width:100%; margin:12px 0 16px; padding:10px 12px; resize:vertical; text-align:center; text-transform:uppercase;
  border:1px solid var(--line2); border-radius:10px; background:var(--bg-soft); color:var(--ink);
  font-family:'Inter',sans-serif; font-size:16px; font-weight:600; letter-spacing:.04em;
}
.th-ov-text:focus{ outline:none; border-color:#fff; }

/* ---------- Szersze ekrany ---------- */
@media (min-width:720px){
  .th-hero-in{ grid-template-columns:1.15fr 1fr; padding:64px 48px 56px; gap:44px; min-height:500px; }
  .th-stats{ grid-template-columns:repeat(3,1fr); }
  .th-hl-grid{ grid-template-columns:repeat(3,1fr); }
  .th-teams{ grid-template-columns:repeat(3,1fr); }
  .th-body .match-row{ grid-template-columns:1fr auto 1fr auto; }
  .th-body .m-status{ grid-column:auto; min-width:104px; text-align:right; justify-self:end; }
}
@media (min-width:1000px){ .th-teams{ grid-template-columns:repeat(4,1fr); } .th-stats{ grid-template-columns:repeat(6,1fr); } }

/* ---------- Tabela: kanciaste wiersze (bez zaokrąglonych boxów przy najechaniu) ---------- */
.th-body .t-table,
.th-body .t-table thead,
.th-body .t-table tbody,
.th-body .t-table tr,
.th-body .t-table th,
.th-body .t-table td,
.th-body .t-table tr::before,
.th-body .t-table tr::after,
.th-body .t-table td::before,
.th-body .t-table td::after{ border-radius:0 !important; }
.th-body .t-table{ min-width:640px; }
.th-body .t-table tbody tr,
.th-body .t-table tbody tr:hover{ transform:none !important; box-shadow:none !important; outline:0 !important; filter:none !important; }
.th-body .t-table tbody tr:hover td{ background:rgba(255,255,255,.05); }
.th-body .t-table td.th-form-cell{ padding-left:6px; padding-right:6px; }

/* ---------- Forma (5 ostatnich meczów) ---------- */
.th-form{ display:inline-flex; align-items:center; gap:4px; vertical-align:middle; }
.th-form-dot{ display:inline-block; width:10px; height:10px; border-radius:2px; box-sizing:border-box; background:rgba(255,255,255,.06); }
.th-form-dot.w{ background:#fff; }
.th-form-dot.d{ background:#8a8a8a; }
.th-form-dot.l{ background:transparent; border:1px solid rgba(255,255,255,.4); }
.th-form-legend{ display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; font:400 10px 'JetBrains Mono',monospace; letter-spacing:.2em; text-transform:uppercase; color:#6d6d6d; }
.th-form-legend span{ display:flex; align-items:center; gap:6px; }
.th-form-legend .th-form-dot{ width:8px; height:8px; }

/* ---------- Czołówka (klasyfikacja) ---------- */
.th-sec-head:has(.th-eyebrow){ align-items:flex-end; }
.th-sec-head .th-eyebrow{ margin-bottom:2px; }
.th-cl{ overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:6px; }
.th-cl-head,.th-cl-row{ display:grid; grid-template-columns:2.5rem 1fr 2.5rem 3rem; align-items:center; gap:12px; padding:0 16px; }
.th-cl-head{ padding-top:10px; padding-bottom:10px; background:rgba(255,255,255,.03); border-bottom:1px solid rgba(255,255,255,.1); font:400 10px 'JetBrains Mono',monospace; letter-spacing:.2em; text-transform:uppercase; color:#6d6d6d; }
.th-cl-head .th-cl-c,.th-cl-head .th-cl-diff,.th-cl-head .th-cl-r{ font:inherit; color:inherit; }
.th-cl-row{ padding-top:12px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.05); cursor:pointer; transition:background .3s; }
.th-cl-row:last-child{ border-bottom:0; }
.th-cl-row:hover{ background:rgba(255,255,255,.04); }
.th-cl-pos{ font-family:var(--th-display); font-size:30px; font-weight:900; line-height:1; color:#6d6d6d; }
.th-cl-row.lead .th-cl-pos{ color:#fff; }
.th-cl-club{ display:flex; align-items:center; gap:12px; min-width:0; }
.th-cl-row .th-mini{ width:30px; height:30px; }
.th-cl-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; transition:transform .3s; }
.th-cl-row:hover .th-cl-name{ transform:translateX(4px); }
.th-cl-c,.th-cl-diff{ text-align:center; font-family:'JetBrains Mono',monospace; font-size:14px; color:#8a8a8a; }
.th-cl-r{ text-align:right; font-family:var(--th-display); font-size:24px; font-weight:900; color:#fff; }
.th-cl-form,.th-cl-diff{ display:none; }
@media (min-width:640px){
  .th-cl-head,.th-cl-row{ grid-template-columns:3rem 1fr 7rem 3rem 3rem 3.5rem; }
  .th-cl-form,.th-cl-diff{ display:block; }
}

/* ---------- Komórka drużyny w tabeli: klikalne logo + nazwa, bez żadnego pudełka ---------- */
.t-table td.th-tc{ text-align:left; }
.th-body .t-table td.th-tc{
  width:auto; font-family:'Inter',sans-serif; font-size:14px; font-weight:500; color:var(--ink);
  background:transparent; box-shadow:none;
}
.th-tc-link{
  display:inline-flex; align-items:center; gap:10px; max-width:100%; margin:0; padding:0;
  cursor:pointer; color:inherit; background:none; border:0; border-radius:0; box-shadow:none; outline:0;
  transition:transform .3s cubic-bezier(.4,0,.2,1),color .3s;
}
.th-tc-link:hover{ transform:translateX(4px); color:#fff; }
.th-tc-link:focus-visible{ outline:1px solid rgba(255,255,255,.55); outline-offset:4px; }
.th-tc-logo{ width:26px; height:26px; flex:0 0 auto; border-radius:50%; border:1px solid rgba(255,255,255,.15); background:#000 center/cover no-repeat; transition:transform .5s cubic-bezier(.34,1.56,.64,1); }
.th-tc-link:hover .th-tc-logo{ transform:scale(1.08); }
.th-tc-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.t-table td.th-form-cell{ text-align:center; }
.th-tbl-wrap{ overflow-x:auto; }
.th-tbl-wrap .t-table{ min-width:560px; width:100%; border-collapse:separate; border-spacing:0; border:1px solid rgba(255,255,255,.1); font-size:14px; }
.th-tbl-wrap .t-table,
.th-tbl-wrap .t-table thead,
.th-tbl-wrap .t-table tbody,
.th-tbl-wrap .t-table tr,
.th-tbl-wrap .t-table th,
.th-tbl-wrap .t-table td,
.th-tbl-wrap .t-table tr::before,
.th-tbl-wrap .t-table tr::after,
.th-tbl-wrap .t-table td::before,
.th-tbl-wrap .t-table td::after{ border-radius:0 !important; }
.th-tbl-wrap .t-table thead th{ padding:13px 10px; text-align:center; background:rgba(255,255,255,.035); border-bottom:1px solid rgba(255,255,255,.1); font-family:var(--th-display); font-size:15px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-dim); }
.th-tbl-wrap .t-table thead th:nth-child(2){ text-align:left; }
.th-tbl-wrap .t-table td{ padding:11px 10px; text-align:center; border-top:0; border-bottom:1px solid rgba(255,255,255,.05); font-family:'JetBrains Mono',monospace; color:#b9b4aa; background:transparent; }
.th-tbl-wrap .t-table td.th-tc{ text-align:left; font-family:'Inter',sans-serif; }
.th-tbl-wrap .t-table tbody tr:last-child td{ border-bottom:0; }
.th-tbl-wrap .t-table td:first-child{ width:48px; font-family:var(--th-display); font-size:24px; font-weight:900; color:#6d6d6d; box-shadow:inset 2px 0 rgba(255,255,255,.3); }
.th-tbl-wrap .t-table tbody tr:first-child td:first-child{ color:#fff; box-shadow:inset 2px 0 #fff; }
.th-tbl-wrap .t-table td:last-child{ font-family:var(--th-display); font-size:26px; font-weight:900; color:#fff; }
.th-tbl-wrap .t-table td:last-child b{ font-weight:900; }
.th-tbl-wrap .t-table td.th-form-cell{ padding-left:6px; padding-right:6px; }
.th-tbl-wrap .t-table tbody tr,
.th-tbl-wrap .t-table tbody tr:hover{ transform:none !important; box-shadow:none !important; outline:0 !important; filter:none !important; }
.th-tbl-wrap .t-table tbody tr:hover td{ background:rgba(255,255,255,.05); }
.th-tbl-wrap .t-table tr.own-row td{ background:rgba(255,255,255,.07); }
.th-tbl-wrap .t-table tr.own-row td:first-child{ box-shadow:inset 2px 0 #fff; color:#fff; }

/* ---------- Ostatnie mecze drużyny (profil drużyny/reprezentacji) ---------- */
.th-lm-wrap{ margin:4px 0 18px; }
.th-lm-title{ display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; font:400 10px 'JetBrains Mono',monospace; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-dim); }
.th-lm-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); gap:8px; }
.th-lm{
  display:flex; flex-direction:column; align-items:center; gap:7px; padding:12px 8px 10px;
  border:1px solid rgba(255,255,255,.1); border-radius:6px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
  transition:transform .3s cubic-bezier(.34,1.56,.64,1),border-color .25s;
}
.th-lm:hover{ transform:translateY(-3px); border-color:rgba(255,255,255,.35); }
.th-lm-res{ display:grid; place-items:center; width:26px; height:26px; border-radius:3px; box-sizing:border-box; font-family:var(--th-display); font-size:16px; font-weight:900; line-height:1; }
.th-lm.w .th-lm-res{ background:#fff; color:#000; }
.th-lm.d .th-lm-res{ background:#8a8a8a; color:#000; }
.th-lm.l .th-lm-res{ border:1px solid rgba(255,255,255,.45); color:#fff; }
.th-lm-opp{ display:flex; align-items:center; gap:6px; max-width:100%; font-family:var(--th-display); font-size:15px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#cfcfcf; }
.th-lm-opp .th-mini{ width:20px; height:20px; }
.th-lm-score{ font-family:var(--th-display); font-size:26px; font-weight:900; line-height:1; color:#fff; }
.th-lm-k{ font:400 9px 'JetBrains Mono',monospace; letter-spacing:.16em; text-transform:uppercase; color:#6d6d6d; white-space:nowrap; }

/* ---------- Zawieszenia ---------- */
.th-sus-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:22px; }
.th-sus-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:720px){ .th-sus-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .th-sus-grid{ grid-template-columns:repeat(3,1fr); } }
.th-sus{
  display:flex; flex-direction:column; gap:14px; padding:18px;
  border:1px solid rgba(255,255,255,.1); border-left:2px solid #fff; border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
  transition:transform .35s cubic-bezier(.34,1.56,.64,1),border-color .25s;
}
.th-sus:hover{ transform:translateY(-3px); border-color:rgba(255,255,255,.35); border-left-color:#fff; }
.th-sus-top{ display:flex; align-items:center; gap:12px; }
.th-sus-av{ width:46px; height:46px; flex:0 0 auto; border-radius:50%; border:1px solid rgba(255,255,255,.18); background:#0b0b0b center/cover no-repeat; cursor:pointer; }
.th-sus-id{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.th-sus-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--th-display); font-size:22px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#fff; cursor:pointer; }
.th-sus-name:hover{ text-decoration:underline; text-underline-offset:3px; }
.th-sus-club{ display:inline-flex; align-items:center; gap:7px; max-width:100%; cursor:pointer; font-size:12.5px; color:var(--ink-dim); transition:color .25s; }
.th-sus-club:hover{ color:#fff; }
.th-sus-club .th-mini{ width:18px; height:18px; }
.th-sus-club > span:last-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.th-sus-badge{ display:flex; flex-direction:column; align-items:center; min-width:64px; padding:8px 10px 7px; border:1px solid rgba(255,255,255,.18); border-radius:6px; background:rgba(255,255,255,.04); }
.th-sus-badge svg{ width:15px; height:15px; color:#cfcfcf; }
.th-sus-badge b{ margin-top:2px; font-family:var(--th-display); font-size:30px; font-weight:900; line-height:1; color:#fff; }
.th-sus-badge em{ margin-top:3px; font:normal 400 9px 'JetBrains Mono',monospace; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-dim); }
.th-sus-bar{ display:flex; gap:4px; }
.th-sus-bar i{ flex:1; height:6px; border-radius:99px; background:#fff; }
.th-sus-bar i.done{ background:rgba(255,255,255,.14); }
.th-sus-meta{ display:flex; flex-wrap:wrap; gap:6px 16px; font:400 10px 'JetBrains Mono',monospace; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-dim); }
.th-sus-meta b{ color:#fff; font-weight:700; }
.th-sus-reason{ margin:0; padding:10px 12px; border-left:2px solid rgba(255,255,255,.25); background:rgba(255,255,255,.03); font-size:13px; line-height:1.55; color:#b9b4aa; }
.th-sus-reason span{ display:block; margin-bottom:3px; font:400 9px 'JetBrains Mono',monospace; letter-spacing:.22em; text-transform:uppercase; color:#6d6d6d; }
.th-sus-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.th-empty{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:56px 20px; text-align:center; border:1px dashed rgba(255,255,255,.18); border-radius:10px; background:rgba(255,255,255,.015); color:var(--ink-dim); }
.th-empty-ic{ width:48px; height:48px; color:rgba(255,255,255,.7); }
.th-empty-ic svg{ width:100%; height:100%; }
.th-empty b{ font-family:var(--th-display); font-size:28px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#fff; }

/* ---------- Kluby ---------- */
.th-clubs{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.th-club{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; aspect-ratio:1; padding:12px; cursor:pointer;
  border:1px solid rgba(255,255,255,.1); border-radius:6px; background:rgba(255,255,255,.02);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1),border-color .25s,background .25s;
}
.th-club:hover{ transform:translateY(-3px); border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.05); }
.th-clubs .th-club-logo{ width:52px; height:52px; flex:0 0 auto; border-radius:50%; border:1px solid rgba(255,255,255,.15); background:#000 center/cover no-repeat; transition:transform .5s cubic-bezier(.34,1.56,.64,1); }
.th-club:hover .th-club-logo{ transform:scale(1.06); }
.th-club-code{ display:none; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--th-display); font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#6d6d6d; transition:color .3s; }
.th-club:hover .th-club-code{ color:#fff; }
@media (min-width:640px){
  .th-clubs{ grid-template-columns:repeat(7,1fr); }
  .th-club-code{ display:block; }
}

@media (prefers-reduced-motion:reduce){
  .th-hero-logo .th-logo.xl,.th-ring,.th-pulse,.th-seg.live,.th-ticker-track,.th-line,.th-pagehead h1,.th-lead,.th-cta,.th-progress{ animation:none; }
}
