:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-hover: #243044;
  --border: #2d3a4f;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #00a651;
  --accent-hover: #00c261;
  --live: #e63946;
  --finished: #6c757d;
  --upcoming: #457b9d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.pwa-install-banner {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(135deg, #1a3a2a 0%, var(--surface) 55%);
  border-bottom: 1px solid rgba(0, 166, 81, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.pwa-install-banner:not([hidden]) {
  display: flex;
}

.pwa-install-banner__icon {
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pwa-install-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pwa-install-banner__title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.pwa-install-banner__hint {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.pwa-install-banner__btn {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-banner__btn:hover {
  background: var(--accent-hover);
}

.pwa-install-banner__btn[hidden] {
  display: none;
}

.pwa-install-banner__dismiss {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.pwa-install-banner__dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

@media (min-width: 769px) {
  .pwa-install-banner {
    display: none !important;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.main-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.main-tab {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.main-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.main-tab.active {
  color: var(--text);
  background: var(--bg);
  border-bottom-color: var(--accent);
}

.knockout-view {
  padding: 0 1.5rem 2rem;
}

.knockout-intro {
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52rem;
}

.bracket-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.bracket-grid {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  min-width: min-content;
}

.bracket-round {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bracket-round-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.bracket-round-matches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  justify-content: space-around;
}

.bracket-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.bracket-match--live {
  border-color: rgba(230, 57, 70, 0.55);
}

.bracket-match--upcoming {
  border-color: rgba(69, 123, 157, 0.45);
}

.bracket-match-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.68rem;
  color: var(--muted);
}

.bracket-match-id {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bracket-match-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bracket-team {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-top: 1px solid var(--border);
  min-height: 2.1rem;
}

.bracket-team--tbd {
  opacity: 0.72;
}

.bracket-team--tbd .bracket-team-name {
  font-style: italic;
  color: var(--muted);
  font-weight: 500;
}

.bracket-team-slot {
  width: 22px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 3px;
  font-size: 0.7rem;
  color: var(--muted);
}

.bracket-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.bracket-team-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.bracket-score {
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 2.2rem;
  text-align: right;
}

.bracket-score--hidden {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.bracket-match-footer {
  padding: 0.35rem 0.55rem 0.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-reveal--compact {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.bracket-third {
  margin-top: 1.5rem;
  max-width: 240px;
}

.bracket-third-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.toolbar {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolbar[hidden] {
  display: none !important;
}

#search {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
}

.filter:hover,
.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn {
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-watch {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-watch:hover {
  background: rgba(0, 166, 81, 0.15);
}

.btn-reveal {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.btn-reveal:hover {
  border-color: var(--text);
  color: var(--text);
}

.status {
  margin: 0 1.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--live);
  color: #ffb4b4;
}

.match-list {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 2rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
  border-radius: 6px;
}

.match-skeleton {
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}

.match-skeleton-card {
  display: flex;
  align-items: stretch;
}

.match-skeleton--kickoff .match-skeleton-card {
  gap: 0;
}

.skeleton-kickoff {
  flex-shrink: 0;
  width: 4.75rem;
  margin: 0.85rem 0.75rem 0.85rem 1rem;
  border-right: 2px solid var(--border);
  padding-right: 0.75rem;
  min-height: 3.5rem;
}

.match-skeleton-body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.75rem 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skeleton-line--meta {
  width: 45%;
  height: 0.75rem;
}

.skeleton-line--score {
  width: 22%;
  height: 1.1rem;
  align-self: center;
}

.skeleton-line--teams {
  width: 88%;
  height: 0.95rem;
}

.match-skeleton-toolbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-left: 1px solid var(--border);
}

.skeleton-chip {
  width: 2.75rem;
  height: 1.65rem;
}

body.app-loading .main-tabs,
body.app-loading .toolbar,
body.app-loading .header-actions {
  pointer-events: none;
  opacity: 0.55;
}

body.app-loading .match-skeleton {
  opacity: 1;
}

body.app-loading .main-tab:disabled,
body.app-loading .filter:disabled,
body.app-loading #search:disabled,
body.app-loading #reveal-all-btn:disabled {
  cursor: not-allowed;
}

.match-row {
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.match-row:hover {
  background: var(--surface-hover);
}

.match-row.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 166, 81, 0.25);
}

.match-row.is-live {
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
}

.match-card {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.match-accordion-trigger {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem 0.75rem 0.85rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.match-accordion-trigger[aria-disabled="true"] {
  cursor: default;
}

.match-accordion-trigger:not([aria-disabled="true"]) {
  cursor: pointer;
}

.match-accordion-trigger:not([aria-disabled="true"]):hover {
  background: rgba(255, 255, 255, 0.02);
}

.match-summary {
  flex: 1;
  min-width: 0;
}

.match-teams-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-top: 1rem;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.match-team--home {
  justify-self: start;
}

.match-team--away {
  justify-self: end;
  flex-direction: row-reverse;
  text-align: right;
}

.match-team-flag {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.match-team-flag--empty {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.match-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
}

.match-team-name {
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-teams-row .team-link {
  cursor: pointer;
}

.match-score-cell {
  flex-shrink: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.match-chevron {
  position: absolute;
  top: 0.75rem;
  right: 0.5rem;
  transform: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, color 0.15s ease, background 0.15s ease;
}

.match-accordion-trigger:not([aria-disabled="true"]):hover .match-chevron {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.match-row--expanded .match-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.match-toolbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-left: 1px solid var(--border);
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-chip:hover {
  color: var(--text);
  border-color: var(--surface-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-chip.btn-reveal {
  color: var(--text);
  border-color: var(--border);
}

.btn-chip.btn-watch {
  color: var(--accent);
  border-color: rgba(0, 166, 81, 0.35);
}

.btn-chip.btn-watch:hover {
  background: rgba(0, 166, 81, 0.12);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-icon:hover {
  color: var(--text);
  border-color: var(--surface-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-icon.btn-watch {
  color: var(--accent);
  border-color: rgba(0, 166, 81, 0.35);
}

.btn-icon.btn-watch:hover {
  background: rgba(0, 166, 81, 0.12);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.match-details {
  padding: 0.75rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.match-detail-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.match-detail-row + .match-detail-row {
  border-top: 1px solid rgba(45, 58, 79, 0.45);
}

.match-detail-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-detail-value {
  color: var(--text);
  min-width: 0;
}

.match-detail-row--scorers .match-detail-value {
  line-height: 1.45;
}

.kickoff-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  min-width: 4.75rem;
  padding-right: 0.75rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--border);
  text-align: center;
}

.kickoff-relative {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--upcoming);
  margin-bottom: 0.15rem;
}

.kickoff-time {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kickoff-date {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.kickoff-block--today .kickoff-relative,
.kickoff-block--today .kickoff-time {
  color: var(--accent);
}

.match-row.is-today .kickoff-block {
  border-right-color: rgba(0, 166, 81, 0.45);
}

.kickoff-block--live .kickoff-relative,
.kickoff-block--live .kickoff-time {
  color: var(--live);
}

.match-row.is-live .kickoff-block {
  border-right-color: rgba(230, 57, 70, 0.45);
}

.match-datetime {
  font-variant-numeric: tabular-nums;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.badge-live { background: var(--live); color: #fff; }
.badge-finished { background: var(--finished); color: #fff; }
.badge-upcoming { background: var(--upcoming); color: #fff; }

.teams {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.team {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 0;
}

.team img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
}

.vs {
  color: var(--muted);
  font-weight: 400;
}

.score {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.score.hidden {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.scorers {
  font-size: 0.82rem;
  color: var(--muted);
}

.empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

.teams-view {
  padding-bottom: 2rem;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.team-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.team-card:hover {
  background: var(--surface-hover);
  border-color: rgba(0, 166, 81, 0.45);
}

.team-card-flag {
  width: 36px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
}

.team-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.team-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.team-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.team-card-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1;
}

.team-squad-panel {
  padding: 0 1.5rem 2rem;
}

.team-back-btn {
  margin-bottom: 1rem;
}

.squad-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.squad-flag {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}

.squad-header-text {
  flex: 1;
  min-width: 0;
}

.squad-title {
  margin: 0;
  font-size: 1.35rem;
}

.squad-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.squad-tm-link {
  flex-shrink: 0;
}

.squad-section {
  margin-bottom: 1.5rem;
}

.squad-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.squad-sticker-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.85rem;
}

.player-sticker {
  min-width: 0;
}

.sticker-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sticker-card:hover {
  transform: translateY(-3px) rotate(-0.6deg);
}

.sticker-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sticker-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 13.5rem;
  padding: 3px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e8c547 0%, #b8891a 45%, #f5df7a 55%, #a87412 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sticker-photo-wrap {
  position: relative;
  flex: 1;
  min-height: 7.5rem;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #3d4f68 0%, #1a2332 100%);
}

.sticker-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  object-fit: cover;
  object-position: top center;
}

.sticker-photo--empty {
  min-height: 7.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 2px,
      transparent 2px,
      transparent 8px
    );
}

.sticker-flag {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 1.35rem;
  height: 0.95rem;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sticker-number {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  min-width: 1.55rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(15, 20, 25, 0.82);
  border: 1px solid rgba(232, 197, 71, 0.65);
  color: #f5df7a;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.sticker-badge {
  position: absolute;
  left: 0.35rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sticker-badge--captain {
  bottom: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.sticker-badge--goals {
  bottom: 0.35rem;
  left: auto;
  right: 0.35rem;
  background: rgba(0, 166, 81, 0.92);
  color: #fff;
}

.sticker-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.4rem 0.5rem;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, #f7f2e8 0%, #e8dfd0 100%);
  color: #1a1510;
  min-height: 0;
}

.sticker-name {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sticker-meta,
.sticker-club {
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.25;
  color: rgba(26, 21, 16, 0.72);
}

.sticker-club {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Groups standings */
.groups-view {
  padding: 0 1.5rem 2rem;
}

.groups-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.group-card {
  flex: 0 0 22rem;
  width: 22rem;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.group-card-title {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.group-card .standings-scroll {
  overflow: visible;
}

.scorers-scroll {
  overflow-x: auto;
}

.standings-table,
.scorers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.group-card .standings-table {
  table-layout: fixed;
}

.group-card .standings-table th:first-child,
.group-card .standings-table td:first-child {
  width: 1.5rem;
}

.group-card .standings-table th:not(:nth-child(2)),
.group-card .standings-table td:not(:nth-child(2)):not(.standings-team) {
  width: 1.45rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.standings-table th,
.scorers-table th {
  padding: 0.5rem 0.4rem;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.standings-table th:nth-child(2),
.scorers-table th:nth-child(2),
.scorers-table th:nth-child(3) {
  text-align: left;
}

.standings-table td,
.scorers-table td {
  padding: 0.45rem 0.4rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(45, 58, 79, 0.5);
}

.standings-team,
.scorers-team {
  text-align: left;
  min-width: 0;
}

.scorers-team-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.group-card .standings-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.standings-flag,
.scorers-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.standings-rank,
.scorers-rank {
  color: var(--muted);
  font-weight: 700;
}

.standings-pts,
.scorers-goals {
  font-weight: 800;
}

.standings-row {
  cursor: pointer;
  transition: background 0.15s;
}

.standings-row:hover,
.scorer-row:hover {
  background: var(--surface-hover);
}

.standings-row.qualify-direct {
  box-shadow: inset 3px 0 0 var(--accent);
}

.standings-row.qualify-third {
  box-shadow: inset 3px 0 0 #c9a227;
}

/* Scorers view */
.scorers-view {
  padding: 0 1.5rem 2rem;
}

.scorers-name {
  text-align: left;
  font-weight: 700;
}

.scorers-player {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.scorers-photo {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid rgba(232, 197, 71, 0.35);
}

.scorers-photo--empty {
  display: inline-block;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--bg);
}

.scorers-player span,
.scorers-team-inner span {
  min-width: 0;
}

.scorer-row {
  cursor: pointer;
  transition: background 0.15s;
}

.scorer-row--linked:hover {
  color: var(--accent);
}

/* Interactive links */
.team-link,
.scorer-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.team-link:hover,
.scorer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.bracket-team-link {
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorer-link {
  display: inline;
}

.scorer-filter-chip {
  width: 100%;
  margin-top: 0.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 166, 81, 0.15);
  border: 1px solid rgba(0, 166, 81, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
}

.filter-chip-clear {
  padding: 0 0.25rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
}

.filter-chip-clear:hover {
  color: var(--text);
}

.main-tabs {
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .group-card {
    flex: 1 1 100%;
    width: 100%;
  }

  .match-skeleton-card {
    flex-direction: column;
  }

  .skeleton-kickoff {
    width: 100%;
    min-height: 1.75rem;
    margin: 0.6rem 0.65rem 0;
    padding: 0 0 0.45rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .match-skeleton-body {
    padding: 0.55rem 0.65rem;
  }

  .match-skeleton-toolbar {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0.45rem 0.65rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .match-list {
    padding: 0 0.65rem 1.5rem;
  }

  .match-card {
    flex-direction: column;
  }

  .match-accordion-trigger {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.6rem 2.25rem 0.55rem 0.65rem;
  }

  .match-row.has-kickoff .match-accordion-trigger {
    padding-top: 0.55rem;
  }

  .kickoff-block {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.35rem 0.6rem;
    width: 100%;
    min-width: 0;
    padding: 0 0 0.45rem;
    margin: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .match-row.is-today .kickoff-block {
    border-bottom-color: rgba(0, 166, 81, 0.45);
  }

  .match-row.is-live .kickoff-block {
    border-bottom-color: rgba(230, 57, 70, 0.45);
  }

  .kickoff-relative {
    margin-bottom: 0;
  }

  .kickoff-time {
    font-size: 1.2rem;
  }

  .kickoff-date {
    margin-top: 0;
    margin-left: auto;
    font-size: 0.68rem;
  }

  .match-meta {
    font-size: 0.7rem;
    margin-bottom: 0;
    padding-right: 0.25rem;
  }

  .match-teams-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.4rem;
    row-gap: 0.2rem;
    width: 100%;
    align-items: center;
  }

  .match-team {
    display: contents;
  }

  .match-team--home .match-team-flag {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .match-score-cell {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    padding: 0;
  }

  .match-team--away .match-team-flag {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .match-team--home .match-team-name {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    max-width: 100%;
  }

  .match-team--away .match-team-name {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    text-align: right;
    max-width: 100%;
  }

  .match-team-name {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .match-flag {
    width: 36px;
    height: 26px;
    border-radius: 3px;
  }

  .match-team-flag--empty {
    width: 36px;
    height: 26px;
    font-size: 0.85rem;
  }

  .match-score-cell.vs {
    color: var(--muted);
    font-weight: 500;
  }

  .match-chevron {
    top: 0.55rem;
    right: 0.4rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  .match-toolbar {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .btn-chip {
    min-width: auto;
    padding: 0.32rem 0.55rem;
    font-size: 0.7rem;
  }

  .match-detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .squad-header {
    flex-wrap: wrap;
  }

  .squad-tm-link {
    width: 100%;
    text-align: center;
  }

  .squad-sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.65rem;
  }

  .sticker-frame {
    min-height: 12.5rem;
  }

  .sticker-photo,
  .sticker-photo--empty {
    min-height: 6.75rem;
  }
}
