/* Teams directory and team profiles. */
.teams-page,
.team-profile,
.team-section {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.teams-page {
  padding: 22px;
}

.teams-hero {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 20px;
}

.teams-hero__copy {
  min-width: 0;
}

.teams-hero__breadcrumbs {
  margin-bottom: 9px;
}

.teams-hero__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.teams-hero__description {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 520;
  line-height: 1.45;
}

.teams-hero__updated {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.67rem;
  font-weight: 650;
  white-space: nowrap;
}

.teams-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-card) - 4px);
  background: color-mix(in srgb, var(--surface-muted) 76%, var(--surface-strong));
}

.teams-regions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  padding: 9px 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.teams-regions::-webkit-scrollbar {
  display: none;
}

.teams-regions__label,
.teams-regions__item {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 680;
}

.teams-regions__label {
  margin-right: 6px;
}

.teams-regions__item {
  padding: 6px 9px;
  border-radius: 7px;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.teams-regions__item:hover {
  color: var(--text);
}

.teams-regions__item.is-active {
  background: var(--surface-muted);
  color: var(--text);
}

.teams-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--line) 54%, transparent);
}

.teams-filter__item {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 740;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.teams-filter__item:hover {
  color: var(--text);
}

.teams-filter__item.is-active {
  background: var(--surface-strong);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}

.teams-filter__item:active,
.team-directory-card:active,
.team-match-row:active {
  transform: translateY(1px);
}

.teams-search {
  position: relative;
  display: flex;
  width: min(255px, 38%);
  min-width: 180px;
  align-items: center;
}

.teams-search__icon {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 17px;
  color: var(--text-soft);
  pointer-events: none;
}

.teams-search__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 580;
}

.teams-search__input:focus {
  border-color: color-mix(in srgb, var(--accent-strong) 54%, var(--line));
  box-shadow: var(--focus-ring);
}

.teams-search__clear {
  position: absolute;
  right: 7px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
}

.teams-search__clear:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.teams-page__summary {
  padding: 16px 2px 10px;
  color: var(--text-soft);
  font-size: 0.69rem;
  font-weight: 680;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-directory-card {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-card) - 3px);
  background: var(--surface-strong);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.team-directory-card:hover {
  border-color: color-mix(in srgb, var(--accent-strong) 30%, var(--line));
  box-shadow: 0 9px 24px color-mix(in srgb, var(--accent-strong) 8%, transparent);
}

.team-directory-card:focus-visible,
.team-match-row:focus-visible,
.team-tournament-item:focus-visible,
.team-news-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.team-directory-card__top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.team-directory-card__logo {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.team-directory-card__logo--fallback,
.team-profile__logo--fallback,
.team-player-card__photo--fallback,
.team-match-row__logo--fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-weight: 820;
}

.team-directory-card__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.team-directory-card__identity strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 790;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-directory-card__identity > span,
.team-directory-card__roster,
.team-directory-card__footer {
  color: var(--text-soft);
  font-size: 0.67rem;
  font-weight: 570;
  line-height: 1.35;
}

.team-directory-card__rank {
  display: flex;
  min-width: 36px;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.team-directory-card__rank b {
  color: var(--accent-strong);
  font-size: 0.86rem;
  line-height: 1;
}

.team-directory-card__rank small {
  color: var(--text-soft);
  font-size: 0.54rem;
  font-weight: 760;
}

.team-directory-card__roster {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.team-directory-card__roster--empty {
  color: color-mix(in srgb, var(--text-soft) 72%, transparent);
}

.team-directory-card__footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.team-directory-card__footer > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-directory-card__footer b {
  color: #d54a43;
  font-size: 0.61rem;
}

.team-directory-card__arrow,
.team-match-row__arrow {
  color: var(--accent-strong);
  font-size: 1.1rem;
  font-weight: 760;
}

.teams-show-more {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.teams-show-more a,
.teams-empty a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 740;
  text-decoration: none;
}

.teams-show-more a:hover,
.teams-empty a:hover {
  border-color: color-mix(in srgb, var(--accent-strong) 32%, var(--line));
  background: var(--surface-muted);
}

.teams-show-more a.is-loading {
  opacity: 0.62;
  pointer-events: none;
}

.teams-empty {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.teams-empty strong {
  color: var(--text);
  font-size: 1rem;
}

.teams-empty span {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.team-detail-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.team-profile {
  padding: 0 20px 20px;
}

.player-profile {
  padding: 0 20px 20px;
}

.team-profile__breadcrumbs {
  margin-bottom: 18px;
}

.team-profile__hero {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.team-profile__logo {
  box-sizing: border-box;
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.team-profile__identity {
  min-width: 0;
}

.team-profile__title-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.team-profile__title-line h1 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 840;
  line-height: 1;
  letter-spacing: -0.045em;
}

.team-profile__title-line > span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 760;
}

.team-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 620;
}

.team-profile__ranking {
  display: grid;
  min-width: 94px;
  justify-items: end;
  color: inherit;
  text-decoration: none;
}

.team-profile__status {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-profile__form {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.team-profile__form > span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.61rem;
  font-weight: 680;
  white-space: nowrap;
}

.team-profile__form > div {
  display: flex;
  gap: 4px;
}

.team-profile__form b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.57rem;
}

.team-profile__form b.is-win {
  background: #e8f6ef;
  color: #16875d;
}

.team-profile__form b.is-loss {
  background: #fcecea;
  color: #bc4a43;
}

.team-profile__ranking > span,
.team-profile__ranking small {
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 680;
}

.team-profile__ranking strong {
  margin: 3px 0;
  color: var(--accent-strong);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.team-profile__ranking--empty strong {
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.team-profile__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-card) - 4px);
  background: var(--line);
}

.team-profile__facts-note {
  margin: 8px 1px 0;
  color: var(--text-soft);
  font-size: 0.59rem;
  font-weight: 560;
  line-height: 1.4;
}

.team-profile__fact {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 13px;
  background: var(--surface-strong);
}

.team-profile__fact > span,
.team-profile__fact small {
  color: var(--text-soft);
  font-size: 0.61rem;
  font-weight: 630;
}

.team-profile__fact > strong {
  margin: 4px 0 2px;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1;
}

.team-profile__fact--form > div {
  display: flex;
  gap: 4px;
  margin: 5px 0 4px;
}

.team-profile__fact--form b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.57rem;
}

.team-profile__fact--form b.is-win {
  background: #e8f6ef;
  color: #16875d;
}

.team-profile__fact--form b.is-loss {
  background: #fcecea;
  color: #bc4a43;
}

.team-section {
  padding: 18px;
}

.team-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.team-section__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.team-section__header > span,
.team-section__header > a {
  color: var(--text-soft);
  font-size: 0.67rem;
  font-weight: 680;
  text-decoration: none;
}

.team-section__header > a:hover {
  color: var(--accent-strong);
}

.team-section__empty {
  padding: 26px 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  text-align: center;
}

.team-roster__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-player-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-muted);
}

.team-player-card__photo {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.team-player-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.team-player-card__copy strong,
.team-player-card__copy span,
.team-player-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-player-card__copy strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 790;
}

.team-player-card__copy span,
.team-player-card__copy small {
  color: var(--text-soft);
  font-size: 0.61rem;
  font-weight: 570;
}

.team-matches__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.team-match-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

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

.team-match-row__date,
.team-match-row__competition {
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 620;
}

.team-match-row__date.is-live {
  color: #cb423b;
  font-weight: 800;
}

.team-match-row__opponent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.team-match-row__logo {
  box-sizing: border-box;
  object-fit: contain;
}

.team-match-row__opponent strong,
.team-match-row__competition {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-match-row__opponent strong {
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 740;
}

.team-match-row__score {
  color: var(--text);
  text-align: center;
}

.team-tournaments__grid,
.team-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-tournament-item,
.team-news-item {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: inherit;
  text-decoration: none;
}

.team-tournament-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.team-tournament-item:hover,
.team-news-item:hover {
  background: color-mix(in srgb, var(--surface-muted) 74%, var(--accent-soft));
}

.team-tournament-item__logo {
  display: grid;
  width: 42px;
  height: 36px;
  place-items: center;
}

.team-tournament-item__logo img {
  max-width: 38px;
  max-height: 30px;
  object-fit: contain;
}

.team-tournament-item > span:nth-child(2),
.team-news-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.team-tournament-item strong,
.team-news-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 740;
  line-height: 1.25;
}

.team-tournament-item small,
.team-news-item small {
  color: var(--text-soft);
  font-size: 0.59rem;
  font-weight: 590;
}

.team-tournament-item > b {
  color: var(--accent-strong);
  font-size: 0.56rem;
}

.team-news-item {
  grid-template-columns: 88px minmax(0, 1fr);
}

.team-news-item__media {
  width: 88px;
  height: 56px;
  overflow: hidden;
  border-radius: 7px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
}

.team-news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-card__team {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.tournament-card__team[role="link"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-strong) 62%, transparent);
  outline-offset: 2px;
}

.match-feed-card__team-name,
.sidebar-match-featured__team-name,
.sidebar-match-row__team-name,
.vrs-card__team-action,
.rankings-table__team-name {
  color: inherit;
  text-decoration: none;
}

.match-feed-card__team-name:hover,
.sidebar-match-featured__team-name:hover,
.sidebar-match-row__team-name:hover,
.vrs-card__team-action:hover,
.rankings-table__team-name:hover {
  color: var(--accent-strong);
}

