/* Final match and tournament sidebar refinements extracted from the legacy layer. */
.home-right-sidebar .sidebar-match-featured,
.matches-sidebar .matches-live-card .sidebar-match-featured {
  margin-inline: -4px;
  padding: 7px 4px;
  border-width: 0 0 1px;
  border-color: color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 0;
  background: transparent;
}

.home-right-sidebar .sidebar-match-featured--live,
.matches-sidebar .matches-live-card .sidebar-match-featured--live {
  border-color: color-mix(in srgb, var(--line) 54%, transparent);
}

.home-right-sidebar .sidebar-match-featured:hover,
.home-right-sidebar .sidebar-match-featured:focus-visible,
.matches-sidebar .matches-live-card .sidebar-match-featured:hover,
.matches-sidebar .matches-live-card .sidebar-match-featured:focus-visible {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
}

.home-right-sidebar .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__competition {
  -webkit-box-orient: vertical;
}


.matches-tournament-item__logo {
  overflow: hidden;
}

.matches-tournament-item__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 26px !important;
  object-fit: contain;
}

.matches-tournament-item__copy > span:first-child {
  font-size: 0.80rem;
  line-height: 1.12;
}

.matches-tournament-item__meta {
  align-items: center;
  min-width: 0;
}

.matches-tournament-item__meta span:first-child,
.matches-tournament-item__meta span:last-child {
  text-overflow: clip;
}

.matches-tournament-item__meta span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.matches-tournament-item__meta span:last-child {
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

.home-right-sidebar .sidebar-match-featured,
.matches-sidebar .matches-live-card .sidebar-match-featured {
  display: none;
}

.home-right-sidebar .sidebar-match-row__main,
.matches-sidebar .matches-live-card .sidebar-match-row__main {
  grid-template-columns: 36px minmax(calc(78px + 3ch), 1.25fr) minmax(82px, 1.1fr);
}

.home-right-sidebar .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__competition {
  display: block;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  font-size: 0.63rem;
  font-weight: 720;
  line-height: 1.08;
  -webkit-line-clamp: unset;
}


.matches-tournament-item {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 46px;
  padding-block: 6px;
}

.matches-tournament-item__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.matches-tournament-item__logo--image {
  border-color: transparent;
  background: transparent;
}

.matches-tournament-item__logo--image img {
  max-width: 30px;
  max-height: 30px !important;
}

.matches-tournament-item__copy {
  gap: 2px;
}

.matches-tournament-item__meta {
  gap: 6px;
}


.home-right-sidebar .sidebar-matches-card__filter[data-match-filter="tier1"],
.matches-sidebar .matches-live-card .sidebar-matches-card__filter[data-match-filter="tier1"],
.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"] {
  min-width: 32px;
  padding-inline: 8px;
  color: color-mix(in srgb, var(--text-soft) 92%, var(--accent));
  font-size: 0.86rem;
  font-weight: 780;
}

.home-right-sidebar .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active {
  color: var(--accent);
}

.matches-tournament-item__meta {
  display: block;
  overflow: hidden;
  font-size: 0.67rem;
  line-height: 1.05;
  white-space: nowrap;
}

.matches-tournament-item__meta span:first-child,
.matches-tournament-item__meta span:last-child {
  overflow: visible;
  max-width: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  white-space: inherit;
}

.sidebar .sidebar-matches-card__filter[data-match-filter="tier1"],
.sidebar .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"],
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="tier1"],
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"] {
  min-width: 30px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
}

.sidebar .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.sidebar .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active {
  color: var(--accent);
}

.sidebar-matches-card .sidebar-match-row__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 4px;
}

.sidebar-matches-card .sidebar-match-row__competition {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 1.08;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}

.sidebar-matches-card .sidebar-match-row__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
}

.sidebar-matches-card .sidebar-match-row__stage,
.sidebar-matches-card .sidebar-match-pill--row {
  color: color-mix(in srgb, var(--text-soft) 76%, var(--text));
  font-size: 0.52rem;
  font-weight: 620;
  line-height: 1;
}

.sidebar-matches-card .sidebar-match-row__stage {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.sidebar-matches-card .sidebar-match-row__logo.team-logo--vitality {
  transform: scale(1.38);
}

.sidebar-matches-card .sidebar-match-pill--row {
  flex: 0 0 auto;
  border-color: transparent;
}

.sidebar-matches-card .sidebar-match-row__competition {
  color: color-mix(in srgb, var(--text) 54%, var(--text-soft));
  font-size: 0.66rem;
  font-weight: 720;
}

.sidebar-matches-card .sidebar-match-pill--row {
  min-height: 16px;
  padding: 1px 4px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 48%, transparent);
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.52rem;
  font-weight: 720;
}

.home-right-sidebar .sidebar-matches-card__titles {
  display: grid;
  justify-items: start;
  text-align: left;
}

.home-right-sidebar .sidebar-matches-card__header {
  padding-right: 13px !important;
}

