/* ===== v0.70 baner klubu: jeden spokojny, szklany styl (jak panele z v0.66), kolor tylko na akcentach ===== */
/* Ten sam baner stoi w Twoim klubie i na stronie każdego innego klubu (clubBanner w js/klub.js). */
.cb { margin-bottom: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background-color: #0d1018; background-size: cover; background-position: center;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.cb-top { display: flex; align-items: center; gap: 16px; padding: 18px 20px 14px; }
.cb-crest { flex: none; line-height: 0; }
.cb-crest > * { width: 84px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.cb-id { flex: 1; min-width: 0; }
.cb-name { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; text-align: left; font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: 1px; color: #fff; }
.cb-name small { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #c9cfdb; padding: 3px 7px; border-radius: 6px;
  background: rgba(17,21,30,.6); border: 1px solid rgba(255,255,255,.12); text-shadow: none; position: relative; top: -4px; }
.cb-sub { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: #c9cfdb; }
.cb-dot { font-style: normal; opacity: .45; }
.cb-me { display: inline-flex; align-items: center; gap: 5px; }
.cb-me b { color: var(--acc); font-weight: 600; }
.cb-me i, .cb-role i { font-style: normal; line-height: 0; display: inline-flex; }
.cb-me img, .cb-role img { width: 18px !important; height: 18px !important; display: block; }
.cb-board { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cb-role { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 11px 4px 7px; border-radius: 999px; font-size: 13px;
  background: rgba(17,21,30,.62); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cb-role small { color: #9aa3b2; font-size: 12px; }
.cb-role b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; }
.cb-role.empty { opacity: .6; }
.cb-role.empty img { filter: grayscale(1) brightness(.85); }
.cb-role.empty b { color: #8e97ad; font-weight: 400; }
.cb-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
/* statystyki w jednym szklanym pasku z przegródkami */
.cb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); margin: 0 14px 14px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.055), transparent 60%), rgba(17,21,30,.64); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.cb-stats > div { min-width: 0; padding: 10px 10px 9px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.cb-stats > div:first-child { border-left: 0; }
.cb-stats b { display: block; font-size: 20px; line-height: 23px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cb-stats small { display: block; margin-top: 2px; font-size: 11px; color: #9aa3b2; text-transform: uppercase; letter-spacing: .06em; }
.cb-stats em { display: block; font-style: normal; font-size: 11px; color: #7f8898; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-form span { display: flex; justify-content: center; align-items: center; gap: 3px; height: 23px; }
.cb-form .cf { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; text-shadow: none; }
/* wersja skrócona nad zakładkami innymi niż Klub */
.cb.mini .cb-top { padding: 10px 14px; gap: 12px; }
.cb.mini .cb-crest > * { width: 44px; }
.cb.mini .cb-name { font-size: 26px; }
.cb.mini .cb-sub { margin-top: 3px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cb-stats, .cb-role { background: rgba(22,26,35,.94); } }

/* zakładki klubu: jeden rząd, zarząd jako osobna grupa z małą etykietą */
.cb-tabs { gap: 4px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 1px 0 3px; }
.cb-tabs::-webkit-scrollbar { display: none; }
.cb-tabs button { flex: none; display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 10px; font-size: 13px; }
.cb-tabs .tab-ico { width: 16px; height: 16px; margin-right: 5px; vertical-align: 0; }
.cb-tgroup { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.14); }
.cb-tlab { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #8e97ad; margin-right: 2px; }

@media (max-width: 760px) {
  .cb-top { align-items: flex-start; gap: 12px; padding: 14px 14px 12px; }
  .cb-crest > * { width: 58px; }
  .cb-name { font-size: 28px; }
  .cb-side { flex-basis: 100%; flex-direction: row; justify-content: flex-start; }
  .cb-top { flex-wrap: wrap; }
  .cb-id { flex: 1 1 200px; }
  .cb-stats { grid-template-columns: repeat(3, 1fr); margin: 0 10px 10px; }
  .cb-stats > div { padding: 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
  .cb-stats > div:nth-child(3n+1) { border-left: 0; }
  .cb-stats > div:nth-child(-n+3) { border-top: 0; }
  .cb-stats em { white-space: normal; line-height: 1.25; }
  .cb-stats.n4 { grid-template-columns: repeat(4, 1fr); } /* obcy klub bez skarbca i formy: jeden rząd */
  .cb-stats.n4 > div { border-top: 0; border-left: 1px solid rgba(255,255,255,.08); } .cb-stats.n4 > div:first-child { border-left: 0; }
  .cb-stats b { font-size: 17px; line-height: 21px; }
  .cb-stats small { font-size: 9.5px; letter-spacing: .04em; }
  .cb-form span { height: 21px; }
  .cb-role { font-size: 12px; padding: 3px 9px 3px 6px; }
  .cb-role small { font-size: 11px; }
  /* rząd zakładek przewija się w bok: miękka krawędź po prawej podpowiada, że jest ich więcej */
  .cb-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 28px; }
}

/* ===== strony publiczne: klub, bot, wyszukiwarka ===== */
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pub-m { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.pub-m:last-child { border-bottom: 0; }
.pub-m > small { grid-column: 1 / -1; order: -1; font-size: 11px; } /* rozgrywki i termin nad wierszem: w wąskiej kolumnie nazwy się mieszczą */
.pub-m > button { grid-column: 4; }
.pub-m > b { font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.pub-m.w > b { color: var(--green); } .pub-m.l > b { color: var(--red); }
.pub-mt { min-width: 0; overflow: hidden; } .pub-mt.r { text-align: right; }
.pub-mt a, a.pub-club { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: nowrap; vertical-align: middle; }
a.pub-club span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pub-mt.r a { flex-direction: row-reverse; }
.pub-mt .crest-img, .pub-mt svg, a.pub-club .crest-img, a.pub-club svg { flex: none; }
.pub-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); margin: 6px 0 12px; border-radius: 12px; overflow: hidden; background: rgba(7,8,12,.35); border: 1px solid rgba(255,255,255,.08); }
.pub-kv > div { padding: 8px 6px; text-align: center; border-left: 1px solid rgba(255,255,255,.06); }
.pub-kv > div:first-child { border-left: 0; }
.pub-kv b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.pub-kv small { color: var(--muted); font-size: 11px; }
.pub-kv b small { font-size: 11px; font-weight: 400; }
.pub-tro { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pub-tro > div { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(7,8,12,.35); border: 1px solid rgba(255,255,255,.08); }
.pub-tro i { grid-row: span 2; font-style: normal; font-size: 24px; text-align: center; }
.pub-tro .p1 { border-color: rgba(255,210,63,.35); }
.pub-tblw { overflow-x: auto; }
.pub-sq td { padding: 6px 8px; } .pub-sq tr.on td { background: rgba(198,255,0,.05); }
.pub-sq .pub-who { white-space: nowrap; }
.vp-p[data-bot], .vp-p[data-profile] { cursor: pointer; }
.pub-bhero .phero-sub .rk-pos { font-style: normal; }
/* wyszukiwarka w Rankingu */
.pub-find { position: relative; margin: -6px 0 14px; max-width: 520px; }
.pub-find input { margin: 0; border-radius: 999px; padding: 10px 16px; background: rgba(17,21,30,.7); border-color: rgba(255,255,255,.12); }
.pub-find input:focus { outline: none; border-color: rgba(198,255,0,.5); }
.pub-res { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); padding: 8px 12px; border-radius: 14px; background: rgba(17,21,30,.92); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(0,0,0,.45); max-height: 60vh; overflow-y: auto; }
.pub-res h4 { margin: 8px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pub-hit { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.pub-hit > div { display: flex; flex-direction: column; min-width: 0; }
.pub-hit .crest-img { flex: none; }
@media (max-width: 760px) {
  .pub-m { font-size: 12px; }
  .pub-find { margin-top: 0; max-width: none; }
}