@media (max-width: 1180px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .teams-page {
    padding: 14px;
  }

  .teams-hero {
    align-items: flex-start;
    padding-bottom: 16px;
  }

  .teams-hero__updated {
    display: none;
  }

  .teams-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .teams-search {
    width: 100%;
    min-width: 0;
  }

  .teams-search__input {
    font-size: 16px;
  }

  .teams-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-detail-stack {
    width: 100%;
  }

  .team-profile {
    padding: 16px;
  }

  .team-profile__hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .team-profile__status {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .team-profile__logo {
    width: 72px;
    height: 72px;
  }

  .team-profile__ranking {
    min-width: 64px;
    justify-items: start;
  }

  .team-profile__ranking strong {
    font-size: 1.35rem;
  }

  .team-profile__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-roster__grid,
  .team-tournaments__grid,
  .team-news__grid {
    grid-template-columns: 1fr;
  }




}

@media (max-width: 520px) {
  .teams-page {
    padding: 12px;
  }

  .teams-hero__title {
    font-size: 1.45rem;
  }

  .teams-hero__description {
    font-size: 0.8rem;
  }

  .teams-filter__item {
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .team-directory-card {
    padding: 12px;
  }

  .team-profile__hero {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .team-profile__logo {
    width: 62px;
    height: 62px;
  }

  .team-profile__status {
    align-items: flex-end;
  }

  .team-profile__ranking {
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: start;
    gap: 8px;
  }

  .team-profile__form {
    padding-left: 12px;
  }

  .team-profile__ranking strong {
    margin: 0;
  }

  .team-profile__meta {
    gap: 5px 9px;
  }

  .team-profile__fact {
    min-height: 68px;
    padding: 9px 10px;
  }

  .team-section {
    padding: 14px;
  }

  .team-match-row {
    gap: 7px;
  }



  .team-player-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .team-player-card__photo {
    width: 46px;
    height: 46px;
  }
}

/* Team profile reference pass: one editorial surface, no nested card mosaic. */
.page-team-detail .team-profile {
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgb(15 23 42 / 0.045);
  overflow: hidden;
}

.page-team-detail .team-profile__topbar {
  height: 42px;
  min-height: 42px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}

.page-team-detail .team-profile__topbar > span {
  font-size: 0.6rem;
}

.page-team-detail .team-profile__hero,
.page-team-detail .team-profile__hero--with-match {
  min-height: 174px;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0;
  padding: 18px 20px 16px;
  background:
    radial-gradient(circle at 15% 45%, rgb(38 112 255 / 0.045), transparent 31%),
    var(--surface);
}

.page-team-detail .team-profile__brand {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding-right: 24px;
}

.page-team-detail .team-profile__logo {
  width: 142px;
  height: 142px;
  padding: 0;
  filter: drop-shadow(0 12px 18px rgb(15 23 42 / 0.08));
}

.page-team-detail .team-profile__title-line h1 {
  font-size: clamp(1.86rem, 2.8vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.page-team-detail .team-profile__meta {
  min-height: 22px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.page-team-detail .team-profile__meta span {
  gap: 7px;
}

.page-team-detail .team-profile__status {
  align-items: center;
  gap: 24px;
  margin-top: 15px;
}

.page-team-detail .team-profile__ranking {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgb(15 23 42 / 0.025);
}

.page-team-detail .team-profile__ranking strong {
  font-size: 0.95rem;
}

.page-team-detail .team-profile__ranking small {
  font-size: 0.58rem;
}

.page-team-detail .team-profile__form {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-team-detail .team-profile__form > span {
  margin-right: 4px;
  font-size: 0.56rem;
}

.page-team-detail .team-profile__form b {
  width: 21px;
  height: 21px;
  border-radius: 5px;
  font-size: 0.52rem;
}

.page-team-detail .team-spotlight-match {
  min-height: 136px;
  align-self: center;
  padding: 5px 0 3px 24px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-team-detail .team-spotlight-match:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.page-team-detail .team-spotlight-match__top {
  min-height: 35px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.page-team-detail .team-spotlight-match__top strong {
  color: var(--accent);
  font-size: 0.59rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-team-detail .team-spotlight-match__top > span {
  max-width: 100%;
  font-size: 0.54rem;
  text-align: center;
}

.page-team-detail .team-spotlight-match__versus {
  min-height: 67px;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 5px;
}

.page-team-detail .team-spotlight-match__logo {
  width: 42px;
  height: 42px;
}

.page-team-detail .team-spotlight-match__team b {
  max-width: 70px;
  font-size: 0.5rem;
}

.page-team-detail .team-spotlight-match__center strong {
  font-size: 0.78rem;
}

.page-team-detail .team-spotlight-match__center time,
.page-team-detail .team-spotlight-match__meta {
  font-size: 0.47rem;
}

.page-team-detail .team-roster--embedded {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-team-detail .team-roster__grid,
.page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 18px 12px;
}

.page-team-detail .team-player-card,
.page-team-detail .team-player-card:first-child {
  min-height: 172px;
  border: 0;
  overflow: hidden;
}

.page-team-detail .team-player-card__photo {
  height: 172px;
  background: linear-gradient(180deg, #f6f7f9 0%, #eef1f5 100%);
}

.page-team-detail .team-player-card__silhouette-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  transform: scale(1.02);
  transform-origin: center bottom;
}

.page-team-detail .team-player-card:hover .team-player-card__silhouette-art {
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  transform: scale(1.025);
}

.page-team-detail .team-player-card__team-mark {
  top: 64%;
  width: 25px;
  height: 25px;
  opacity: 0.92;
}

.page-team-detail .team-player-card__team-logo {
  width: 25px;
  height: 25px;
  filter: grayscale(1) brightness(2.25);
}

.page-team-detail .team-player-card__label {
  min-height: 29px;
  gap: 8px;
  padding: 0 10px;
  background: rgb(12 17 24 / 0.95);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.page-team-detail .team-player-card__label b {
  font-size: 0.68rem;
}

.page-team-detail .team-player-card__label strong {
  font-size: 0.66rem;
  font-weight: 820;
}

.page-team-detail .team-profile__nav {
  min-height: 47px;
  gap: 27px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}

.page-team-detail .team-profile__nav a {
  font-size: 0.56rem;
  font-weight: 760;
  text-transform: uppercase;
}

.page-team-detail .team-profile-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-team-detail .team-dashboard-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.page-team-detail .team-vrs-history,
.page-team-detail .team-recent-results {
  grid-column: span 3;
  min-height: 300px;
  border-bottom: 1px solid var(--line);
}

.page-team-detail .team-recent-results {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}

.page-team-detail .team-performance,
.page-team-detail .team-achievements,
.page-team-detail .team-tournament-summary {
  grid-column: span 2;
  min-height: 190px;
  padding-bottom: 11px;
}

.page-team-detail .team-achievements,
.page-team-detail .team-tournament-summary {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}

.page-team-detail .team-dashboard-panel__header {
  min-height: 55px;
  padding: 12px 0 9px;
  border-bottom: 0;
}

.page-team-detail .team-dashboard-panel__header h2 {
  font-size: 0.65rem;
  font-weight: 830;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.page-team-detail .team-dashboard-panel__header small,
.page-team-detail .team-dashboard-panel__header > a {
  font-size: 0.45rem;
}

.page-team-detail .team-vrs-history__controls {
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.page-team-detail .team-vrs-history__metric,
.page-team-detail .team-vrs-history__period {
  border: 0;
  background: transparent;
}

.page-team-detail .team-vrs-history__metric a,
.page-team-detail .team-vrs-history__period a {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid transparent;
  font-size: 0.43rem;
}

.page-team-detail .team-vrs-history__metric a.is-active,
.page-team-detail .team-vrs-history__period a.is-active {
  border-color: color-mix(in srgb, var(--accent) 23%, var(--line));
  background: var(--accent-soft);
  box-shadow: none;
}

.page-team-detail .team-vrs-chart {
  padding: 0 9px 7px 0;
}

.page-team-detail .team-vrs-chart svg {
  height: 236px;
}

.page-team-detail .team-vrs-chart__line {
  stroke-width: 2.25;
}

.page-team-detail .team-recent-results__list {
  padding: 0 0 8px;
}

.page-team-detail .team-result-row {
  min-height: 45px;
  grid-template-columns: 39px minmax(0, 1.15fr) minmax(74px, 0.95fr) 31px 18px;
  gap: 6px;
}

.page-team-detail .team-result-row time,
.page-team-detail .team-result-row__event small {
  font-size: 0.42rem;
}

.page-team-detail .team-result-row__event strong,
.page-team-detail .team-result-row__opponent strong {
  font-size: 0.45rem;
}

.page-team-detail .team-performance__body {
  padding: 4px 15px 8px 0;
}

.page-team-detail .team-performance__headline strong {
  font-size: 2.1rem;
}

.page-team-detail .team-performance__bar {
  height: 5px;
  margin: 10px 0 15px;
}

.page-team-detail .team-achievements__list,
.page-team-detail .team-tournament-summary__list {
  padding: 0 8px 5px 0;
}

.page-team-detail .team-achievements__list a,
.page-team-detail .team-tournament-summary__list a {
  min-height: 38px;
}

.page-team-detail .team-profile > .team-news {
  padding: 0 18px 10px;
}

.page-team-detail .team-profile > .team-news .team-section__header {
  min-height: 48px;
  padding: 11px 0 7px;
}

.page-team-detail .team-profile > .team-news .team-section__header h2 {
  font-size: 0.65rem;
  font-weight: 830;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.page-team-detail .team-profile > .team-news .team-news__grid {
  gap: 18px;
  padding: 0 0 8px;
}

.page-team-detail .team-profile > .team-news .team-news-item,
.page-team-detail .team-profile > .team-news .team-news-item:first-child,
.page-team-detail .team-profile > .team-news .team-news-item--with-media:first-child {
  min-height: 64px;
  grid-template-columns: 76px minmax(0, 1fr);
}

.page-team-detail .team-profile > .team-news .team-news-item__media,
.page-team-detail .team-profile > .team-news .team-news-item:first-child .team-news-item__media {
  width: 76px;
  height: 56px;
  border-radius: 7px;
}

@media (max-width: 1180px) {
  .page-team-detail .team-vrs-history,
  .page-team-detail .team-recent-results {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .page-team-detail .team-profile__hero,
  .page-team-detail .team-profile__hero--with-match {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-profile__brand {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-right: 0;
  }

  .page-team-detail .team-profile__logo {
    width: 88px;
    height: 88px;
  }

  .page-team-detail .team-spotlight-match {
    margin-top: 12px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-team-detail .team-roster__grid,
  .page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    overflow-x: auto;
  }

  .page-team-detail .team-profile-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-vrs-history,
  .page-team-detail .team-recent-results,
  .page-team-detail .team-performance,
  .page-team-detail .team-achievements,
  .page-team-detail .team-tournament-summary {
    grid-column: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
  }
}

/* Final team overview alignment: tournament rows mirror match rows exactly. */
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__list {
  display: block;
  flex: 0 0 auto;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview {
  box-sizing: content-box;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding-block: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__dates text {
  font-size: 7.5px;
  font-weight: 710;
  letter-spacing: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip {
  min-width: 148px;
  max-width: 158px;
  padding: 9px 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > strong {
  padding-bottom: 7px;
  font-size: 8.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span {
  min-height: 23px;
  gap: 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip i {
  font-size: 7.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip b {
  font-size: 11px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments {
  min-height: 0;
  align-self: start;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__all {
  flex: 0 0 auto;
  margin: 7px 8px;
}

@media (min-width: 901px) {
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics {
    box-sizing: border-box;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    align-self: start;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
    min-height: 0;
    padding: 8px 10px 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
    min-height: 0;
    height: 100%;
  }
}

/* Team VRS chart visual balance. */
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid line {
  stroke: color-mix(in srgb, var(--line) 84%, var(--text-soft));
  stroke-opacity: 0.46;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  stroke-width: 2.15px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  r: 3px;
  stroke-width: 1.8px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle.is-latest,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle.is-latest {
  r: 4.2px;
  stroke-width: 2.1px;
}

/* Team profile v2: reference-led, tabbed and data-honest. */
body.page-team-detail .team-profile--reference-v3 {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.page-team-detail .team-profile--reference-v3 .team-profile__masthead {
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 9px 28px rgb(15 23 42 / 0.035);
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-profile__content-shell {
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgb(15 23 42 / 0.025);
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-profile__topbar {
  position: relative;
  z-index: 21;
  display: flex;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 1px 17px 0;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface-strong);
}

body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs {
  display: flex;
  min-width: 0;
  height: auto;
  flex: 0 1 auto;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs a {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 650;
  transition: color var(--transition-fast);
}

body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs .site-breadcrumbs__current {
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text-soft) 76%, transparent);
  font-weight: 500;
  text-overflow: ellipsis;
}

body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs a:hover,
body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs a:focus-visible {
  color: var(--accent-strong);
}

body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs a:focus-visible {
  border-radius: 3px;
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 3px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs > span[aria-hidden="true"] {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--text-muted) 52%, transparent);
}

body.page-team-detail .team-profile--reference-v3 .team-profile__topbar > span {
  display: flex;
  min-width: 0;
  min-height: 18px;
  max-width: 52%;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 0.63rem;
  font-weight: 620;
  line-height: 1.2;
  text-align: right;
  text-wrap: pretty;
}

body.page-team-detail .team-club-header {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(0, 68%) 136px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.page-team-detail .team-club-header__identity {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
}

body.page-team-detail .team-club-header__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

body.page-team-detail .team-club-header__logo--fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 1.2rem;
  font-weight: 850;
}

body.page-team-detail .team-club-header__title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
}

body.page-team-detail .team-club-header__identity h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2.3vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-club-header__title > span {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-team-detail .team-club-header__identity p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.64rem;
  font-weight: 700;
}

body.page-team-detail .team-club-header__identity p b {
  font-size: 0.74rem;
  line-height: 1;
}

body.page-team-detail .team-club-next {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 14px;
  border-left: 1px solid var(--line);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}

body.page-team-detail a.team-club-next:hover {
  background: var(--surface-soft);
}

body.page-team-detail .team-club-next > small {
  color: var(--text-soft);
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

body.page-team-detail .team-club-next__event {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-club-next__teams {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

body.page-team-detail .team-club-next__teams > span {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}

body.page-team-detail .team-club-next__teams b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.56rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-club-next__teams > strong {
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 800;
}

body.page-team-detail .team-club-next__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.page-team-detail .team-club-next__logo--fallback {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 800;
}

body.page-team-detail .team-club-next time,
body.page-team-detail .team-club-next--empty span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1px;
  color: var(--text-soft);
  font-size: 0.48rem;
  font-weight: 700;
}

body.page-team-detail .team-club-next time span {
  font-size: 0.43rem;
}

body.page-team-detail .team-club-next--empty strong {
  color: var(--text-strong);
  font-size: 0.68rem;
}

body.page-team-detail .team-club-header__ranking {
  position: relative;
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  justify-items: center;
  padding: 10px 12px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}

body.page-team-detail .team-club-header__ranking::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 1px;
  background: color-mix(in srgb, var(--line) 88%, transparent);
  content: "";
  pointer-events: none;
}

body.page-team-detail .team-club-header__ranking:hover {
  background: var(--surface-soft);
}

body.page-team-detail .team-club-header__ranking small {
  margin-bottom: 3px;
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

body.page-team-detail .team-club-header__rank-line {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}

body.page-team-detail .team-club-header__rank-line strong {
  color: var(--text-strong);
  font-size: 1.42rem;
  font-weight: 870;
  letter-spacing: -0.06em;
}

body.page-team-detail .team-club-header__rank-line > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 820;
  letter-spacing: -0.01em;
}

body.page-team-detail .team-club-header__ranking .is-up {
  color: #159359;
}

body.page-team-detail .team-club-header__ranking .is-down {
  color: #d04d4d;
}

body.page-team-detail .team-club-header__ranking b {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.58rem;
  font-weight: 740;
}

body.page-team-detail .team-club-tabs {
  display: flex;
  min-height: 34px;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

body.page-team-detail .team-club-tabs::-webkit-scrollbar {
  display: none;
}

body.page-team-detail .team-club-tabs a,
body.page-team-detail .team-club-tabs > .is-disabled {
  position: relative;
  display: flex;
  min-width: 82px;
  min-height: 34px;
  flex: 1 0 82px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 0;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: -0.008em;
  text-decoration: none;
  transition: color 150ms ease, transform 100ms ease;
  white-space: nowrap;
}

body.page-team-detail .team-club-tabs > * + * {
  background-image: linear-gradient(
    to bottom,
    transparent calc(50% - 9px),
    color-mix(in srgb, var(--line) 82%, transparent) calc(50% - 9px),
    color-mix(in srgb, var(--line) 82%, transparent) calc(50% + 9px),
    transparent calc(50% + 9px)
  );
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1px 100%;
}

body.page-team-detail .team-club-tabs > .is-disabled {
  flex-direction: column;
  gap: 1px;
  color: color-mix(in srgb, var(--text-soft) 66%, transparent);
  cursor: not-allowed;
  line-height: 1;
}

body.page-team-detail .team-club-tabs > .is-disabled small {
  color: color-mix(in srgb, var(--accent) 72%, var(--text-soft));
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

body.page-team-detail .team-club-tabs a::after {
  position: absolute;
  width: clamp(44px, 44%, 64px);
  right: auto;
  bottom: 2px;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transform: translateX(-50%) scaleX(0.45);
  transition: background-color 150ms ease, transform 180ms ease;
}

body.page-team-detail .team-club-tabs a:hover {
  color: var(--text);
}

body.page-team-detail .team-club-tabs a.is-active {
  color: var(--text-strong);
  font-weight: 820;
}

body.page-team-detail .team-club-tabs a.is-active::after {
  background: var(--accent);
  transform: translateX(-50%) scaleX(1);
}

body.page-team-detail .team-club-tabs a:active {
  transform: translateY(1px);
}

body.page-team-detail .team-club-tabs a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: -4px;
}

body.page-team-detail .team-profile-view {
  border: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-overview-roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 11px 14px 12px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-overview-player {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

body.page-team-detail .team-overview-player:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 6px 18px rgb(44 76 126 / 0.08);
  transform: translateY(-1px);
}

body.page-team-detail .team-overview-player__portrait {
  position: relative;
  display: block;
  height: 172px;
  overflow: hidden;
}

body.page-team-detail .team-overview-player__portrait > img {
  width: 100%;
  height: 172px;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(0.78) brightness(1.38);
  opacity: 0.76;
  transform: scale(1);
  transform-origin: center bottom;
}

body.page-team-detail .team-overview-player__mark {
  position: absolute;
  top: 68%;
  left: 68%;
  display: grid;
  width: 17px;
  height: 15px;
  place-items: center;
  opacity: 0.76;
  transform: translate(-50%, -50%) rotate(-3deg);
}

body.page-team-detail .team-overview-player__logo {
  width: 17px;
  height: 15px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.25);
}

body.page-team-detail .team-overview-player__copy {
  display: flex;
  min-height: 46px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9);
}

body.page-team-detail .team-overview-player__copy strong {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  color: var(--text-strong);
  font-size: 0.67rem;
  font-weight: 820;
}

body.page-team-detail .team-overview-player__copy strong b {
  font-size: 0.7rem;
}

body.page-team-detail .team-overview-player__copy small {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.49rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-vrs-dynamics {
  margin: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-vrs-dynamics > header,
body.page-team-detail .team-overview-panel > header,
body.page-team-detail .team-match-group > header,
body.page-team-detail .team-roster-table > header {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-vrs-dynamics h2,
body.page-team-detail .team-overview-panel h2,
body.page-team-detail .team-match-group h3,
body.page-team-detail .team-roster-table h2,
body.page-team-detail .team-stats-columns h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.74rem;
  font-weight: 830;
}

body.page-team-detail .team-vrs-dynamics > header > div > p {
  display: inline-flex;
  gap: 12px;
  margin: 4px 0 0;
}

body.page-team-detail .team-vrs-dynamics > header > div > p span {
  position: relative;
  padding-left: 14px;
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 680;
}

body.page-team-detail .team-vrs-dynamics > header > div > p span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

body.page-team-detail .team-vrs-dynamics > header > div > p .is-points::before {
  background: #27aa68;
}

body.page-team-detail .team-vrs-dynamics nav,
body.page-team-detail .team-view-heading nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

body.page-team-detail .team-vrs-dynamics nav a,
body.page-team-detail .team-view-heading nav a {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

body.page-team-detail .team-vrs-dynamics nav a:hover,
body.page-team-detail .team-view-heading nav a:hover {
  color: var(--text-strong);
}

body.page-team-detail .team-vrs-dynamics nav a.is-active,
body.page-team-detail .team-view-heading nav a.is-active {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

body.page-team-detail .team-vrs-dual-chart {
  position: relative;
  padding: 3px 10px 9px;
}

body.page-team-detail .team-vrs-dual-chart svg {
  display: block;
  width: 100%;
  height: 216px;
  overflow: visible;
}

body.page-team-detail .team-vrs-dual-chart__grid line {
  stroke: color-mix(in srgb, var(--line) 80%, transparent);
  stroke-width: 1;
}

body.page-team-detail .team-vrs-dual-chart__grid text,
body.page-team-detail .team-vrs-dual-chart__dates text {
  fill: var(--text-soft);
  font-size: 10px;
  font-weight: 680;
}

body.page-team-detail .team-vrs-dual-chart__rank,
body.page-team-detail .team-vrs-dual-chart__points-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

body.page-team-detail .team-vrs-dual-chart__points-line {
  stroke: #27aa68;
}

body.page-team-detail .team-vrs-dual-chart__rank-points circle {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}

body.page-team-detail .team-vrs-dual-chart__score-points circle {
  fill: var(--surface);
  stroke: #27aa68;
  stroke-width: 2;
}

body.page-team-detail .team-vrs-dual-chart__rank-points circle,
body.page-team-detail .team-vrs-dual-chart__score-points circle {
  transition: r 120ms ease, stroke-width 120ms ease;
}

body.page-team-detail .team-vrs-dual-chart__rank-points circle.is-active,
body.page-team-detail .team-vrs-dual-chart__score-points circle.is-active {
  r: 5px;
  stroke-width: 2.5;
}

body.page-team-detail .team-vrs-dual-chart__guide {
  stroke: color-mix(in srgb, var(--text-soft) 40%, transparent);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

body.page-team-detail .team-vrs-dual-chart__hits {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 10px;
  bottom: 29px;
  left: 10px;
  pointer-events: none;
}

body.page-team-detail .team-vrs-dual-chart__hit {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--vrs-hit-x);
  width: var(--vrs-hit-width);
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  outline: none;
  pointer-events: auto;
  transform: translateX(-50%);
}

body.page-team-detail .team-vrs-dual-chart__hit:focus-visible {
  box-shadow: none;
}

body.page-team-detail .team-vrs-dual-chart__hit:focus-visible::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgb(38 112 255 / 0.46);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.72);
  content: "";
  transform: translate(-50%, -50%);
}

body.page-team-detail .team-vrs-tooltip {
  position: absolute;
  z-index: 3;
  top: 20px;
  display: grid;
  min-width: 166px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid rgb(91 107 132 / 0.18);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 10px 26px rgb(15 23 42 / 0.13);
  color: var(--text-strong);
  pointer-events: none;
  transform: translateX(-50%);
}

body.page-team-detail .team-vrs-tooltip[hidden] {
  display: none;
}

body.page-team-detail .team-vrs-tooltip > strong {
  grid-column: 1 / -1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 0.53rem;
  font-weight: 780;
}

body.page-team-detail .team-vrs-tooltip > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.page-team-detail .team-vrs-tooltip b {
  font-size: 0.74rem;
  font-weight: 840;
}

body.page-team-detail .team-vrs-tooltip i {
  color: var(--text-soft);
  font-size: 0.43rem;
  font-style: normal;
  font-weight: 650;
}

body.page-team-detail .team-vrs-dual-chart__hint {
  margin: -2px 0 0;
  color: var(--text-soft);
  font-size: 0.46rem;
  font-weight: 650;
  text-align: center;
}

body.page-team-detail .team-overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.75fr);
  gap: 12px;
  padding: 12px 14px 0;
}

body.page-team-detail .team-overview-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

body.page-team-detail .team-overview-panel header a,
body.page-team-detail .team-overview-panel header > a {
  color: var(--accent);
  font-size: 0.52rem;
  font-weight: 760;
  text-decoration: none;
}

body.page-team-detail .team-profile-match {
  display: grid;
  min-height: 58px;
  grid-template-columns: 82px minmax(120px, 1fr) minmax(220px, 1.4fr) 42px 62px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}

body.page-team-detail .team-profile-match:last-child {
  border-bottom: 0;
}

body.page-team-detail .team-profile-match:hover {
  background: var(--surface-soft);
}

body.page-team-detail .team-profile-match time {
  color: var(--text-strong);
  font-size: 0.52rem;
  font-weight: 780;
}

body.page-team-detail .team-profile-match__event,
body.page-team-detail .team-profile-match__teams {
  min-width: 0;
}

body.page-team-detail .team-profile-match__event strong,
body.page-team-detail .team-profile-match__event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile-match__event strong {
  color: var(--text-strong);
  font-size: 0.51rem;
  font-weight: 770;
}

body.page-team-detail .team-profile-match__event small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.43rem;
  font-weight: 650;
}

body.page-team-detail .team-profile-match__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

body.page-team-detail .team-profile-match__teams > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

body.page-team-detail .team-profile-match__teams > span:last-child {
  flex-direction: row-reverse;
}

body.page-team-detail .team-profile-match__teams b {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.5rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile-match__teams > span:last-child b {
  text-align: right;
}

body.page-team-detail .team-profile-match__teams em {
  color: var(--text-soft);
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

body.page-team-detail .team-profile-match__logo {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body.page-team-detail .team-profile-match__logo--fallback {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.42rem;
  font-weight: 780;
}

body.page-team-detail .team-profile-match__score {
  color: var(--text-strong);
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
}

body.page-team-detail .team-profile-match__outcome {
  font-size: 0.46rem;
  font-weight: 790;
  text-align: right;
}

body.page-team-detail .team-profile-match__outcome.is-win {
  color: #159359;
}

body.page-team-detail .team-profile-match__outcome.is-loss {
  color: #d04d4d;
}

body.page-team-detail .team-profile-match__outcome.is-live {
  color: #e14c43;
}

body.page-team-detail .team-profile-match__outcome.is-upcoming {
  color: var(--accent);
}

body.page-team-detail .team-profile-match--compact {
  min-height: 55px;
  grid-template-columns: 70px minmax(0, 1fr) 34px 52px;
  gap: 8px;
  padding: 6px 10px;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__event {
  display: none;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__teams {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  gap: 4px;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__teams > span {
  gap: 4px;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__teams b {
  font-size: 0.52rem;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__logo {
  width: 21px;
  height: 21px;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__score {
  grid-column: 3;
}

body.page-team-detail .team-profile-match--compact .team-profile-match__outcome {
  grid-column: 4;
}

body.page-team-detail .team-overview-tournaments > div,
body.page-team-detail .team-tournament-list {
  display: grid;
}

body.page-team-detail .team-profile-tournament {
  display: grid;
  min-height: 69px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}

body.page-team-detail .team-profile-tournament:last-child {
  border-bottom: 0;
}

body.page-team-detail .team-profile-tournament:hover {
  background: var(--surface-soft);
}

body.page-team-detail .team-profile-tournament__logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

body.page-team-detail .team-profile-tournament__logo img,
body.page-team-detail .team-profile-tournament__logo .tournament-logo-fallback {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.page-team-detail .team-profile-tournament strong,
body.page-team-detail .team-profile-tournament small {
  display: block;
}

body.page-team-detail .team-profile-tournament strong {
  color: var(--text-strong);
  font-size: 0.59rem;
  font-weight: 790;
  line-height: 1.3;
}

body.page-team-detail .team-profile-tournament small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.49rem;
  font-weight: 650;
}

body.page-team-detail .team-profile-tournament > b {
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 730;
}

body.page-team-detail .team-profile-view > .team-news,
body.page-team-detail .team-profile-view--news > .team-news {
  margin: 10px 12px 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

body.page-team-detail .team-profile-view > .team-news .team-section__header,
body.page-team-detail .team-profile-view--news > .team-news .team-section__header {
  min-height: 43px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile-view > .team-news .team-section__header h2,
body.page-team-detail .team-profile-view--news > .team-news .team-section__header h2 {
  font-size: 0.68rem;
  text-transform: none;
}

body.page-team-detail .team-profile-view > .team-news .team-news__grid,
body.page-team-detail .team-profile-view--news > .team-news .team-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  padding: 10px 12px;
}

body.page-team-detail .team-profile-view > .team-news .team-news-item,
body.page-team-detail .team-profile-view > .team-news .team-news-item:first-child,
body.page-team-detail .team-profile-view > .team-news .team-news-item--with-media:first-child,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item:first-child,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item--with-media:first-child {
  min-height: 58px;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-team-detail .team-profile-view > .team-news .team-news-item__media,
body.page-team-detail .team-profile-view > .team-news .team-news-item:first-child .team-news-item__media,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item__media,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item:first-child .team-news-item__media {
  width: 74px;
  height: 52px;
  border-radius: 7px;
}

body.page-team-detail .team-profile-view > .team-news .team-news-item--text-only,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item--text-only {
  grid-template-columns: minmax(0, 1fr);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

body.page-team-detail .team-profile-view > .team-news .team-news-item strong,
body.page-team-detail .team-profile-view--news > .team-news .team-news-item strong {
  font-size: 0.51rem;
}

body.page-team-detail .team-profile-view > .team-news .team-news__all,
body.page-team-detail .team-profile-view--news > .team-news .team-news__all {
  border-top: 1px solid var(--line);
}

body.page-team-detail .team-profile-view--roster,
body.page-team-detail .team-profile-view--matches,
body.page-team-detail .team-profile-view--tournaments,
body.page-team-detail .team-profile-view--stats,
body.page-team-detail .team-profile-view--news {
  padding: 12px;
}

body.page-team-detail .team-profile__content-shell {
  transition: opacity 140ms ease;
}

body.page-team-detail .team-profile__content-shell.is-loading,
body.page-team-detail .team-profile__content-shell.is-entering {
  opacity: 0.58;
  pointer-events: none;
}

body.page-team-detail .team-profile-view--matches {
  padding-top: 8px;
}

body.page-team-detail .team-profile-view--tournaments {
  padding: 8px 12px 12px;
}

body.page-team-detail .team-view-heading {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -12px -12px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-view-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 840;
}

body.page-team-detail .team-view-heading p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 0.48rem;
  font-weight: 650;
}

body.page-team-detail .team-roster-board,
body.page-team-detail .team-match-group,
body.page-team-detail .team-tournament-list,
body.page-team-detail .team-stats-summary,
body.page-team-detail .team-stats-columns > section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-roster-board + .team-roster-board {
  margin-top: 10px;
}

body.page-team-detail .team-roster-board__toolbar {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 10px 5px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.page-team-detail .team-roster-board__toolbar h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 820;
}

body.page-team-detail .team-roster-period {
  display: inline-flex;
  align-items: center;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

body.page-team-detail .team-roster-period button {
  min-width: 32px;
  min-height: 23px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 8px;
  font-weight: 740;
  cursor: pointer;
}

body.page-team-detail .team-roster-period button:hover,
body.page-team-detail .team-roster-period button:focus-visible {
  color: var(--text-strong);
  outline: none;
}

body.page-team-detail .team-roster-period button.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--text-strong) 9%, transparent);
}

body.page-team-detail .team-roster-board__columns,
body.page-team-detail .team-roster-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(420px, 1.3fr);
  align-items: center;
  gap: 20px;
}

body.page-team-detail .team-roster-board__columns {
  min-height: 34px;
  padding: 0 15px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

body.page-team-detail .team-roster-board__metric-columns,
body.page-team-detail .team-roster-row__metrics {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

body.page-team-detail .team-roster-board__metric-header {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
}

body.page-team-detail .team-roster-board__metric-header .team-roster-board__metric-columns {
  width: 100%;
}

body.page-team-detail .team-roster-row + .team-roster-row {
  border-top: 1px solid var(--line);
}

body.page-team-detail .team-roster-row {
  position: relative;
  min-height: 70px;
  padding: 0 15px;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

body.page-team-detail .team-roster-row:hover,
body.page-team-detail .team-roster-row:focus-visible {
  z-index: 1;
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent);
  outline: none;
}

body.page-team-detail .team-roster-row__player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

body.page-team-detail .team-roster-row__portrait {
  position: relative;
  width: 66px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
}

body.page-team-detail .team-roster-row__portrait img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 66px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

body.page-team-detail .team-roster-row__portrait.has-photo img {
  top: 0;
  width: 86px;
}

body.page-team-detail .team-roster-row__portrait img.is-fallback {
  filter: grayscale(1) contrast(0.94) brightness(1.1);
}

body.page-team-detail .team-roster-row__identity {
  min-width: 0;
}

body.page-team-detail .team-roster-row__identity strong,
body.page-team-detail .team-roster-row__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-roster-row__identity strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 840;
}

body.page-team-detail .team-roster-row__identity strong > span {
  flex: 0 0 auto;
  font-size: 10px;
}

body.page-team-detail .team-roster-row__identity small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 9.5px;
  font-weight: 650;
}

body.page-team-detail .team-roster-row__fact {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

body.page-team-detail .team-roster-row__fact > span,
body.page-team-detail .team-roster-row__fact > strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-roster-row__fact > small {
  color: var(--text-soft);
  font-size: 0.44rem;
  font-weight: 650;
}

body.page-team-detail .team-roster-row__locked {
  color: color-mix(in srgb, var(--text-soft) 82%, transparent);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.015em;
}

body.page-team-detail .team-roster-row--staff {
  grid-template-columns: minmax(0, 1fr);
}

body.page-team-detail .team-roster-changes {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-roster-changes > header {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.page-team-detail .team-roster-changes h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 820;
}

body.page-team-detail .team-roster-changes__empty {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 18px;
  text-align: center;
}

body.page-team-detail .team-roster-changes__empty strong {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 790;
}

body.page-team-detail .team-roster-changes__empty span {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 620;
}

body.page-team-detail .team-roster-board__footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 17px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
}

body.page-team-detail .team-roster-board__footer > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 18px;
}

body.page-team-detail .team-roster-board__footer > span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

body.page-team-detail .team-roster-board__footer small {
  color: var(--text-soft);
  font-size: 0.42rem;
  font-weight: 720;
  text-transform: uppercase;
}

body.page-team-detail .team-roster-board__footer strong {
  color: var(--text-strong);
  font-size: 0.58rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

body.page-team-detail .team-match-group + .team-match-group {
  margin-top: 10px;
}

body.page-team-detail .team-match-group > header span {
  color: var(--text-soft);
  font-size: 0.48rem;
  font-weight: 700;
}

body.page-team-detail .team-profile-view--tournaments .team-tournament-list {
  display: block;
  padding: 1px 11px;
  border: 0;
  border-radius: 0;
}

body.page-team-detail .team-profile-view--tournaments .team-tournament-history {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-profile-view--tournaments .team-profile-tournament:nth-child(odd) {
  border-right: 0;
}

body.page-team-detail .team-profile-tournament--history {
  min-height: 34px;
  grid-template-columns: 28px minmax(150px, 1fr) minmax(190px, .9fr) minmax(86px, auto);
  gap: 12px;
  padding: 3px 4px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 150ms ease;
}

body.page-team-detail .team-profile-tournament--history::before {
  content: none;
}

body.page-team-detail .team-profile-tournament--history:hover {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

body.page-team-detail .team-profile-tournament--history:focus-visible {
  border-radius: 5px;
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: -2px;
}

body.page-team-detail .team-profile-tournament--history:hover::before {
  content: none;
}

body.page-team-detail .team-profile-tournament--history .team-profile-tournament__logo {
  width: 26px;
  height: 26px;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-team-detail .team-profile-tournament--history .team-profile-tournament__logo img,
body.page-team-detail .team-profile-tournament--history .team-profile-tournament__logo .tournament-logo-fallback {
  width: auto;
  height: auto;
  max-width: 22px;
  max-height: 22px;
}

body.page-team-detail .team-profile-tournament__identity {
  min-width: 0;
}

body.page-team-detail .team-profile-tournament--history .team-profile-tournament__identity strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 9.5px;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile-tournament--history .team-profile-tournament__identity small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 7.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile-tournament__facts {
  display: grid;
  min-width: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82px, 1fr);
  gap: 12px;
}

body.page-team-detail .team-profile-tournament__facts > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

body.page-team-detail .team-profile-tournament__facts small {
  overflow: hidden;
  color: color-mix(in srgb, var(--text-soft) 76%, transparent);
  font-size: 6px;
  font-weight: 760;
  letter-spacing: 0.055em;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.page-team-detail .team-profile-tournament__facts b {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 8.25px;
  font-weight: 740;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile-tournament__result {
  display: flex;
  min-width: 86px;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  text-align: right;
}

body.page-team-detail .team-profile-tournament__result b {
  margin: 0;
  white-space: nowrap;
}

body.page-team-detail .team-profile-tournament__result b {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
}

body.page-team-detail .team-profile-tournament--history.is-live .team-profile-tournament__result b {
  color: #d94c4c;
}

body.page-team-detail .team-profile-tournament--history.is-upcoming .team-profile-tournament__result b {
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

body.page-team-detail .team-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-team-detail .team-stats-summary > div {
  display: flex;
  min-height: 94px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
}

body.page-team-detail .team-stats-summary > div:last-child {
  border-right: 0;
}

body.page-team-detail .team-stats-summary span {
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 700;
}

body.page-team-detail .team-stats-summary strong {
  color: var(--text-strong);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

body.page-team-detail .team-stats-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body.page-team-detail .team-stats-columns > section > h3 {
  min-height: 42px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-stats-columns .team-profile__form {
  min-height: 126px;
  justify-content: center;
}

body.page-team-detail .team-stats-columns .team-map-stats,
body.page-team-detail .team-stats-columns .team-achievements {
  border: 0;
  border-radius: 0;
}

body.page-team-detail .team-stats-columns .team-map-stats > header,
body.page-team-detail .team-stats-columns .team-achievements > header {
  display: none;
}

body.page-team-detail .team-profile-pending,
body.page-team-detail .team-profile-empty {
  display: flex;
  min-height: 118px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  color: var(--text-soft);
  text-align: center;
}

body.page-team-detail .team-profile-pending strong,
body.page-team-detail .team-profile-empty strong {
  color: var(--text-strong);
  font-size: 0.61rem;
  font-weight: 810;
}

body.page-team-detail .team-profile-pending span,
body.page-team-detail .team-profile-empty span {
  max-width: 410px;
  font-size: 0.5rem;
  font-weight: 650;
  line-height: 1.5;
}

body.page-team-detail .team-profile-empty {
  min-height: 158px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 1180px) {
  body.page-team-detail .team-club-header {
    min-height: 84px;
    grid-template-columns: minmax(0, 72%) 118px minmax(0, 1fr);
  }

  body.page-team-detail .team-club-header__identity {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding-inline: 18px;
  }

  body.page-team-detail .team-club-header__logo {
    width: 64px;
    height: 64px;
  }

  body.page-team-detail .team-overview-player__copy small {
    display: none;
  }

  body.page-team-detail .team-profile-match,
  body.page-team-detail .team-profile-match--compact {
    grid-template-columns: 72px minmax(100px, 0.9fr) minmax(185px, 1.35fr) 38px 52px;
  }
}

@media (max-width: 760px) {
  body.page-team-detail .team-club-header {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  body.page-team-detail .team-club-header__identity {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
  }

  body.page-team-detail .team-club-header__logo {
    width: 52px;
    height: 52px;
  }

  body.page-team-detail .team-club-header__identity h1 {
    font-size: 1.05rem;
  }

  body.page-team-detail .team-club-header__title {
    gap: 4px;
  }

  body.page-team-detail .team-club-header__title > span {
    margin-top: 0;
    font-size: 0.46rem;
  }

  body.page-team-detail .team-club-header__ranking {
    grid-column: 2;
    grid-row: 1;
  }

  body.page-team-detail .team-club-header__ranking::before {
    top: 10px;
    bottom: 10px;
  }

  body.page-team-detail .team-club-tabs {
    padding-inline: 0;
  }

  body.page-team-detail .team-club-tabs a,
  body.page-team-detail .team-club-tabs > .is-disabled {
    min-width: 82px;
    flex-basis: 82px;
    padding-inline: 8px;
  }

  body.page-team-detail .team-overview-roster {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    padding-inline: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body.page-team-detail .team-overview-player {
    scroll-snap-align: start;
  }

  body.page-team-detail .team-vrs-dynamics {
    margin-inline: 10px;
  }

  body.page-team-detail .team-vrs-dynamics > header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page-team-detail .team-vrs-dynamics nav,
  body.page-team-detail .team-view-heading nav {
    max-width: 100%;
    overflow-x: auto;
  }

  body.page-team-detail .team-overview-columns,
  body.page-team-detail .team-stats-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team-detail .team-profile-match,
  body.page-team-detail .team-profile-match--compact {
    min-height: 82px;
    grid-template-columns: 72px minmax(0, 1fr) 40px;
    gap: 7px;
  }

  body.page-team-detail .team-profile-match__event {
    grid-column: 2;
  }

  body.page-team-detail .team-profile-match__teams {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.page-team-detail .team-profile-match__score {
    grid-column: 3;
    grid-row: 1;
  }

  body.page-team-detail .team-profile-match__outcome {
    display: none;
  }

  body.page-team-detail .team-view-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page-team-detail .team-roster-board__columns,
  body.page-team-detail .team-roster-row {
    grid-template-columns: minmax(190px, 0.7fr) minmax(350px, 1.3fr);
    gap: 10px;
  }

  body.page-team-detail .team-roster-board__metric-columns,
  body.page-team-detail .team-roster-row__metrics {
    gap: 7px;
  }

  body.page-team-detail .team-profile-view--tournaments .team-tournament-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team-detail .team-profile-view--tournaments .team-profile-tournament:nth-child(odd) {
    border-right: 0;
  }

  body.page-team-detail .team-profile-tournament--history {
    min-height: 34px;
    grid-template-columns: 28px minmax(0, 1fr) minmax(82px, auto);
    gap: 8px;
    padding: 3px 4px;
  }

  body.page-team-detail .team-profile-tournament--history .team-profile-tournament__logo {
    width: 26px;
    height: 26px;
    padding: 2px;
    grid-row: 1 / span 2;
  }

  body.page-team-detail .team-profile-tournament--history .team-profile-tournament__logo img,
  body.page-team-detail .team-profile-tournament--history .team-profile-tournament__logo .tournament-logo-fallback {
    max-width: 22px;
    max-height: 22px;
  }

  body.page-team-detail .team-profile-tournament__facts {
    grid-column: 2 / -1;
    grid-row: 2;
    grid-auto-columns: minmax(0, max-content);
    gap: 14px;
  }

  body.page-team-detail .team-profile-tournament__result {
    min-width: 82px;
  }

  body.page-team-detail .team-stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-team-detail .team-stats-summary > div:nth-child(2) {
    border-right: 0;
  }

  body.page-team-detail .team-stats-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body.page-team-detail .team-profile--reference-v3 .team-profile__topbar {
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  body.page-team-detail .team-profile--reference-v3 .team-profile__topbar > span {
    display: none;
  }

  body.page-team-detail .team-profile--reference-v3 .team-profile__breadcrumbs {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-height: 18px;
    padding: 13px 18px 0;
  }

  body.page-team-detail .team-profile-view--roster {
    padding: 8px;
  }

  body.page-team-detail .team-roster-board__toolbar {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 5px 8px 5px 11px;
  }

  body.page-team-detail .team-roster-period {
    width: auto;
    margin-left: auto;
  }

  body.page-team-detail .team-roster-period button {
    flex: 1 1 0;
    padding-inline: 4px;
  }

  body.page-team-detail .team-roster-board__columns {
    display: none;
    min-height: 0;
    padding: 0 11px;
  }

  body.page-team-detail .team-roster-board__columns > span:first-child,
  body.page-team-detail .team-roster-board__metric-header > .team-roster-board__metric-columns {
    display: none;
  }

  body.page-team-detail .team-roster-board__metric-header {
    min-height: 36px;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
  }

  body.page-team-detail .team-roster-board__metric-header .team-roster-period {
    position: static;
    width: auto;
  }

  body.page-team-detail .team-roster-row {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 43px 30px;
    gap: 0 7px;
    padding: 0 11px;
  }

  body.page-team-detail .team-roster-row__player {
    grid-column: 1;
    grid-row: 1;
  }

  body.page-team-detail .team-roster-row__portrait {
    width: 52px;
    height: 42px;
  }

  body.page-team-detail .team-roster-row__portrait img {
    width: 52px;
  }

  body.page-team-detail .team-roster-row__portrait.has-photo img {
    top: 0;
    width: 68px;
  }

  body.page-team-detail .team-roster-row__metrics {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  body.page-team-detail .team-roster-row__fact::before,
  body.page-team-detail .team-roster-row__locked::before {
    color: var(--text-soft);
    content: attr(data-label);
    font-size: 0.3rem;
    font-weight: 730;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.page-team-detail .team-roster-row__fact {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 4px;
  }

  body.page-team-detail .team-roster-row__fact::before {
    grid-column: 1 / -1;
  }

  body.page-team-detail .team-roster-row__locked {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    justify-content: start;
    gap: 4px;
    padding: 0;
  }

  body.page-team-detail .team-roster-row__locked::before {
    grid-column: 1 / -1;
  }

  body.page-team-detail .team-roster-board__footer {
    flex-wrap: wrap;
    gap: 7px 0;
    padding-block: 8px;
  }

  body.page-team-detail .team-roster-changes > header {
    padding-inline: 11px;
  }
}

/* Team tabs: immediate, non-blocking feedback during async view navigation. */
body.page-team-detail .team-profile__content-shell {
  position: relative;
}

body.page-team-detail .team-profile__content-shell.is-loading,
body.page-team-detail .team-profile__content-shell.is-entering {
  opacity: 1;
  pointer-events: auto;
}

body.page-team-detail .team-profile__content-shell.is-loading > .team-profile-view {
  opacity: 0.76;
  pointer-events: none;
  transition: opacity 160ms ease;
}

body.page-team-detail .team-profile__content-shell.is-entering > .team-profile-view {
  animation: team-profile-view-enter 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-team-detail .team-profile__content-shell.is-loading::before,
body.page-team-detail .team-profile__content-shell.is-loading::after {
  position: absolute;
  top: 33px;
  left: 0;
  z-index: 3;
  height: 2px;
  pointer-events: none;
  content: "";
}

body.page-team-detail .team-profile__content-shell.is-loading::before {
  width: 100%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

body.page-team-detail .team-profile__content-shell.is-loading::after {
  width: 34%;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: team-profile-tab-progress 820ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

body.page-team-detail .team-club-tabs a.is-pending {
  color: var(--accent);
  font-weight: 820;
}

body.page-team-detail .team-club-tabs a.is-pending::after {
  background: color-mix(in srgb, var(--accent) 58%, transparent);
  transform: translateX(-50%) scaleX(0.72);
}

@keyframes team-profile-tab-progress {
  from { transform: translateX(-105%); }
  to { transform: translateX(310%); }
}

@keyframes team-profile-view-enter {
  from { opacity: 0.72; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-team-detail .team-profile__content-shell.is-loading::after {
    width: 42%;
    animation: none;
    transform: none;
  }

  body.page-team-detail .team-profile__content-shell.is-entering > .team-profile-view {
    animation: none;
  }
}

/* Final entity-page overrides: keep these after legacy responsive rules. */
.page-teams .teams-page { padding: 0 16px 16px; }
.page-teams .teams-hero,
.page-players .players-hero { margin-inline: -16px; padding: 0 16px 15px; }
.page-teams .teams-hero { align-items: flex-start; }
.page-teams .teams-hero__breadcrumbs { margin: 0 0 7px; }
.page-teams .teams-toolbar { flex-direction: row; gap: 8px; margin-top: 0; padding: 10px 0; border-width: 1px 0 0; border-radius: 0; background: transparent; }
.page-teams .teams-search { flex: 1 1 260px; width: auto; max-width: 340px; }
.page-teams .teams-search__input { min-width: 0; padding-right: 118px; }
.page-teams .teams-search__clear { right: 108px; }
.page-teams .teams-grid--list { grid-template-columns: 1fr; }


.page-teams .teams-grid--list .team-directory-card__footer { border-top: 0; border-left: 1px solid var(--line); }
.hero .search { overflow: visible; }
.hero.is-search-open .search { box-shadow: 0 8px 22px rgba(17, 24, 39, .07); }
.hero .search__input:focus { border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); background: var(--surface-strong); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 5%, transparent); transform: none; }

@media (max-width: 1180px) {
  .page-teams .teams-grid--list .team-directory-card { grid-template-columns: minmax(190px, .9fr) minmax(130px, 1fr); }
  .page-teams .teams-grid--list .team-directory-card__footer { grid-column: 1 / -1; padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 860px) {
  .page-teams .teams-page, .page-players .players-page { padding: 0 12px 12px; }
  .page-teams .teams-hero, .page-players .players-hero { margin-inline: -12px; padding: 0 12px 15px; }
  .page-teams .teams-toolbar { flex-direction: row; flex-wrap: wrap; }
  .page-teams .teams-filter { flex: 1 1 auto; }
  .page-teams .teams-search { order: 3; max-width: none; flex-basis: 100%; }

  .page-teams .teams-grid--list .team-directory-card__roster { min-height: 34px; margin-top: 12px; }
  .page-teams .teams-grid--list .team-directory-card__footer { width: 100%; margin-top: auto; }
}

/* Entity polish: shared width, controls and profile data. */
@media (min-width: 1280px) {
  body.page-players,
  body.page-player-detail,
  body.page-tournament-detail {
    --container: 1328px;
  }
}

.page-players .page-grid--players,
.page-player-detail .page-grid--player-detail,
.page-tournament-detail .page-grid--tournament-detail {
  grid-template-columns: 263px minmax(0, 720px) 286px;
  gap: 14px;
  justify-content: center;
}

.page-tournament-detail .page-grid--tournament-detail {
  grid-template-columns: 263px minmax(0, 720px) 274px;
}

.page-teams .teams-toolbar {
  align-items: center;
}

.page-teams .teams-search--directory {
  max-width: none;
}

.page-teams .teams-search--directory .teams-search__input {
  min-height: 40px;
  padding-right: 38px;
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  background: var(--surface-muted);
}

.page-teams .teams-search--directory .teams-search__clear {
  right: 7px;
}

.teams-sort--standalone {
  position: relative;
  inset: auto;
  display: flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-strong);
}

.teams-sort--standalone > span {
  color: var(--text-soft);
  font-size: 0.58rem;
  font-weight: 650;
}

.teams-sort--standalone select {
  height: 30px;
  padding: 0 25px 0 8px;
  border: 0;
  border-left: 1px solid var(--line);
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 700 0.66rem/1 var(--font-sans);
}

.team-directory-card__footer {
  min-height: 38px;
}

.team-directory-card__next {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label time" "opponent opponent";
  align-items: center;
  gap: 4px 8px;
}

.team-directory-card__next-label {
  grid-area: label;
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 680;
}

.team-directory-card__next-label b {
  color: #c7453f;
}

.team-directory-card__next time {
  grid-area: time;
  color: var(--text-soft);
  font-size: 0.56rem;
}

.team-directory-card__next-opponent {
  display: flex;
  min-width: 0;
  grid-area: opponent;
  align-items: center;
  gap: 6px;
}

.team-directory-card__next-opponent strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-directory-card__next-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.team-profile__stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.team-profile__stats-head > span {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 760;
}

.team-period-filter,
.team-tournaments__tabs,
.players-scope {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.team-period-filter a,
.team-tournaments__tabs button,
.players-scope a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font: 700 0.61rem/1 var(--font-sans);
  text-decoration: none;
}

.team-period-filter a.is-active,
.team-tournaments__tabs button.is-active,
.players-scope a.is-active {
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.team-profile__stats-head + .team-profile__facts {
  margin-top: 10px;
}


.team-match-row__teams {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.team-match-row__team {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.team-match-row__team.is-current {
  color: var(--text);
}

.team-match-row__team strong {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-match-row__logo {
  width: 24px;
  height: 24px;
}

.team-match-row__score {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.team-match-row__score.is-win {
  background: #eaf6ef;
  color: #137a52;
}

.team-match-row__score.is-loss {
  background: #fbeceb;
  color: #b7443e;
}

:root[data-theme="dark"] .team-match-row__score.is-win { background: rgba(44, 144, 95, .18); color: #7fd3aa; }
:root[data-theme="dark"] .team-match-row__score.is-loss { background: rgba(190, 74, 67, .18); color: #ee9b96; }

.team-match-row__competition {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

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

.team-match-row__competition small {
  font-size: 0.55rem;
}

.team-section__show-more {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font: 700 0.66rem/1 var(--font-sans);
}

.team-section__show-more:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
  color: var(--text);
}

.team-tournaments__tabs {
  margin: -4px 0 12px;
}

.team-tournaments__tabs button span {
  color: var(--text-soft);
  font-size: 0.54rem;
}

.players-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.players-search {
  margin: 0;
}

.players-selects {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
}

.players-selects label {
  display: flex;
  min-height: 38px;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-strong);
}

.players-selects label > span {
  color: var(--text-soft);
  font-size: 0.58rem;
  font-weight: 650;
}

.players-selects select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 700 0.64rem/1 var(--font-sans);
}

.player-directory-card__copy small b {
  font-size: .82rem;
}

.player-profile__role {
  color: var(--accent-strong);
  font-size: 0.62rem;
  font-weight: 760;
}

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

.player-profile__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.player-profile__meta b {
  font-size: 1rem;
}

.player-profile__team {
  grid-template-columns: 44px minmax(0, 1fr) 12px;
}

.player-profile__free {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 680;
}

.player-profile__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.search-suggestions {
  width: min(480px, 90vw);
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgb(24 39 66 / 13%);
}

.search-suggestions__heading {
  padding: 7px 8px 5px;
  font-size: .61rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

.search-suggestions__item {
  position: relative;
  min-height: 44px;
  border: 1px solid transparent;
}

.search-suggestions__item:hover,
.search-suggestions__item.is-active {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-muted) 76%, var(--surface-strong));
}

.feed-settings__heading .feed-settings__title,
.feed-settings__heading--mode .feed-settings__title {
  font: 700 0.84rem/1.15 var(--font-sans) !important;
}

.feed-settings__heading .feed-settings__description,
.feed-settings__heading--mode .feed-settings__description {
  font: 500 0.69rem/1.35 var(--font-sans) !important;
}

@media (min-width: 1080px) and (max-width: 1279.98px) {
  .page-players .page-grid--players,
  .page-player-detail .page-grid--player-detail,
  .page-tournament-detail .page-grid--tournament-detail {
    grid-template-columns: minmax(0, 720px) 286px;
  }

  .page-tournament-detail .page-grid--tournament-detail {
    grid-template-columns: minmax(0, 720px) 274px;
  }
}

@media (min-width: 1000px) and (max-width: 1079.98px) {
  .page-players .page-grid--players,
  .page-player-detail .page-grid--player-detail,
  .page-tournament-detail .page-grid--tournament-detail {
    width: min(100%, 994px);
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 10px;
    justify-content: stretch;
    margin-inline: auto;
  }
}

@media (min-width: 861px) and (max-width: 999.98px) {
  .page-players .page-grid--players,
  .page-player-detail .page-grid--player-detail,
  .page-tournament-detail .page-grid--tournament-detail {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    justify-content: stretch;
    margin-inline: 0;
  }

  .page-players .players-page,
  .page-player-detail .player-detail-stack,
  .page-tournament-detail .tournament-detail-stack {
    width: 100%;
    max-width: 100%;
    grid-column: 1;
  }
}

@media (max-width: 999.98px) {
  .page-teams .page-grid--teams > .home-right-sidebar,
  .page-team-detail .page-grid--team-detail > .home-right-sidebar,
  .page-players .page-grid--players > .home-right-sidebar,
  .page-player-detail .page-grid--player-detail > .home-right-sidebar,
  .page-tournament-detail .page-grid--tournament-detail > .home-right-sidebar {
    display: none;
  }
}

@media (max-width: 860px) {
  .page-players .page-grid--players,
  .page-player-detail .page-grid--player-detail,
  .page-tournament-detail .page-grid--tournament-detail {
    display: block;
  }

  .teams-sort--standalone {
    flex: 1 1 auto;
  }

  .players-toolbar {
    grid-template-columns: 1fr;
  }

  .players-scope,
  .players-search,
  .players-selects {
    grid-column: 1;
  }

  .players-scope {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-profile__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-profile__stats-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-period-filter {
    width: 100%;
    overflow-x: auto;
  }

  .team-period-filter a {
    flex: 1 0 auto;
  }


}

@media (max-width: 520px) {


  .player-profile,
  .tournament-profile {
    padding: 15px;
  }

  .player-profile__hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .player-profile__photo {
    width: 64px;
    height: 64px;
  }

  .team-period-filter a {
    padding-inline: 8px;
    font-size: .58rem;
  }
}

/* Final entity layout layer. Keep after legacy team and responsive rules. */
.page-teams .teams-directory-sort {
  margin-left: auto;
}

.page-teams .teams-directory-sort + .teams-view {
  margin-left: 0;
}

.page-tournament-detail .tournament-profile {
  --tournament-profile-accent: #1768d2;
  --tournament-profile-soft: #eef4fd;
  --tournament-profile-deep: #071b3b;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--tournament-profile-accent) 13%, var(--line));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--tournament-profile-soft) 82%, var(--surface-strong));
  box-shadow: 0 6px 20px rgb(16 24 40 / 4%);
}

.page-tournament-detail .tournament-profile.is-theme-coral {
  --tournament-profile-accent: #db4b3f;
  --tournament-profile-soft: #fff1ef;
  --tournament-profile-deep: #2a1720;
}

.page-tournament-detail .tournament-profile.is-theme-teal {
  --tournament-profile-accent: #087f78;
  --tournament-profile-soft: #e9f6f5;
  --tournament-profile-deep: #082d34;
}

.page-tournament-detail .tournament-profile.is-theme-violet {
  --tournament-profile-accent: #6652c9;
  --tournament-profile-soft: #f0edfb;
  --tournament-profile-deep: #211a4e;
}

.page-tournament-detail .tournament-profile.is-theme-slate {
  --tournament-profile-accent: #425b78;
  --tournament-profile-soft: #edf2f7;
  --tournament-profile-deep: #132337;
}

.page-tournament-detail .tournament-profile.is-theme-amber {
  --tournament-profile-accent: #a56b11;
  --tournament-profile-soft: #faf3e4;
  --tournament-profile-deep: #38250c;
}

.page-tournament-detail .tournament-profile.is-theme-graphite {
  --tournament-profile-accent: #46515f;
  --tournament-profile-soft: #f1f3f5;
  --tournament-profile-deep: #171b21;
}

.tournament-detail-shell {
  --tournament-profile-accent: #1768d2;
  --tournament-profile-soft: #eef4fd;
  --tournament-profile-deep: #071b3b;
  display: grid;
  min-width: 0;
  gap: 12px;
}

.tournament-detail-shell.is-theme-coral {
  --tournament-profile-accent: #db4b3f;
  --tournament-profile-soft: #fff1ef;
  --tournament-profile-deep: #2a1720;
}

.tournament-detail-shell.is-theme-teal {
  --tournament-profile-accent: #087f78;
  --tournament-profile-soft: #e9f6f5;
  --tournament-profile-deep: #082d34;
}

.tournament-detail-shell.is-theme-violet {
  --tournament-profile-accent: #6652c9;
  --tournament-profile-soft: #f0edfb;
  --tournament-profile-deep: #211a4e;
}

.tournament-detail-shell.is-theme-slate {
  --tournament-profile-accent: #425b78;
  --tournament-profile-soft: #edf2f7;
  --tournament-profile-deep: #132337;
}

.tournament-detail-shell.is-theme-amber {
  --tournament-profile-accent: #a56b11;
  --tournament-profile-soft: #faf3e4;
  --tournament-profile-deep: #38250c;
}

.tournament-detail-shell.is-theme-graphite {
  --tournament-profile-accent: #46515f;
  --tournament-profile-soft: #f1f3f5;
  --tournament-profile-deep: #171b21;
}

.tournament-profile__catalog-header {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: 8px 18px 10px;
  gap: 14px;
  background: transparent;
}

.tournament-profile__catalog-header.has-spotlight {
  grid-template-columns: minmax(0, 1fr) minmax(252px, 280px);
}

.tournament-profile__heading {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: space-between;
  padding-top: 22px;
  gap: 14px;
  isolation: isolate;
}

.tournament-profile__breadcrumbs {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 18px;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 18px 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
}

.tournament-profile__breadcrumbs.has-spotlight {
  right: 312px;
}

.tournament-profile__breadcrumbs a,
.tournament-profile__breadcrumbs-current {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tournament-profile__breadcrumbs a {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 650;
  transition: color var(--transition-fast);
}

.tournament-profile__breadcrumbs-current {
  color: color-mix(in srgb, var(--text-soft) 76%, transparent);
  font-weight: 500;
}

.tournament-profile__breadcrumbs a:hover,
.tournament-profile__breadcrumbs a:focus-visible {
  color: var(--accent-strong);
}

.tournament-profile__breadcrumbs > span[aria-hidden="true"] {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--text-muted) 52%, transparent);
}

.page-tournament-detail .tournament-profile__hero {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  margin: 0;
  gap: 12px;
}

.page-tournament-detail .tournament-profile__logo {
  display: grid;
  width: 100%;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.page-tournament-detail .tournament-profile__logo img {
  max-width: 68px;
  max-height: 62px;
}

.tournament-profile__identity {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "meta";
  align-items: center;
  row-gap: 4px;
}

.tournament-profile__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  grid-area: meta;
  justify-self: start;
  gap: 7px;
}

.page-tournament-detail .tournament-profile__status {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  color: var(--tournament-profile-accent);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-tournament-detail .tournament-profile__status i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

.page-tournament-detail .tournament-profile__status.is-live {
  color: #c83933;
  border-color: transparent;
  background: transparent;
}

.page-tournament-detail .tournament-profile__status.is-past {
  color: color-mix(in srgb, var(--text-muted) 86%, var(--tournament-profile-accent));
  border-color: color-mix(in srgb, var(--text-muted) 14%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface-strong));
}

.page-tournament-detail .tournament-profile__identity h1 {
  max-width: 100%;
  margin: 0;
  grid-area: title;
  color: var(--text);
  font-size: clamp(1.42rem, 1.8vw, 1.72rem);
  font-weight: 790;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-tournament-detail .tournament-profile__tier,
.page-tournament-detail .tournament-profile__stage {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.2;
}

.page-tournament-detail .tournament-profile__tier {
  text-transform: uppercase;
}

.page-tournament-detail .tournament-profile__tier::before,
.page-tournament-detail .tournament-profile__stage::before {
  content: "·";
  color: color-mix(in srgb, var(--text-muted) 48%, transparent);
}

.tournament-profile__catalog-header > .tournament-profile__spotlight {
  min-height: 100%;
  align-self: stretch;
}

.tournament-profile__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tournament-profile-accent) 10%, var(--line));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--tournament-profile-soft));
}

.tournament-profile__metric {
  display: grid;
  min-width: 0;
  min-height: 34px;
  align-content: center;
  padding: 5px 9px;
  border-left: 1px solid color-mix(in srgb, var(--tournament-profile-accent) 9%, var(--line));
}

.tournament-profile__metric:first-child {
  border-left: 0;
}

.tournament-profile__metric dt {
  margin: 0 0 3px;
  color: var(--text-soft);
  font-size: 0.43rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.tournament-profile__metric dd {
  display: flex;
  min-width: 0;
  align-items: center;
  margin: 0;
}

.tournament-profile__metric strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.67rem;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-profile__metric--period strong {
  font-variant-numeric: tabular-nums;
}

.team-matches__header > span,
.tournament-participants__header > span,
.tournament-profile-matches__header > span,
.tournament-stages__header > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.team-matches__header small,
.tournament-participants__header small,
.tournament-profile-matches__header small,
.tournament-stages__header small {
  color: var(--text-soft);
  font-size: .57rem;
  font-weight: 580;
}

.tournament-participants {
  padding: 0;
  overflow: hidden;
  background: var(--surface-strong);
}

.tournament-participants__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--surface-strong);
}

.tournament-participants__grid > a {
  display: grid;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  padding: 7px 9px;
  gap: 8px;
  border-radius: 0;
  color: inherit;
  background: var(--surface-strong);
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.tournament-participants__grid > a:hover,
.tournament-participants__grid > a:focus-visible {
  background: var(--content-hover-bg);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 54%, transparent), inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}

.tournament-participants__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.tournament-participants__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.tournament-participants__copy strong {
  overflow: hidden;
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-participants__copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.52rem;
  font-weight: 570;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-participants__rank {
  display: grid;
  min-width: 27px;
  min-height: 22px;
  align-self: start;
  place-items: center;
  padding: 0 5px;
  border-radius: 6px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
  font-size: 0.52rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.tournament-participants__grid > a:hover .tournament-participants__rank,
.tournament-participants__grid > a:focus-visible .tournament-participants__rank {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong));
}

.tournament-stages {
  overflow: hidden;
}

.tournament-stages__header > b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding-inline: 7px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: var(--surface-muted);
  font-size: 0.68rem;
}

.tournament-stages__tabs {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  overscroll-behavior-block: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  scrollbar-width: thin;
}

.tournament-stages__tab {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 44px;
  padding: 6px 3px 7px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.tournament-stages__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.tournament-stages__tab > span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 710;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-stages__tab > small {
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 560;
  white-space: nowrap;
}

.tournament-stages__tab:hover {
  color: var(--text);
}

.tournament-stages__tab.is-active {
  color: var(--accent-strong);
  background: transparent;
  box-shadow: none;
}

.tournament-stages__tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.tournament-stages__tab:focus {
  outline: 0;
}

.tournament-stages__tab:focus-visible {
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent);
}

.tournament-stages__panel {
  padding: 0 12px 12px;
}

.tournament-stages.is-compact .tournament-stages__tabs {
  border-top: 0;
}

.tournament-stages.is-compact {
  padding: 4px 10px 10px;
}

.tournament-stages.is-compact .tournament-stages__panel {
  padding-top: 8px;
}

.tournament-stage-meta {
  display: flex;
  min-height: 34px;
  min-width: 0;
  align-items: center;
  margin: 0 -12px 6px;
  padding: 0 14px;
  gap: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface-strong));
  font-size: 0.54rem;
  font-weight: 610;
}

.tournament-stage-meta > * {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  white-space: nowrap;
}

.tournament-stage-meta > * + *::before {
  margin-inline: 8px;
  color: color-mix(in srgb, var(--text-soft) 54%, transparent);
  content: "·";
}

.tournament-stage-meta strong {
  overflow: hidden;
  color: var(--text-muted);
  font-size: inherit;
  font-weight: 700;
  text-overflow: ellipsis;
}

.tournament-stages__empty {
  padding: 28px 16px 22px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 520px) {
  .tournament-stages__tabs {
    gap: 16px;
    padding-inline: 10px;
  }

  .tournament-stages__panel {
    padding-inline: 10px;
  }

  .tournament-stage-meta {
    margin-inline: -10px;
    padding-inline: 10px;
  }
}

.tournament-profile-matches__groups {
  gap: 8px;
}

.tournament-profile-matches__group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.tournament-profile-matches__group > header {
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface-strong));
}

.tournament-profile-matches__group h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 720;
}

.tournament-profile-matches__group.is-live h3 {
  color: #bd3d37;
}

.tournament-profile-matches__group.is-live h3 i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4d48;
  box-shadow: 0 0 0 3px rgb(239 77 72 / 10%);
}

.tournament-profile-matches__group > header span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: auto;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  font-size: 0.49rem;
  font-weight: 700;
}

.tournament-profile-match {
  min-height: 52px;
  grid-template-columns: 148px minmax(0, 1fr) 42px minmax(0, 1fr) 32px 10px;
  padding: 5px 9px;
  gap: 8px;
  border-bottom-color: var(--line);
  font-size: 0.62rem;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.tournament-profile-match:last-child {
  border-bottom: 0;
}

.tournament-profile-match:hover,
.tournament-profile-match:focus-visible {
  border-radius: 0;
  background: var(--content-hover-bg);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 52%, transparent);
  outline: 0;
}

.tournament-profile-match.is-placeholder {
  cursor: default;
}

.tournament-profile-match.is-placeholder:hover,
.tournament-profile-match.is-placeholder:focus-visible {
  background: transparent;
  box-shadow: none;
}

.tournament-profile-match__team.is-placeholder {
  color: var(--text-soft);
  pointer-events: none;
}

.tournament-profile-match > time {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.tournament-profile-match > time b {
  overflow: hidden;
  font-size: 0.54rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-profile-match--live > time b {
  color: #ca403a;
}

.tournament-profile-match > time small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 560;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tournament-profile-match__team {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-align: right;
}

.tournament-profile-match__team.is-right {
  grid-template-columns: 24px minmax(0, 1fr);
  text-align: left;
}

.tournament-profile-match__team strong {
  overflow: hidden;
  font-size: 0.59rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-profile-match__team.is-loser {
  color: var(--text-soft);
}

.tournament-profile-match__team.is-winner strong {
  font-weight: 760;
}

.tournament-profile-match__logo {
  width: 24px;
  height: 24px;
}

.tournament-profile-match__score {
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 0.61rem;
}

.tournament-profile-match__format {
  justify-self: center;
  font-size: 0.49rem;
  font-weight: 660;
}

@media (max-width: 700px) {
  .tournament-profile-match {
    grid-template-columns: 112px minmax(0, 1fr) 38px minmax(0, 1fr) 9px;
    gap: 6px;
  }

  .tournament-profile-match__format {
    display: none;
  }
}

@media (max-width: 520px) {
  .tournament-profile-match {
    min-height: 44px;
    grid-template-columns: 55px minmax(0, 1fr) 34px minmax(0, 1fr);
    padding-inline: 6px;
  }

  .tournament-profile-match__arrow,
  .tournament-profile-match > time small {
    display: none;
  }

  .tournament-profile-match__team {
    grid-template-columns: minmax(0, 1fr) 21px;
    gap: 5px;
  }

  .tournament-profile-match__team.is-right {
    grid-template-columns: 21px minmax(0, 1fr);
  }

  .tournament-profile-match__logo {
    width: 21px;
    height: 21px;
  }
}

.team-match-row {
  min-height: 66px;
  grid-template-columns: 70px minmax(160px, 1fr) 52px minmax(110px, .75fr) 14px;
  padding-block: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.team-match-row__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-match-row__date > strong {
  color: var(--text-soft);
  font-size: .59rem;
  font-variant-numeric: tabular-nums;
}

.team-match-row__team,
.team-match-row__competition {
  color: inherit;
  text-decoration: none;
}

.team-match-row__outcome {
  width: fit-content;
  color: var(--text-soft);
  font-size: .51rem;
  font-weight: 800;
}

.team-match-row__outcome.is-win { color: #137a52; }
.team-match-row__outcome.is-loss { color: #b7443e; }

.team-match-row--featured {
  min-height: 82px;
  margin-bottom: 5px;
  padding-inline: 10px;
  border-color: color-mix(in srgb, var(--accent-strong) 16%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent-soft) 22%, var(--surface-strong));
}

.team-match-row--featured .team-match-row__team {
  grid-template-columns: 32px minmax(0, 1fr);
}

.team-match-row--featured .team-match-row__logo {
  width: 32px;
  height: 32px;
}

.matches-team-filter__menu {
  width: min(320px, calc(100vw - 24px));
}

@media (max-width: 860px) {
  .page-teams .teams-toolbar {
    align-items: center;
  }

  .page-teams .teams-directory-sort {
    flex: 1 1 auto;
    margin-left: 0;
  }

  .team-match-row {
    grid-template-columns: 64px minmax(0, 1fr) 44px 12px;
  }

  .team-match-row__competition {
    display: none;
  }
}

@media (max-width: 520px) {
  .players-selects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex-direction: initial;
  }

  .page-matches .matches-team-filter .matches-tournament-filter__summary {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .page-matches .matches-team-filter .matches-tournament-filter__label,
  .page-matches .matches-team-filter .matches-tournament-filter__chevron {
    display: none;
  }

  .page-matches .matches-team-filter__menu {
    right: auto;
    left: 0;
  }

  .team-match-row,
  .team-match-row--featured {
    grid-template-columns: 58px minmax(0, 1fr) 40px;
    padding-inline: 4px;
  }

  .team-match-row__arrow,
  .team-match-row__competition {
    display: none;
  }
}

/* Teams directory final overrides: keep the comparison table stable after legacy directory rules. */
.page-teams .page-grid.page-grid--teams-table {
  grid-template-columns: minmax(0, 1fr);
}

.page-teams .page-grid--teams-table .teams-page {
  width: 100%;
  max-width: none;
}

.page-teams .teams-list-header,
.page-teams .teams-grid--list .team-directory-card {
  display: grid;
  grid-template-columns: 42px minmax(190px, 1.15fr) 78px 86px minmax(190px, 1fr) 116px minmax(190px, 1fr) 16px;
  grid-template-areas: none;
  align-items: center;
  gap: 12px;
}

.page-teams .teams-grid--list {
  display: block;
}

.page-teams .teams-grid--list .team-directory-card {
  min-height: 78px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-teams .teams-grid--list .team-directory-card__position,
.page-teams .teams-grid--list .team-directory-card__identity,
.page-teams .teams-grid--list .team-directory-card__region,
.page-teams .teams-grid--list .team-directory-card__vrs,
.page-teams .teams-grid--list .team-directory-card__roster,
.page-teams .teams-grid--list .team-directory-card__form,
.page-teams .teams-grid--list .team-directory-card__footer {
  grid-area: auto;
}

.page-teams .teams-grid--list .team-directory-card__region,
.page-teams .teams-grid--list .team-directory-card__vrs,
.page-teams .teams-grid--list .team-directory-card__roster,
.page-teams .teams-grid--list .team-directory-card__form,
.page-teams .teams-grid--list .team-directory-card__footer {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-teams .teams-grid--list .team-directory-card__region {
  padding-left: 0;
}

.page-teams .teams-grid--list .team-directory-card__roster {
  overflow: visible;
  white-space: normal;
}

.page-teams .teams-grid--list .team-directory-card__roster-items {
  display: flex;
  grid-template-columns: none;
  gap: 3px;
}

.page-teams .teams-grid--list .team-directory-card__footer {
  align-self: center;
}

.page-teams .teams-grid--list .team-directory-card__arrow {
  position: static;
  justify-self: end;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .page-teams .teams-list-header,
  .page-teams .teams-grid--list .team-directory-card {
    grid-template-columns: 38px minmax(170px, 1fr) 68px 76px minmax(170px, .9fr) 106px minmax(170px, 1fr) 14px;
    gap: 9px;
  }
}

@media (max-width: 860px) {
  .page-teams .teams-list-header {
    display: none;
  }

  .page-teams .teams-grid--list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-teams .teams-grid--list .team-directory-card {
    position: relative;
    display: grid;
    min-height: 234px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas:
      "position identity vrs"
      ". region vrs"
      "roster roster roster"
      "form footer footer";
    align-items: center;
    gap: 6px 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius-card) - 3px);
    background: var(--surface-strong);
  }

  .page-teams .teams-grid--list .team-directory-card__position { grid-area: position; }
  .page-teams .teams-grid--list .team-directory-card__identity { grid-area: identity; }
  .page-teams .teams-grid--list .team-directory-card__region { grid-area: region; padding-left: 58px; }
  .page-teams .teams-grid--list .team-directory-card__vrs { grid-area: vrs; align-self: start; justify-content: flex-end; padding-top: 5px; }
  .page-teams .teams-grid--list .team-directory-card__roster { grid-area: roster; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .page-teams .teams-grid--list .team-directory-card__form { grid-area: form; }
  .page-teams .teams-grid--list .team-directory-card__footer { grid-area: footer; padding-left: 10px; border-left: 1px solid var(--line); }
  .page-teams .teams-grid--list .team-directory-card__arrow { position: absolute; right: 10px; bottom: 9px; }
}

@media (max-width: 620px) {
  .page-teams .directory-sort--compact .directory-sort__icon {
    display: grid;
  }

  .page-teams .teams-grid--list {
    grid-template-columns: 1fr;
  }
}

/* Tournament profile: one featured-match shell for live, upcoming and finished events. */
.tournament-featured-match {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  padding: 7px 12px 11px;
  border: 1px solid color-mix(in srgb, var(--tournament-profile-accent) 58%, transparent);
  border-radius: var(--radius-card);
  color: #f7faff;
  background: var(--tournament-profile-deep);
  box-shadow: 0 8px 22px rgb(7 18 40 / 14%);
  cursor: pointer;
}

.tournament-featured-match.is-complete {
  border-color: color-mix(in srgb, #d9a323 48%, transparent);
}

.tournament-featured-match:hover,
.tournament-featured-match:focus-visible {
  border-color: color-mix(in srgb, var(--tournament-profile-accent) 78%, #fff);
  box-shadow: 0 16px 34px rgb(7 18 40 / 22%);
}

.tournament-featured-match.is-complete:hover,
.tournament-featured-match.is-complete:focus-visible {
  border-color: color-mix(in srgb, #d9a323 72%, #fff);
}

.tournament-featured-match__header {
  position: relative;
  display: flex;
  min-height: 18px;
  min-width: 0;
  align-items: center;
  text-transform: uppercase;
}

.tournament-featured-match__heading {
  display: inline-flex;
  max-width: calc(100% - 138px);
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.tournament-featured-match__heading > b {
  overflow: hidden;
  color: #f7faff;
  font-size: 0.59rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-overflow: clip;
  white-space: nowrap;
}

.tournament-featured-match__heading > em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff8c86;
  font-size: 0.49rem;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0.045em;
}

.tournament-featured-match__heading > em i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #ff5148;
  box-shadow: 0 0 0 3px rgb(255 81 72 / 12%);
}

.tournament-featured-match__stage {
  position: absolute;
  top: 50%;
  right: 0;
  overflow: hidden;
  max-width: 132px;
  padding: 3px 6px;
  border-radius: 6px;
  color: #dbe8ff;
  background: rgb(255 255 255 / 9%);
  font-size: 0.5rem;
  font-weight: 720;
  text-overflow: clip;
  transform: translateY(-50%);
  white-space: nowrap;
}

.tournament-featured-match__moment {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.tournament-featured-match__moment > strong {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.tournament-featured-match__moment > .tournament-featured-match__score {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.tournament-featured-match__score span {
  min-width: 0.65em;
  color: #fff;
}

.tournament-featured-match__score i {
  color: #91a1bb;
  font-style: normal;
}

.tournament-featured-match__score .is-winner {
  color: #8ed172;
  text-shadow: 0 0 14px rgb(112 203 91 / 24%);
}

.tournament-featured-match__score .is-loser {
  color: #ff9188;
}

.tournament-featured-match__moment > small {
  color: #cbd7eb;
  font-size: 0.52rem;
  font-weight: 560;
}

.tournament-featured-match__moment > b {
  margin-top: 2px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #e9f1ff;
  background: rgb(255 255 255 / 10%);
  font-size: 0.58rem;
  font-weight: 720;
}

.tournament-featured-match__scoreboard {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(62px, 74px) minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  margin-block: 2px 0;
  gap: 6px;
}

.tournament-featured-match__team {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  grid-template-rows: 38px 14px;
  justify-self: stretch;
  justify-items: center;
  gap: 4px;
  color: #eaf1ff;
  text-align: center;
}

.tournament-featured-match__team.is-right {
  text-align: center;
}

.tournament-featured-match__logo {
  display: block;
  width: 38px;
  height: 38px;
  margin-inline: auto;
  padding: 4px;
  border-radius: 8px;
  background: rgb(255 255 255 / 92%);
  object-fit: contain;
}

.tournament-featured-match__logo--fallback {
  display: grid;
  place-items: center;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.015em;
}

.tournament-featured-match__team strong {
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.61rem;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: clip;
  white-space: nowrap;
}

.tournament-featured-match__team.is-winner {
  color: #fff;
}

.tournament-featured-match__team.is-winner .tournament-featured-match__logo {
  box-shadow: 0 0 0 2px rgb(142 209 114 / 68%);
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 18%));
}

.tournament-featured-match__team.is-loser {
  color: #a9b5ca;
}

.tournament-featured-match__team.is-loser .tournament-featured-match__logo {
  opacity: 0.58;
  filter: grayscale(0.45) saturate(0.7);
}

.tournament-featured-match__versus {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: #8192ae;
  font-size: 0.72rem;
  font-weight: 720;
}

.tournament-featured-match__winner {
  display: flex;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.tournament-featured-match__winner > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tournament-featured-match__winner small {
  color: #aebdd4;
  font-size: 0.6rem;
  font-weight: 650;
  text-transform: uppercase;
}

.tournament-featured-match__winner strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 780;
}

.tournament-featured-match__action {
  display: flex;
  width: 100%;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  margin-top: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--tournament-profile-accent);
  background: #fff;
  font: 740 0.56rem/1 var(--font-sans);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.tournament-featured-match__action span {
  font-size: 0.86rem;
  line-height: 1;
}

.tournament-featured-match__action:hover,
.tournament-featured-match__action:focus-visible {
  color: var(--tournament-profile-deep);
  background: color-mix(in srgb, var(--tournament-profile-soft) 78%, #fff);
}

.tournament-featured-match__action:active {
  transform: translateY(1px);
}

.tournament-detail-content {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tournament-profile-accent) 11%, var(--line));
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  box-shadow: 0 6px 20px rgb(16 24 40 / 4%);
}

.tournament-detail-tabs {
  display: flex;
  min-height: 34px;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.tournament-detail-tabs::-webkit-scrollbar {
  display: none;
}

.tournament-detail-tabs button,
.tournament-detail-tabs > .is-disabled {
  position: relative;
  display: flex;
  min-width: 82px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  flex: 1 0 82px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  background-color: transparent;
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.008em;
  cursor: pointer;
  transition: color 150ms ease, transform 100ms ease;
  white-space: nowrap;
}

.tournament-detail-tabs > * + * {
  background-image: linear-gradient(to bottom, transparent calc(50% - 9px), color-mix(in srgb, var(--line) 82%, transparent) calc(50% - 9px), color-mix(in srgb, var(--line) 82%, transparent) calc(50% + 9px), transparent calc(50% + 9px));
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1px 100%;
}

.tournament-detail-tabs button::after {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: clamp(44px, 44%, 64px);
  height: 2px;
  border-radius: var(--radius-pill);
  background: transparent;
  content: "";
  transform: translateX(-50%) scaleX(0.45);
  transition: background-color 150ms ease, transform 180ms ease;
}

.tournament-detail-tabs button:not(.is-disabled):hover {
  color: var(--text);
}

.tournament-detail-tabs button.is-active {
  color: var(--text-strong);
  font-weight: 820;
}

.tournament-detail-tabs button.is-active::after {
  background: var(--tournament-profile-accent);
  transform: translateX(-50%) scaleX(1);
}

.tournament-detail-tabs button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tournament-profile-accent) 42%, transparent);
  outline-offset: 1px;
}

.tournament-detail-tabs > .is-disabled {
  flex-direction: column;
  gap: 1px;
  color: color-mix(in srgb, var(--text-soft) 66%, transparent);
  line-height: 1;
  cursor: not-allowed;
}

.tournament-detail-tabs > .is-disabled small {
  color: color-mix(in srgb, var(--tournament-profile-accent) 72%, var(--text-soft));
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  line-height: 1;
}

.tournament-detail-panels {
  min-width: 0;
  padding: 10px;
  background: color-mix(in srgb, var(--tournament-profile-soft) 22%, var(--bg-secondary));
}

.tournament-detail-panels > [role="tabpanel"] {
  min-width: 0;
}

.tournament-detail-panels > [role="tabpanel"] > .team-section {
  margin: 0;
}

/* Tournament news uses the same compact editorial cards as the team news tab. */
.page-tournament-detail .tournament-news-view {
  min-width: 0;
}

.page-tournament-detail .tournament-news-view > .team-news {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-tournament-detail .tournament-news-view .team-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 10px 10px 6px;
}

.page-tournament-detail .tournament-news-view .team-news-item,
.page-tournament-detail .tournament-news-view .team-news-item:first-child,
.page-tournament-detail .tournament-news-view .team-news-item--with-media:first-child {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 106px auto;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.page-tournament-detail .tournament-news-view .team-news-item:hover {
  border-color: color-mix(in srgb, var(--tournament-profile-accent) 18%, var(--line));
  background: color-mix(in srgb, var(--tournament-profile-accent) 4%, transparent);
}

.page-tournament-detail .tournament-news-view .team-news-item__media,
.page-tournament-detail .tournament-news-view .team-news-item:first-child .team-news-item__media {
  width: 100%;
  height: 106px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 72%, transparent);
}

.page-tournament-detail .tournament-news-view .team-news-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.page-tournament-detail .tournament-news-view .team-news-item:hover .team-news-item__media img {
  transform: scale(1.025);
}

.page-tournament-detail .tournament-news-view .team-news-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding-inline: 2px;
}

.page-tournament-detail .tournament-news-view .team-news-item strong,
.page-tournament-detail .tournament-news-view .team-news-item:first-child strong {
  display: -webkit-box;
  min-height: 31px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.page-tournament-detail .tournament-news-view .team-news-item__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

.page-tournament-detail .tournament-news-view .team-news-item__date {
  margin-right: auto;
}

.page-tournament-detail .tournament-news-view .team-news-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.page-tournament-detail .tournament-news-view .team-news-item__meta-icon,
.page-tournament-detail .tournament-news-view .team-news-item__meta-icon svg {
  display: block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
}

.page-tournament-detail .tournament-news-view .team-news-item--text-only {
  min-height: 152px;
  grid-template-rows: minmax(0, 1fr);
  padding: 12px;
  border-color: var(--line);
  background: var(--surface-muted);
}

.page-tournament-detail .tournament-news-view .team-section__show-more {
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 7px 8px 8px;
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 7px;
  background: var(--surface);
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 10px;
  font-weight: 760;
}

.page-tournament-detail .tournament-news-view .team-section__show-more:hover {
  border-color: color-mix(in srgb, var(--tournament-profile-accent) 20%, var(--line));
  background: color-mix(in srgb, var(--tournament-profile-accent) 4%, var(--surface));
  color: color-mix(in srgb, var(--tournament-profile-accent) 78%, var(--text));
}

@media (max-width: 900px) {
  .page-tournament-detail .tournament-news-view .team-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-tournament-detail .tournament-news-view .team-news__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0;
  }

  .page-tournament-detail .tournament-news-view .team-news-item,
  .page-tournament-detail .tournament-news-view .team-news-item:first-child,
  .page-tournament-detail .tournament-news-view .team-news-item--with-media:first-child {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
  }

  .page-tournament-detail .tournament-news-view .team-news-item__media,
  .page-tournament-detail .tournament-news-view .team-news-item:first-child .team-news-item__media {
    width: 118px;
    height: 76px;
  }

  .page-tournament-detail .tournament-news-view .team-news-item--text-only {
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-tournament-detail .tournament-news-view .team-news-item,
  .page-tournament-detail .tournament-news-view .team-news-item__media img,
  .page-tournament-detail .tournament-news-view .team-section__show-more {
    transition: none;
  }
}

.tournament-results {
  overflow: hidden;
}

.tournament-results__fund {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.tournament-results__fund small,
.tournament-results__prize small,
.tournament-results__final-score small {
  color: var(--text-soft);
  font-size: 0.46rem;
  font-weight: 620;
}

.tournament-results__fund strong {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.tournament-results__placements,
.tournament-results__empty {
  border-top: 1px solid var(--line);
}

.tournament-results__placement {
  display: grid;
  min-width: 0;
  min-height: 52px;
  grid-template-columns: 88px minmax(0, 1fr) 72px 104px;
  align-items: center;
  padding: 7px 14px;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: inherit;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.tournament-results__placement:first-child {
  border-top: 0;
}

.tournament-results__placement:hover,
.tournament-results__placement:focus-visible {
  background: var(--content-hover-bg);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 54%, transparent);
  outline: 0;
}

.tournament-results__placement.is-pending {
  color: var(--text-muted);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-muted) 64%, var(--surface-strong)), var(--surface-strong) 58%);
}

.tournament-results__placement.is-pending .tournament-results__placement-logo {
  opacity: 0.72;
  filter: grayscale(1);
}

.tournament-results__placement.is-winner {
  min-height: 64px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green) 9%, var(--surface-strong)), var(--surface-strong) 68%);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--green) 72%, transparent);
}

.tournament-results__place,
.tournament-results__prize,
.tournament-results__final-score {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tournament-results__place b {
  font-size: 0.61rem;
  font-weight: 760;
}

.tournament-results__place small {
  color: var(--text-soft);
  font-size: 0.48rem;
  font-weight: 570;
}

.tournament-results__placement-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.tournament-results__placement-team strong {
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-results__placement-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.tournament-results__placement.is-winner .tournament-results__placement-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.tournament-results__placement-logo--fallback {
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-weight: 760;
}

.tournament-results__final-score {
  justify-items: center;
  font-variant-numeric: tabular-nums;
}

.tournament-results__final-score b {
  font-size: 0.67rem;
  font-weight: 780;
}

.tournament-results__prize {
  justify-items: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tournament-results__prize strong {
  font-size: 0.63rem;
  font-weight: 760;
}

.tournament-results__empty {
  display: grid;
  min-height: 116px;
  place-content: center;
  padding: 20px;
  gap: 5px;
  text-align: center;
}

.tournament-results__empty strong {
  font-size: 0.72rem;
  font-weight: 740;
}

.tournament-results__empty span {
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 570;
}

.tournament-bracket {
  overflow: hidden;
  padding: 4px 10px 10px;
}

.tournament-bracket__header > b {
  display: grid;
  min-width: 42px;
  height: 25px;
  place-items: center;
  padding-inline: 8px;
  border-radius: var(--radius-pill);
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted));
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
}

.tournament-bracket__tabs {
  border-top: 0;
}

.tournament-bracket__panels,
.tournament-bracket__panel {
  min-width: 0;
}

.tournament-bracket__empty {
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.64rem;
  text-align: center;
}

.tournament-bracket-groups {
  display: grid;
  gap: 10px;
  padding-block: 10px 2px;
}

.tournament-bracket-source-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.tournament-bracket-source-group > header {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--tournament-profile-soft) 28%, var(--surface-muted));
}

.tournament-bracket-source-group > header strong {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 780;
}

.tournament-bracket-source-group > header span {
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 650;
}

.tournament-bracket-source-group > .tournament-bracket__viewport {
  padding-inline: 8px;
}

.tournament-gsl-stage {
  align-self: start;
  padding: 10px 12px 13px;
  background: color-mix(in srgb, var(--surface-muted) 42%, var(--surface-strong));
}

.tournament-gsl-stage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.tournament-gsl-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.tournament-gsl-group > header {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
}

.tournament-gsl-group > header strong {
  font-size: 0.61rem;
  font-weight: 750;
}

.tournament-gsl-group > header span {
  color: var(--text-soft);
  font-size: 0.44rem;
  font-weight: 620;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.tournament-gsl-group__board {
  position: relative;
  display: grid;
  min-width: 292px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "opening winners"
    "elimination decider";
  align-items: start;
  padding: 10px;
  gap: 11px 14px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), color-mix(in srgb, var(--line) 54%, transparent) 50%, transparent calc(50% + 1px));
}

.tournament-gsl-group__round {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tournament-gsl-group__round.is-opening { grid-area: opening; }
.tournament-gsl-group__round.is-winners {
  grid-area: winners;
  align-self: center;
}
.tournament-gsl-group__round.is-elimination { grid-area: elimination; }
.tournament-gsl-group__round.is-decider { grid-area: decider; }

.tournament-gsl-group__routes {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.tournament-gsl-group__routes path {
  fill: none;
  stroke: color-mix(in srgb, var(--text-soft) 42%, var(--line));
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: opacity var(--transition-fast), stroke var(--transition-fast), stroke-width var(--transition-fast);
}

.tournament-gsl-group__routes path.is-team-path-route {
  stroke: color-mix(in srgb, var(--accent) 80%, var(--text));
  stroke-width: 2.1;
}

.tournament-gsl-group__routes path.is-team-path-muted {
  opacity: 0.1;
}

.tournament-gsl-group__round > header {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 0.48rem;
  font-weight: 720;
}

.tournament-gsl-group__round > div {
  display: grid;
  gap: 7px;
}

.tournament-gsl-match {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  box-shadow: 0 2px 7px rgb(16 24 40 / 5%);
}

.tournament-gsl-match:not(.is-placeholder) {
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.tournament-gsl-match:not(.is-placeholder):hover,
.tournament-gsl-match:not(.is-placeholder):focus-visible {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 4px 12px rgb(26 55 95 / 9%);
  outline: 0;
  transform: translateY(-1px);
}

.tournament-gsl-match--live {
  border-color: color-mix(in srgb, #ef4444 34%, var(--line));
}

.tournament-gsl-group.is-team-path-active .tournament-gsl-match.is-team-path-match {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent), var(--shadow-soft);
}

.tournament-gsl-group.is-team-path-active .tournament-gsl-match.is-team-path-muted {
  opacity: 0.34;
}

.tournament-gsl-group.is-team-path-active [data-tournament-gsl-team] {
  opacity: 0.58;
}

.tournament-gsl-group.is-team-path-active [data-tournament-gsl-team].is-team-path {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  opacity: 1;
}

.tournament-gsl-match > header {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface-strong));
  font-size: 0.42rem;
  font-variant-numeric: tabular-nums;
}

.tournament-gsl-match--live > header span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c83f39;
  font-weight: 730;
  text-transform: uppercase;
}

.tournament-gsl-match--live > header i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4d48;
  box-shadow: 0 0 0 3px rgb(239 77 72 / 10%);
}

.tournament-gsl-match > div > a {
  display: grid;
  min-width: 0;
  min-height: 29px;
  grid-template-columns: 21px minmax(0, 1fr) 16px;
  align-items: center;
  padding: 3px 6px;
  gap: 5px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--text);
}

.tournament-gsl-match > div > a:first-child {
  border-top: 0;
}

.tournament-gsl-match > div > a.is-loser {
  color: var(--text-soft);
}

.tournament-gsl-match > div > a.is-loser strong {
  opacity: 0.68;
}

.tournament-gsl-match > div > a.is-loser .tournament-gsl-match__logo {
  opacity: 0.5;
  filter: grayscale(0.55) saturate(0.62);
}

.tournament-gsl-match > div > a.is-winner {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--green) 72%, transparent);
}

.tournament-gsl-match__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tournament-gsl-match > div > a strong {
  overflow: hidden;
  font-size: 0.49rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-gsl-match > div > a b {
  justify-self: end;
  font-size: 0.5rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.tournament-gsl-match.is-placeholder {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 8px;
  border-style: dashed;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 34%, var(--surface-strong));
  font-size: 0.45rem;
  text-align: center;
}

.tournament-group-standings {
  padding: 10px 12px 13px;
  background: color-mix(in srgb, var(--surface-muted) 42%, var(--surface-strong));
}

.tournament-group-standings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tournament-group-table {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.tournament-group-table > header {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
}

.tournament-group-table > header strong {
  font-size: 0.59rem;
  font-weight: 730;
}

.tournament-group-table > header > b {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--surface-strong);
  font-size: 0.49rem;
}

.tournament-group-table__scroll {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tournament-group-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tournament-group-table th,
.tournament-group-table td {
  height: 31px;
  padding: 3px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--text-muted);
  font-size: 0.49rem;
  text-align: center;
  white-space: nowrap;
}

.tournament-group-table thead th {
  height: 24px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 36%, var(--surface-strong));
  font-size: 0.43rem;
  font-weight: 680;
}

.tournament-group-table th:nth-child(n + 3):nth-child(-n + 6),
.tournament-group-table td:nth-child(n + 3):nth-child(-n + 6) {
  width: 27px;
}

.tournament-group-table td.is-points strong {
  color: var(--text);
  font-size: 0.51rem;
  font-weight: 800;
}

.tournament-group-table tbody tr:last-child > * {
  border-bottom: 0;
}

.tournament-group-table tbody tr.is-qualified > :first-child {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--green) 74%, transparent);
}

.tournament-group-table tbody tr.is-eliminated {
  background: color-mix(in srgb, var(--system-state-error) 3.5%, var(--surface-strong));
}

.tournament-group-table tbody tr.is-eliminated > :first-child {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--system-state-error) 82%, transparent);
}

.tournament-group-table tbody td:first-child > b {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-muted);
  font-size: 0.48rem;
}

.tournament-group-table tbody th {
  min-width: 106px;
  text-align: left;
}

.tournament-group-table tbody th a {
  display: grid;
  min-width: 0;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.tournament-group-table__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tournament-group-table tbody th span {
  overflow: hidden;
  font-size: 0.5rem;
  font-weight: 650;
  text-overflow: ellipsis;
}

.tournament-swiss {
  border-top: 0;
  background: var(--surface-strong);
}

.tournament-swiss__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 0 10px;
  outline: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong)), var(--surface-strong) 20px, var(--surface-strong) calc(100% - 20px), color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong)));
  scrollbar-color: color-mix(in srgb, var(--text-soft) 28%, transparent) transparent;
  scrollbar-width: thin;
}

.tournament-swiss__viewport:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 36%, transparent);
}

.tournament-swiss__board {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 500px;
  box-sizing: border-box;
  overflow: visible;
  margin-inline: auto;
  padding-inline: 6px;
  grid-template-columns: repeat(5, minmax(82px, 106px));
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.tournament-swiss-round {
  position: relative;
  min-width: 0;
  min-height: 520px;
}

.tournament-swiss-round__baskets {
  position: relative;
  min-height: 520px;
}

.tournament-swiss__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.tournament-swiss-route {
  opacity: 0;
  color: color-mix(in srgb, var(--green) 78%, transparent);
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.tournament-swiss__board.is-routes-ready .tournament-swiss-route {
  opacity: 0.76;
}

.tournament-swiss-route.is-loss {
  color: color-mix(in srgb, var(--system-state-error) 74%, transparent);
}

.tournament-swiss-route__line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
  transition: stroke-width var(--transition-fast);
}

.tournament-swiss-route__origin,
.tournament-swiss-route__target {
  fill: currentColor;
}

.tournament-swiss-basket {
  --swiss-basket-color: var(--text-soft);
  --swiss-basket-fill: 0%;
  --swiss-basket-header-fill: 2%;
  --swiss-basket-border-strength: 12%;
  --swiss-basket-bar-strength: 0%;
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--swiss-basket-color) var(--swiss-basket-border-strength), var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--swiss-basket-color) var(--swiss-basket-fill), var(--surface-strong));
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--swiss-basket-color) var(--swiss-basket-bar-strength), transparent),
    0 2px 5px color-mix(in srgb, var(--text) 3.5%, transparent);
}

.tournament-swiss-basket > header {
  display: flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  background: color-mix(in srgb, var(--swiss-basket-color) var(--swiss-basket-header-fill), var(--surface-strong));
}

.tournament-swiss-basket > div {
  overflow: visible;
  border-radius: 0 0 6px 6px;
}

.tournament-swiss-basket[data-swiss-match-slots="1"] > div { min-height: 30px; }
.tournament-swiss-basket[data-swiss-match-slots="2"] > div { min-height: 60px; }
.tournament-swiss-basket[data-swiss-match-slots="3"] > div { min-height: 90px; }
.tournament-swiss-basket[data-swiss-match-slots="4"] > div { min-height: 120px; }
.tournament-swiss-basket[data-swiss-match-slots="5"] > div { min-height: 150px; }
.tournament-swiss-basket[data-swiss-match-slots="6"] > div { min-height: 180px; }
.tournament-swiss-basket[data-swiss-match-slots="7"] > div { min-height: 210px; }
.tournament-swiss-basket[data-swiss-match-slots="8"] > div { min-height: 240px; }

.tournament-swiss-basket > header > b {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
}

.tournament-swiss-round:nth-of-type(1) .tournament-swiss-basket--0-0 {
  top: 118px;
}

.tournament-swiss-round:nth-of-type(2) .tournament-swiss-basket--1-0 {
  top: 45px;
}

.tournament-swiss-round:nth-of-type(2) .tournament-swiss-basket--0-1 {
  bottom: 45px;
}

.tournament-swiss-round:nth-of-type(3) .tournament-swiss-basket--2-0 {
  top: 14px;
}

.tournament-swiss-round:nth-of-type(3) .tournament-swiss-basket--1-1 {
  top: 180px;
}

.tournament-swiss-round:nth-of-type(3) .tournament-swiss-basket--0-2 {
  bottom: 14px;
}

.tournament-swiss-round:nth-of-type(4) .tournament-swiss-basket--2-1 {
  top: 76px;
}

.tournament-swiss-round:nth-of-type(4) .tournament-swiss-basket--1-2 {
  bottom: 76px;
}

.tournament-swiss-round:nth-of-type(5) .tournament-swiss-basket--2-2 {
  top: 198px;
}

.tournament-swiss-match {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 30px;
  grid-template-columns: 24px minmax(24px, 32px) 24px;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  gap: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: var(--surface-strong);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.tournament-swiss-match__placeholder-team {
  justify-self: start;
  color: var(--text-soft);
  font-size: 0.48rem;
  font-weight: 720;
}

.tournament-swiss-match__placeholder-team.is-right {
  justify-self: end;
}

.tournament-swiss-match.has-result.is-left-winner {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--green) 68%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 10%, var(--surface-strong)), var(--surface-strong) 62%);
}

.tournament-swiss-match.has-result.is-right-winner {
  box-shadow: inset -2px 0 0 color-mix(in srgb, var(--green) 68%, transparent);
  background: linear-gradient(270deg, color-mix(in srgb, var(--green) 10%, var(--surface-strong)), var(--surface-strong) 62%);
}

.tournament-swiss-match:last-child {
  border-bottom: 0;
}

.tournament-swiss-match[role="button"] {
  cursor: pointer;
}

.tournament-swiss-match:hover,
.tournament-swiss-match:focus-visible {
  z-index: 3;
  background: var(--content-hover-bg);
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--accent) 48%, transparent),
    0 3px 8px color-mix(in srgb, var(--text) 10%, transparent);
  outline: 0;
  transform: translateY(-1px);
}

.tournament-swiss-match__team {
  position: relative;
  display: grid;
  width: 25px;
  place-items: center;
}

.tournament-swiss-match__team.is-right {
  justify-self: end;
}

.tournament-swiss-match__team a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.tournament-swiss-match__team a:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-strong));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-1px);
}

.tournament-swiss-match__team a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.tournament-swiss-match__logo {
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  object-fit: contain;
}

.tournament-swiss-match__logo--fallback,
.tournament-swiss-outcome__logo--fallback {
  display: grid;
  box-sizing: border-box;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.tournament-swiss-match__team.is-winner .tournament-swiss-match__logo {
  border-color: color-mix(in srgb, var(--green) 58%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--surface-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent);
}

.tournament-swiss-match__team.is-entry-win:not(.is-winner, .is-loser) .tournament-swiss-match__logo {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--surface-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent);
}

.tournament-swiss-match__team.is-entry-loss:not(.is-winner, .is-loser) .tournament-swiss-match__logo {
  border-color: color-mix(in srgb, var(--system-state-error) 46%, var(--line));
  background: color-mix(in srgb, var(--system-state-error) 7%, var(--surface-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--system-state-error) 10%, transparent);
}

.tournament-swiss-match__team.is-winner::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 9px;
  height: 9px;
  place-items: center;
  border: 1px solid var(--surface-strong);
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--green) 82%, #32791e);
  content: "W";
  font-size: 0.32rem;
  font-weight: 900;
  line-height: 1;
}

.tournament-swiss-match.has-result .tournament-swiss-match__team.is-loser {
  opacity: 1;
  filter: none;
}

.tournament-swiss-match.has-result .tournament-swiss-match__team.is-loser > a {
  opacity: 0.6;
  filter: grayscale(0.48);
}

.tournament-swiss-match__team.is-loser .tournament-swiss-match__logo {
  border-color: color-mix(in srgb, var(--system-state-error) 54%, var(--line));
  background: color-mix(in srgb, var(--system-state-error) 8%, var(--surface-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--system-state-error) 12%, transparent);
}

.tournament-swiss-match__team.is-loser::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 9px;
  height: 9px;
  place-items: center;
  border: 1px solid var(--surface-strong);
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--system-state-error) 82%, #8f2d13);
  content: "L";
  font-size: 0.32rem;
  font-weight: 900;
  line-height: 1;
}

.tournament-swiss-match__score {
  display: grid;
  min-width: 24px;
  min-height: 18px;
  place-items: center;
  padding: 1px 3px;
  border-radius: 5px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
  font-size: 0.5rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.tournament-swiss-outcome {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  overflow: visible;
  min-height: 60px;
  border: 1px solid color-mix(in srgb, currentColor 26%, var(--line));
  border-radius: 7px;
  color: var(--text-muted);
  background: var(--surface-strong);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--text) 4%, transparent);
}

.tournament-swiss-outcome.is-qualified {
  color: color-mix(in srgb, var(--green) 78%, var(--text));
  background: color-mix(in srgb, var(--green) 7%, var(--surface-strong));
  box-shadow: 0 2px 6px color-mix(in srgb, var(--text) 4%, transparent);
}

.tournament-swiss-outcome.is-eliminated {
  color: color-mix(in srgb, var(--system-state-error) 78%, var(--text));
  background: color-mix(in srgb, var(--system-state-error) 6%, var(--surface-strong));
  box-shadow: 0 2px 6px color-mix(in srgb, var(--text) 4%, transparent);
}

.tournament-swiss-outcome > header {
  display: grid;
  min-height: 25px;
  place-items: center;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, var(--line));
}

.tournament-swiss-outcome > header strong {
  color: currentColor;
  font-size: 0.64rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tournament-swiss-outcome > div {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  gap: 2px;
}

.tournament-swiss-outcome a {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  box-sizing: border-box;
  place-items: center;
  border-radius: 50%;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.tournament-swiss-outcome a:hover {
  background: var(--surface-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 16%, transparent);
  transform: translateY(-1px);
}

.tournament-swiss-outcome a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.tournament-swiss-outcome__logo {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  object-fit: contain;
}

.tournament-swiss-outcome__logo--fallback {
  font-size: 0.68rem;
}

.tournament-swiss-outcome.is-qualified .tournament-swiss-outcome__logo {
  border-color: color-mix(in srgb, var(--green) 58%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--surface-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent);
}

.tournament-swiss-outcome.is-eliminated .tournament-swiss-outcome__logo {
  border-color: color-mix(in srgb, var(--system-state-error) 54%, var(--line));
  background: color-mix(in srgb, var(--system-state-error) 8%, var(--surface-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--system-state-error) 12%, transparent);
}

.tournament-swiss-outcome__empty {
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 720;
}

.tournament-swiss-round:nth-of-type(4) .tournament-swiss-outcome--3-0,
.tournament-swiss-round:nth-of-type(5) .tournament-swiss-outcome--3-1 {
  top: 0;
}

.tournament-swiss-round:nth-of-type(4) .tournament-swiss-outcome--0-3,
.tournament-swiss-round:nth-of-type(5) .tournament-swiss-outcome--1-3 {
  bottom: 0;
}

.tournament-swiss-round:nth-of-type(5) .tournament-swiss-outcome--3-2 {
  top: 78px;
}

.tournament-swiss-round:nth-of-type(5) .tournament-swiss-outcome--2-3 {
  bottom: 78px;
}

.tournament-swiss__board.is-team-path-active .tournament-swiss-route {
  opacity: 0.1;
}

.tournament-swiss__board.is-team-path-active .tournament-swiss-route.is-team-path {
  opacity: 1;
}

.tournament-swiss-route.is-team-path .tournament-swiss-route__line {
  stroke-width: 3;
}

.tournament-swiss__board.is-team-path-active .tournament-swiss-basket,
.tournament-swiss__board.is-team-path-active .tournament-swiss-outcome {
  opacity: 0.42;
  transition: opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.tournament-swiss__board.is-team-path-active .tournament-swiss-basket.is-team-path,
.tournament-swiss__board.is-team-path-active .tournament-swiss-outcome.is-team-path {
  opacity: 1;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent), 0 5px 14px color-mix(in srgb, var(--text) 8%, transparent);
}

.tournament-swiss__board.is-team-path-active [data-tournament-swiss-team-key] {
  opacity: 0.34;
}

.tournament-swiss__board.is-team-path-active [data-tournament-swiss-team-key].is-team-path {
  opacity: 1;
  filter: none;
}

.tournament-swiss__board.is-team-path-active a[data-tournament-swiss-team-key].is-team-path {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent);
}

.tournament-bracket__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 0;
  outline: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tournament-profile-soft) 45%, var(--surface-strong)), var(--surface-strong) 20px, var(--surface-strong) calc(100% - 20px), color-mix(in srgb, var(--tournament-profile-soft) 45%, var(--surface-strong)));
  scrollbar-color: color-mix(in srgb, var(--text-soft) 28%, transparent) transparent;
  scrollbar-width: thin;
}

.tournament-bracket__viewport:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 36%, transparent);
}

