.competition-filters,
.competition-schedule-tools,
.competition-activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 18px;
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: #151515;
}

.competition-field { display: grid; gap: 6px; min-width: 0; }
.competition-field > :is(span, label) { color: #bdbdbd; font-size: .75rem; font-weight: 650; }
.competition-tabs { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.competition-tabs[hidden] { display: none; }
.competition-tabs button {
  min-height: 35px;
  padding: 5px 11px;
  border: 1px solid #434343;
  border-radius: 6px;
  color: #e1e1e1;
  background: #101010;
  font: 650 .8125rem/1.2 'Inter', system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.competition-tabs button:hover { border-color: #828282; background: #282828; }
.competition-tabs button[aria-pressed="true"] { border-color: #eee; background: #eee; color: #131313; }
.competition-tabs small { margin-left: 3px; font: inherit; opacity: .75; }
.competition-tabs button:focus-visible,
:is(.competition-tournament-link, .competition-match-link, .activity-entry a, .competition-stat-row a):focus-visible {
  outline: 2px solid #e7e7e7;
  outline-offset: -2px;
}

.competition-empty {
  padding: 24px 16px;
  border: 1px dashed #4a4a4a;
  border-radius: 9px;
  color: #c1c1c1;
  background: #141414;
  text-align: center;
}

.competition-tournaments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr)); gap: 12px; }

#turniejeGrid .competition-tournament {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #161616;
  transform: none;
}

#turniejeGrid .competition-tournament::before { content: none; }
#turniejeGrid .competition-tournament:hover { box-shadow: none; }
#turniejeGrid .competition-tournament.t-drag-over { border-color: #eee; }
.competition-tournament-link { display: grid; height: 100%; grid-template-rows: auto 1fr auto; color: #f2f2f2; text-decoration: none; }
.competition-tournament-top {
  display: flex;
  min-height: 88px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--site-line);
  background: repeating-linear-gradient(121deg, #1e1e1e, #1e1e1e 10px, #1b1b1b 10px, #1b1b1b 23px);
}
.t-draggable .competition-tournament-top { padding-right: 43px; }
.competition-tournament .competition-tournament-logo,
.competition-schedule-head .competition-schedule-logo {
  display: grid;
  width: 61px;
  height: 61px;
  flex: none;
  place-items: center;
  padding: 7px;
  border: 1px solid #464646;
  border-radius: 8px;
  background: #121212;
  object-fit: contain;
}
.competition-tournament-logo svg, .competition-schedule-logo svg { width: 26px; height: 26px; }
.competition-status {
  padding: 4px 7px;
  border: 1px solid #515151;
  border-radius: 5px;
  background: #141414;
  color: #eee;
  font-size: .72rem;
  font-weight: 650;
}
.competition-tournament-name { display: grid; align-content: start; gap: 5px; padding: 13px; }
.competition-tournament-name > span, .competition-tournament-foot { color: #bcbcbc; font-size: .8rem; }
.competition-tournament-name h2 { margin: 0; color: #f2f2f2; font: 800 clamp(1.6rem, 3.1vw, 2.15rem)/1 var(--site-display); overflow-wrap: anywhere; }
.competition-tournament-foot { display: flex; min-height: 45px; align-items: center; gap: 8px; padding: 6px 13px; border-top: 1px solid var(--site-line); }
.competition-tournament-foot .logo-stack { margin: 0; }
.competition-tournament-foot > span:last-child { margin-left: auto; color: #eee; font-size: 1.1rem; }

.competition-activity-toolbar { align-items: center; justify-content: space-between; }
.activity-day {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: #151515;
}
.activity-day h2, .competition-leaderboard h2 {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #3d3d3d;
  background: #1e1e1e;
  color: #eee;
  font: 750 1.2rem/1.15 var(--site-display);
}
.activity-day ul, .competition-leaderboard ol { margin: 0; padding: 0; list-style: none; }
.activity-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(120px, .68fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
}
.activity-entry + .activity-entry, .competition-stat-row + .competition-stat-row { border-top: 1px solid #303030; }
.activity-entry time, .activity-time { color: #bcbcbc; font-size: .78rem; font-variant-numeric: tabular-nums; }
.activity-person, .activity-team, .competition-stat-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #eee;
  text-decoration: none;
}
.activity-person strong, .activity-team strong, .competition-stat-player strong { font-size: .875rem; overflow-wrap: anywhere; }
.activity-entry a:hover strong { text-decoration: underline; }
.activity-avatar, .activity-crest {
  display: grid;
  width: 35px;
  height: 35px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid #444;
  border-radius: 50%;
  background: #252525;
  font-size: .85rem;
  font-weight: 750;
}
.activity-crest { border-radius: 7px; }
.activity-avatar img, .activity-crest img { width: 100%; height: 100%; object-fit: cover; }
.activity-crest img { object-fit: contain; padding: 3px; }
.activity-kind { display: flex; align-items: center; gap: 6px; color: #d2d2d2; font-size: .72rem; font-weight: 650; }
.activity-kind > span { display: grid; width: 23px; height: 23px; flex: none; place-items: center; border-radius: 5px; background: #ddd; color: #141414; font-size: .9rem; }
.activity-kind[data-direction="out"] > span { border: 1px solid #555; background: #262626; color: #ededed; }

#terminarzTournTabs { margin: 0 0 12px; }
.competition-schedule-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--site-line); border-radius: 9px 9px 0 0; background: #1c1c1c; }
.competition-schedule-head .competition-schedule-logo { width: 46px; height: 46px; }
.competition-schedule-head h2 { margin: 0; font: 850 clamp(1.55rem, 3vw, 2.35rem)/1 var(--site-display); overflow-wrap: anywhere; }
.competition-schedule-head p { margin: 4px 0 0; color: #bfbfbf; font-size: .8125rem; }
.competition-schedule-tools { justify-content: space-between; align-items: start; border-top: 0; border-radius: 0 0 9px 9px; }
.competition-schedule-tools .competition-tabs { flex: 1 1 230px; }
.competition-schedule-tools .competition-tabs button { min-width: 35px; }
.competition-schedule-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.competition-schedule-actions .btn-mini { min-height: 35px; border-radius: 6px; }
.competition-match-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-bottom: 15px; }
.competition-match-group h3 { grid-column: 1 / -1; margin: 0; color: #ddd; font: 800 1.25rem/1.1 var(--site-display); }
:is(#terminarzView, .detail-match-grid) .competition-match {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: #151515;
  cursor: auto;
}
:is(#terminarzView, .detail-match-grid) .competition-match-suspended { border-color: #875656; }
.competition-match-top, .competition-match-status, .competition-match-date { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.competition-match-top { justify-content: space-between; }
.competition-match-date { color: #bfbfbf; font-size: .75rem; }
.competition-match-date time { color: #eee; font-weight: 650; }
.match-crest-backdrop { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.match-crest-backdrop > span { position:absolute; inset-block:0; width:50%; overflow:hidden; }
.match-crest-backdrop img { position:absolute; top:50%; width:116%; height:175%; max-width:none; object-fit:contain; opacity:.21; }
.match-crest-home { left:0; mask-image:linear-gradient(to right, #000 77%, transparent); }
.match-crest-away { right:0; mask-image:linear-gradient(to left, #000 77%, transparent); }
.match-crest-home img { left:46%; transform:translate(-50%,-50%) rotate(-13deg) scale(var(--match-crest-scale, 3)); }
.match-crest-away img { left:54%; transform:translate(-50%,-50%) rotate(13deg) scale(var(--match-crest-scale, 3)); }
#terminarzView .match-crest-backdrop { --match-crest-scale: 4.3125; }

.competition-match-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  border: 1px solid #424242;
  border-radius: 8px;
  background: linear-gradient(90deg, #262626, #151515 48%, #151515 52%, #262626);
  color: #eee;
  text-decoration: none;
}
.competition-match-link:hover { border-color: #777; }
.competition-match-scoreline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 13px 7px 11px;
}
.competition-match-team { display:flex; min-width:0; flex-direction:column; align-items:center; gap:6px; font-size:.85rem; text-align:center; }
.competition-match-team strong { overflow-wrap:anywhere; }
.competition-match-team img { width:clamp(35px, 6vw, 48px); height:clamp(35px, 6vw, 48px); object-fit:contain; flex:none; filter:drop-shadow(0 2px 4px #000b); }
#terminarzView .competition-match-team img { width:clamp(50.3125px, 8.625vw, 69px); height:clamp(50.3125px, 8.625vw, 69px); }
.competition-match-score .th-score, .competition-match-score .th-vs { padding:4px 6px; background:#111; border-radius:5px; }
.competition-match-score .th-score { font:800 1.75rem/1 var(--site-display); }
.competition-match-score .th-score .score-sep { font-size:.85em; top:-.08em; margin:0 4px; }
.competition-match-score .score-num { min-width:13px; font-size:1.4rem; }
.competition-match-details {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-top: 1px solid #ffffff20;
  color: #ddd;
  background: #131313e8;
  font-size: .75rem;
  font-weight: 650;
}
.competition-match-link:hover .competition-match-details { color:#fff; background:#242424; }
.competition-match .th-deadline-corner { position: static; justify-self: start; width: max-content; max-width: 100%; }
.competition-match .th-suspend-badge { margin: 0; justify-self: start; max-width: 100%; }
.competition-match .vote-widget { margin: 0; padding: 5px 7px; border-radius: 5px; }

.public-rank-controls { align-items: end; }
.public-rank-category { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; flex:1 1 100%; min-width:0; }
.public-rank-controls [hidden] { display:none !important; }
.public-rank-search { flex:1 1 230px; }
#rankingClearBtn { display:inline-flex; }
#rankingContent { scroll-margin-top:86px; }

.public-rank-podium, .public-rank-list { margin:0; padding:0; list-style:none; }
.public-rank-podium { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin-bottom:12px; }
.public-rank-entry { min-width:0; background:#171717; }
.public-rank-podium .public-rank-entry {
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:9px;
  align-items:center;
  padding:12px;
  border:1px solid #414141;
  border-radius:9px;
}
.public-rank-podium [data-rank="1"] { border-color:#7c7c7c; background:linear-gradient(135deg,#2b2b2b,#191919 75%); }
.public-rank-podium .public-rank-metrics { grid-column:1/-1; }
.public-rank-list { overflow:hidden; border:1px solid #373737; border-radius:9px; }
.public-rank-list .public-rank-entry {
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) minmax(230px, 43%);
  gap:10px;
  align-items:center;
  padding:8px 12px;
}
.public-rank-list .public-rank-entry + .public-rank-entry { border-top:1px solid #323232; }
.public-rank-place {
  display:grid;
  min-width:34px;
  min-height:32px;
  place-items:center;
  padding:3px 5px;
  border:1px solid #414141;
  border-radius:6px;
  background:#212121;
  color:#ddd;
  font:800 .875rem/1 'Inter', sans-serif;
  font-variant-numeric:tabular-nums;
}
.public-rank-podium .public-rank-place { min-width:35px; min-height:35px; font-size:1.05rem; }
.public-rank-podium [data-rank="1"] .public-rank-place { background:#eee; border-color:#eee; color:#121212; }
.public-rank-person { display:flex; align-items:center; gap:7px; min-width:0; color:#f2f2f2; text-decoration:none; }
.public-rank-person:hover strong { text-decoration:underline; text-underline-offset:3px; }
.public-rank-person > span:last-child { display:grid; gap:3px; min-width:0; }
.public-rank-person strong, .public-rank-person small { overflow-wrap:anywhere; }
.public-rank-person strong { font-size:.875rem; line-height:1.2; }
.public-rank-person small { color:#bcbcbc; font-size:.75rem; line-height:1.25; }
.public-rank-podium .activity-avatar { width:40px; height:40px; }
.public-rank-team .activity-avatar { padding:4px; border-radius:6px; }
.public-rank-team .activity-avatar img { object-fit:contain; }
.public-rank-metrics { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); margin:0; min-width:0; }
.public-rank-metrics > div {
  display:flex;
  min-width:0;
  flex-direction:column-reverse;
  gap:3px;
  padding:3px 5px;
  border-inline-start:1px solid #3a3a3a;
  text-align:center;
}
.public-rank-metrics dt { color:#bcbcbc; font-size:.7rem; line-height:1.25; }
.public-rank-metrics dd { margin:0; color:#eee; font:750 1rem/1.05 'Inter', sans-serif; font-variant-numeric:tabular-nums; }
.public-rank-metrics > div:first-child dd { font-size:1.15rem; }
.public-rank-podium .public-rank-metrics > div:first-child { border-inline-start:0; }
.public-rank-podium .public-rank-metrics { padding-top:9px; border-top:1px solid #3b3b3b; }
@media (max-width:740px) {
  .public-rank-podium { grid-template-columns:1fr; gap:6px; }
  .public-rank-podium .public-rank-entry { grid-template-columns:auto minmax(0, 1fr) minmax(180px, 48%); padding:8px; }
  .public-rank-podium .public-rank-metrics { grid-column:auto; padding:0; border:0; }
  .public-rank-podium .activity-avatar { width:35px; height:35px; }
}
@media (max-width:480px) {
  .public-rank-controls { padding:9px; }
  .public-rank-podium .public-rank-entry, .public-rank-list .public-rank-entry { grid-template-columns:auto minmax(0, 1fr); gap:7px; padding:8px; }
  .public-rank-entry .public-rank-metrics { grid-column:1/-1; padding-top:6px; border-top:1px solid #373737; }
  .public-rank-metrics > div:first-child { border-inline-start:0; }
}
#statsView .competition-filters {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
  align-items: start;
}
.competition-search { display: flex; align-items: stretch; gap: 5px; }
.competition-search input {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  padding: 5px 9px;
  border: 1px solid #434343;
  border-radius: 6px;
  background: #101010;
  color: #eee;
  font: inherit;
  font-size: .8125rem;
}
.competition-search input::-webkit-search-cancel-button { display: none; }
.competition-search button {
  min-width: 35px;
  align-items: center;
  justify-content: center;
  border: 1px solid #434343;
  border-radius: 6px;
  background: #212121;
  color: #eee;
  font-size: 1.125rem;
}
.competition-leaderboard {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: #151515;
}
.competition-leaderboard h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.competition-leaderboard h2 span { color: #c1c1c1; font: 650 .75rem/1.2 'Inter', system-ui, sans-serif; }
.competition-stat-row a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(60px, 23%) minmax(50px, auto);
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  color: #eee;
  text-decoration: none;
}
.competition-stat-row a:hover { background: #212121; }
.competition-stat-rank { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #3f3f3f; border-radius: 5px; color: #c8c8c8; font: 750 .8125rem/1 'Inter', system-ui, sans-serif; }
.competition-stat-row[data-rank="1"] .competition-stat-rank { border-color: #ededed; background: #ededed; color: #111; }
.competition-stat-player > span:last-child { display: grid; gap: 3px; min-width: 0; }
.competition-stat-player small { color: #bcbcbc; font-size: .75rem; overflow-wrap: anywhere; }
.competition-stat-bar { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 3px; background: #373737; }
.competition-stat-bar span { display: block; height: 100%; background: #bbb; }
.competition-stat-value { color: #f3f3f3; font: 800 clamp(1.2rem, 3vw, 1.6rem)/1 var(--site-display); font-variant-numeric: tabular-nums; text-align: right; }

#panelRepkiBox .nt-club-assignments { display: grid; gap: 8px; }
.nt-club-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #3c3c3c;
  border-radius: 7px;
  background: #101010;
}
.nt-club-assignment label { display: flex; min-width: 0; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.nt-club-assignment select.nt-input { width: 100%; min-width: 0; }
.nt-club-assignment option { background: #161616; color: #eee; }

@media (max-width: 650px) {
  #statsView .competition-filters { grid-template-columns: minmax(0, 1fr); }
  .activity-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 8px; padding-inline: 9px; }
  .activity-entry :is(time, .activity-time) { grid-column: 1; grid-row: 1; }
  .activity-kind { grid-column: 2; grid-row: 1; }
  .activity-entry :is(.activity-person, .activity-team) { grid-row: 2; }
  .competition-stat-row a { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; padding-inline: 8px; }
  .competition-stat-bar { display: none; }
}
@media (max-width: 430px) {
  .nt-club-assignment { grid-template-columns: minmax(0, 1fr) auto; }
  .nt-club-assignment label { grid-column: 1 / -1; }
}