.home-right-sidebar .matches-tournaments-card {
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.home-right-sidebar .sidebar-match-row__team-name,
.home-right-sidebar .sidebar-match-row__competition,
.home-right-sidebar .sidebar-match-row__stage,
.home-right-sidebar .sidebar-match-featured__team-name,
.home-right-sidebar .sidebar-match-featured__competition,
.home-right-sidebar .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-live-card .sidebar-match-row__team-name,
.matches-sidebar .matches-live-card .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-featured__team-name,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.matches-sidebar .matches-tournament-item__copy span:first-child,
.sidebar-matches-card--mobile-placement .sidebar-match-row__team-name,
.sidebar-matches-card--mobile-placement .sidebar-match-row__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-row__stage,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-tournament-item__meta {
  color: var(--text-soft);
  font-weight: 400;
  text-overflow: ellipsis;
}

.sidebar .matches-tournament-item__meta {
  font-weight: 400 !important;
}

.home-right-sidebar .sidebar-match-row__competition,
.home-right-sidebar .sidebar-match-row__stage,
.home-right-sidebar .sidebar-match-featured__competition,
.home-right-sidebar .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-live-card .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.matches-sidebar .matches-tournament-item__copy span:first-child,
.sidebar-matches-card--mobile-placement .sidebar-match-row__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-row__stage,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  text-overflow: "";
}

@media (max-width: 860px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-pill--row,
  .matches-sidebar .matches-live-card .sidebar-match-pill--row {
    padding-inline: 2px;
    border-color: color-mix(in srgb, var(--line) 50%, transparent);
  }
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item,
.matches-sidebar .matches-tournaments-card .matches-tournament-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  text-align: left;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item:hover,
.home-right-sidebar .matches-tournaments-card .matches-tournament-item:focus-visible,
.matches-sidebar .matches-tournaments-card .matches-tournament-item:hover,
.matches-sidebar .matches-tournaments-card .matches-tournament-item:focus-visible {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  box-shadow: none;
  transform: none;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item__logo,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__logo {
  justify-self: start;
  align-self: center;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item__copy,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__copy {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child {
  width: 100%;
  text-align: left;
}

.home-right-sidebar .sidebar-match-row__competition,
.home-right-sidebar .sidebar-match-row__stage,
.home-right-sidebar .sidebar-match-featured__competition,
.home-right-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-live-card .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child,
.sidebar-matches-card--mobile-placement .sidebar-match-row__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-row__stage,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  text-overflow: clip;
}

@media (max-width: 860px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-pill--row,
  .matches-sidebar .matches-live-card .sidebar-match-pill--row {
    min-height: 12px;
    padding: 0 1px;
    border-width: 1px;
    font-size: 0.46rem;
    line-height: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-match-featured__team,
  .sidebar-match-row__team {
    position: relative;
  }

  .sidebar-match-featured__team[data-sidebar-entity-name]:hover::after,
  .sidebar-match-featured__team[data-sidebar-entity-name]:focus-visible::after,
  .sidebar-match-row__team[data-sidebar-entity-name]:hover::after,
  .sidebar-match-row__team[data-sidebar-entity-name]:focus-visible::after {
    position: absolute;
    z-index: 40;
    left: 50%;
    bottom: calc(100% + 7px);
    max-width: min(260px, 74vw);
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--text));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-strong) 96%, var(--text));
    box-shadow: var(--shadow-soft);
    color: var(--text);
    content: attr(data-sidebar-entity-name);
    font-size: 0.72rem;
    font-weight: 780;
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-align: center;
    transform: translateX(-50%);
    white-space: normal;
  }
}

@media (max-width: 999.98px) {
  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings, .page-about) .home-right-sidebar .matches-tournaments-card,
  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings, .page-about) .matches-sidebar .matches-tournaments-card {
    display: none;
  }
}

.home-right-sidebar .sidebar-match-row__meta,
.matches-sidebar .matches-live-card .sidebar-match-row__meta,
.sidebar-matches-card--desktop-placement .sidebar-match-row__meta {
  gap: 6px;
}

.home-right-sidebar .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.sidebar-matches-card--desktop-placement .sidebar-match-row__stage {
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1.08;
}

.home-right-sidebar .sidebar-match-pill--row,
.matches-sidebar .matches-live-card .sidebar-match-pill--row,
.sidebar-matches-card--desktop-placement .sidebar-match-pill--row {
  min-height: 18px;
  padding: 1px 6px;
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 64%, transparent);
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.58rem;
  font-weight: 790;
}

.home-right-sidebar .sidebar-match-featured__team-name,
.matches-sidebar .matches-live-card .sidebar-match-featured__team-name,
.sidebar-matches-card--desktop-placement .sidebar-match-featured__team-name,
.home-right-sidebar .sidebar-match-row__team-name,
.matches-sidebar .matches-live-card .sidebar-match-row__team-name,
.sidebar-matches-card--desktop-placement .sidebar-match-row__team-name {
  text-overflow: clip;
}