.tournament-bracket__board {
  --tournament-bracket-match-width: 122px;
  --tournament-bracket-round-gap: 8px;
  --tournament-bracket-final-width: 150px;
  position: relative;
  display: grid;
  width: max-content;
  min-width: 100%;
  grid-template-columns: max-content var(--tournament-bracket-final-width);
  align-items: stretch;
  gap: 8px;
}

.tournament-bracket__board.is-single-elimination {
  --tournament-bracket-match-width: 142px;
  --tournament-bracket-final-width: 174px;
}

.tournament-bracket__board.is-short-bracket {
  --tournament-bracket-match-width: 166px;
  --tournament-bracket-round-gap: 12px;
  --tournament-bracket-final-width: 198px;
}

.tournament-bracket__routes {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.tournament-bracket__routes path {
  fill: none;
  stroke: color-mix(in srgb, var(--text-soft) 58%, var(--line));
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  transition: opacity var(--transition-fast), stroke var(--transition-fast), stroke-width var(--transition-fast);
}

.tournament-bracket__routes path.is-incoming-segment,
.tournament-bracket__routes path.is-junction-segment,
.tournament-bracket__routes path.is-outgoing-segment {
  stroke-linecap: butt;
}

.tournament-bracket__routes path.is-team-path-route {
  stroke: color-mix(in srgb, var(--accent) 78%, var(--text));
  stroke-width: 2.2;
}

.tournament-bracket__routes path.is-team-path-muted {
  opacity: 0.14;
}

.tournament-bracket__board:not(.has-final) {
  grid-template-columns: max-content;
}

.tournament-bracket__lanes {
  position: relative;
  z-index: 2;
  display: grid;
  width: max-content;
  gap: 14px;
}

.tournament-bracket-lane {
  position: relative;
  display: flex;
  width: max-content;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 9px;
  background: transparent;
  overflow: hidden;
}

.tournament-bracket-lane__label {
  display: flex;
  min-height: 30px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface-strong));
}

