#latestMatchesPage .latest-matches-header-notifications {
  position: relative;
  min-width: 40px;
}

#latestMatchesPage #latestMatchesHeaderNotificationsBadge {
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px !important;
  line-height: 18px !important;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  right: -2px;
  top: 8px;
  z-index: 3;
  box-sizing: border-box;
  text-align: center;
}

#latestMatchesPage .latest-matches-heading-card,
#latestMatchesPage .latest-match-card {
  border-radius: 22px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

#latestMatchesPage .latest-matches-heading-card {
  padding: 20px;
}

#latestMatchesPage .latest-matches-eyebrow {
  color: #175cd3;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#latestMatchesPage .latest-matches-title {
  margin: 10px 0 0;
  color: #101828;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.12;
}

#latestMatchesPage .latest-matches-subtitle {
  margin: 10px 0 0;
  color: #667085;
  font-size: .95rem;
  line-height: 1.55;
}

#latestMatchesPage .latest-matches-hint-row {
  color: #667085;
  font-size: .92rem;
}

#latestMatchesPage .latest-matches-skeleton-list,
#latestMatchesPage .latest-matches-list {
  display: grid;
  gap: 14px;
}

#latestMatchesPage .latest-matches-skeleton-card {
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
  background-size: 220% 100%;
  animation: latestMatchesSkeleton 1.2s ease-in-out infinite;
}

@keyframes latestMatchesSkeleton {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

#latestMatchesPage .latest-matches-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  border-radius: 22px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  text-align: center;
  color: #667085;
}

#latestMatchesPage .latest-matches-empty-state ion-icon {
  font-size: 34px;
  color: #175cd3;
}

#latestMatchesPage .latest-match-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

#latestMatchesPage .latest-match-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2f6df6 0%, #4f8dff 100%);
}

#latestMatchesPage .latest-match-card.is-history::before {
  background: linear-gradient(90deg, #0da866 0%, #36d488 100%);
}

#latestMatchesPage .latest-match-card.is-contested::before {
  background: linear-gradient(90deg, #ff7a18 0%, #ef4444 100%);
}

#latestMatchesPage .match-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#latestMatchesPage .match-card-top-badges {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 2px;
}

#latestMatchesPage .match-card-players {
  margin-bottom: 0;
}

#latestMatchesPage .season-round-player-avatar-wrap {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #dbe7ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf4ff 100%);
}

#latestMatchesPage .season-round-player-avatar {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.01);
  -webkit-font-smoothing: antialiased;
}

#latestMatchesPage .match-card-player-name {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: calc(1.3em * 2);
}

#latestMatchesPage .match-card-player-link {
  color: inherit;
  text-decoration: none;
}

#latestMatchesPage .match-card-player-link:hover,
#latestMatchesPage .match-card-player-link:focus {
  color: inherit;
  text-decoration: none;
}

#latestMatchesPage .match-card-player-avatar-link {
  display: inline-flex;
  border-radius: 999px;
}

#latestMatchesPage .match-card-player-name-link,
#latestMatchesPage .match-card-player-name-link.is-static {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#latestMatchesPage .match-card-versus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#latestMatchesPage .match-card-result-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6f8fc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

#latestMatchesPage .match-card-result-score {
  width: 100%;
  font-size: 1rem;
  font-weight: 800;
  color: #172033;
  line-height: 1.1;
  text-align: center;
}

#latestMatchesPage .match-card-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#latestMatchesPage .match-card-league {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #18419d;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

#latestMatchesPage .match-card-meta {
  color: #4b5563;
  font-size: .88rem;
  line-height: 1.45;
}

#latestMatchesPage .match-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#latestMatchesPage .match-status-badge.text-primary,
#latestMatchesPage .match-result-badge.text-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.10);
  color: #1d4ed8 !important;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}

#latestMatchesPage .match-status-badge.badge-light,
#latestMatchesPage .match-result-badge.badge-light {
  background: #f3f4f6;
}

#latestMatchesPage .match-division-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: .42rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 183, 106, 0.3);
  background: #eefdf3;
  color: #027a48;
  font-size: .9rem;
  font-weight: 700;
}

#latestMatchesPage .latest-match-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  width: 100%;
  flex-wrap: wrap;
}

#latestMatchesPage .match-card-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

#latestMatchesPage .match-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6df6;
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

#latestMatchesPage .match-secondary-action::after {
  content: "\00B7";
  margin: 0 10px;
  color: #9ca3af;
  font-weight: 400;
}

#latestMatchesPage .match-secondary-action:last-child::after {
  content: none;
  margin: 0;
}

#latestMatchesPage .match-secondary-action:hover,
#latestMatchesPage .match-secondary-action:focus {
  color: #1d4ed8;
  text-decoration: none;
  outline: none;
}

#latestMatchesPage .match-card-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#latestMatchesPage .match-card-primary .btn {
  min-height: 44px;
  font-weight: 700;
}

#latestMatchesPage .match-card-primary .btn-share-result {
  background: linear-gradient(135deg, #0f9b6b 0%, #13c27d 100%);
  border-color: #0f9b6b;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 155, 107, 0.18);
}

#latestMatchesPage .match-card-primary .btn-share-result:hover,
#latestMatchesPage .match-card-primary .btn-share-result:focus {
  background: linear-gradient(135deg, #0d885d 0%, #11ad71 100%);
  border-color: #0d885d;
  color: #fff;
}

#latestMatchesPage .match-card-primary .btn-share-result:disabled {
  opacity: .9;
  color: #fff;
}

#latestMatchesPage .match-card-primary .btn-share-result .spinner-border {
  vertical-align: -0.125em;
}

#latestMatchesPage .match-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: #2f6df6;
  background: transparent;
  border: 0;
  padding: 0;
}

#latestMatchesPage .match-details-toggle ion-icon {
  transition: transform 0.18s ease;
}

#latestMatchesPage .match-details-toggle.is-open ion-icon {
  transform: rotate(180deg);
}

#latestMatchesPage .match-details-panel {
  display: none;
}

#latestMatchesPage .match-details-panel.is-open {
  display: block;
}

#latestMatchesPage .match-meta-note {
  color: #6b7280;
  font-size: .84rem;
  line-height: 1.45;
}

#latestMatchesPage .public-match-score {
  font-weight: 700;
  color: #0f172a;
  margin-top: .7rem;
}

#latestMatchesPage .public-match-score-table .table {
  margin-bottom: 0;
}

#latestMatchesPage .public-match-player-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  width: 100%;
  flex-wrap: wrap;
}

#latestMatchesPage .my-games-share-row-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
}

#latestMatchesPage .my-games-share-row-badge.is-v {
  background: #22c55e;
  color: #fff;
}

#latestMatchesPage .my-games-share-row-badge.is-d {
  background: #64748b;
  color: #fff;
}

@media (max-width: 575.98px) {
  #latestMatchesPage .latest-matches-title {
    font-size: 1.35rem;
  }

  #latestMatchesPage .latest-match-card {
    padding: 14px;
  }
}
