.status.info {
  color: #19476a;
  background: #eaf5ff;
  border: 1px solid #cde5f7;
  line-height: 1.6;
}

.status.info code {
  display: inline;
  margin: 0;
  padding: 2px 5px;
  background: rgba(18, 26, 42, .08);
  color: inherit;
  font-size: .92em;
}

.status.info a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.catalog-filter-panel {
  padding: 18px 20px;
}

.catalog-filter-form {
  display: grid;
  grid-template-columns: 150px minmax(180px, .8fr) minmax(220px, 1fr) minmax(240px, 1.25fr) auto auto;
  align-items: end;
  gap: 12px;
}

.catalog-filter-form label {
  min-width: 0;
}

.catalog-filter-form label span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.catalog-filter-form input,
.catalog-filter-form select {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.catalog-filter-form input:focus,
.catalog-filter-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 73, 216, .12);
}

.catalog-filter-form button,
.button-secondary {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--primary);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #aab8ff;
  background: var(--primary-soft);
}

.live-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.summary-card {
  min-height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.summary-card strong {
  margin: 8px 0;
  font-size: clamp(22px, 3vw, 32px);
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0;
  padding: 4px 0 8px;
}

.date-strip a {
  min-width: max-content;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.date-strip a small {
  margin-left: 5px;
  color: inherit;
}

.date-strip a:hover,
.date-strip a.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading-row h2,
.section-heading-row p {
  margin: 0;
}

.section-heading-row p {
  margin-top: 5px;
}

.global-match-list {
  display: grid;
  gap: 10px;
}

.global-match-card {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) 130px minmax(360px, 1.7fr) minmax(150px, .7fr);
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.global-match-card:hover {
  transform: translateY(-1px);
  border-color: #aab8ff;
  box-shadow: var(--shadow);
}

.match-competition {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-competition img,
.match-teams img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.match-competition span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.match-competition strong,
.match-competition small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-competition small {
  color: var(--muted);
}

.global-match-card time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.match-teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.match-teams > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.match-teams b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-teams .away-team {
  justify-content: flex-end;
  text-align: right;
}

.match-teams .score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 22px;
}

.match-teams .score i {
  color: var(--muted);
  font-style: normal;
}

.match-status {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.match-status small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  min-width: 40px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.status-ft,
.status-aet,
.status-pen {
  color: #0f6848;
  background: #e8f7f0;
}

.status-1h,
.status-2h,
.status-ht,
.status-et,
.status-p {
  color: #a33a17;
  background: #fff0e8;
}

.global-empty {
  display: grid;
  gap: 6px;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.pagination a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.pagination a:last-child {
  justify-self: end;
}

.league-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.league-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.league-card:hover {
  border-color: #aab8ff;
  box-shadow: var(--shadow);
}

.league-card-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 13px;
  background: var(--bg);
}

.league-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.league-card > div:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.league-card strong,
.league-card span,
.league-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-card span,
.league-card small {
  color: var(--muted);
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.resource-actions a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
}

.resource-actions a:hover,
.resource-actions a.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.entity-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.entity-links a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-heading img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--bg);
}

.prediction-scope-note {
  margin-bottom: 16px;
}

@media (max-width: 1080px) {
  .catalog-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-filter-form .wide-filter {
    grid-column: span 2;
  }

  .global-match-card {
    grid-template-columns: minmax(180px, 1fr) 130px minmax(320px, 1.6fr);
  }

  .match-status {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .live-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-match-card {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .match-competition {
    grid-column: 1 / -1;
  }

  .match-teams {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  }

  .match-status {
    grid-column: 1 / -1;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .catalog-filter-form,
  .live-summary-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-form .wide-filter {
    grid-column: auto;
  }

  .match-teams {
    gap: 6px;
  }

  .match-teams img {
    display: none;
  }

  .league-card-grid {
    grid-template-columns: 1fr;
  }
}