.tournament-bracket-lane__label > span {
  color: var(--text);
  font-size: 0.61rem;
  font-weight: 740;
  line-height: 1.1;
}

.tournament-bracket-lane--upper .tournament-bracket-lane__label {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 58%, transparent);
}

.tournament-bracket-lane--lower .tournament-bracket-lane__label {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--text-soft) 38%, transparent);
}

.tournament-bracket-lane__rounds {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(var(--bracket-round-count), var(--tournament-bracket-match-width));
  align-items: stretch;
  padding: 6px;
  gap: var(--tournament-bracket-round-gap);
}

.tournament-bracket-lane.has-round-offset .tournament-bracket-round:first-child {
  grid-column-start: calc(var(--bracket-round-offset) + 1);
}

.tournament-bracket-round {
  position: relative;
  display: flex;
  width: var(--tournament-bracket-match-width);
  flex-direction: column;
}

.tournament-bracket-round > header {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 6px;
  gap: 6px;
  color: var(--text-soft);
}

.tournament-bracket-round > header strong {
  overflow: hidden;
  font-size: 0.52rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-bracket-round > header span {
  font-size: 0.47rem;
}

.tournament-bracket-round > div {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-around;
  gap: 11px;
}

.tournament-bracket-match {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: var(--tournament-bracket-match-width);
  max-width: var(--tournament-bracket-match-width);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.tournament-bracket-match:hover,
.tournament-bracket-match:focus-visible {
  z-index: 2;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 9%, transparent);
  transform: translateY(-1px);
}

.tournament-bracket-match.is-team-path-match {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 11%, transparent), var(--shadow-soft);
}

.tournament-bracket-match.is-team-path-muted {
  opacity: 0.35;
}

.tournament-bracket-match > header {
  display: grid;
  min-height: 24px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 4px 6px;
  gap: 5px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface-strong));
  border-radius: 7px 7px 0 0;
}

.tournament-bracket-match > header span,
.tournament-bracket-match > header time,
.tournament-bracket-match > header b {
  overflow: hidden;
  font-size: 0.46rem;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-bracket-match > header span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tournament-bracket-match > header time {
  text-align: center;
}

.tournament-bracket-match > header .tournament-bracket-match__live {
  justify-content: center;
  color: #dc2626;
  text-align: center;
}

.tournament-bracket-match > header i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
}

.tournament-bracket-match--live {
  border-color: color-mix(in srgb, #ef4444 34%, var(--line));
}

.tournament-bracket-match > div {
  display: grid;
  padding: 4px 6px 5px;
  gap: 2px;
}

.tournament-bracket-match__team {
  display: grid;
  min-width: 0;
  min-height: 25px;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.tournament-bracket-match__team:hover,
.tournament-bracket-match__team:focus-visible {
  border-radius: var(--radius-xs);
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  outline: 0;
}

.tournament-bracket-match__team.is-winner {
  color: var(--text);
}

.tournament-bracket-match__team.is-loser strong {
  opacity: 0.68;
}

.tournament-bracket-match__team.is-loser .tournament-bracket-match__logo {
  opacity: 0.5;
  filter: grayscale(0.55) saturate(0.62);
}

.tournament-bracket-match__team.is-winner::before {
  position: absolute;
  left: 0;
  width: 2px;
  height: 20px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
  content: "";
}

.tournament-bracket-match__logo {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.tournament-bracket-match__team strong {
  overflow: hidden;
  font-size: 0.57rem;
  font-weight: 660;
  text-overflow: clip;
  white-space: nowrap;
}

.tournament-bracket-match__team b {
  color: inherit;
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tournament-bracket__final {
  position: relative;
  z-index: auto;
  display: flex;
  width: var(--tournament-bracket-final-width);
  min-width: var(--tournament-bracket-final-width);
  min-height: 220px;
  align-self: center;
  justify-content: center;
  padding: 10px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid color-mix(in srgb, #d9a323 32%, var(--line));
  border-radius: 9px;
  background:
    linear-gradient(150deg, color-mix(in srgb, #f3c34f 10%, var(--surface-strong)), var(--surface-strong) 60%);
}

.tournament-bracket__final .tournament-bracket-match {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.tournament-bracket__final > header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.tournament-bracket__final > header span {
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 780;
}

.tournament-bracket__final > header small {
  color: var(--text-soft);
  font-size: 0.49rem;
}

@media (max-width: 860px) {
  .tournament-profile__catalog-header {
    min-height: 0;
    padding: 8px 18px 10px;
    gap: 14px;
  }

  .tournament-profile__breadcrumbs {
    font-size: 0.66rem;
  }

  .tournament-profile__catalog-header.has-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(278px, 300px);
  }

  .tournament-profile__catalog-header > .tournament-profile__spotlight {
    grid-column: 2;
  }

  .page-tournament-detail .tournament-profile__hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .page-tournament-detail .tournament-profile__logo {
    height: 66px;
  }

  .page-tournament-detail .tournament-profile__logo img {
    max-width: 68px;
    max-height: 62px;
  }

  .page-tournament-detail .tournament-profile__identity h1 {
    font-size: clamp(1.52rem, 3vw, 1.9rem);
  }

  .tournament-profile__metric {
    min-height: 34px;
    padding: 5px 9px;
  }

  .tournament-featured-match {
    padding: 9px 13px 13px;
  }

  .tournament-detail-tabs {
    padding-inline: 0;
  }

  .tournament-bracket__viewport {
    padding: 10px;
  }
}

@media (max-width: 700px) {
  .tournament-profile__catalog-header {
    gap: 12px;
  }

  .tournament-profile__catalog-header.has-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(252px, 280px);
  }

  .tournament-profile__breadcrumbs.has-spotlight {
    right: 292px;
  }

  .tournament-participants__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tournament-results__placement {
    grid-template-columns: 74px minmax(0, 1fr) 58px 88px;
    padding-inline: 11px;
    gap: 8px;
  }

  .tournament-group-standings__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tournament-gsl-stage__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tournament-profile__breadcrumbs.has-spotlight {
    right: 0;
  }

  .tournament-profile__catalog-header,
  .tournament-profile__catalog-header.has-spotlight {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 18px 10px;
    gap: 14px;
  }

  .tournament-profile__heading {
    align-content: start;
    gap: 10px;
  }

  .tournament-profile__catalog-header > .tournament-profile__spotlight {
    width: 100%;
    min-height: 170px;
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .tournament-profile__breadcrumbs > span:nth-last-child(-n + 2) {
    display: none;
  }

  .page-tournament-detail .tournament-profile__hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .page-tournament-detail .tournament-profile__logo {
    width: 72px;
    height: 68px;
  }

  .page-tournament-detail .tournament-profile__logo img {
    max-width: 68px;
    max-height: 60px;
  }

  .page-tournament-detail .tournament-profile__identity h1 {
    margin: 0;
    font-size: 1.42rem;
    white-space: normal;
  }

  .page-tournament-detail .tournament-profile__status {
    min-height: 0;
    padding: 0;
    font-size: 0.68rem;
  }

  .tournament-stages__tabs {
    padding: 0 9px;
  }

  .tournament-stages__tab {
    min-height: 40px;
  }

  .tournament-profile__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-profile__metric {
    min-height: 36px;
    padding: 6px 9px;
  }

  .tournament-profile__metric:nth-child(odd) {
    border-left: 0;
  }

  .tournament-profile__metric:nth-child(n + 3) {
    border-top: 1px solid color-mix(in srgb, var(--tournament-profile-accent) 9%, var(--line));
  }

  .tournament-profile__metric strong {
    font-size: 0.7rem;
  }

  .tournament-featured-match {
    min-height: 168px;
    padding: 8px 12px 12px;
  }

  .tournament-featured-match__moment {
    margin: 0;
  }

  .tournament-featured-match__moment > strong {
    font-size: 1.2rem;
  }

  .tournament-featured-match__logo {
    width: 40px;
    height: 40px;
  }

  .tournament-featured-match__versus {
    height: 48px;
  }

  .tournament-featured-match__action {
    min-height: 28px;
    margin-top: 8px;
  }

  .tournament-detail-content {
    border-radius: var(--radius-card);
  }

  .tournament-detail-tabs {
    min-height: 34px;
    padding-inline: 0;
  }

  .tournament-detail-tabs button,
  .tournament-detail-tabs > .is-disabled {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .tournament-detail-panels {
    padding: 8px;
  }

  .tournament-participants__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-results__placement {
    min-height: 54px;
    grid-template-columns: 62px minmax(0, 1fr) 72px;
    padding: 7px 9px;
  }

  .tournament-results__placement > :empty,
  .tournament-results__final-score {
    display: none;
  }

  .tournament-results__placement-team {
    gap: 7px;
  }

  .tournament-results__placement-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .tournament-results__placement.is-winner .tournament-results__placement-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .tournament-group-standings {
    padding: 8px;
  }

  .tournament-gsl-stage {
    padding: 8px;
  }

  .tournament-gsl-group {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .tournament-group-table table {
    min-width: 420px;
  }

  .tournament-bracket__board {
    --tournament-bracket-match-width: 122px;
    --tournament-bracket-round-gap: 8px;
    --tournament-bracket-final-width: 146px;
  }

  .tournament-bracket__final {
    min-height: 190px;
  }

  .tournament-swiss__viewport {
    padding: 6px 0 8px;
  }
}

@media (max-width: 360px) {
  .tournament-participants__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Team profile: editorial club profile. */
@media (min-width: 1280px) {
  body.page-team-detail {
    --container: 1328px;
  }

  .page-team-detail .page-grid--team-detail {
    grid-template-columns: 263px minmax(0, 720px) 274px;
    gap: 14px;
    justify-content: center;
  }
}

.page-team-detail .team-detail-stack {
  gap: 12px;
}

.page-team-detail .team-profile,
.page-team-detail .team-section {
  scroll-margin-top: 78px;
}

.page-team-detail .team-profile {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.035);
}

.page-team-detail .team-profile__topbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-team-detail .team-profile__topbar > span {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.58rem;
  font-weight: 700;
}

.page-team-detail .team-profile__breadcrumbs {
  min-width: 0;
  margin: 0;
}

.page-team-detail .team-profile__hero {
  position: relative;
  display: grid;
  min-height: 160px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 45%, color-mix(in srgb, var(--accent-soft) 58%, transparent), transparent 30%),
    linear-gradient(128deg, color-mix(in srgb, var(--surface) 88%, var(--accent-soft)) 0%, var(--surface) 62%);
}

.page-team-detail .team-profile__hero::after {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -145px;
  right: 30%;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.page-team-detail .team-profile__hero--with-match {
  grid-template-columns: minmax(0, 1fr) 244px;
}

.page-team-detail .team-profile__brand {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
}

.page-team-detail .team-profile__logo {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgb(15 23 42 / 0.1));
}

.page-team-detail .team-profile__logo--fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-muted);
  color: var(--text-soft);
  filter: none;
  font-size: 1.35rem;
  font-weight: 800;
}

.page-team-detail .team-profile__identity {
  min-width: 0;
}

.page-team-detail .team-profile__title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.page-team-detail .team-profile__title-line h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: clamp(1.55rem, 2.25vw, 2.05rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-profile__title-line > span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 750;
}

.page-team-detail .team-profile__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.6rem;
  font-weight: 650;
}

.page-team-detail .team-profile__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-team-detail .team-profile__meta span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.page-team-detail .team-profile__status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.page-team-detail .team-profile__ranking,
.page-team-detail .team-profile__form {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--text-strong);
  text-decoration: none;
}

.page-team-detail .team-profile__ranking {
  padding-right: 15px;
  border-right: 1px solid var(--line);
}

.page-team-detail .team-profile__ranking > span,
.page-team-detail .team-profile__form > span {
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-team-detail .team-profile__ranking strong {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.page-team-detail .team-profile__ranking small {
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 700;
}

.page-team-detail .team-profile__ranking--empty strong {
  font-size: 0.6rem;
  letter-spacing: 0;
}

.page-team-detail .team-profile__form > div {
  display: flex;
  gap: 3px;
}

.page-team-detail .team-profile__form b {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 820;
}

.page-team-detail .team-profile__form b.is-win {
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  color: var(--success);
}

.page-team-detail .team-profile__form b.is-loss {
  background: color-mix(in srgb, var(--danger) 11%, var(--surface));
  color: var(--danger);
}

.page-team-detail .team-profile__form small {
  color: var(--text-soft);
  font-size: 0.52rem;
}

.page-team-detail .team-spotlight-match {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  padding: 11px 12px 10px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, var(--accent-soft));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent-soft));
  box-shadow: 0 12px 24px rgb(15 23 42 / 0.055);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-team-detail .team-spotlight-match:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 14px 30px rgb(15 23 42 / 0.085);
  transform: translateY(-1px);
}

.page-team-detail .team-spotlight-match__top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-team-detail .team-spotlight-match__top strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.5rem;
  font-weight: 820;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.page-team-detail .team-spotlight-match.is-live .team-spotlight-match__top strong {
  color: var(--danger);
}

.page-team-detail .team-spotlight-match__top > span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.49rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-spotlight-match__versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.page-team-detail .team-spotlight-match__team {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.page-team-detail .team-spotlight-match__logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  object-fit: contain;
}

.page-team-detail .team-spotlight-match__logo--fallback {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.55rem;
  font-weight: 800;
}

.page-team-detail .team-spotlight-match__team b {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.52rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-spotlight-match__center {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.page-team-detail .team-spotlight-match__center strong {
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.page-team-detail .team-spotlight-match__center time {
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-team-detail .team-spotlight-match__meta {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-profile__nav {
  display: flex;
  min-height: 42px;
  align-items: stretch;
  gap: 22px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 56%, var(--surface));
  overflow-x: auto;
  scrollbar-width: none;
}

.page-team-detail .team-profile__nav::-webkit-scrollbar {
  display: none;
}

.page-team-detail .team-profile__nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.page-team-detail .team-profile__nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  content: "";
}

.page-team-detail .team-profile__nav a:hover,
.page-team-detail .team-profile__nav a.is-active {
  color: var(--accent);
}

.page-team-detail .team-profile__nav a.is-active::after {
  background: var(--accent);
}

.page-team-detail .team-roster--embedded {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-team-detail .team-roster--embedded .team-section__header {
  min-height: 52px;
  padding: 13px 18px 9px;
  border: 0;
}

.page-team-detail .team-roster--embedded .team-section__header h2 {
  font-size: 0.8rem;
}

.page-team-detail .team-roster--embedded .team-section__header small {
  margin-top: 2px;
  font-size: 0.49rem;
}

.page-team-detail .team-roster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0 18px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.page-team-detail .team-player-card {
  display: grid;
  min-width: 0;
  min-height: 128px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  padding: 8px 7px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
  box-shadow: none;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.page-team-detail .team-player-card:hover {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background: var(--surface);
  transform: translateY(-1px);
}

.page-team-detail .team-player-card__photo {
  display: grid;
  width: 100%;
  height: 70px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-muted));
  object-fit: contain;
  object-position: center top;
}

.page-team-detail .team-player-card__photo--fallback {
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.page-team-detail .team-player-card__copy {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 2px;
}

.page-team-detail .team-player-card__copy strong,
.page-team-detail .team-player-card__copy > span,
.page-team-detail .team-player-card__copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-player-card__copy strong {
  color: var(--text-strong);
  font-size: 0.58rem;
  font-weight: 770;
}

.page-team-detail .team-player-card__copy > span {
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 580;
}

.page-team-detail .team-player-card__copy small {
  color: var(--text-soft);
  font-size: 0.44rem;
  font-weight: 670;
}

.page-team-detail .team-roster__support {
  padding: 0 18px 16px;
  border: 0;
}

.page-team-detail .team-roster__support > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 720;
}

.page-team-detail .team-roster__support > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 7px;
}

.page-team-detail .team-player-card--compact {
  min-height: 54px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  text-align: left;
}

.page-team-detail .team-player-card--compact .team-player-card__photo {
  width: 40px;
  height: 40px;
}

.page-team-detail .team-player-card--compact .team-player-card__copy {
  justify-items: start;
}

.page-team-detail .team-profile__overview {
  padding: 0 18px 18px;
  scroll-margin-top: 78px;
}

.page-team-detail .team-profile__stats-head {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-team-detail .team-profile__stats-head > span {
  display: grid;
  gap: 2px;
}

.page-team-detail .team-profile__stats-head strong {
  color: var(--text-strong);
  font-size: 0.7rem;
  font-weight: 780;
}

.page-team-detail .team-profile__stats-head small {
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 620;
}

.page-team-detail .team-period-filter {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.page-team-detail .team-period-filter a {
  display: grid;
  min-width: auto;
  height: 26px;
  place-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 0.49rem;
  font-weight: 700;
  text-decoration: none;
}

.page-team-detail .team-period-filter a:hover,
.page-team-detail .team-period-filter a.is-active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.08);
  color: var(--text-strong);
}

.page-team-detail .team-profile__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
  overflow: hidden;
}

.page-team-detail .team-profile__fact {
  display: grid;
  min-height: 65px;
  align-content: center;
  gap: 1px;
  padding: 10px 13px;
}

.page-team-detail .team-profile__fact + .team-profile__fact {
  border-left: 1px solid var(--line);
}

.page-team-detail .team-profile__fact span,
.page-team-detail .team-profile__fact small {
  color: var(--text-soft);
  font-size: 0.46rem;
  font-weight: 650;
}

.page-team-detail .team-profile__fact strong {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.page-team-detail .team-profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 10px;
}

.page-team-detail .team-profile-dashboard > .team-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgb(15 23 42 / 0.028);
}

.page-team-detail .team-profile-dashboard .team-matches--past {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.page-team-detail .team-profile-dashboard .team-matches--upcoming,
.page-team-detail .team-profile-dashboard .team-tournaments {
  grid-column: 2;
}

.page-team-detail .team-profile-dashboard:not(.team-profile-dashboard--with-upcoming) .team-tournaments {
  grid-row: 1;
}

.page-team-detail .team-profile-dashboard .team-news {
  grid-column: 1 / -1;
}

.page-team-detail .team-section__header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.page-team-detail .team-section__header > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.page-team-detail .team-section__header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.7rem;
  font-weight: 780;
}

.page-team-detail .team-section__header small {
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 620;
}

.page-team-detail .team-section__header > a {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.49rem;
  font-weight: 720;
  text-decoration: none;
}

.page-team-detail .team-matches__list {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.page-team-detail .team-match-row {
  display: grid;
  min-height: 67px;
  grid-template-columns: 52px minmax(0, 1fr) 36px minmax(74px, 0.68fr) 8px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-muted);
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.page-team-detail .team-match-row:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
}

.page-team-detail .team-match-row::before {
  display: none;
}

.page-team-detail .team-match-row__date {
  display: grid;
  justify-items: start;
  gap: 3px;
}

.page-team-detail .team-match-row__date > strong {
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 710;
}

.page-team-detail .team-match-row__outcome {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.43rem;
  font-weight: 800;
}

.page-team-detail .team-match-row__outcome.is-win {
  background: color-mix(in srgb, var(--success) 11%, var(--surface));
  color: var(--success);
}

.page-team-detail .team-match-row__outcome.is-loss,
.page-team-detail .team-match-row__outcome.is-live {
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
}

.page-team-detail .team-match-row__teams {
  display: grid;
  gap: 3px;
}

.page-team-detail .team-match-row__team {
  display: grid;
  min-width: 0;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.page-team-detail .team-match-row__logo {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  object-fit: contain;
}

.page-team-detail .team-match-row__logo--fallback {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.43rem;
  font-weight: 800;
}

.page-team-detail .team-match-row__team strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.5rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-match-row__score {
  color: var(--text-strong);
  font-size: 0.67rem;
  font-weight: 820;
  text-align: center;
}

.page-team-detail .team-match-row__score.is-win {
  color: var(--success);
}

.page-team-detail .team-match-row__score.is-loss {
  color: var(--danger);
}

.page-team-detail .team-match-row__competition {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.page-team-detail .team-match-row__competition strong,
.page-team-detail .team-match-row__competition small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-match-row__competition strong {
  color: var(--text-strong);
  font-size: 0.46rem;
  font-weight: 700;
}

.page-team-detail .team-match-row__competition small {
  color: var(--text-soft);
  font-size: 0.41rem;
  font-weight: 620;
}

.page-team-detail .team-match-row__arrow {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.page-team-detail .team-matches--upcoming .team-match-row {
  grid-template-columns: 47px minmax(0, 1fr) 32px;
}

.page-team-detail .team-matches--upcoming .team-match-row__competition,
.page-team-detail .team-matches--upcoming .team-match-row__arrow {
  display: none;
}

.page-team-detail .team-section__show-more {
  width: calc(100% - 18px);
  min-height: 32px;
  margin: 0 9px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 720;
}

.page-team-detail .team-tournaments__tabs {
  display: flex;
  width: calc(100% - 18px);
  gap: 2px;
  margin: 9px 9px 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.page-team-detail .team-tournaments__tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 28px;
  padding: 0 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 700;
}

.page-team-detail .team-tournaments__tabs button.is-active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.07);
  color: var(--text-strong);
}

.page-team-detail .team-tournaments__tabs span {
  color: var(--text-soft);
}

.page-team-detail .team-tournaments__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.page-team-detail .team-tournament-item {
  display: grid;
  min-height: 56px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-muted);
  color: inherit;
  text-decoration: none;
}

.page-team-detail .team-tournament-item:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

.page-team-detail .team-tournament-item__logo {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.page-team-detail .team-tournament-item__logo img,
.page-team-detail .team-tournament-item__logo > span {
  max-width: 32px;
  max-height: 32px;
}

.page-team-detail .team-tournament-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.page-team-detail .team-tournament-item strong,
.page-team-detail .team-tournament-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-tournament-item strong {
  color: var(--text-strong);
  font-size: 0.5rem;
  font-weight: 720;
}

.page-team-detail .team-tournament-item small {
  color: var(--text-soft);
  font-size: 0.42rem;
  font-weight: 620;
}

.page-team-detail .team-tournament-item > b {
  color: var(--danger);
  font-size: 0.43rem;
}

.page-team-detail .team-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.page-team-detail .team-news-item,
.page-team-detail .team-news-item--with-media:first-child {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-muted);
  color: inherit;
  text-decoration: none;
}

.page-team-detail .team-news-item:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

.page-team-detail .team-news-item__media,
.page-team-detail .team-news-item--with-media:first-child .team-news-item__media {
  width: 76px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
}

.page-team-detail .team-news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-team-detail .team-news-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.page-team-detail .team-news-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.5rem;
  font-weight: 710;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-team-detail .team-news-item small {
  color: var(--text-soft);
  font-size: 0.42rem;
  font-weight: 620;
}

.page-team-detail .team-news-item:first-child {
  min-height: 132px;
  grid-column: span 2;
  grid-row: span 2;
  grid-template-columns: 154px minmax(0, 1fr);
}

.page-team-detail .team-news-item:first-child .team-news-item__media {
  width: 154px;
  height: 112px;
}

.page-team-detail .team-news-item:first-child strong {
  font-size: 0.64rem;
  line-height: 1.34;
}

.page-team-detail .team-section__empty {
  padding: 20px;
  color: var(--text-soft);
  font-size: 0.56rem;
  text-align: center;
}

@media (max-width: 1180px) {
  .page-team-detail .team-profile__hero--with-match {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .page-team-detail .team-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-team-detail .team-news-item:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  .page-team-detail .team-profile__hero--with-match {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-spotlight-match {
    width: 100%;
    max-width: 360px;
  }

  .page-team-detail .team-profile-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-profile-dashboard .team-matches--past,
  .page-team-detail .team-profile-dashboard .team-matches--upcoming,
  .page-team-detail .team-profile-dashboard .team-tournaments,
  .page-team-detail .team-profile-dashboard .team-news {
    grid-column: 1;
    grid-row: auto;
  }

  .page-team-detail .team-profile-dashboard:not(.team-profile-dashboard--with-upcoming) .team-tournaments {
    grid-row: auto;
  }

  .page-team-detail .team-matches--upcoming .team-match-row {
    grid-template-columns: 52px minmax(0, 1fr) 36px minmax(74px, 0.68fr) 8px;
  }

  .page-team-detail .team-matches--upcoming .team-match-row__competition,
  .page-team-detail .team-matches--upcoming .team-match-row__arrow {
    display: grid;
  }
}

@media (max-width: 760px) {
  .page-team-detail .team-profile__hero {
    padding: 18px 16px;
  }

  .page-team-detail .team-profile__brand {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .page-team-detail .team-profile__logo {
    width: 76px;
    height: 76px;
  }

  .page-team-detail .team-profile__title-line h1 {
    font-size: 1.55rem;
  }

  .page-team-detail .team-profile__nav {
    gap: 18px;
    padding-inline: 16px;
  }

  .page-team-detail .team-roster__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-team-detail .team-profile__overview {
    padding-inline: 16px;
  }

  .page-team-detail .team-profile__stats-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0 10px;
  }

  .page-team-detail .team-period-filter {
    width: 100%;
  }

  .page-team-detail .team-period-filter a {
    flex: 1 1 0;
    padding-inline: 3px;
  }

  .page-team-detail .team-profile__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-team-detail .team-profile__fact:nth-child(3) {
    border-left: 0;
  }

  .page-team-detail .team-profile__fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .page-team-detail .team-news__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-news-item:first-child {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .page-team-detail .team-profile__topbar {
    padding-inline: 12px;
  }

  .page-team-detail .team-profile__topbar > span {
    display: none;
  }

  .page-team-detail .team-profile__hero {
    min-height: 0;
    gap: 14px;
    padding: 16px 13px;
  }

  .page-team-detail .team-profile__brand {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .page-team-detail .team-profile__logo {
    width: 64px;
    height: 64px;
  }

  .page-team-detail .team-profile__title-line h1 {
    font-size: 1.3rem;
  }

  .page-team-detail .team-profile__meta {
    gap: 7px;
    margin-top: 6px;
  }

  .page-team-detail .team-profile__status {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
  }

  .page-team-detail .team-profile__ranking {
    padding-right: 0;
    border-right: 0;
  }

  .page-team-detail .team-spotlight-match {
    max-width: none;
  }

  .page-team-detail .team-profile__nav {
    min-height: 40px;
    gap: 17px;
    padding-inline: 13px;
  }

  .page-team-detail .team-roster--embedded .team-section__header {
    padding-inline: 13px;
  }

  .page-team-detail .team-roster__grid {
    display: grid;
    grid-auto-columns: 116px;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 7px;
    padding: 0 13px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .page-team-detail .team-roster__grid::-webkit-scrollbar {
    display: none;
  }

  .page-team-detail .team-player-card {
    scroll-snap-align: start;
  }

  .page-team-detail .team-roster__support {
    padding-inline: 13px;
  }

  .page-team-detail .team-roster__support > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-profile__overview {
    padding: 0 13px 13px;
  }

  .page-team-detail .team-profile__fact {
    min-height: 59px;
    padding: 9px 11px;
  }

  .page-team-detail .team-match-row,
  .page-team-detail .team-matches--upcoming .team-match-row {
    grid-template-columns: 48px minmax(0, 1fr) 34px 8px;
    gap: 6px;
  }

  .page-team-detail .team-match-row__competition {
    display: none;
  }

  .page-team-detail .team-news-item,
  .page-team-detail .team-news-item--with-media:first-child {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 76px;
  }

  .page-team-detail .team-news-item__media,
  .page-team-detail .team-news-item--with-media:first-child .team-news-item__media {
    width: 88px;
    height: 62px;
  }

  .page-team-detail .team-news-item:first-child strong {
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-team-detail .team-spotlight-match,
  .page-team-detail .team-player-card {
    transition: none;
  }
}

/* Team profile header: logo-led club identity with a five-player starting roster. */
.page-team-detail .team-profile__hero {
  min-height: 172px;
  padding: 20px 20px 19px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 54%, var(--surface)) 0 152px, transparent 152px),
    radial-gradient(circle at 66% -75%, color-mix(in srgb, var(--accent) 7%, transparent) 0 160px, transparent 161px),
    var(--surface);
}

.page-team-detail .team-profile__hero::after {
  width: 280px;
  height: 280px;
  top: -215px;
  right: 21%;
  border-color: color-mix(in srgb, var(--accent) 10%, transparent);
}

.page-team-detail .team-profile__brand {
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.page-team-detail .team-profile__logo {
  box-sizing: border-box;
  width: 116px;
  height: 116px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  border-radius: 25px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  box-shadow:
    0 16px 34px rgb(15 23 42 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.65);
  filter: none;
}

.page-team-detail .team-profile__logo--fallback {
  font-size: 1.6rem;
}

.page-team-detail .team-profile__title-line {
  gap: 9px;
}

.page-team-detail .team-profile__title-line h1 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
}

.page-team-detail .team-profile__title-line > span {
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 0.54rem;
}

.page-team-detail .team-profile__meta {
  gap: 14px;
  margin-top: 10px;
  font-size: 0.61rem;
}

.page-team-detail .team-profile__status {
  gap: 9px;
  margin-top: 17px;
}

.page-team-detail .team-profile__ranking,
.page-team-detail .team-profile__form {
  min-height: 33px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface));
}

.page-team-detail .team-profile__ranking {
  padding-right: 10px;
  border-right: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}

.page-team-detail .team-profile__ranking strong {
  font-size: 1.05rem;
}

.page-team-detail .team-profile__form b {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.page-team-detail .team-spotlight-match {
  border-radius: 13px;
  box-shadow: 0 13px 30px rgb(15 23 42 / 0.065);
}

.page-team-detail .team-roster--embedded {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 52%, var(--surface)), var(--surface) 72%);
}

.page-team-detail .team-roster--embedded .team-section__header {
  min-height: 48px;
  padding: 12px 18px 8px;
}

.page-team-detail .team-roster--embedded .team-section__header > span {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-team-detail .team-roster--embedded .team-section__header h2 {
  font-size: 0.74rem;
  letter-spacing: -0.012em;
}

.page-team-detail .team-roster--embedded .team-section__header small {
  margin: 0;
  font-size: 0.48rem;
}

.page-team-detail .team-roster__grid,
.page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}

.page-team-detail .team-player-card {
  min-height: 151px;
  gap: 8px;
  padding: 8px 8px 10px;
  border-color: color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 91%, var(--surface-muted));
  box-shadow: 0 5px 14px rgb(15 23 42 / 0.025);
}

.page-team-detail .team-player-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 10px 22px rgb(15 23 42 / 0.065);
}

.page-team-detail .team-player-card__photo {
  position: relative;
  height: 82px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--surface-muted)), var(--surface-muted));
  overflow: hidden;
}

.page-team-detail .team-player-card__silhouette-art {
  width: 84%;
  height: 96%;
  align-self: end;
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text-strong));
  fill: currentColor;
  filter: drop-shadow(0 8px 10px rgb(15 23 42 / 0.08));
}

.page-team-detail .team-player-card__silhouette-detail {
  fill: color-mix(in srgb, var(--surface-muted) 80%, transparent);
}

.page-team-detail .team-player-card__copy {
  gap: 2px;
}

.page-team-detail .team-player-card__copy strong {
  font-size: 0.6rem;
}

.page-team-detail .team-player-card__copy > span {
  font-size: 0.46rem;
}

.page-team-detail .team-player-card__copy small {
  margin-top: 2px;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--accent));
  font-size: 0.45rem;
}

.page-team-detail .team-profile__nav {
  min-height: 41px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 980px) {
  .page-team-detail .team-profile__hero {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 54%, var(--surface)) 0 146px, transparent 146px),
      radial-gradient(circle at 82% -75%, color-mix(in srgb, var(--accent) 7%, transparent) 0 150px, transparent 151px),
      var(--surface);
  }
}

@media (max-width: 760px) {
  .page-team-detail .team-profile__hero {
    min-height: 150px;
    padding: 17px 16px;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 52%, var(--surface)) 0 112px, transparent 112px),
      var(--surface);
  }

  .page-team-detail .team-profile__brand {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 17px;
  }

  .page-team-detail .team-profile__logo {
    width: 84px;
    height: 84px;
    padding: 8px;
    border-radius: 19px;
  }

  .page-team-detail .team-profile__title-line h1 {
    font-size: 1.65rem;
  }

  .page-team-detail .team-profile__status {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .page-team-detail .team-roster__grid,
  .page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .page-team-detail .team-roster__grid::-webkit-scrollbar {
    display: none;
  }

  .page-team-detail .team-player-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 520px) {
  .page-team-detail .team-profile__hero {
    gap: 14px;
    padding: 15px 13px;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 50%, var(--surface)) 0 92px, transparent 92px),
      var(--surface);
  }

  .page-team-detail .team-profile__brand {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
  }

  .page-team-detail .team-profile__logo {
    width: 66px;
    height: 66px;
    padding: 6px;
    border-radius: 16px;
  }

  .page-team-detail .team-profile__title-line h1 {
    font-size: 1.35rem;
  }

  .page-team-detail .team-profile__meta {
    gap: 7px;
    margin-top: 7px;
  }

  .page-team-detail .team-profile__status {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    margin-top: 10px;
  }

  .page-team-detail .team-profile__ranking,
  .page-team-detail .team-profile__form {
    min-height: 29px;
    gap: 6px;
    padding-inline: 7px;
  }

  .page-team-detail .team-profile__ranking > span,
  .page-team-detail .team-profile__form > span {
    display: none;
  }

  .page-team-detail .team-profile__ranking strong {
    font-size: 0.9rem;
  }

  .page-team-detail .team-profile__form {
    display: none;
  }

  .page-team-detail .team-roster--embedded .team-section__header {
    padding: 11px 13px 8px;
  }

  .page-team-detail .team-roster--embedded .team-section__header small {
    display: none;
  }

  .page-team-detail .team-roster__grid,
  .page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
    grid-auto-columns: 124px;
    grid-auto-flow: column;
    grid-template-columns: none;
    padding: 14px 13px;
  }

  .page-team-detail .team-player-card {
    min-height: 148px;
  }
}

/* Selected team page: tournament-page shell geometry. */
body.page-team-detail {
  --container: 1018px;
}

@media (min-width: 1380px) {
  body.page-team-detail {
    --container: 1328px;
  }

  .page-team-detail .page-grid--team-detail.page-grid--with-left {
    width: 1285px;
    max-width: none;
    grid-template-columns: 263px minmax(0, 720px) 274px;
    gap: 14px;
    justify-content: center;
    margin-inline: auto;
    transform: none;
  }
}

@media (min-width: 1080px) and (max-width: 1379px) {
  .page-team-detail .page-grid--team-detail.page-grid--with-left {
    position: relative;
    left: 50%;
    width: 1008px;
    max-width: none;
    grid-template-columns: minmax(0, 720px) 274px;
    gap: 14px;
    justify-content: stretch;
    transform: translateX(-50%);
  }

  .page-team-detail .page-grid--team-detail > .home-left-sidebar {
    display: none;
  }

  .page-team-detail .page-grid--team-detail > .team-detail-stack {
    grid-column: 1;
  }

  .page-team-detail .page-grid--team-detail > .home-right-sidebar,
  .page-team-detail .page-grid--team-detail > .matches-sidebar {
    grid-column: 2;
  }
}

@media (min-width: 1000px) and (max-width: 1079.98px) {
  .page-team-detail .page-grid--team-detail.page-grid--with-left {
    width: min(100%, 994px);
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 10px;
    justify-content: stretch;
    margin-inline: auto;
    transform: none;
  }

  .page-team-detail .page-grid--team-detail > .home-left-sidebar {
    display: none;
  }

  .page-team-detail .page-grid--team-detail > .team-detail-stack {
    grid-column: 1;
  }

  .page-team-detail .page-grid--team-detail > .home-right-sidebar,
  .page-team-detail .page-grid--team-detail > .matches-sidebar {
    display: flex;
    grid-column: 2;
  }
}

@media (min-width: 861px) and (max-width: 999.98px) {
  .page-team-detail .page-grid--team-detail.page-grid--with-left {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    justify-content: stretch;
    margin-inline: 0;
    transform: none;
  }

  .page-team-detail .page-grid--team-detail > .team-detail-stack {
    width: 100%;
    max-width: 100%;
    grid-column: 1;
  }

  .page-team-detail .page-grid--team-detail > .home-left-sidebar,
  .page-team-detail .page-grid--team-detail > .home-right-sidebar,
  .page-team-detail .page-grid--team-detail > .matches-sidebar {
    display: none;
  }
}

@media (max-width: 860px) {
  body.page-team-detail {
    --container: 100%;
  }

  .page-team-detail .page-grid--team-detail {
    display: block;
  }

  .page-team-detail .page-grid--team-detail > .home-left-sidebar,
  .page-team-detail .page-grid--team-detail > .home-right-sidebar,
  .page-team-detail .page-grid--team-detail > .matches-sidebar {
    display: none;
  }
}

.page-team-detail .team-profile {
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.035);
}

.page-team-detail .team-profile__topbar {
  height: 38px;
  min-height: 38px;
  padding-inline: 16px;
}

.page-team-detail .team-profile__breadcrumbs,
.page-team-detail .team-profile__topbar > span {
  display: flex;
  height: 100%;
  align-items: center;
  line-height: 1;
}

.page-team-detail .team-profile__breadcrumbs {
  gap: 9px;
}

.page-team-detail .team-profile__topbar > span {
  color: var(--text-soft);
  font-size: 0.57rem;
  font-weight: 720;
}

.page-team-detail .team-profile__hero,
.page-team-detail .team-profile__hero--with-match {
  min-height: 146px;
  grid-template-columns: minmax(0, 1fr) 226px;
  gap: 24px;
  padding: 15px 20px 16px;
  background:
    radial-gradient(circle at 13% 48%, color-mix(in srgb, var(--accent-soft) 30%, transparent), transparent 29%),
    linear-gradient(112deg, color-mix(in srgb, var(--surface-muted) 21%, var(--surface)), var(--surface) 60%);
}

.page-team-detail .team-profile__hero:not(.team-profile__hero--with-match) {
  grid-template-columns: minmax(0, 1fr);
}

.page-team-detail .team-profile__hero::after {
  display: none;
}

.page-team-detail .team-profile__brand {
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.page-team-detail .team-profile__logo {
  width: 118px;
  height: 118px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 15px rgb(15 23 42 / 0.1));
}

.page-team-detail .team-profile__logo--fallback {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-muted);
  filter: none;
}

.page-team-detail .team-profile__title-line h1 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.page-team-detail .team-profile__meta {
  margin-top: 10px;
  font-size: 0.62rem;
}

.page-team-detail .team-profile__status {
  gap: 8px;
  margin-top: 16px;
}

.page-team-detail .team-profile__ranking,
.page-team-detail .team-profile__form {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-muted) 66%, var(--surface));
}

.page-team-detail .team-profile__ranking {
  border-right: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

.page-team-detail .team-profile__ranking > span::before {
  margin-right: 4px;
  color: var(--accent);
  content: "VRS";
}

.page-team-detail .team-profile__ranking > span {
  font-size: 0;
}

.page-team-detail .team-profile__ranking > span::before,
.page-team-detail .team-profile__form > span {
  font-size: 0.5rem;
  font-weight: 760;
}

.page-team-detail .team-profile__ranking small {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.page-team-detail .team-spotlight-match {
  padding: 9px 12px 8px;
  border-color: var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-muted) 55%, var(--surface));
  box-shadow: none;
}

.page-team-detail .team-roster--embedded {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.page-team-detail .team-roster__grid,
.page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 8px 14px 10px;
}

.page-team-detail .team-player-card {
  min-height: 124px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  overflow: hidden;
}

.page-team-detail .team-player-card:first-child {
  border-left: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.page-team-detail .team-player-card:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.page-team-detail .team-player-card__photo {
  position: relative;
  display: block;
  height: 124px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.page-team-detail .team-player-card__silhouette-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.3) brightness(1.15);
  transition: filter 160ms ease, transform 160ms ease;
}

.page-team-detail .team-player-card:hover .team-player-card__silhouette-art {
  filter: grayscale(1) contrast(1.34) brightness(1.14);
  transform: scale(1.008);
}

.page-team-detail .team-player-card__team-mark {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 21px;
  height: 21px;
  top: 64%;
  left: 50%;
  place-items: center;
  opacity: 0.84;
  transform: translate(-50%, -50%);
}

.page-team-detail .team-player-card__team-logo {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
}

.page-team-detail .team-player-card__team-logo--fallback {
  display: none;
}

.page-team-detail .team-player-card__label {
  position: absolute;
  z-index: 3;
  display: flex;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  background: rgb(15 21 30 / 0.94);
  box-shadow: inset 0 -2px 0 var(--accent);
  color: #fff;
}

.page-team-detail .team-player-card__label b {
  font-size: 0.64rem;
  line-height: 1;
}

.page-team-detail .team-player-card__label strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-profile__nav {
  min-height: 40px;
  gap: 21px;
  padding-inline: 14px;
  border-top: 0;
  background: var(--surface);
}

.page-team-detail .team-profile-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 23%, var(--surface));
}

.page-team-detail .team-dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgb(15 23 42 / 0.025);
  overflow: hidden;
}

.page-team-detail .team-vrs-history {
  grid-column: span 4;
}

.page-team-detail .team-recent-results {
  grid-column: span 2;
}

.page-team-detail .team-performance,
.page-team-detail .team-achievements,
.page-team-detail .team-tournament-summary {
  grid-column: span 2;
}

.page-team-detail .team-dashboard-panel__header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.page-team-detail .team-dashboard-panel__header > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.page-team-detail .team-dashboard-panel__header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.62rem;
  font-weight: 800;
}

.page-team-detail .team-dashboard-panel__header small,
.page-team-detail .team-dashboard-panel__header > a {
  color: var(--text-soft);
  font-size: 0.43rem;
  font-weight: 650;
}

.page-team-detail .team-dashboard-panel__header > a {
  color: var(--accent);
  text-decoration: none;
}

.page-team-detail .team-vrs-history__controls {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.page-team-detail .team-vrs-history__metric,
.page-team-detail .team-vrs-history__period {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
}

.page-team-detail .team-vrs-history__metric a,
.page-team-detail .team-vrs-history__period a {
  display: grid;
  min-height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 5px;
  color: var(--text-soft);
  font-size: 0.41rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.page-team-detail .team-vrs-history__metric a.is-active,
.page-team-detail .team-vrs-history__period a.is-active {
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.08);
  color: var(--accent);
}

.page-team-detail .team-vrs-chart {
  padding: 5px 8px 4px;
}

.page-team-detail .team-vrs-chart svg {
  display: block;
  width: 100%;
  height: 195px;
  overflow: visible;
}

.page-team-detail .team-vrs-chart__grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.page-team-detail .team-vrs-chart__line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.page-team-detail .team-vrs-chart__points circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

.page-team-detail .team-vrs-chart__labels text,
.page-team-detail .team-vrs-chart__current {
  fill: var(--text-soft);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
}

.page-team-detail .team-vrs-chart__current {
  fill: var(--text-strong);
  font-size: 13px;
  font-weight: 820;
}

.page-team-detail .team-vrs-history__empty,
.page-team-detail .team-dashboard-panel__empty {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px;
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 620;
  text-align: center;
}

.page-team-detail .team-recent-results__list {
  display: grid;
  padding: 4px 9px 7px;
}

.page-team-detail .team-result-row {
  display: grid;
  min-height: 38px;
  grid-template-columns: 33px minmax(0, 1fr) minmax(64px, 0.8fr) 27px 17px;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.page-team-detail .team-result-row:last-child {
  border-bottom: 0;
}

.page-team-detail .team-result-row time,
.page-team-detail .team-result-row__event small {
  color: var(--text-soft);
  font-size: 0.4rem;
  font-weight: 650;
}

.page-team-detail .team-result-row__event,
.page-team-detail .team-result-row__opponent {
  display: grid;
  min-width: 0;
}

.page-team-detail .team-result-row__event strong,
.page-team-detail .team-result-row__event small,
.page-team-detail .team-result-row__opponent strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-result-row__event strong,
.page-team-detail .team-result-row__opponent strong {
  color: var(--text-strong);
  font-size: 0.43rem;
  font-weight: 700;
}

.page-team-detail .team-result-row__opponent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.page-team-detail .team-result-row__logo {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  object-fit: contain;
}

.page-team-detail .team-result-row__logo--fallback {
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.38rem;
  font-weight: 800;
}

.page-team-detail .team-result-row > b,
.page-team-detail .team-result-row > em {
  color: var(--text-strong);
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.page-team-detail .team-result-row > em.is-win {
  color: var(--success);
}

.page-team-detail .team-result-row > em.is-loss {
  color: var(--danger);
}

.page-team-detail .team-performance__body {
  padding: 13px 12px 12px;
}

.page-team-detail .team-performance__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.page-team-detail .team-performance__headline strong {
  color: var(--text-strong);
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.page-team-detail .team-performance__headline span {
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 700;
}

.page-team-detail .team-performance__bar {
  height: 4px;
  margin: 8px 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--danger) 58%, var(--surface-muted));
  overflow: hidden;
}

.page-team-detail .team-performance__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.page-team-detail .team-performance dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.page-team-detail .team-performance dl > div {
  display: grid;
  gap: 3px;
  padding: 0 8px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.page-team-detail .team-performance dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-team-detail .team-performance dt {
  color: var(--text-soft);
  font-size: 0.41rem;
  font-weight: 650;
}

.page-team-detail .team-performance dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.65rem;
  font-weight: 800;
}

.page-team-detail .team-achievements__list,
.page-team-detail .team-tournament-summary__list {
  display: grid;
  padding: 5px 9px 8px;
}

.page-team-detail .team-achievements__list a,
.page-team-detail .team-tournament-summary__list a {
  display: grid;
  min-height: 35px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.page-team-detail .team-achievements__list a {
  grid-template-columns: 24px minmax(0, 1fr);
}

.page-team-detail .team-achievements__list a:last-child,
.page-team-detail .team-tournament-summary__list a:last-child {
  border-bottom: 0;
}

.page-team-detail .team-achievements__icon {
  color: #b88619;
  font-size: 0.9rem;
  text-align: center;
}

.page-team-detail .team-achievements__list a > span:last-child,
.page-team-detail .team-tournament-summary__list a > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.page-team-detail .team-achievements__list strong,
.page-team-detail .team-achievements__list small,
.page-team-detail .team-tournament-summary__list strong,
.page-team-detail .team-tournament-summary__list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-team-detail .team-achievements__list strong,
.page-team-detail .team-tournament-summary__list strong {
  color: var(--text-strong);
  font-size: 0.45rem;
  font-weight: 720;
}

.page-team-detail .team-achievements__list small,
.page-team-detail .team-tournament-summary__list small {
  color: var(--text-soft);
  font-size: 0.4rem;
  font-weight: 620;
}

.page-team-detail .team-tournament-summary__list a {
  grid-template-columns: 27px minmax(0, 1fr);
}

.page-team-detail .team-tournament-summary__list a > span:first-child {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.page-team-detail .team-tournament-summary__list img,
.page-team-detail .team-tournament-summary__list a > span:first-child > span {
  max-width: 24px;
  max-height: 24px;
}

.page-team-detail .team-profile > .team-news {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-team-detail .team-profile > .team-news .team-section__header {
  min-height: 41px;
  padding: 8px 14px 6px;
}

.page-team-detail .team-profile > .team-news .team-news__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 14px 10px;
}

.page-team-detail .team-profile > .team-news .team-news-item,
.page-team-detail .team-profile > .team-news .team-news-item:first-child,
.page-team-detail .team-profile > .team-news .team-news-item--with-media:first-child {
  min-height: 58px;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.page-team-detail .team-profile > .team-news .team-news-item__media,
.page-team-detail .team-profile > .team-news .team-news-item:first-child .team-news-item__media {
  width: 64px;
  height: 48px;
}

.page-team-detail .team-profile > .team-news .team-news-item strong,
.page-team-detail .team-profile > .team-news .team-news-item:first-child strong {
  font-size: 0.47rem;
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
  .page-team-detail .team-profile__hero,
  .page-team-detail .team-profile__hero--with-match {
    grid-template-columns: minmax(0, 1fr) 218px;
  }

  .page-team-detail .team-vrs-history {
    grid-column: 1 / -1;
  }

  .page-team-detail .team-recent-results,
  .page-team-detail .team-performance,
  .page-team-detail .team-achievements,
  .page-team-detail .team-tournament-summary {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .page-team-detail .team-profile__hero,
  .page-team-detail .team-profile__hero--with-match {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-profile__brand {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .page-team-detail .team-profile__logo {
    width: 84px;
    height: 84px;
  }

  .page-team-detail .team-roster__grid,
  .page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
    grid-template-columns: repeat(5, minmax(124px, 1fr));
    overflow-x: auto;
  }

  .page-team-detail .team-profile-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-team-detail .team-vrs-history,
  .page-team-detail .team-recent-results,
  .page-team-detail .team-performance,
  .page-team-detail .team-achievements,
  .page-team-detail .team-tournament-summary {
    grid-column: 1;
  }

  .page-team-detail .team-vrs-history__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-team-detail .team-profile > .team-news .team-news__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .page-team-detail .team-profile__hero,
  .page-team-detail .team-profile__hero--with-match {
    padding: 15px 13px;
  }

  .page-team-detail .team-player-card {
    min-height: 126px;
  }

  .page-team-detail .team-player-card__photo {
    height: 126px;
  }

  .page-team-detail .team-profile-dashboard {
    padding-inline: 10px;
  }

  .page-team-detail .team-vrs-history__controls {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-team-detail .team-vrs-history__metric,
  .page-team-detail .team-vrs-history__period {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Final team-profile ownership: kept last so legacy entity styles cannot win. */
body.page-team-detail .team-profile:not(.team-profile--reference-v3) {
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgb(15 23 42 / 0.045);
  overflow: hidden;
}

body.page-team-detail .team-profile__topbar {
  height: 42px;
  min-height: 42px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile__hero,
body.page-team-detail .team-profile__hero--with-match {
  min-height: 174px;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0;
  padding: 18px 20px 16px;
  background:
    radial-gradient(circle at 15% 45%, rgb(38 112 255 / 0.045), transparent 31%),
    var(--surface);
}

body.page-team-detail .team-profile__brand {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding-right: 24px;
}

body.page-team-detail .team-profile__logo {
  width: 142px;
  height: 142px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 12px 18px rgb(15 23 42 / 0.08));
}

body.page-team-detail .team-profile__title-line h1 {
  font-size: clamp(1.86rem, 2.8vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

body.page-team-detail .team-profile__meta {
  margin-top: 8px;
  font-size: 0.64rem;
}

body.page-team-detail .team-profile__status {
  gap: 24px;
  margin-top: 15px;
}

body.page-team-detail .team-profile__ranking {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgb(15 23 42 / 0.025);
}

body.page-team-detail .team-profile__form {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-team-detail .team-profile__form > span {
  margin-right: 4px;
  font-size: 0.56rem;
}

body.page-team-detail .team-profile__form b {
  width: 21px;
  height: 21px;
  border-radius: 5px;
}

body.page-team-detail .team-spotlight-match {
  min-height: 136px;
  align-self: center;
  padding: 5px 0 3px 24px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-team-detail .team-spotlight-match:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.page-team-detail .team-spotlight-match__top {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

body.page-team-detail .team-spotlight-match__top > span {
  max-width: 100%;
  text-align: center;
}

body.page-team-detail .team-roster--embedded {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-roster__grid,
body.page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 18px 12px;
}

body.page-team-detail .team-player-card,
body.page-team-detail .team-player-card:first-child {
  min-height: 172px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

body.page-team-detail .team-player-card__photo {
  height: 172px;
  background: linear-gradient(180deg, #f6f7f9 0%, #eef1f5 100%);
}

body.page-team-detail .team-player-card__silhouette-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  transform: scale(1.02);
  transform-origin: center bottom;
}

body.page-team-detail .team-player-card:hover .team-player-card__silhouette-art {
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  transform: scale(1.025);
}

body.page-team-detail .team-player-card__team-mark {
  top: 64%;
  left: 66%;
  width: 25px;
  height: 25px;
  opacity: 0.92;
}

body.page-team-detail .team-player-card__team-logo {
  width: 25px;
  height: 25px;
  filter: grayscale(1) brightness(2.25);
}

body.page-team-detail .team-player-card__label {
  min-height: 29px;
  gap: 8px;
  padding: 0 10px;
  background: rgb(12 17 24 / 0.95);
  box-shadow: inset 0 -2px 0 var(--accent);
}

body.page-team-detail .team-player-card__label b {
  font-size: 0.68rem;
}

body.page-team-detail .team-player-card__label strong {
  font-size: 0.66rem;
  font-weight: 820;
}

body.page-team-detail .team-profile__nav {
  min-height: 47px;
  gap: 27px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile__nav a {
  font-size: 0.56rem;
  font-weight: 760;
  text-transform: uppercase;
}

body.page-team-detail .team-profile-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.page-team-detail .team-dashboard-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-team-detail .team-vrs-history,
body.page-team-detail .team-recent-results {
  grid-column: span 3;
  min-height: 348px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-recent-results {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}

body.page-team-detail .team-performance,
body.page-team-detail .team-achievements,
body.page-team-detail .team-map-stats {
  grid-column: span 2;
  min-height: 224px;
  padding-bottom: 14px;
}

body.page-team-detail .team-achievements,
body.page-team-detail .team-map-stats {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}

body.page-team-detail .team-dashboard-panel__header {
  min-height: 48px;
  padding: 14px 0 7px;
  border-bottom: 0;
}

body.page-team-detail .team-dashboard-panel__header h2 {
  font-size: 0.7rem;
  font-weight: 830;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

body.page-team-detail .team-vrs-history__controls {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 12px;
  padding: 0 12px 7px 0;
}

body.page-team-detail .team-vrs-history__metric,
body.page-team-detail .team-vrs-history__period {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-team-detail .team-vrs-history__metric a,
body.page-team-detail .team-vrs-history__period a {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.46rem;
}

body.page-team-detail .team-vrs-history__metric a.is-active,
body.page-team-detail .team-vrs-history__period a.is-active {
  border-color: color-mix(in srgb, var(--accent) 23%, var(--line));
  background: var(--accent-soft);
  box-shadow: none;
}

body.page-team-detail .team-vrs-chart {
  padding: 0 9px 7px 0;
}

body.page-team-detail .team-vrs-chart svg {
  height: 255px;
}

body.page-team-detail .team-recent-results__list {
  padding: 0;
}

body.page-team-detail .team-result-columns {
  display: grid;
  min-height: 28px;
  grid-template-columns: 43px minmax(0, 1fr) 96px 35px 24px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.43rem;
  font-weight: 700;
}

body.page-team-detail .team-result-row {
  min-height: 46px;
  grid-template-columns: 43px minmax(0, 1fr) 96px 35px 24px;
  gap: 7px;
}

body.page-team-detail .team-result-row time,
body.page-team-detail .team-result-row__event small {
  font-size: 0.44rem;
}

body.page-team-detail .team-result-row__event strong {
  font-size: 0.48rem;
}

body.page-team-detail .team-result-row__matchup {
  display: grid;
  grid-template-columns: 23px minmax(26px, 1fr) 23px;
  align-items: center;
  justify-items: center;
  gap: 4px;
}

body.page-team-detail .team-result-row__matchup b {
  color: var(--text-strong);
  font-size: 0.47rem;
  font-weight: 820;
}

body.page-team-detail .team-recent-results__all {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.46rem;
  font-weight: 720;
  text-decoration: none;
}

body.page-team-detail .team-performance__body {
  padding: 8px 18px 10px 0;
}

body.page-team-detail .team-performance__headline strong {
  font-size: 2.35rem;
}

body.page-team-detail .team-performance__headline span {
  font-size: 0.62rem;
}

body.page-team-detail .team-performance__bar {
  height: 6px;
  margin: 12px 0 20px;
}

body.page-team-detail .team-performance dt {
  font-size: 0.47rem;
}

body.page-team-detail .team-performance dd {
  font-size: 0.74rem;
}

body.page-team-detail .team-achievements__list,
body.page-team-detail .team-map-stats__list {
  padding: 4px 8px 5px 0;
}

body.page-team-detail .team-achievements__list a,
body.page-team-detail .team-map-stats__list > div {
  min-height: 41px;
}

body.page-team-detail .team-achievements__list strong,
body.page-team-detail .team-map-stats__list strong {
  font-size: 0.49rem;
}

body.page-team-detail .team-achievements__list small,
body.page-team-detail .team-map-stats__list span,
body.page-team-detail .team-map-stats__list b {
  font-size: 0.43rem;
}

body.page-team-detail .team-map-stats__head,
body.page-team-detail .team-map-stats__list > div {
  display: grid;
  min-height: 32px;
  grid-template-columns: minmax(0, 1fr) 54px 54px;
  align-items: center;
  gap: 8px;
}

body.page-team-detail .team-map-stats__head {
  min-height: 25px;
  padding-right: 8px;
  color: var(--text-soft);
  font-size: 0.41rem;
  font-weight: 700;
}

body.page-team-detail .team-map-stats__head span:not(:first-child),
body.page-team-detail .team-map-stats__list span,
body.page-team-detail .team-map-stats__list b {
  text-align: right;
}

body.page-team-detail .team-map-stats__list > div {
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-map-stats__list b {
  color: var(--text-strong);
}

body.page-team-detail .team-dashboard-panel__empty {
  min-height: 142px;
  padding: 20px 28px;
  font-size: 0.5rem;
  line-height: 1.55;
}

body.page-team-detail .team-profile-view--overview > .team-news {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-section__header {
  min-height: 40px;
  padding: 10px 14px 6px;
  border: 0;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-section__header h2 {
  font-size: 0.62rem;
  font-weight: 810;
  letter-spacing: 0;
  text-transform: none;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 14px 12px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item--with-media:first-child {
  min-height: 64px;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: border-color 150ms ease, background-color 150ms ease;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 28%, transparent);
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__media,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child .team-news-item__media {
  width: 82px;
  height: 56px;
  border-radius: 7px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 72%, transparent);
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__media img {
  transition: transform 180ms ease;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:hover .team-news-item__media img {
  transform: scale(1.025);
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item > span:last-child {
  gap: 6px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item strong,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child strong {
  font-size: 0.52rem;
  font-weight: 730;
  line-height: 1.32;
  -webkit-line-clamp: 2;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.4rem;
  font-weight: 640;
  white-space: nowrap;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__date {
  margin-right: auto;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__meta-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__meta-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news__all {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 720;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news__all:hover {
  background: var(--surface-muted);
  color: var(--accent);
}

@media (max-width: 760px) {
  body.page-team-detail .team-profile__hero,
  body.page-team-detail .team-profile__hero--with-match {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team-detail .team-spotlight-match {
    margin-top: 12px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  body.page-team-detail .team-roster__grid,
  body.page-team-detail .team-roster__grid[class*="team-roster__grid--"] {
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    overflow-x: auto;
  }

  body.page-team-detail .team-profile-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team-detail .team-profile-view--overview > .team-news .team-news__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item--with-media:first-child {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__media,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child .team-news-item__media {
    width: 88px;
    height: 60px;
  }

  body.page-team-detail .team-vrs-history,
  body.page-team-detail .team-recent-results,
  body.page-team-detail .team-performance,
  body.page-team-detail .team-achievements,
  body.page-team-detail .team-map-stats {
    grid-column: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__media img,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news__all {
    transition: none;
  }
}

/* The dedicated news tab integrates directly into the shared content shell. */
body.page-team-detail .team-profile--reference-v3 .team-profile-view--news {
  padding: 8px 12px 12px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news > .team-news {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news > .team-overview-news-empty {
  margin: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-section__header {
  box-sizing: border-box;
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-section__header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--team-overview-title-size);
  font-weight: 820;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 10px 10px 6px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:first-child,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item--with-media:first-child {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 106px auto;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: border-color 150ms ease, background-color 150ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__media,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:first-child .team-news-item__media {
  width: 100%;
  height: 106px;
  border-radius: 7px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 72%, transparent);
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:hover .team-news-item__media img {
  transform: scale(1.025);
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding-inline: 2px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item strong,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:first-child strong {
  display: -webkit-box;
  min-height: 31px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__date {
  margin-right: auto;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__meta-icon,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__meta-icon svg {
  display: block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item--text-only {
  min-height: 152px;
  grid-template-rows: minmax(0, 1fr);
  padding: 12px;
  border-color: var(--line);
  background: var(--surface-muted);
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__all {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 9.5px;
  font-weight: 740;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-section__show-more {
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 7px 8px 8px;
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 7px;
  background: var(--surface);
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-section__show-more:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__all::after {
  margin-left: 7px;
  content: "›";
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__all:hover {
  background: var(--surface-muted);
  color: var(--accent);
}

@media (max-width: 900px) {
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news {
    padding: 8px 12px 12px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0;
  }

  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item,
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:first-child,
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item--with-media:first-child {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
  }

  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__media,
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item:first-child .team-news-item__media {
    width: 118px;
    height: 76px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item--text-only {
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item,
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news-item__media img,
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-news__all,
  body.page-team-detail .team-profile--reference-v3 .team-profile-view--news .team-section__show-more {
    transition: none;
  }
}
/* Team profile redesign: compact editorial hero and overview dashboard. */
body.page-team-detail .team-profile--reference-v3 .team-club-header {
  position: relative;
  display: block;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--team-profile-color-soft) 34%, transparent), transparent 24%),
    linear-gradient(112deg, #fff 0 58%, #f7f9fc 100%);
  isolation: isolate;
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 15%;
  width: 39%;
  height: 100%;
  background: linear-gradient(
    132deg,
    color-mix(in srgb, var(--team-profile-color-glint) 28%, var(--team-profile-color)) 0%,
    var(--team-profile-color) 42%,
    color-mix(in srgb, var(--team-profile-color) 82%, var(--team-profile-color-deep)) 70%,
    var(--team-profile-color-deep) 100%
  );
  clip-path: polygon(36% 0, 100% 0, 72% 100%, 0 100%);
  content: "";
  opacity: 0.92;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header::after {
  content: none;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__summary {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) 158px;
  align-items: center;
  padding: 10px 14px 6px 18px;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__identity {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__logo {
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 10px 16px rgb(15 23 42 / 0.09));
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__logo.team-logo--vitality {
  transform: scale(1.14);
  transform-origin: center;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__identity h1 {
  font-size: clamp(1.55rem, 2.45vw, 1.95rem);
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__title {
  align-items: center;
  gap: 8px;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__title > span {
  margin-top: 2px;
  color: #41506a;
  font-size: 0.58rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__identity p {
  margin-top: 7px;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking {
  display: flex;
  position: relative;
  min-height: 92px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
  text-align: left;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking:hover {
  background: #fff;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking::before {
  content: none;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking > small {
  margin-bottom: 2px;
  font-size: 0.45rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line {
  width: calc(50% - 7px);
  min-height: 26px;
  justify-content: flex-start;
  gap: 5px;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line strong {
  font-size: 1.62rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line.is-compact {
  gap: 3px;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line.is-compact strong {
  font-size: 1.4rem;
  letter-spacing: -0.07em;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line.is-compact > span {
  gap: 1px;
  font-size: 0.54rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line.is-extra-compact {
  gap: 2px;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line.is-extra-compact strong {
  font-size: 1.28rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__rank-line.is-extra-compact > span {
  font-size: 0.49rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking > b {
  margin-top: 0;
  font-size: 0.52rem;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate {
  position: absolute;
  top: 10px;
  right: 14px;
  left: 50%;
  display: flex;
  min-height: 41px;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate small {
  margin: 0 0 2px;
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate-line {
  display: flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate-line strong {
  color: var(--text-strong);
  font-size: 1.62rem;
  font-weight: 870;
  letter-spacing: -0.06em;
  line-height: 1;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate-line b {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 820;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate b.is-up {
  color: #159359;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate b.is-down {
  color: #d04d4d;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate em {
  margin-top: 0;
  color: var(--text-soft);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 740;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__form-label {
  display: none;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__form {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin-top: 0;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__form i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.82);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 820;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__form .is-win {
  color: #159359;
}

body.page-team-detail .team-profile--reference-v3 .team-club-header__form .is-loss {
  color: #dd4f4f;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-roster {
  position: relative;
  z-index: 1;
  display: grid;
  height: 166px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px;
  border: 0;
  background: transparent;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-roster::after {
  position: absolute;
  z-index: -1;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 30px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  background: linear-gradient(90deg, #151b24, #1c2430 52%, #151b24);
  box-shadow: 0 7px 18px rgb(15 23 42 / 0.16);
  content: "";
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 166px;
  grid-template-rows: 136px 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait {
  height: 136px;
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait > img {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: contain;
  object-position: center top;
  filter: none;
  opacity: 1;
  transform: translateY(7px) scale(1.2);
  transform-origin: center top;
  transition: transform 150ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait.is-fallback > img {
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(0.88) brightness(1.03);
  opacity: 0.72;
  transform: scale(1.08);
  transform-origin: center top;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player:hover .team-overview-player__portrait > img,
body.page-team-detail .team-profile--reference-v3 .team-overview-player:focus-visible .team-overview-player__portrait > img {
  transform: translateY(5px) scale(1.2);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player:hover .team-overview-player__portrait.is-fallback > img,
body.page-team-detail .team-profile--reference-v3 .team-overview-player:focus-visible .team-overview-player__portrait.is-fallback > img {
  transform: translateY(-2px) scale(1.08);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy {
  min-height: 30px;
  justify-content: center;
  padding: 0 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 150ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player:hover .team-overview-player__copy,
body.page-team-detail .team-profile--reference-v3 .team-overview-player:focus-visible .team-overview-player__copy {
  background: rgb(255 255 255 / 0.045);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player.is-placeholder {
  cursor: default;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait.is-tbd::before {
  position: absolute;
  inset: 0;
  background: url("/assets/team-player-silhouette-v3.png") center top / 100% 100% no-repeat;
  content: "";
  filter: grayscale(1) contrast(0.88) brightness(1.03);
  opacity: 0.72;
  transform: none;
  transform-origin: center top;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player.is-placeholder:hover .team-overview-player__copy {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait > img,
  body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy {
    transition: none;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player:hover .team-overview-player__portrait > img,
  body.page-team-detail .team-profile--reference-v3 .team-overview-player:focus-visible .team-overview-player__portrait > img {
    transform: translateY(7px) scale(1.2);
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player:hover .team-overview-player__portrait.is-fallback > img,
  body.page-team-detail .team-profile--reference-v3 .team-overview-player:focus-visible .team-overview-player__portrait.is-fallback > img {
    transform: scale(1.08);
  }
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy strong {
  gap: 6px;
  color: #fff;
  font-size: 0.62rem;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy strong b {
  font-size: 0.66rem;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 3.05fr) minmax(176px, 0.95fr);
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics {
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header {
  min-height: 49px;
  padding: 8px 12px 5px 14px;
  border-bottom: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics h2,
body.page-team-detail .team-profile--reference-v3 .team-past-matches h2,
body.page-team-detail .team-profile--reference-v3 .team-upcoming-matches h2 {
  font-size: 0.66rem;
  font-weight: 830;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics nav a {
  min-height: 25px;
  padding-inline: 7px;
  font-size: 0.47rem;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p {
  margin-top: 3px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p .is-rank::before,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank {
  background: #2670ff;
  stroke: #2670ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p .is-points::before,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  background: #7568bd;
  stroke: #7568bd;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle {
  stroke: #2670ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  stroke: #7568bd;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
  padding: 0 8px 6px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
  height: 178px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hint {
  margin-top: -9px;
}

body.page-team-detail .team-profile--reference-v3 .team-past-matches {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-past-matches > header,
body.page-team-detail .team-profile--reference-v3 .team-upcoming-matches > header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-past-matches h2,
body.page-team-detail .team-profile--reference-v3 .team-upcoming-matches h2 {
  margin: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-past-matches__list {
  padding: 4px 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match {
  display: grid;
  min-height: 45px;
  grid-template-columns: 31px 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match + .team-past-match {
  border-top: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-past-match time,
body.page-team-detail .team-profile--reference-v3 .team-past-match__versus {
  color: var(--text-soft);
  font-size: 0.45rem;
  font-weight: 700;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match__versus {
  text-align: center;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match__opponent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match__opponent b {
  overflow: hidden;
  font-size: 0.5rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match__logo {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  object-fit: contain;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match > strong {
  font-size: 0.56rem;
  font-weight: 840;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match > strong.is-win {
  color: #159359;
}

body.page-team-detail .team-profile--reference-v3 .team-past-match > strong.is-loss {
  color: #d94c4c;
}

body.page-team-detail .team-profile--reference-v3 .team-past-matches__all {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.48rem;
  font-weight: 740;
  text-decoration: none;
}

body.page-team-detail .team-profile--reference-v3 .team-past-matches__all:hover {
  background: var(--surface-muted);
  color: var(--accent);
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-matches {
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-matches > header a {
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 720;
  text-decoration: none;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-matches__list {
  padding: 0 14px 4px;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match {
  display: grid;
  min-height: 45px;
  grid-template-columns: 82px minmax(0, 1fr) 28px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match + .team-upcoming-match {
  border-top: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match time {
  color: var(--text-strong);
  font-size: 0.52rem;
  font-weight: 770;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match__team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match__team b {
  overflow: hidden;
  font-size: 0.54rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match__logo {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match em {
  color: var(--text-soft);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 720;
  text-align: center;
}

body.page-team-detail .team-profile--reference-v3 .team-upcoming-match > strong {
  color: var(--text-soft);
  font-size: 0.47rem;
  font-weight: 740;
  text-align: right;
}

@media (max-width: 760px) {
  body.page-team-detail .team-profile--reference-v3 .team-club-header__summary {
    grid-template-columns: minmax(0, 1fr) 142px;
    padding-inline: 12px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__identity {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 12px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__logo {
    width: 64px;
    height: 64px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__identity h1 {
    font-size: clamp(1.16rem, 6vw, 1.5rem);
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking {
    min-height: 92px;
    grid-template-columns: minmax(48px, 0.75fr) minmax(58px, 1fr);
    column-gap: 9px;
    padding: 10px 8px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking::before {
    left: calc(42% + 1px);
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-roster {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy {
    background: rgb(13 18 26 / 0.94);
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team-detail .team-profile--reference-v3 .team-past-matches {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  body.page-team-detail .team-profile--reference-v3 .team-upcoming-match {
    grid-template-columns: 70px minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 6px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-upcoming-match > strong {
    display: none;
  }
}

@media (max-width: 440px) {
  body.page-team-detail .team-profile--reference-v3 .team-profile__topbar > span {
    display: none;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__summary {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding-inline: 9px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__identity {
    grid-template-columns: 52px minmax(0, 1fr);
    padding-left: 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__logo {
    width: 50px;
    height: 50px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__title > span {
    display: none;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__identity p {
    margin-top: 4px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking {
    display: flex;
    min-height: 72px;
    align-items: flex-start;
    padding: 8px 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking::before,
  body.page-team-detail .team-profile--reference-v3 .team-club-header__winrate,
  body.page-team-detail .team-profile--reference-v3 .team-club-header__form-label,
  body.page-team-detail .team-profile--reference-v3 .team-club-header__form {
    display: none;
  }

  body.page-team-detail .team-profile--reference-v3 .team-upcoming-match {
    grid-template-columns: 58px minmax(0, 1fr) 16px minmax(0, 1fr);
  }

  body.page-team-detail .team-profile--reference-v3 .team-upcoming-match__team b {
    font-size: 0.48rem;
  }
}

/* Final team overview alignment: tournament rows mirror match rows exactly. */
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__list {
  display: block;
  flex: 0 0 auto;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding-block: 2px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__dates text {
  font-size: 7.5px;
  font-weight: 710;
  letter-spacing: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip {
  min-width: 148px;
  max-width: 158px;
  padding: 9px 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > strong {
  padding-bottom: 7px;
  font-size: 8.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span {
  min-height: 23px;
  gap: 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip i {
  font-size: 7.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip b {
  font-size: 11px;
}

/* Selected team overview: VRS with tournaments, then one wide chronological match feed and news. */
body.page-team-detail .team-profile--reference-v3 .team-profile-view--overview {
  --team-overview-header-height: 34px;
  --team-overview-title-size: 9px;
  background: var(--surface-muted);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(250px, 0.82fr);
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border-bottom: 0;
  background: var(--surface-muted);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics,
body.page-team-detail .team-profile--reference-v3 .team-overview-matches,
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments,
body.page-team-detail .team-profile-view--overview > .team-news {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics {
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header,
body.page-team-detail .team-profile--reference-v3 .team-overview-matches > header,
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments > header {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: var(--team-overview-header-height);
  min-height: var(--team-overview-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics h2,
body.page-team-detail .team-profile--reference-v3 .team-overview-matches h2,
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--team-overview-title-size);
  font-weight: 820;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header {
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics nav {
  display: inline-flex;
  height: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
  box-shadow: none;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics nav a {
  display: inline-flex;
  height: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 0.54rem;
  font-weight: 850;
  line-height: 1;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics nav a.is-active {
  border-color: transparent;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--line));
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p {
  gap: 9px;
  margin: 0;
  font-size: 8px;
  line-height: 1;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
  display: flex;
  min-height: 0;
  flex: 1;
  padding: 14px 16px 15px;
  background:
    linear-gradient(180deg, rgb(247 250 255 / 0.72), rgb(255 255 255 / 0) 42%),
    var(--surface);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
  display: block;
  width: 100%;
  min-height: 218px;
  flex: 1;
  height: 100%;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart text {
  fill: color-mix(in srgb, var(--text-soft) 84%, transparent);
  font-size: 10.5px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid line {
  stroke: rgb(92 112 143 / 0.18);
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle {
  stroke: #1767ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  stroke: #c9692e;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p .is-rank::before {
  background: #1767ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p .is-points::before {
  background: #c9692e;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid text {
  fill: color-mix(in srgb, var(--text-soft) 76%, transparent);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__dates text {
  fill: color-mix(in srgb, var(--text-soft) 88%, transparent);
  font-size: 9.5px;
  font-weight: 740;
  letter-spacing: 0.035em;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25px;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  r: 3.2px;
  fill: var(--surface);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle.is-latest,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle.is-latest {
  r: 4.8px;
  stroke-width: 2.4px;
  filter: drop-shadow(0 2px 3px rgb(15 23 42 / 0.18));
}

body.page-team-detail .team-profile--reference-v3 .team-overview-matches {
  display: flex;
  flex-direction: column;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-matches__list {
  flex: 1;
  padding: 1px 11px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match {
  display: grid;
  min-height: 34px;
  grid-template-columns: 54px minmax(340px, 1fr) minmax(164px, 0.5fr);
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match:hover {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match:focus-visible {
  border-radius: 5px;
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: -2px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match + .team-overview-match {
  border-top: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__date {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__date b {
  color: var(--text-strong);
  font-size: 9.5px;
  font-weight: 800;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__date small {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__live {
  color: #d94c4c;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__matchup {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__team,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__opponent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__team:hover b,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__opponent:hover b,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__event:hover b {
  color: var(--accent);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__team:focus-visible,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__opponent:focus-visible,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__event:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 68%, transparent);
  outline-offset: 2px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__team {
  justify-content: flex-end;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__opponent {
  justify-content: flex-start;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__team b,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__opponent b {
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__team b {
  text-align: right;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__logo.team-logo--vitality {
  transform: scale(1.3);
  transform-origin: center;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__score {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__score strong {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__score.is-win strong {
  color: #159359;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__score.is-loss strong {
  color: #d94c4c;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__event {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  border-radius: 0 4px 4px 0;
  color: inherit;
  text-decoration: none;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__event b,
body.page-team-detail .team-profile--reference-v3 .team-overview-match__event small {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__event b {
  color: var(--text-strong);
  font-size: 8.5px;
  font-weight: 720;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__event small {
  color: var(--text-soft);
  font-size: 7.5px;
  font-weight: 650;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 0 8px 8px;
  background: var(--surface-muted);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-self: stretch;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__list {
  flex: 1;
  padding: 1px 9px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview {
  min-height: 34px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 3px 1px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview .team-profile-tournament__logo {
  width: 24px;
  height: 24px;
  overflow: hidden;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview .team-profile-tournament__logo img,
body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview .team-profile-tournament__logo .tournament-logo-fallback {
  width: auto;
  height: auto;
  max-width: 22px;
  max-height: 16px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 780;
  text-overflow: clip;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview small,
body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview > b {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 680;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview > b {
  display: block;
  max-width: 58px;
  margin: 0;
  color: var(--text-soft);
  font-size: 7px;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview.is-live > b {
  color: #d94c4c;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-matches__all,
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__all,
body.page-team-detail .team-profile-view--overview > .team-news .team-news__all {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: auto 8px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 7px;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-matches__all:hover,
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__all:hover,
body.page-team-detail .team-profile-view--overview > .team-news .team-news__all:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

/* Matches tab reuses the overview match block; pagination shows 20 rows at a time. */
body.page-team-detail .team-profile--reference-v3 .team-overview-matches--tab .team-section__show-more,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--tournaments .team-section__show-more {
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 7px 8px 8px;
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 7px;
  background: var(--surface);
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--tournaments .team-section__show-more {
  margin-top: 4px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-view--tournaments .team-profile-tournament--history:not([hidden]):has(+ .team-profile-tournament--history[hidden]) {
  border-bottom: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-matches--tab .team-section__show-more:hover,
body.page-team-detail .team-profile--reference-v3 .team-profile-view--tournaments .team-section__show-more:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

body.page-team-detail .team-profile-view--overview > .team-news {
  margin: 0 8px 8px;
  order: 3;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-section__header {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: var(--team-overview-header-height);
  min-height: var(--team-overview-header-height);
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.page-team-detail .team-profile-view--overview > .team-news .team-section__header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--team-overview-title-size);
  font-weight: 820;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 11px 8px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item--with-media:first-child {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 88px auto;
  align-content: start;
  align-items: start;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__media,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child .team-news-item__media {
  width: 100%;
  height: 88px;
  border-radius: 7px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item > span:last-child {
  gap: 6px;
  padding-inline: 2px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item--text-only {
  min-height: 132px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item--text-only strong {
  min-height: 0;
  font-size: 11px;
  line-height: 1.4;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item strong,
body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child strong {
  min-height: 30px;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__meta {
  gap: 8px;
  font-size: 8px;
}

body.page-team-detail .team-profile-view--overview > .team-news .team-news__all::after {
  content: "›";
}

@media (max-width: 1120px) {
  body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard {
    grid-template-columns: minmax(0, 1.65fr) minmax(238px, 0.85fr);
  }
}

@media (max-width: 900px) {
  body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
    height: 180px;
    min-height: 180px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-match {
    grid-template-columns: 54px minmax(300px, 1fr) minmax(140px, 0.48fr);
    gap: 9px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
    height: 220px;
    min-height: 220px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart text {
    font-size: 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank,
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
    stroke-width: 2.3px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle,
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
    r: 4px;
  }
}

@media (max-width: 760px) {
  body.page-team-detail .team-profile--reference-v3 .team-club-header__summary {
    grid-template-columns: minmax(0, 1fr) 158px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking {
    box-sizing: border-box;
    width: 158px;
    justify-self: end;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header {
    height: 42px;
    min-height: 42px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding-inline: 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div {
    gap: 8px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics nav {
    max-width: none;
    overflow: visible;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
    padding: 7px 8px 9px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart text {
    font-size: 12px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank,
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
    stroke-width: 2.25px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle,
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
    r: 4px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard,
  body.page-team-detail .team-profile--reference-v3 .team-overview-schedule {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 10px;
  }

  body.page-team-detail .team-profile-view--overview > .team-news {
    margin-inline: 10px;
  }

  body.page-team-detail .team-profile-view--overview > .team-news .team-news__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item--with-media:first-child {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item__media,
  body.page-team-detail .team-profile-view--overview > .team-news .team-news-item:first-child .team-news-item__media {
    width: 118px;
    height: 76px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-match {
    min-height: 38px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-match__event {
    display: none;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-match__matchup {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 7px;
  }
}

@media (max-width: 380px) {
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header {
    height: auto;
    min-height: 66px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding-block: 7px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div {
    justify-content: center;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics nav {
    align-self: center;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
    height: 150px;
    min-height: 150px;
  }
}

/* Team overview finishing pass: isolated news states and legible dual-axis chart. */
body.page-team-detail .team-profile--reference-v3 .team-profile-view--overview {
  padding-bottom: 8px;
  background: var(--surface-muted);
}

body.page-team-detail .team-profile-view--overview > .team-news {
  margin-bottom: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty {
  order: 3;
  margin: 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty > header {
  display: flex;
  height: var(--team-overview-header-height);
  min-height: var(--team-overview-header-height);
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--team-overview-title-size);
  font-weight: 820;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty > div {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  text-align: center;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty strong {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 790;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty span {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 620;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p .is-points::before,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  background: #c47a44;
  stroke: #c47a44;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__line-hit {
  fill: none;
  stroke: transparent;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 12px;
  pointer-events: stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  stroke: #c47a44;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip {
  min-width: 166px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 11px 12px 12px;
  border: 1px solid rgb(91 107 132 / 0.18);
  border-radius: 9px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 14px 34px rgb(29 47 78 / 0.16), 0 2px 8px rgb(29 47 78 / 0.08);
  color: var(--text-strong);
  backdrop-filter: blur(12px) saturate(120%);
  transform: none;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip.is-left {
  transform: translateX(calc(-100% - 10px));
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip.is-right {
  transform: translateX(10px);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > strong {
  padding-bottom: 9px;
  border-color: rgb(91 107 132 / 0.16);
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.02em;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span {
  gap: 3px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip i {
  order: 0;
  color: var(--text-soft);
  font-size: 7.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip b {
  order: 1;
  color: var(--text-strong);
  font-size: 13px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank b {
  color: #78a7ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-points b {
  color: #b86531;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__guide {
  stroke: rgb(73 91 120 / 0.34);
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Team profile density pass: overview and roster share one compact header rhythm. */
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
  min-height: 286px;
  padding: 10px 14px 12px;
  background: var(--surface);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
  min-height: 264px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview {
  height: 32px;
  min-height: 32px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 2px 1px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview .team-profile-tournament__logo {
  width: 22px;
  height: 22px;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview .team-profile-tournament__logo img,
body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview .team-profile-tournament__logo .tournament-logo-fallback {
  max-width: 20px;
  max-height: 15px;
}

body.page-team-detail .team-roster-board__toolbar,
body.page-team-detail .team-roster-changes > header {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
}

body.page-team-detail .team-roster-board__toolbar h2,
body.page-team-detail .team-roster-changes h2 {
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-team-detail .team-roster-period {
  box-sizing: border-box;
  height: 24px;
  min-height: 24px;
  gap: 1px;
  padding: 2px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
}

body.page-team-detail .team-roster-period button {
  height: 18px;
  min-height: 18px;
  min-width: 0;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 0.54rem;
  font-weight: 850;
  line-height: 1;
}

body.page-team-detail .team-roster-board__columns {
  min-height: 30px;
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

body.page-team-detail .team-roster-board__metric-header {
  min-height: 30px;
}

body.page-team-detail .team-roster-row {
  height: 62px;
  min-height: 62px;
}

body.page-team-detail .team-roster-row__player {
  gap: 8px;
}

body.page-team-detail .team-roster-row__portrait {
  width: 70px;
  height: 58px;
}

body.page-team-detail .team-roster-row__portrait img {
  width: 70px;
}

body.page-team-detail .team-roster-row__portrait.has-photo img {
  width: 102px;
}

body.page-team-detail .team-roster-changes__empty {
  min-height: 58px;
  padding: 10px 18px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hits {
  inset: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hit {
  top: var(--vrs-hit-y);
  bottom: auto;
  left: var(--vrs-hit-x);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hit:focus-visible {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.94), 0 0 0 4px rgb(38 112 255 / 0.38);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hit:focus-visible::after {
  display: none;
}

/* VRS chart body v2: dense dual-axis plot with data-led scales. */
body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div {
  display: contents;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header h2 {
  justify-self: start;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p {
  justify-self: center;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 8.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header nav {
  justify-self: end;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
  position: relative;
  display: flex;
  min-height: 286px;
  flex: 1;
  padding: 10px 12px 12px;
  background: var(--surface);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
  display: block;
  width: 100%;
  min-height: 262px;
  height: 100%;
  flex: 1;
  overflow: visible;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart text {
  fill: color-mix(in srgb, var(--text-soft) 86%, transparent);
  font-size: 11.5px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid line {
  stroke: #becbd9;
  stroke-dasharray: 2 3;
  stroke-linecap: round;
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid line.is-date-line {
  stroke: #d1dbe6;
  stroke-dasharray: 2 3;
  stroke-linecap: round;
  stroke-width: 1px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid line.is-month-tick {
  stroke: #9eafc2;
  stroke-dasharray: none;
  stroke-linecap: square;
  stroke-width: 1.25px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid .is-rank-label,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid .is-points-label {
  fill: #5d6d84;
  font-size: 11.5px;
  font-weight: 730;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__dates text {
  fill: #56677f;
  font-size: 11px;
  font-weight: 690;
  letter-spacing: 0.01em;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-width: 2.8px;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank {
  stroke: #1767ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  stroke: #c9692e;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  r: 3.8px;
  fill: var(--surface);
  stroke-width: 2px;
  filter: none;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle.is-latest,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle.is-latest {
  r: 5px;
  stroke-width: 2.4px;
  filter: none;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle.is-active,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle.is-active {
  r: 5.4px;
  stroke-width: 2.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__guide {
  stroke: color-mix(in srgb, var(--text-soft) 48%, transparent);
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hits {
  position: absolute;
  inset: 10px 12px 12px;
  z-index: 2;
  pointer-events: none;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hit {
  position: absolute;
  top: 0;
  bottom: 30px;
  left: var(--vrs-hit-x);
  width: var(--vrs-hit-width, 18%);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  pointer-events: auto;
  transform: translateX(-50%);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hit:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 36%, transparent);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 174px;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--text-soft));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 97%, transparent);
  box-shadow: 0 12px 28px rgb(30 43 66 / 0.13), 0 2px 6px rgb(30 43 66 / 0.06);
  color: var(--text-strong);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > strong {
  padding: 0 0 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  color: var(--text-strong);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span {
  display: flex;
  min-height: 27px;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span + span {
  border-top: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip i {
  color: var(--text-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip b {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank b {
  color: #2670ff;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-points b {
  color: #b86531;
}

@media (max-width: 760px) {
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
    min-height: 224px;
    padding: 7px 7px 9px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
    min-height: 208px;
    height: 208px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart text,
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid .is-rank-label,
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__grid .is-points-label {
    font-size: 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hits {
    inset: 7px 7px 9px;
  }
}

@media (max-width: 380px) {
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title period"
      "legend legend";
    align-items: center;
    row-gap: 7px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div {
    display: contents;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header h2 {
    grid-area: title;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header > div > p {
    grid-area: legend;
    justify-self: center;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics > header nav {
    grid-area: period;
    justify-self: end;
    align-self: center;
  }
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-match__live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #df4b43;
  box-shadow: 0 0 0 3px rgb(223 75 67 / 0.1);
  content: "";
}

@media (max-width: 760px) {
  body.page-team-detail .team-profile--reference-v3 .team-overview-news-empty {
    margin-inline: 10px;
  }
}

@media (max-width: 440px) {
  body.page-team-detail .team-profile--reference-v3 .team-club-header__summary {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-club-header__ranking {
    width: auto;
    justify-self: stretch;
  }
}

/* Team overview final geometry overrides. */
body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__list {
  display: block;
  flex: 0 0 auto;
}

body.page-team-detail .team-profile--reference-v3 .team-profile-tournament--overview {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding-block: 0;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__dates text {
  fill: color-mix(in srgb, var(--text-soft) 96%, var(--text));
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip {
  min-width: 148px;
  max-width: 158px;
  padding: 9px 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > strong {
  padding-bottom: 7px;
  font-size: 8.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span {
  min-height: 23px;
  gap: 10px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip i {
  font-size: 7.5px;
}

body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip b {
  font-size: 11px;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments {
  min-height: 0;
  align-self: start;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-tournaments__all {
  flex: 0 0 auto;
  margin: 7px 8px;
}

@media (min-width: 901px) {
  body.page-team-detail .team-profile--reference-v3 .team-vrs-dynamics {
    box-sizing: border-box;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    align-self: start;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart {
    min-height: 0;
    padding: 8px 10px 10px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart svg {
    min-height: 0;
    height: 100%;
  }
}

/* Point-only hover is intentionally the last chart override in the cascade. */
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hits { inset: 0; }
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__hit {
  top: var(--vrs-hit-y); bottom: auto; left: var(--vrs-hit-x);
  width: 18px; height: 18px; border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank-points circle,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__score-points circle {
  cursor: crosshair;
  pointer-events: all;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__slices rect {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__rank,
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__points-line {
  pointer-events: none;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-dual-chart__guide {
  stroke: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  stroke-dasharray: 4 3; stroke-linecap: butt; stroke-width: 1.35px;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip {
  width: 132px; min-width: 132px; max-width: 132px; gap: 0; padding: 7px 8px;
  border-color: color-mix(in srgb, var(--line) 74%, var(--text-soft));
  border-radius: 6px; background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  box-shadow: 0 8px 20px rgb(30 43 66 / 0.12), 0 1px 3px rgb(30 43 66 / 0.08);
  backdrop-filter: blur(8px) saturate(108%);
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > strong {
  margin: 0 0 2px; padding: 0 0 6px; color: var(--text-soft); font-size: 8px;
  font-weight: 780; letter-spacing: 0.055em; line-height: 1.2; text-align: center; text-transform: uppercase;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span {
  display: grid; min-height: 21px; grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center; gap: 5px;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span::before {
  width: 6px; height: 2px; border-radius: 1px; background: #2670ff; content: "";
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip > span.is-points::before { background: #c46f34; }
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip i {
  color: var(--text-soft); font-size: 7px; font-weight: 700;
  letter-spacing: 0.045em; line-height: 1; text-transform: uppercase;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip b,
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank b,
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-points b {
  color: var(--text-strong); font-size: 10.5px; font-weight: 820; line-height: 1;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank em {
  font-size: 7px;
  font-style: normal;
  font-weight: 820;
  letter-spacing: -0.02em;
}
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank em.is-up { color: #229566; }
body.page-team-detail .team-profile--reference-v3 .team-vrs-tooltip .is-rank em.is-down { color: #d24f4a; }

/* Roster table: compact technical labels and explicit data states. */
body.page-team-detail .team-profile-period {
  display: inline-flex;
  box-sizing: border-box;
  height: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
  box-shadow: none;
}

body.page-team-detail .team-profile-period > a,
body.page-team-detail .team-profile-period > button {
  display: inline-flex;
  box-sizing: border-box;
  height: 18px;
  min-width: 0;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font: inherit;
  font-size: 0.54rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.page-team-detail .team-profile-period > a:hover,
body.page-team-detail .team-profile-period > a:focus-visible,
body.page-team-detail .team-profile-period > button:hover,
body.page-team-detail .team-profile-period > button:focus-visible {
  color: var(--text-strong);
  outline: none;
}

body.page-team-detail .team-profile-period > a.is-active,
body.page-team-detail .team-profile-period > button.is-active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--line));
}

body.page-team-detail .team-roster-board__columns {
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.015em;
  text-transform: none;
}

body.page-team-detail .team-roster-board__metric-columns > span,
body.page-team-detail .team-roster-row__metrics > * {
  text-align: center;
}

body.page-team-detail .team-roster-row__fact {
  justify-content: center;
}

body.page-team-detail .team-roster-row__fact > strong.is-unknown {
  color: color-mix(in srgb, var(--text-soft) 82%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

body.page-team-detail .team-roster-row__locked {
  color: color-mix(in srgb, var(--text-soft) 88%, transparent);
  text-align: center;
}

body.page-team-detail .team-roster-row__locked > span {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
}

body.page-team-detail .team-roster-row {
  height: 54px;
  min-height: 54px;
}

body.page-team-detail .team-roster-row__portrait {
  height: 50px;
}

body.page-team-detail .team-roster-row:hover,
body.page-team-detail .team-roster-row:focus-visible {
  box-shadow: none;
}

body.page-team-detail .team-roster-row__metric {
  color: var(--text-strong);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

body.page-team-detail .team-vrs-dynamics__empty {
  box-sizing: border-box;
  display: flex;
  min-height: 118px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 3%, transparent), transparent 52%),
    var(--surface);
  text-align: center;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard:has(.team-vrs-dynamics__empty) {
  align-items: stretch;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard:has(.team-vrs-dynamics__empty) .team-vrs-dynamics {
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: stretch;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard:has(.team-vrs-dynamics__empty) .team-overview-tournaments {
  align-self: stretch;
}

body.page-team-detail .team-profile--reference-v3 .team-overview-dashboard:has(.team-vrs-dynamics__empty) .team-vrs-dynamics__empty {
  min-height: 0;
}

/* Tournament stage navigation follows the same compact technical rhythm as profile tabs. */
.tournament-bracket__tabs {
  align-items: stretch;
  gap: 0;
  padding-inline: 10px;
}

.tournament-bracket__tabs .tournament-stages__tab {
  min-height: 32px;
  align-items: center;
  padding: 3px 14px 4px;
  text-align: center;
}

.tournament-bracket__tabs .tournament-stages__tab > span {
  font-size: 0.62rem;
}

.tournament-bracket__tabs .tournament-stages__tab > small {
  font-size: 0.48rem;
}

.tournament-bracket__tabs .tournament-stages__tab + .tournament-stages__tab {
  border-left: 1px solid var(--line);
}

.tournament-bracket__tabs .tournament-stages__tab::after {
  right: 16px;
  left: 16px;
}

.tournament-bracket__viewport {
  container-name: tournament-bracket-viewport;
  container-type: inline-size;
}

.tournament-bracket__board.is-short-bracket {
  --tournament-bracket-round-gap: 28px;
  min-width: max-content;
  margin-inline: 12px;
  column-gap: 24px;
}

.tournament-bracket__board.is-standard-bracket {
  --tournament-bracket-round-gap: 40px;
  margin-inline: 12px;
  column-gap: 32px;
}

@container tournament-bracket-viewport (max-width: 680px) {
  .tournament-bracket__board.is-short-bracket {
    --tournament-bracket-round-gap: 12px;
    margin-inline: 8px;
    column-gap: 10px;
  }

  .tournament-bracket__board.is-standard-bracket {
    --tournament-bracket-round-gap: 12px;
    margin-inline: 8px;
    column-gap: 10px;
  }
}

@media (max-width: 640px) {
  body.page-team-detail .team-profile-period > button {
    padding-inline: 4px;
    font-size: 7px;
  }

  body.page-team-detail .team-roster-row__metrics > *,
  body.page-team-detail .team-roster-row__locked {
    text-align: left;
  }

  body.page-team-detail .team-roster-row__fact {
    justify-content: start;
  }
}

/* Compact roster: keep all five players inside the card at every mobile width. */
@media (max-width: 760px) {
  body.page-team-detail .team-profile--reference-v3 .team-overview-roster {
    height: clamp(120px, 24vw, 166px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-inline: 8px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-roster::after {
    right: 8px;
    left: 8px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player {
    width: auto;
    min-height: 0;
    height: auto;
    align-self: stretch;
    grid-template-rows: minmax(0, 1fr) 30px;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait {
    min-height: 0;
    height: auto;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player__portrait > img {
    height: 100%;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy {
    min-width: 0;
    padding-inline: 3px;
    background: transparent;
  }

  body.page-team-detail .team-profile--reference-v3 .team-overview-player__copy strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
