/* Football scores list page */

/* Scroll-linked header (chrome + sticky bar) — list + tournament */
.page-football-sticky .app-chrome {
  position: relative;
  top: auto;
  z-index: var(--z-chrome);
  width: 100%;
  max-width: var(--app-max-width);
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Placeholder keeps layout stable while chrome is position:fixed */
.football-chrome-spacer {
  display: none;
  height: 0;
  flex-shrink: 0;
}

.page-football-sticky.football-headers-pinned .football-chrome-spacer {
  display: block;
  height: var(--football-chrome-height, 0);
}

.page-football-sticky.football-headers-pinned .app-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: translate3d(0, -100%, 0);
  pointer-events: none;
}

.page-football-sticky.football-headers-pinned.football-chrome-visible .app-chrome {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.football-page__sticky-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.football-page__sticky-anchor {
  position: relative;
}

.page-football-sticky.football-headers-pinned .football-page__sticky-anchor {
  height: var(--football-sticky-bar-height, auto);
}

.football-page__sticky-bar {
  position: relative;
  z-index: calc(var(--z-chrome) - 1);
  background: var(--color-surface);
  width: 100%;
  transition: top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.football-page__sticky-bar--list {
  padding: var(--space-block-gap);
}

.page-football-sticky.football-headers-pinned .football-page__sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--app-max-width);
  width: 100%;
}

.page-football-sticky.football-headers-pinned.football-chrome-visible .football-page__sticky-bar {
  top: var(--football-chrome-height, 0);
}

.page-football-sticky.football-headers-pinned .football-page__sticky-bar.is-pinned {
  border-bottom: 1px solid var(--color-divider);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.football-page {
  /* background: var(--color-tab-border); */
  padding-bottom: var(--space-section);
}

.football-page__header {
  padding: var(--space-tab-gap) var(--space-block-gap) 0;
  /* background: var(--color-surface); */
}

.football-page__seo {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin: 0;
}

.football-page__subtitle {
  padding: 8px var(--space-page) 12px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

/* Date toolbar */
.football-date-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: 2px;
  /* padding: 0 var(--space-page) 0; */

  border: 1px solid var(--color-tab-border);

  border-radius: var(--radius-pill);
  /* border-bottom: 1px solid var(--color-divider); */
}

.football-date-toolbar__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-black);
  /* background: var(--color-tab-border); */
  /* border-radius: var(--radius-pill); */
}

.football-date-toolbar__date {
  min-width: 120px;
  padding: 8px 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);

  border-left: 1px solid var(--color-tab-border);
  border-right: 1px solid var(--color-tab-border);
  /* background: var(--color-tab-border); */
  /* border-radius: var(--radius-pill); */
  cursor: pointer;
}

/* Status chips */
.football-status-filters {
  display: flex;
  gap: 8px;
  margin-top: var(--space-block-gap);
}

.football-chip {
  /* flex: 1; */
  padding: 8px 16px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  background: var(--color-tab-border);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.football-chip--active {
  color: var(--color-white);
  background: var(--color-black);
}

.football-chip--live {
  color: var(--color-live-chip-text);
  background: var(--color-live-chip-bg);
}

.football-chip--live.football-chip--active {
  color: var(--color-white);
  background: var(--color-live-chip-active);
}

/* Back to today */
.football-back-today-wrap {
  margin-top: var(--space-block-gap);
}

.football-back-today {
  display: inline-block;
  padding: 8px 16px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

/* League list */
.football-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
  padding: var(--space-block-gap);
}

.football-list__sentinel {
  height: 1px;
}

.football-list__loading {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding: 12px;
}

.football-league-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.football-league-card--hidden {
  display: none;
}

.football-league-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-divider);
}

.football-league-card__link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
}

.football-league-card__logo {
  flex-shrink: 0;
  border-radius: 50%;
}

.football-league-card__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.football-league-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-league-card__country {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.football-league-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.football-league-card__count {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.football-league-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--colors-neutral-default);
  cursor: pointer;
}

.football-league-card__chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.football-league-card__toggle[aria-expanded="false"] .football-league-card__chevron {
  transform: rotate(180deg);
}

.football-league-card__body {
  padding: 0;
}

.football-league-card__body--collapsed {
  display: none;
}

/* Group section */
.football-group-section__label {
  padding: 8px 14px 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

/* Match row */
.football-match-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-divider);
}

.football-match-row:last-child {
  border-bottom: none;
}

.football-match-row--hidden {
  display: none;
}

.football-match-row__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.football-match-row__kickoff {
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.football-match-row__date {
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  font-size: 11px;
  line-height: 1.2;
}

.football-match-row__live {
  color: #c62828;
  font-weight: var(--font-weight-semibold);
}

.football-match-row__main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.football-match-row__teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.football-match-row__team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--color-black);
  min-width: 0;
}

.football-match-row__team > span:not(.football-match-row__card) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.football-match-row__team img {
  flex-shrink: 0;
  border-radius: 50%;
}

.football-match-row__scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 28px;
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.football-match-row__score {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

.football-match-row__card {
  flex-shrink: 0;
  width: 8px;
  height: 12px;
  background: #c62828;
  border-radius: 1px;
}

/* About card (player / coach / team / match / tournament / list) */
.entity-about-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
}

.entity-about-card--spaced {
  margin: var(--space-section) var(--space-page) 0;
}

.entity-about-card__title {
  margin: 0;
  padding: var(--space-block-gap);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  text-align: center;
  color: var(--color-text-primary);
}

.entity-about-card__content {
  padding: 0 var(--space-block-gap) var(--space-block-gap);
}

.entity-about-card__text {
  margin: 0 0 12px;
  font-size: var(--font-size-sm);
  line-height: 1.55;
  /* color: var(--color-text-secondary); */
}

.entity-about-card__text:last-child {
  margin-bottom: 0;
}

.entity-about-card__body {
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.entity-about-card__body> :first-child {
  margin-top: 0;
}

.entity-about-card__body p {
  margin: 0 0 12px;
}

.entity-about-card__body p:last-child {
  margin-bottom: 0;
}

.entity-about-card__body h3 {
  margin: 16px 0 8px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.entity-about-card__body ul {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.entity-about-card__body li {
  margin-bottom: 4px;
}

.entity-about-card__body a,
.entity-about-card__link {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.entity-about-card__body a:hover,
.entity-about-card__link:hover {
  text-decoration: underline;
}

.entity-about-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-tab-border);
}

.entity-about-card__facts-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-tab-border);
  font-size: var(--font-size-sm);
}

.entity-about-card__facts-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entity-about-card__facts-label {
  flex: 1;
  color: var(--color-text-secondary);
}

.entity-about-card__facts-value {
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
  text-align: right;
}

/* Date modal */
.football-date-modal::part(content) {
  border-radius: var(--radius-popup) var(--radius-popup) 0 0;
}

.football-date-modal__inner {
  padding: 16px var(--space-page) calc(16px + env(safe-area-inset-bottom));
  background: var(--color-surface);
}

.football-date-modal ion-datetime {
  display: block;
  width: min(100%, 340px);
  margin: 0 auto;
}

.football-date-modal__footer {
  width: min(100%, 340px);
  margin: 0 auto;
}

.football-date-modal__header {
  display: grid;
  grid-template-columns: 40px 1fr 40px 40px;
  align-items: center;
  margin-bottom: 12px;
}

.football-date-modal__month {
  grid-column: 2;
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.football-date-modal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
}

.football-date-modal__close {
  grid-column: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.football-date-modal__today {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Entity placeholder */
.football-entity__heading {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  padding: 0 var(--space-page);
}

.football-entity__subtitle {
  padding: 8px var(--space-page);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Tournament detail page */
.football-tournament-page {
  /* background: var(--color-tab-border); */
  padding-bottom: var(--space-section);
}

.tournament-hero {
  background: var(--color-surface);
  padding-bottom: 12px;
}

.tournament-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-block-gap);
}

.tournament-hero__logo {
  flex-shrink: 0;
  border-radius: 8px;
}

.tournament-hero__info {
  flex: 1;
  min-width: 0;
}

.tournament-hero__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.tournament-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.tournament-hero__region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tournament-hero__region-flag {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.tournament-hero__globe {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17963f 40%, #367ec9 60%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tournament-hero__timeline {
  padding: 12px var(--space-page) 14px;
}

.tournament-hero__timeline-track {
  position: relative;
  height: 3px;
  background: var(--color-tab-border);
  border-radius: 2px;
  overflow: hidden;
}

.tournament-hero__timeline-fill {
  display: block;
  height: 100%;
  background: var(--color-text-primary);
  border-radius: inherit;
}

.tournament-hero__timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.tournament-sticky-bar .scroll-tabs-wrap {
  box-shadow: none;
}

.tournament-tab-panel {
  padding: var(--space-tab-gap) var(--space-block-gap) var(--space-section);
}

.tournament-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.tournament-panel .tournament-standings-toolbar {
  margin: calc(-1 * var(--space-tab-gap)) calc(-1 * var(--space-block-gap)) 0;
}

/* Player of the Season (tournament Details) */
.tournament-pots-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 156px;
}

.tournament-pots-card__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tournament-pots-card__pattern svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tournament-pots-card__inner {
  position: relative;
  z-index: 1;
  padding: 16px 16px 14px;
  color: #fff;
}

.tournament-pots-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tournament-pots-card__trophy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.tournament-pots-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.tournament-pots-card__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: default;
}

.tournament-pots-card__player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tournament-pots-card__avatar-link {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.tournament-pots-card__avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.tournament-pots-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tournament-pots-card__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}

.tournament-pots-card__name:hover {
  text-decoration: underline;
}

.tournament-pots-card__team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tournament-pots-card__team-logo {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.tournament-pots-card__team-name {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-pots-card__team-name:hover {
  text-decoration: underline;
}

.tournament-pots-card__rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tournament-pots-card__rating-badge {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #43a047;
}

.tournament-pots-card__rating-badge--elite {
  background: #00b5bd;
}

.tournament-pots-card__rating-badge--high {
  background: #43a047;
}

.tournament-pots-card__rating-badge--mid {
  background: #f9a825;
}

.tournament-pots-card__rating-badge--low {
  background: #e53935;
}

.tournament-pots-card__rating {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.tournament-pots-card__more {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  text-decoration: none;
}

.tournament-pots-card__more:hover {
  text-decoration: underline;
}

.tournament-title-info.tournament-card {
  padding: 16px 0;
}

.tournament-title-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.tournament-title-info__item {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
}

.tournament-title-info__item+.tournament-title-info__item {
  border-left: 1px solid var(--color-divider);
}

.tournament-title-info__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.tournament-title-info__logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
}

.tournament-title-info__name {
  display: block;
  width: 100%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  text-align: center;
}

.tournament-title-info__label {
  display: block;
  width: 100%;
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-text-secondary);
  text-align: center;
}

.tournament-totw--season .tournament-totw__title {
  font-size: var(--font-size-base);
}

.tournament-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -8px;
}

.tournament-toolbar__selects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tournament-toolbar__select .ui-select-wrap {
  width: auto;
  min-width: 120px;
}

.tournament-toolbar__select .ui-select__menu {
  z-index: 120;
}

.tournament-panel--matches .tournament-toolbar {
  gap: 0;
}

.tournament-matches-view-bar {
  display: flex;
  justify-content: center;
  width: calc(100% + 2 * var(--space-page));
  margin: 0 calc(-1 * var(--space-page));
  padding: 10px var(--space-page);
  background: var(--color-surface);
  box-sizing: border-box;
}

.tournament-matches-view-bar__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding: 2px;
  background: var(--color-tab-border);
  border-radius: var(--radius-pill);
}

.tournament-matches-view-bar__track .tournament-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tournament-matches-view-bar__track .tournament-pill--active {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-pill);
}

.tournament-panel--matches .tournament-toolbar__selects {
  padding-top: 10px;
}

.tournament-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournament-pill {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-tab-border);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.tournament-pill--active {
  background: var(--color-black);
  color: var(--color-white);
}

/* Stats tab: segment row (3 equal) + horizontal scroll row */
.tournament-stats-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* margin: calc(-1 * var(--space-tab-gap)) calc(-1 * var(--space-block-gap)) var(--space-block-gap); */
  width: calc(100% + 2 * var(--space-page));
  margin: 0 calc(-1 * var(--space-page));
  padding: 10px var(--space-page);
  background: var(--color-surface);
  box-sizing: border-box;
}

.tournament-pills--segment {
  width: 100%;
  /* background: var(--color-surface); */
  /* border-bottom: 1px solid var(--color-divider); */
  /* padding: 8px var(--space-page); */
}

.tournament-pills-segment__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  padding: 2px;
  background: var(--color-tab-border);
  border-radius: var(--radius-pill);
}

.tournament-pills--segment .tournament-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  background: transparent;
}

/* WC26 tournament variant */
.page-football-tournament-wc26 .app-chrome .scroll-tabs-wrap {
  background: #0c0c0d;
  border-bottom: 1px solid #0c0c0d;
  box-shadow: none;
}

.page-football-tournament-wc26 .app-chrome .scroll-tabs__item {
  color: #9ca3af;
  border-bottom-color: transparent;
}

.page-football-tournament-wc26 .app-chrome .scroll-tabs__item--active {
  color: #fff;
  border-bottom-color: #fff;
}

.football-tournament-page--wc26 {
  /* background: var(--color-tab-border); */
}

.football-tournament-page--wc26 .tournament-hero {
  background: transparent;
  padding-bottom: 0;
}

.football-tournament-page--wc26 .breadcrumb--wc26 {
  background: #0c0c0d;
  padding: 10px var(--space-page) 8px;
  border-bottom: 1px solid #434850;
}

.football-tournament-page--wc26 .breadcrumb--wc26 .breadcrumb__list {
  color: #9ca3af;
}

.football-tournament-page--wc26 .breadcrumb--wc26 .breadcrumb__link {
  color: #fff;
  text-decoration: none;
}

.football-tournament-page--wc26 .breadcrumb--wc26 .breadcrumb__link:hover {
  color: #fff;
  opacity: 0.85;
}

.football-tournament-page--wc26 .breadcrumb--wc26 .breadcrumb__sep {
  color: #fff;
}

.football-tournament-page--wc26 .breadcrumb--wc26 .breadcrumb__current {
  color: #9ca3af;
}

.tournament-hero--wc26 .tournament-hero__stage {
  position: relative;
  overflow: hidden;
  background: #0c0c0d;
}

.tournament-hero--wc26 .tournament-hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0c0c0d;
}

.tournament-hero--wc26 .tournament-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      #0c0c0d 0%,
      rgba(12, 12, 13, 0.55) 22%,
      rgba(12, 12, 13, 0.12) 48%,
      transparent 62%);
  z-index: 1;
}

.tournament-hero--wc26 .tournament-hero__bloom {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -28px;
  z-index: 0;
  display: block;
  width: 116%;
  height: auto;
  min-height: 112px;
  max-height: none;
  object-fit: cover;
  filter: blur(30px);
  transform: scale(1.08);
}

.tournament-hero--wc26 .tournament-hero__body {
  position: relative;
  z-index: 2;
}

.tournament-hero--wc26 .tournament-hero__tabs {
  position: relative;
  z-index: 2;
  background: transparent;
}

.tournament-hero--wc26 .tournament-hero__main {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px var(--space-page) 0;
}

.tournament-hero--wc26 .tournament-hero__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 61px;
  height: 61px;
  background: rgba(12, 12, 13, 0.55);
  border-radius: 10px;
}

.tournament-hero--wc26 .tournament-hero__logo {
  width: 61px;
  height: 61px;
  border-radius: 4px;
}

.tournament-hero--wc26 .tournament-hero__info {
  flex: 1;
  min-width: 0;
}

.tournament-hero--wc26 .tournament-hero__title {
  margin: 0;
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: #fff;
}

.tournament-hero--wc26 .tournament-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.tournament-hero--wc26 .tournament-hero__region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
}

.tournament-hero--wc26 .tournament-hero__globe {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17963f 40%, #367ec9 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tournament-hero--wc26 .tournament-hero__meta .ui-select-wrap {
  min-width: 108px;
  border-color: #0c0c0d;
  background: #0c0c0d;
}

.tournament-hero--wc26 .ui-select-wrap ion-select.ui-select {
  --padding-end: 32px;
  --color: #fff;
  --placeholder-color: #fff;
  --highlight-color-focused: #fff;
  --highlight-height: 0;
  min-height: 28px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
}

.tournament-hero--wc26 .ui-select-wrap ion-select.ui-select::part(text),
.tournament-hero--wc26 .ui-select-wrap ion-select.ui-select::part(placeholder) {
  color: #fff;
}

.tournament-hero--wc26 .ui-select-wrap ion-select.ui-select::part(icon) {
  color: #fff;
  opacity: 1;
}

.tournament-hero--wc26 .tournament-hero__timeline {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 26px var(--space-page) 4px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tournament-hero--wc26 .tournament-hero__timeline:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tournament-hero--wc26 .tournament-hero__timeline-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
}

.tournament-hero--wc26 .tournament-hero__timeline-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.tournament-hero--wc26 .tournament-hero__timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.9);
}

/* WC26: hero tabs in flow; sticky bar clone only when pinned */
.page-football-tournament-wc26:not(.football-headers-pinned) .football-page__sticky-anchor {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.page-football-tournament-wc26:not(.football-headers-pinned) .tournament-sticky-bar--wc26 {
  margin: 0;
  border: none;
  box-shadow: none;
}

.football-tournament-page--wc26 .tournament-hero__tabs .tournament-tabs--wc26.scroll-tabs-wrap {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.football-tournament-page--wc26 .tournament-hero__tabs .scroll-tabs {
  background: transparent;
}

.football-tournament-page--wc26 .tournament-sticky-bar--wc26 .tournament-tabs--wc26.scroll-tabs-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
}

.football-tournament-page--wc26 .tournament-tabs--wc26 .scroll-tabs__item {
  color: #9ca3af;
  font-weight: var(--font-weight-semibold);
  border-bottom-width: 3px;
  border-bottom-color: transparent;
}

.football-tournament-page--wc26 .tournament-tabs--wc26 .scroll-tabs__item--active {
  color: #fff;
  font-weight: var(--font-weight-semibold);
  border-bottom-color: #fff;
}

.page-football-tournament-wc26.football-headers-pinned .football-page__sticky-anchor {
  visibility: visible;
  overflow: visible;
}

.page-football-tournament-wc26.football-headers-pinned .tournament-sticky-bar--wc26.is-pinned {
  background: #0c0c0d;
  border-bottom: none;
  box-shadow: none;
}

.page-football-tournament-wc26.football-headers-pinned .tournament-sticky-bar--wc26.is-pinned .scroll-tabs-wrap {
  background: #0c0c0d;
}

.page-football-tournament-wc26.football-headers-pinned .football-page__sticky-bar.is-pinned {
  border-bottom: none;
  box-shadow: none;
}

.tournament-pills--segment .tournament-pill--active {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-pill);
}

.tournament-pills-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  box-shadow: 0 1px 4px 0 var(--colors-elevation-elevation2);
  padding: 0;
}

.tournament-pills-scroll::-webkit-scrollbar {
  display: none;
}

.tournament-pills-scroll>.tournament-pills {
  padding: 8px 12px;
  box-sizing: border-box;
}

.tournament-pills--scroll {
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

.tournament-pills--scroll .tournament-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Full-bleed filter bars inside tab panels (no top/left/right outer gap) */
.match-tab-panel>.match-panel>.tournament-pills-scroll:first-child,
.match-tab-panel>.match-panel--commentary>.tournament-pills-scroll:first-child,
.match-tab-panel>.match-panel--statistics>.match-team-switcher:first-child,
.match-tab-panel>.match-panel--standings>.match-standings-toolbar:first-child,
.team-tab-panel>.team-panel>.tournament-pills-scroll:first-child,
.team-tab-panel>.team-panel--top-players>.tournament-pills-scroll,
.tournament-tab-panel>.tournament-panel--stats>.tournament-stats-filters {
  width: calc(100% + 2 * var(--space-page));
  margin: calc(-1 * var(--space-tab-gap)) calc(-1 * var(--space-page)) 0;
  box-sizing: border-box;
}

.team-tab-panel:has(.team-panel--squad)>.team-panel--squad>.tournament-pills-scroll,
.team-tab-panel:has(.team-panel--top-players)>.team-panel--top-players>.tournament-pills-scroll {
  margin-top: 0;
}

.tournament-tab-panel>.tournament-panel--stats>.tournament-stats-filters .tournament-pills-scroll {
  width: 100%;
  margin: 0;
}

/* Match page logo team switcher — compact segment (see #football-match-page rules below) */
.match-team-switcher.tournament-pills--segment {
  padding: 0;
  border-bottom: none;
}

.match-standings-toolbar {
  background: #fff;
}

.match-standings-toolbar__filters {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.match-standings-toolbar__filters .tournament-pills-scroll {
  flex: 1;
  min-width: 0;
}

.match-standings-toolbar__filters .match-standings-appearance {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 12px;
}

.match-standings-appearance {
  position: relative;
  flex-shrink: 0;
}

.match-standings-appearance__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #c5d4f0;
  border-radius: 8px;
  background: #eef4ff;
  color: #3355ff;
  cursor: pointer;
}

.match-standings-appearance__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  padding: 8px 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.match-standings-appearance__menu[hidden] {
  display: none;
}

.match-standings-appearance__title {
  margin: 0;
  padding: 6px 14px 8px;
  font-size: 11px;
  color: #9ca3af;
}

.match-standings-appearance__option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: #000;
  cursor: pointer;
}

.match-standings-appearance__option.is-active {
  background: #eef4ff;
  color: #3355ff;
}

.match-standings-appearance__option:hover {
  background: #f5f7fa;
}

.tournament-panel--stats {
  gap: 0;
}

.tournament-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tournament-stat-card {
  padding: 12px var(--space-page);
}

.tournament-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  padding: 14px var(--space-page);
}

.tournament-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tournament-card__header--center {
  justify-content: center;
}

.tournament-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.tournament-card__title--center {
  text-align: center;
  width: 100%;
}

.tournament-card__info {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.tournament-card__footer {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-align: right;
  margin-top: 8px;
}

.tournament-card__link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* Team of the Tournament */
.tournament-totw__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tournament-totw__title {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.tournament-totw__select .ui-select-wrap ion-select.ui-select {
  width: auto;
}

.tournament-totw-pitch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 300px;
  padding: 16px 12px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  overflow: hidden;
}

.tournament-totw-line {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
}

.tournament-totw-line--spread {
  justify-content: space-evenly;
  gap: 4px;
  padding: 0 4px;
}

.tournament-totw-pitch__markings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tournament-totw-pitch__half {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #e5e7eb;
}

.tournament-totw-pitch__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tournament-totw-pitch__box {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 20%;
  border: 1px solid #e5e7eb;
}

.tournament-totw-pitch__box--far {
  top: 0;
  border-top: none;
}

.tournament-totw-pitch__box--near {
  bottom: 0;
  border-bottom: none;
}

.tournament-panel--overview {
  gap: var(--space-block-gap);
}

.tournament-totw-player {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 72px;
}

.tournament-totw-player__figure {
  position: relative;
  width: 48px;
  height: 48px;
}

.tournament-totw-player__avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-tab-border);
}

.tournament-totw-player__rating {
  position: absolute;
  left: -4px;
  bottom: 0;
  padding: 2px 4px;
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  color: var(--color-white);
  background: #0d9b8c;
  border-radius: 3px;
  white-space: nowrap;
}

.tournament-totw-player__flag {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-surface);
  box-sizing: border-box;
  background: var(--color-tab-border);
}

.tournament-totw-player__name {
  max-width: 72px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  color: var(--color-black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-totw__published {
  margin: 10px 0 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-align: right;
}

.tournament-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.tournament-table th,
.tournament-table td {
  padding: 8px 4px;
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}

.tournament-table__num {
  text-align: right;
  font-weight: var(--font-weight-semibold);
}

.tournament-table img {
  vertical-align: middle;
  margin-right: 6px;
}

.tournament-power-rankings__select {
  margin: 10px 0 12px;
}

.tournament-power-rankings__select .ui-select-wrap {
  width: auto;
}

.tournament-power-rankings__select .ui-select-wrap ion-select.ui-select {
  width: auto;
}

.tournament-table__team {
  vertical-align: middle;
}

.tournament-table__team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.tournament-table__team-link img {
  margin-right: 0;
  flex-shrink: 0;
}

.tournament-kv__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--font-size-sm);
}

.tournament-kv__row dt {
  color: var(--color-text-secondary);
}

.tournament-kv__row dd {
  font-weight: var(--font-weight-semibold);
}

.tournament-standings-toolbar {
  margin-bottom: 4px;
}

.tournament-standings-toolbar .match-standings-toolbar__group-select {
  padding: 8px var(--space-page) 4px;
  align-self: flex-start;
}

.tournament-standings-toolbar .match-standings-toolbar__group-select .ui-select-wrap {
  width: auto;
  max-width: min(100%, 320px);
  min-width: 0;
}

.tournament-standings-toolbar .match-standings-toolbar__group-select .ui-select-wrap ion-select.ui-select {
  width: auto;
  min-width: 140px;
  max-width: min(calc(100vw - 2 * var(--space-page)), 320px);
}

.tournament-standings-toolbar .match-standings-toolbar__group-select .ui-select-wrap ion-select.ui-select::part(text),
.tournament-standings-toolbar .match-standings-toolbar__group-select .ui-select-wrap ion-select.ui-select::part(placeholder) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-panel--standings-wc26 .tournament-standings-appearance-card {
  padding: 0;
}

.tournament-panel--standings-wc26 .tournament-standings-appearance-card .match-standings-appearance-row {
  padding: 14px var(--space-page);
}

.tournament-standings-view-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.tournament-panel--standings-wc26 .tournament-standings-view-panel {
  gap: var(--space-page);
}

.tournament-standings-toolbar__select .ui-select-wrap {
  width: auto;
}

.tournament-standings-toolbar__select .ui-select-wrap ion-select.ui-select {
  width: auto;
}

.tournament-standings-card__title {
  margin: 0 0 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.tournament-standings-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tournament-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.tournament-standings-table th {
  padding: 0 4px 8px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-align: left;
  border-bottom: none;
}

.tournament-standings-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: middle;
}

.tournament-standings-table .st-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tournament-standings-table thead th.st-col-p,
.tournament-standings-table thead th.st-col-w,
.tournament-standings-table thead th.st-col-d,
.tournament-standings-table thead th.st-col-l,
.tournament-standings-table thead th.st-col-diff,
.tournament-standings-table thead th.st-col-gls,
.tournament-standings-table thead th.st-col-pts {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tournament-standings-table .st-col-pts {
  font-weight: var(--font-weight-semibold);
}

.tournament-standings-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: var(--color-tab-border);
  color: var(--color-black);
}

.tournament-standings-rank--qual,
.tournament-standings-rank--ucl {
  background: #2e9e4b;
  color: #fff;
}

.tournament-standings-rank--conference {
  background: #26a69a;
  color: #fff;
}

.tournament-standings-rank--europa {
  background: #3355ff;
  color: #fff;
}

.tournament-standings-rank--relegation {
  background: #e53935;
  color: #fff;
}

.tournament-standings-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.tournament-standings-team img {
  flex-shrink: 0;
  border-radius: 50%;
}

/* Short / Full / Form column visibility */
/* short 模式：隐藏纯 full 列（保留同时含 st-col-short 的列，如 P/DIFF/PTS） */
.tournament-panel--standings[data-standings-view="short"] .st-col-full:not(.st-col-short):not(.st-col-short),
.tournament-panel--standings[data-standings-view="short"] .st-col-form-only,
.tournament-panel--standings[data-standings-view="full"] .st-col-form-only,
.tournament-panel--standings[data-standings-view="form"] .st-col-short,
.tournament-panel--standings[data-standings-view="form"] .st-col-full,
.match-panel--standings[data-standings-view="short"] .st-col-full:not(.st-col-short),
.match-panel--standings[data-standings-view="short"] .st-col-form-only,
.match-panel--standings[data-standings-view="full"] .st-col-form-only,
.match-panel--standings[data-standings-view="form"] .st-col-short,
.match-panel--standings[data-standings-view="form"] .st-col-full,
.team-panel--standings[data-standings-view="short"] .st-col-full:not(.st-col-short),
.team-panel--standings[data-standings-view="short"] .st-col-form-only,
.team-panel--standings[data-standings-view="full"] .st-col-form-only,
.team-panel--standings[data-standings-view="form"] .st-col-short,
.team-panel--standings[data-standings-view="form"] .st-col-full {
  display: none;
}

.tournament-panel--standings[data-standings-view="short"] .st-legend-full,
.tournament-panel--standings[data-standings-view="full"] .st-legend-short,
.tournament-panel--standings[data-standings-view="form"] .st-legend-short,
.tournament-panel--standings[data-standings-view="form"] .st-legend-full,
.match-panel--standings[data-standings-view="short"] .st-legend-full,
.match-panel--standings[data-standings-view="full"] .st-legend-short,
.match-panel--standings[data-standings-view="form"] .st-legend-short,
.match-panel--standings[data-standings-view="form"] .st-legend-full,
.team-panel--standings[data-standings-view="short"] .st-legend-full,
.team-panel--standings[data-standings-view="full"] .st-legend-short,
.team-panel--standings[data-standings-view="form"] .st-legend-short,
.team-panel--standings[data-standings-view="form"] .st-legend-full {
  display: none;
}

.tournament-panel--standings[data-standings-view="form"] .st-col-form-only,
.match-panel--standings[data-standings-view="form"] .st-col-form-only,
.team-panel--standings[data-standings-view="form"] .st-col-form-only {
  text-align: right;
}

.tournament-standings-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
}

.tournament-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  flex-shrink: 0;
}

.tournament-form--W {
  background: #2e7d32;
}

.tournament-form--D {
  background: var(--colors-neutral-default);
}

.tournament-form--L {
  background: #c62828;
}

.tournament-standings-form__slot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--color-tab-border);
  flex-shrink: 0;
}

.tournament-standings-rules {
  margin-top: 12px;
  background: var(--color-tab-border);
  border-radius: 12px;
  overflow: hidden;
}

.tournament-standings-rules__accordion {
  background: transparent;
}

.tournament-standings-rules__header {
  --background: transparent;
  --color: var(--color-black);
  font-weight: var(--font-weight-semibold);
}

.tournament-standings-rules__content {
  padding: 0 14px 14px;
}

.tournament-standings-rules__playoff {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.tournament-standings-rules__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d32;
  flex-shrink: 0;
}

.tournament-standings-rules__legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
}

.tournament-standings-rules__legend>div {
  display: contents;
}

.tournament-standings-rules__legend dt {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

.tournament-standings-rules__legend dd {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-black);
}

.tournament-matches-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
}

.tournament-matches-by-date {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.tournament-matches-date-block {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
  padding-bottom: 8px;
}

.tournament-matches-date-block__round {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.tournament-matches-date-block .football-group-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin: 0;
}

.tournament-matches-date-block .football-group-section__label {
  margin: 0;
  padding: 10px 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.tournament-matches-date-block .football-match-row {
  border-bottom: none;
  padding: 8px 14px;
}

.tournament-matches-by-date .football-group-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.tournament-panel--matches .tournament-matches-card:has(.tournament-matches-by-date:not([hidden])) {
  background: transparent;
  border: none;
  overflow: visible;
}

.tournament-matches-by-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: none;
  overflow: visible;
}

.tournament-panel--matches .tournament-matches-card:has(.tournament-matches-by-round:not([hidden])) {
  background: transparent;
  border: none;
  overflow: visible;
}

.tournament-matches-round-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
  padding-bottom: 8px;
}

.tournament-matches-round-card__empty {
  margin: 0;
  padding: 16px 14px;
}

.tournament-matches-round-card .football-group-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin: 0;
}

.tournament-matches-round-card .football-group-section__label {
  margin: 0;
  padding: 10px 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.tournament-matches-round-card .football-match-row {
  border-bottom: none;
  padding: 8px 14px;
}

.tournament-panel--matches [data-matches-view-panel][hidden] {
  display: none !important;
}

.tournament-panel--matches [data-matches-round-toolbar][hidden],
.tournament-panel--matches [data-matches-group-toolbar][hidden],
.tournament-panel--matches [data-matches-status-bar][hidden] {
  display: none !important;
}

.tournament-panel--matches [data-tournament-round-section][hidden],
.tournament-panel--matches [data-tournament-group-panel][hidden] {
  display: none !important;
}

/* Tournament Matches：无行间分割线、分组标题、时间样式 */
.tournament-panel--matches .tournament-matches-card .football-match-row {
  border-bottom: none;
}

.tournament-panel--matches .tournament-matches-status-bar {
  margin-top: 8px;
}

.tournament-panel--matches .tournament-matches-status-bar .tournament-matches-view-bar__track {
  max-width: 220px;
}

.tournament-panel--matches .tournament-matches-by-date {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tournament-panel--matches .tournament-matches-date-block__round {
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.tournament-panel--matches .tournament-matches-group-block {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
}

.tournament-panel--matches .tournament-matches-group-round--divider {
  border-top: 1px solid var(--color-divider);
}

.tournament-panel--matches .tournament-matches-group-round__label {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.tournament-panel--matches .football-match-row__time {
  align-items: flex-start;
}

.tournament-panel--matches .football-match-row__date,
.tournament-panel--matches .football-match-row__kickoff {
  font-weight: var(--font-weight-regular);
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.25;
}

.tournament-panel--matches .football-match-row__date {
  margin-bottom: 2px;
}

/* WC26 Matches：无行间分割线、分组标题更深、时间更浅且含日期+时分 */
.tournament-panel--matches-wc26 .tournament-matches-card .football-match-row {
  grid-template-columns: 76px 1fr;
  border-bottom: none;
}

.tournament-panel--matches-wc26 .football-match-row--wc26 .football-match-row__main {
  min-width: 0;
}

.tournament-panel--matches-wc26 .wc26-matches-by-date {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tournament-panel--matches-wc26 .wc26-matches-date-block {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
}

.tournament-panel--matches-wc26 .wc26-matches-date-block .football-group-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.tournament-panel--matches-wc26 .wc26-matches-date-block__round {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.tournament-panel--matches-wc26 .wc26-matches-group-block {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  overflow: hidden;
}

.tournament-panel--matches-wc26 .wc26-matches-group-round--divider {
  border-top: 1px solid var(--color-divider);
}

.tournament-panel--matches-wc26 .wc26-matches-group-round__label {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.tournament-panel--matches-wc26 .football-group-section__label {
  padding: 12px 14px 8px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.tournament-empty {
  padding: 24px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.tournament-panel--knockout {
  gap: 8px;
}

.tournament-panel--knockout .tournament-bracket {
  margin: 0 calc(-1 * var(--space-page));
  width: calc(100% + 2 * var(--space-page));
}

.tournament-knockout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-page);
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.tournament-knockout-bar__toggle {
  --handle-width: 20px;
  --handle-height: 20px;
  padding: 0;
}

.tournament-bracket {
  --ko-line: var(--color-white);
  --ko-line-w: 4px;
  --ko-gap: 10px;
  --ko-section-gap: 16px;
  --ko-bridge-h: 18px;
  --ko-bridge-stem: 20px;
  --ko-link-half: calc(var(--ko-section-gap) / 2 + var(--ko-bridge-stem));
  display: flex;
  flex-direction: column;
  /* gap: var(--ko-section-gap); */
  width: 100%;
  padding: 16px 8px 20px;
  background: #e8eef8;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: visible;
}

/* 4-column grid: cards align to col centers at 12.5%, 37.5%, 62.5%, 87.5% */
.ko-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* row-gap: var(--ko-gap); */
  width: 100%;
  align-items: center;
  overflow: visible;
}

.ko-grid__cell {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 4px 0;
}

.ko-grid--center {
  align-items: baseline;
  row-gap: 0;
  padding: 0;
}

.ko-grid__cell--trophy {
  justify-self: end;
  padding-right: 4px;
}

.ko-grid__cell--third {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-self: start;
  padding-left: 4px;
}

/* Pair bridge: two verticals + horizontal T + center stem (visible in row gap) */
.ko-bridge {
  position: relative;
  height: calc(var(--ko-bridge-h) + var(--ko-bridge-stem));
  width: 100%;
  min-height: 38px;
  z-index: 0;
  overflow: visible;
}

.ko-bridge__v {
  position: absolute;
  width: var(--ko-line-w);
  height: calc(var(--ko-gap) + var(--ko-bridge-h));
  background: var(--ko-line);
}

.ko-grid--top .ko-bridge__v {
  top: calc(-1 * var(--ko-gap));
}

.ko-grid--bottom .ko-bridge__v {
  bottom: calc(-1 * var(--ko-gap));
}

.ko-bridge__v--l {
  left: 25%;
  transform: translateX(-50%);
}

.ko-bridge__v--r {
  left: 75%;
  transform: translateX(-50%);
}

.ko-bridge__h {
  position: absolute;
  left: 25%;
  right: 25%;
  height: var(--ko-line-w);
  background: var(--ko-line);
}

.ko-grid--top .ko-bridge__h {
  top: calc(var(--ko-bridge-h) - var(--ko-line-w));
}

.ko-grid--bottom .ko-bridge__h {
  top: auto;
  bottom: calc(var(--ko-bridge-h) - var(--ko-line-w));
}

.ko-grid--top .ko-bridge__stem {
  position: absolute;
  top: var(--ko-bridge-h);
  left: 50%;
  width: var(--ko-line-w);
  height: var(--ko-bridge-stem);
  background: var(--ko-line);
  transform: translateX(-50%);
}

.ko-grid--bottom .ko-bridge__stem {
  position: absolute;
  bottom: var(--ko-bridge-h);
  left: 50%;
  width: var(--ko-line-w);
  height: var(--ko-bridge-stem);
  background: var(--ko-line);
  transform: translateX(-50%);
}

/* SF ↔ Final (spans section gap between top/center/bottom grids) */
.ko-grid--top .ko-grid__cell--sf::after,
.ko-grid--bottom .ko-grid__cell--sf::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--ko-line-w);
  height: var(--ko-link-half);
  background: var(--ko-line);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.ko-grid--top .ko-grid__cell--sf::after {
  bottom: calc(-1 * var(--ko-link-half));
}

.ko-grid--bottom .ko-grid__cell--sf::after {
  top: calc(-1 * var(--ko-link-half));
}

.ko-grid--center .ko-grid__cell--final {
  padding-top: calc(var(--ko-link-half) + 4px);
  padding-bottom: calc(var(--ko-link-half) + 4px);
}

.ko-grid--center .ko-grid__cell--final::before,
.ko-grid--center .ko-grid__cell--final::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--ko-line-w);
  height: var(--ko-link-half);
  background: var(--ko-line);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.ko-grid--center .ko-grid__cell--final::before {
  top: 0;
}

.ko-grid--center .ko-grid__cell--final::after {
  bottom: 0;
}

.tournament-bracket__trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tournament-bracket__trophy-pedestal {
  display: block;
  width: 32px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 4px 4px 0 0;
}

.tournament-bracket__trophy-icon {
  margin-top: -4px;
}

.tournament-bracket__third-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-align: center;
}

.tournament-ko-card {
  display: block;
  width: 72px;
  padding: 8px 6px 6px;
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}

.tournament-ko-card__teams {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
}

.tournament-ko-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.tournament-ko-card__team--loser {
  opacity: 0.35;
}

.tournament-ko-card__team:not(.tournament-ko-card__team--loser) .tournament-ko-card__flag {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.tournament-ko-card__team:not(.tournament-ko-card__team--loser) .tournament-ko-card__code {
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
}

.tournament-ko-card__flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
}

.tournament-ko-card__code {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.tournament-ko-card__score {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.tournament-stat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tournament-stat-card__title {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
}

.tournament-stat-card__see-all {
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.tournament-stat-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tournament-stat-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-divider);
}

.tournament-stat-card__row:last-child {
  border-bottom: none;
}

.tournament-stat-card__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.tournament-stat-card__info {
  flex: 1;
  min-width: 0;
}

.tournament-stat-card__name {
  display: block;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.tournament-stat-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.tournament-stat-card__value,
.tournament-stat-card__rating {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.tournament-stat-card__rating {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 8px;
  border-radius: 6px;
}

.tournament-stats-modal__inner {
  padding: 12px var(--space-page) 24px;
}

.tournament-stats-modal__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  background: var(--color-divider);
  border-radius: 2px;
}

.tournament-stats-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tournament-stats-modal__close {
  border: none;
  background: none;
  font-size: 24px;
  color: var(--color-primary);
  cursor: pointer;
}

.tournament-stats-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tournament-stats-modal__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
}

.tournament-stats-modal__rank {
  width: 20px;
  color: var(--color-text-secondary);
}

.tournament-stats-modal__avatar {
  border-radius: 50%;
}

.tournament-stats-modal__info {
  flex: 1;
}

.tournament-stats-modal__name {
  display: block;
  font-weight: var(--font-weight-semibold);
}

.tournament-stats-modal__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.tournament-stats-modal__value {
  font-weight: var(--font-weight-semibold);
}

.tournament-about__body h3,
.entity-about-card__body h3 {
  margin-top: 16px;
  font-size: var(--font-size-sm);
}

/* WC26 tournament stages bottom sheet */
.tournament-stages-modal::part(content) {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.tournament-stages-modal__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  padding: 8px var(--space-page) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.tournament-stages-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}

.tournament-stages-modal__handle {
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  background: #d1d5db;
  border-radius: 2px;
}

.tournament-stages-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.tournament-stages-modal__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.tournament-stages-modal__close {
  flex-shrink: 0;
  margin: 0;
  padding: 4px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

.tournament-stages-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tournament-stages-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}

.tournament-stages-modal__row:last-child {
  border-bottom: none;
}

.tournament-stages-modal__date {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-black);
  background: var(--color-tab-border);
  border-radius: 6px;
  white-space: nowrap;
}

.tournament-stages-modal__label {
  flex: 1;
  min-width: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  text-align: right;
}

/* WC26 Overview tab */
.tournament-panel--overview-wc26 {
  gap: 16px;
}

.wc26-overview__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wc26-overview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wc26-overview__title {
  margin: 0;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.wc26-overview__action,
.wc26-overview__link {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
}

.wc26-overview__link {
  align-self: flex-start;
}

.wc26-overview__link--center {
  display: block;
  width: 100%;
  text-align: center;
  align-self: center;
}

/* One horizontal row: day column = date on top + match cards */
.wc26-overview-schedule__track {
  width: calc(100% + 2 * var(--space-page));
  margin-left: calc(-1 * var(--space-page));
  overflow: hidden;
}

.wc26-overview-schedule__scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--space-page);
  scrollbar-width: none;
  padding: 0 var(--space-page) 4px;
}

.wc26-overview-schedule__scroll::-webkit-scrollbar {
  display: none;
}

.wc26-overview-schedule-day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}

.wc26-overview-schedule-day__date {
  margin: 0;
  padding: 0 2px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-black);
  white-space: nowrap;
}

.wc26-overview-schedule-day__cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
}

.wc26-overview-match-card {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--color-surface);
  border-radius: 12px;
}

.wc26-overview-match-card__group {
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.wc26-overview-match-card__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wc26-overview-match-card__teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wc26-overview-match-card__team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.wc26-overview-match-card__team img {
  border-radius: 50%;
  object-fit: cover;
}

.wc26-overview-match-card__time {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.wc26-overview-match-card__venue {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: var(--colors-neutral-default);
}

.wc26-overview-match-card__venue-icon {
  flex-shrink: 0;
  color: var(--colors-neutral-default);
}

.wc26-overview-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wc26-overview-pills::-webkit-scrollbar {
  display: none;
}

.wc26-overview-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc26-overview-pill--active {
  border-color: #0c0c0d;
  background: #0c0c0d;
  color: #fff;
}

.wc26-overview-meet__panel,
.wc26-overview-standings__panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.wc26-overview-meet__panel.is-active,
.wc26-overview-standings__panel.is-active {
  display: flex;
}

.wc26-overview-team-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #9ca3af;
}

.wc26-overview-team-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  min-height: 120px;
  background: linear-gradient(180deg, #b8bcc4 0%, #8b919a 100%);
}

.wc26-overview-team-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.wc26-overview-team-card__play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.wc26-overview-team-card__duration {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
}

.wc26-overview-team-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
}

.wc26-overview-team-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
}

.wc26-overview-team-card__code {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.85);
}

.wc26-overview-standings-card {
  padding: 4px 12px 8px;
  background: var(--color-surface);
  border-radius: 12px;
}

.wc26-overview-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.wc26-overview-standings-table th {
  padding: 10px 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}

.wc26-overview-standings-table__last5 {
  width: 56px;
  text-align: right;
}

.wc26-overview-standings-table td {
  padding: 10px 4px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-divider);
}

.wc26-overview-standings-table tr:last-child td {
  border-bottom: none;
}

.wc26-overview-standings-table__team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-weight-semibold);
}

.wc26-overview-standings-table__team img {
  border-radius: 50%;
}

.wc26-overview-standings-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  background: var(--color-tab-border);
}

.wc26-overview-standings-rank--qual {
  color: #fff;
  background: #17963f;
}

.wc26-overview-news__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wc26-overview-news-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
}

.wc26-overview-news-card__link {
  display: flex;
  gap: 12px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.wc26-overview-news-card__thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-tab-border);
}

.wc26-overview-news-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.wc26-overview-news-card__title {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  color: var(--color-black);
}

.wc26-overview-news-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.wc26-overview-news-card__logo {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.wc26-overview-champions-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 14px 12px;
  background: var(--color-surface);
  border-radius: 12px;
}

.wc26-overview-champions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  text-align: center;
}

.wc26-overview-champions__item:first-child {
  border-right: 1px solid var(--color-divider);
}

.wc26-overview-champions__flag {
  border-radius: 50%;
  object-fit: cover;
}

.wc26-overview-champions__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.wc26-overview-champions__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.wc26-overview-champions__sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* WC26 Media tab */
.tournament-panel--media-wc26 {
  gap: 0;
}

.wc26-media-filters {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--color-divider);
}

.wc26-media-filter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 2px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc26-media-filter--active {
  color: var(--color-black);
}

.wc26-media-filter__icon {
  width: 24px;
  height: 24px;
  color: inherit;
}

.wc26-media-filter__label {
  text-align: center;
}

.wc26-media__feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wc26-media__item[hidden] {
  display: none;
}

.wc26-media__empty {
  margin: 24px 0;
  text-align: center;
}

/* WC26 Knockout — 完整对阵树 1:1 */
.tournament-panel--knockout-wc26 {
  gap: 12px;
}

.wc26-ko-stages {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #f0f2f5;
  border-radius: 12px;
}

.wc26-ko-stages::-webkit-scrollbar {
  display: none;
}

.wc26-ko-stage {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: #e8eaed;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #1a1d1f;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc26-ko-stage--active {
  background: #1a1d1f;
  color: #fff;
}

.wc26-ko-track {
  margin: 0 calc(-1 * var(--space-page));
  width: calc(100% + 2 * var(--space-page));
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgb(237 241 246);
  border-radius: 12px;
}

.wc26-ko-track::-webkit-scrollbar {
  display: none;
}

.wc26-ko-bracket {
  --wc26-ko-card-w: 220px;
  --wc26-ko-match-h: 64px;
  --wc26-ko-pair-gap: 8px;
  --wc26-ko-pair-block-h: calc(var(--wc26-ko-match-h) * 2 + var(--wc26-ko-pair-gap));
  --wc26-ko-slot-stack-gap: 12px;
  --wc26-ko-line: #fff;
  --wc26-ko-line-w: 3px;
  --wc26-ko-col-gap: 24px;
  --wc26-ko-join-w: var(--wc26-ko-col-gap);
  --wc26-ko-stem-top: calc(var(--wc26-ko-match-h) / 2);
  --wc26-ko-stem-h: calc(var(--wc26-ko-match-h) + var(--wc26-ko-pair-gap));
  --wc26-ko-card-bg: #fff;
  min-width: max-content;
  padding: 16px 16px 20px;
  box-sizing: border-box;
  overflow: visible;
}

/* 8 行网格：跨行单元格自动包含 row-gap，连线中心与树形结构对齐 */
.wc26-ko-bracket-grid {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  grid-template-rows: repeat(8, var(--wc26-ko-pair-block-h));
  row-gap: var(--wc26-ko-slot-stack-gap);
  column-gap: 0;
  align-items: stretch;
  overflow: visible;
}

.wc26-ko-stage-anchor {
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-left: 8px;
}

.wc26-ko-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  overflow: visible;
}

.wc26-ko-cell--pair {
  position: relative;
  align-items: flex-start;
  align-self: stretch;
}

.wc26-ko-pair__cards {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.wc26-ko-pair__cards .wc26-ko-match-row+.wc26-ko-match-row {
  margin-top: var(--wc26-ko-pair-gap);
}

.wc26-ko-match-row {
  position: relative;
  flex-shrink: 0;
  width: var(--wc26-ko-card-w);
  height: var(--wc26-ko-match-h);
  overflow: visible;
}

.wc26-ko-bridge {
  position: relative;
  flex: 0 0 var(--wc26-ko-col-gap);
  width: var(--wc26-ko-col-gap);
  pointer-events: none;
  z-index: 1;
}

.wc26-ko-bridge--in,
.wc26-ko-bridge--out {
  align-self: stretch;
}

.wc26-ko-connector__arm,
.wc26-ko-connector__stem,
.wc26-ko-connector__out,
.wc26-ko-connector__in {
  position: absolute;
  display: block;
  background: var(--wc26-ko-line);
}

/* 入线：横向进入下一轮卡片 */
.wc26-ko-bridge--in .wc26-ko-connector__in {
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--wc26-ko-line-w);
  transform: translateY(-50%);
}

/* T 形出线共用：横线从卡片右缘向右画 */
.wc26-ko-bridge--merge {
  position: relative;
  flex: 0 0 var(--wc26-ko-col-gap);
  width: var(--wc26-ko-col-gap);
  min-width: var(--wc26-ko-col-gap);
  flex-shrink: 0;
  background: transparent;
}

.wc26-ko-bridge--pair.wc26-ko-bridge--merge {
  height: var(--wc26-ko-pair-block-h);
  align-self: flex-start;
}

.wc26-ko-bridge--pair.wc26-ko-bridge--merge .wc26-ko-connector__arm--top {
  top: 25%;
}

.wc26-ko-connector__arm {
  left: 0;
  width: 100%;
  height: var(--wc26-ko-line-w);
  transform: translateY(-50%);
}

.wc26-ko-connector__stem {
  right: 0;
  left: auto;
  width: var(--wc26-ko-line-w);
  transform: translateX(50%);
}

.wc26-ko-connector__out {
  left: 0;
  width: 100%;
  height: var(--wc26-ko-line-w);
  transform: translateY(-50%);
}

/* 1/16：同格两场 T 形 */
.wc26-ko-bridge--pair .wc26-ko-connector__arm--top {
  top: var(--wc26-ko-stem-top);
}

.wc26-ko-bridge--pair .wc26-ko-connector__arm--bot {
  top: calc(var(--wc26-ko-stem-top) + var(--wc26-ko-stem-h));
}

.wc26-ko-bridge--pair .wc26-ko-connector__stem {
  top: var(--wc26-ko-stem-top);
  height: var(--wc26-ko-stem-h);
}

.wc26-ko-bridge--pair .wc26-ko-connector__out {
  top: calc(var(--wc26-ko-stem-top) + var(--wc26-ko-stem-h) / 2);
  display: none;
}

/* 1/8→1/4→1/2：跨行两场合并 */
.wc26-ko-cell--pair-top {
  position: relative;
  overflow: visible;
}

.wc26-ko-cell--pair-bottom .wc26-ko-bridge--out {
  display: none;
}

.wc26-ko-cell--pair-top .wc26-ko-bridge--merge:not(.wc26-ko-bridge--pair) {
  position: absolute;
  right: 0;
  top: 50%;
  flex: none;
  margin-top: 0;
}

.wc26-ko-bridge--merge .wc26-ko-connector__arm--top {
  top: 0;
}

.wc26-ko-bridge--merge:not(.wc26-ko-bridge--pair) .wc26-ko-connector__stem {
  top: 0;
}

.wc26-ko-bridge--merge:not(.wc26-ko-bridge--pair) .wc26-ko-connector__out {
  top: 50%;
  display: none;

}

.wc26-ko-cell--merge-r16 .wc26-ko-bridge--merge {
  --wc26-ko-merge-stem-h: calc(var(--wc26-ko-pair-block-h) + var(--wc26-ko-slot-stack-gap));
  height: var(--wc26-ko-merge-stem-h);
  margin-top: calc(var(--wc26-ko-pair-block-h) / -2);
}

.wc26-ko-cell--merge-r16 .wc26-ko-bridge--merge .wc26-ko-connector__arm--bot {
  top: var(--wc26-ko-merge-stem-h);
}

.wc26-ko-cell--merge-r16 .wc26-ko-bridge--merge .wc26-ko-connector__stem {
  height: var(--wc26-ko-merge-stem-h);
}

.wc26-ko-cell--merge-qf .wc26-ko-bridge--merge {
  --wc26-ko-merge-stem-h: calc(2 * var(--wc26-ko-pair-block-h) + 2 * var(--wc26-ko-slot-stack-gap));
  height: var(--wc26-ko-merge-stem-h);
  margin-top: calc((2 * var(--wc26-ko-pair-block-h) + var(--wc26-ko-slot-stack-gap)) / -2);
}

.wc26-ko-cell--merge-qf .wc26-ko-bridge--merge .wc26-ko-connector__arm--bot {
  top: var(--wc26-ko-merge-stem-h);
}

.wc26-ko-cell--merge-qf .wc26-ko-bridge--merge .wc26-ko-connector__stem {
  height: var(--wc26-ko-merge-stem-h);
}

.wc26-ko-cell--merge-sf .wc26-ko-bridge--merge {
  --wc26-ko-merge-stem-h: calc(4 * var(--wc26-ko-pair-block-h) + 4 * var(--wc26-ko-slot-stack-gap));
  height: var(--wc26-ko-merge-stem-h);
  margin-top: calc((4 * var(--wc26-ko-pair-block-h) + 3 * var(--wc26-ko-slot-stack-gap)) / -2);
}

.wc26-ko-cell--merge-sf .wc26-ko-bridge--merge .wc26-ko-connector__arm--bot {
  top: var(--wc26-ko-merge-stem-h);
}

.wc26-ko-cell--merge-sf .wc26-ko-bridge--merge .wc26-ko-connector__stem {
  height: var(--wc26-ko-merge-stem-h);
}

.wc26-ko-cell--relay {
  align-self: stretch;
  align-items: center;
  position: relative;
  overflow: visible;
  padding-right: 24px;
  ;
}

.wc26-ko-card {
  display: block;
  position: relative;
  box-sizing: border-box;
  width: var(--wc26-ko-card-w);
  height: var(--wc26-ko-match-h);
  min-height: var(--wc26-ko-match-h);
  max-height: var(--wc26-ko-match-h);
  padding: 8px 10px 8px 10px;
  overflow: visible;
  background: var(--wc26-ko-card-bg);
  border-radius: 10px;
  border: none;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  z-index: 2;
}

.wc26-ko-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  height: 100%;
}

.wc26-ko-card__teams {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.wc26-ko-card__team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.wc26-ko-card__shield {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  background: #c5c9cf;
  clip-path: polygon(50% 0%, 92% 18%, 92% 72%, 50% 100%, 8% 72%, 8% 18%);
  font-size: 7px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.wc26-ko-card__code {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #1a1d1f;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc26-ko-card__datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  align-self: center;
  text-align: right;
}

.wc26-ko-card__date,
.wc26-ko-card__time {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  color: #8e9297;
  white-space: nowrap;
}

.wc26-ko-card--badged {
  margin-bottom: 0;
}

.wc26-ko-card__badge {
  position: absolute;
  left: 50%;
  bottom: -9px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.wc26-ko-card--badge-final .wc26-ko-card__badge {
  background: #f5a623;
}

.wc26-ko-card--badge-third .wc26-ko-card__badge {
  background: #a0a4ab;
}

.wc26-ko-cell--final {
  position: relative;
  align-self: stretch;
  overflow: visible;
}

.wc26-ko-final-content {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: calc(var(--wc26-ko-card-w) + 66px);
  min-height: 100%;
}

.wc26-ko-final-block {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.wc26-ko-third-block {
  position: absolute;
  left: 0;
  top: 58%;
  z-index: 2;
  transform: translateY(-50%);
}

.wc26-ko-cell--final .wc26-ko-match-row {
  width: var(--wc26-ko-card-w);
  height: var(--wc26-ko-match-h);
}

.wc26-ko-final-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.wc26-ko-cell--final .wc26-ko-card__teams {
  gap: 2px;
}

.wc26-ko-cell--final .wc26-ko-card__team {
  line-height: 1.15;
}

.wc26-ko-trophy {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wc26-ko-trophy__icon {
  display: block;
  width: 56px;
  height: 56px;
}

/* Team detail page */
.football-team-page {
  background: var(--color-tab-border);
  padding-bottom: var(--space-section);
}

.team-hero {
  background: var(--color-surface);
  padding-bottom: 8px;
}

.team-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px var(--space-page) 12px;
}

.team-hero__logo {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.team-hero__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.team-hero__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.team-hero__country {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  line-height: 1.15;
  white-space: nowrap;
}

.team-hero__country-logo {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.team-hero__country span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-hero__season {
  flex: 0 0 auto;
  margin-left: 4px;
}

.team-hero__season .ui-select__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.team-hero__season .ui-select__button {
  min-height: 28px;
  padding: 4px 8px;
  color: var(--color-text-primary);
  background: #f8f9fb;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.team-hero__season .ui-select__button-text {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.team-hero__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.team-hero__compare-icon {
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M2 12V4h2v8H2zm6-6v6H6V6h2zm6 2v4h-2V8h2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M2 12V4h2v8H2zm6-6v6H6V6h2zm6 2v4h-2V8h2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.team-sticky-bar .scroll-tabs-wrap {
  box-shadow: none;
}

.team-tab-panel {
  padding: 8px var(--space-page) var(--space-section);
}

.team-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

/* Details — Meet the team */
.team-meet-card {
  overflow: hidden;
  padding: 0;
}

.team-meet-card__banner {
  padding: 16px;
  background: linear-gradient(135deg, #3d1515 0%, #8b3a1a 40%, #4a2d6e 100%);
  text-align: center;
}

.team-meet-card__banner-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #fff;
}

.team-meet-card__body {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #1a1a2e;
}

.team-meet-card__image {
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.team-meet-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
}

.team-meet-card__subtitle {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.65);
}

.team-meet-card__meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* Details — Featured match */
#football-team-page .team-featured-card.tournament-card {
  overflow: hidden;
  padding: 0 !important;
  border: 0;
  border-radius: 10px;
  background: #12191d;
  color: #fff;
  box-shadow: none;
}

#football-team-page .team-featured-card__header {
  padding: 12px 16px 6px;
  text-align: center;
}

#football-team-page .team-featured-card__title {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

#football-team-page .team-featured-card__body {
  display: block;
  padding: 8px 10px 16px;
  color: inherit;
  text-decoration: none;
}

#football-team-page .team-featured-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}

#football-team-page .team-featured-card__competition {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

#football-team-page .team-featured-card__competition span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#football-team-page .team-featured-card__competition-logo {
  flex: 0 0 auto;
  object-fit: contain;
}

#football-team-page .team-featured-card__chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-top: 3px solid #6675ff;
  border-right: 3px solid #6675ff;
  transform: rotate(45deg);
}

#football-team-page .team-featured-card__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  column-gap: 8px;
}

#football-team-page .team-featured-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

#football-team-page .team-featured-card__team span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#football-team-page .team-featured-card__team-logo {
  object-fit: contain;
}

#football-team-page .team-featured-card__kickoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding-bottom: 14px;
  text-align: center;
}

#football-team-page .team-featured-card__kickoff strong {
  font-size: var(--font-size-lg);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

#football-team-page .team-featured-card__kickoff span {
  margin-top: 3px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

#football-team-page .team-featured-card__status {
  color: var(--color-primary) !important;
}

/* Details — Recent form */
#football-team-page .team-recent-form-card.tournament-card {
  padding: 12px 10px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: none;
}

#football-team-page .team-recent-form-card__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-bottom: 8px;
}

#football-team-page .team-recent-form-card__header .tournament-card__title {
  margin: 0;
}

#football-team-page .team-recent-form-card__info {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--color-text-secondary);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  touch-action: manipulation;
}

#football-team-page .team-recent-form {
  padding: 8px 6px 6px;
  border-radius: 8px;
  background: #f5f7fb;
}

#football-team-page .team-recent-form__logos {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

#football-team-page .team-recent-form__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#football-team-page .team-recent-form__logo-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#football-team-page .team-recent-form__bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: stretch;
  gap: 3px;
  min-height: 76px;
  padding: 0 2px;
}

#football-team-page .team-recent-form__bars::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  background: #aab1bd;
  transform: translateY(-50%);
}

#football-team-page .team-recent-form__bar-cell {
  position: relative;
  display: block;
  height: 76px;
  text-decoration: none;
}

#football-team-page .team-recent-form__baseline {
  display: none;
}

#football-team-page .team-recent-form__bar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 4px;
  max-height: 50%;
  border-radius: 0;
}

#football-team-page .team-recent-form__bar--win {
  bottom: 50%;
  background: #19b57a;
}

#football-team-page .team-recent-form__bar--loss {
  top: 50%;
  background: #d6402a;
}

#football-team-page .team-recent-form__bar--draw {
  top: calc(50% - 2px);
  height: 4px !important;
  background: #aab1bd;
}

.team-recent-form-info-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: stretch;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.team-recent-form-info-modal--open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.team-recent-form-info-modal__inner {
  width: 100%;
  min-height: 178px;
  padding: 10px 16px calc(22px + env(safe-area-inset-bottom, 0));
  background: var(--color-surface);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(16, 24, 40, 0.2);
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 180ms ease;
}

.team-recent-form-info-modal--open .team-recent-form-info-modal__inner {
  transform: translateY(0);
}

.team-recent-form-info-modal__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: #c9ced8;
}

.team-recent-form-info-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.team-recent-form-info-modal__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.team-recent-form-info-modal__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.team-recent-form-info-modal__text {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.45;
  color: var(--color-text-primary);
}

/* Details — Team info stats */
.team-info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 8px 16px 16px;
}

.team-info-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-info-stats__value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.team-info-stats__label {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.team-info-stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
}

.team-info-stats__icon .team-icon--stat {
  display: block;
}

/* Details — Info list */
.team-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-info-list__item {
  border-top: 1px solid var(--color-tab-border);
}

.team-info-list__item:first-child {
  border-top: none;
}

.team-info-list__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}

.team-info-list__link--static {
  cursor: default;
}

.team-info-list__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.team-info-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.team-info-list__icon .team-icon--info {
  display: block;
}

.team-info-list__content {
  flex: 1;
  min-width: 0;
}

.team-info-list__label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.team-info-list__value {
  display: block;
  margin-top: 2px;
  font-weight: var(--font-weight-semibold);
}

.team-info-list__secondary {
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.team-info-list__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.team-info-list__item--split .team-info-list__split {
  display: flex;
  width: 100%;
  padding: 12px 16px;
}

.team-info-list__split-half {
  flex: 1;
  text-align: center;
}

.team-info-list__split-divider {
  width: 1px;
  background: var(--color-tab-border);
}

/* Matches tab: toolbar贴顶贴边，下方卡片保留左右留白 */
.team-tab-panel:has(.team-panel--matches) {
  padding-top: 0;
}

.team-panel--matches {
  gap: var(--space-block-gap);
}

/* Matches toolbar (shared: team + coach) */
.team-matches-toolbar,
.entity-matches-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% + 2 * var(--space-page));
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  padding: 8px 10px 10px;
  background: var(--color-surface);
  box-sizing: border-box;
}

.entity-matches-toolbar--no-select {
  justify-content: flex-end;
}

.team-matches-select,
.entity-matches-toolbar__select {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  margin-left: 0;
  padding: 6px 6px 6px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  box-sizing: border-box;
}

#football-team-page .entity-matches-toolbar__select {
  max-width: 64%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#football-team-page .entity-matches-toolbar__trophy {
  display: none;
}

.team-matches-select__trophy,
.entity-matches-toolbar__trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.team-matches-select__field,
.entity-matches-toolbar__field {
  flex: 1;
  min-width: 0;
}

.ui-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ui-select__control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ui-select__label {
  margin-right: 6px;
}

.ui-select__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--color-black);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
}

.ui-select__button-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.ui-select__button-icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.ui-select__button-arrow {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.7;
}

.ui-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 180px;
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(320px, 60vh);
  padding: 6px 0;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ui-select__menu[hidden] {
  display: none;
}

.ui-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--color-black);
  text-align: left;
  background: var(--color-surface);
}

.ui-select__option--selected,
.ui-select__option:hover {
  background: rgba(17, 31, 162, 0.08);
}

.ui-select__option--selected .ui-select__option-label {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.ui-select__option-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ui-select__option-icon--empty {
  width: 0;
  flex-basis: 0;
}

.entity-matches-toolbar__field .ui-select {
  display: inline-flex;
  width: auto;
}

.entity-matches-toolbar__field .ui-select__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.entity-matches-toolbar__field .ui-select__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px 4px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: #0f1418;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
}

.entity-matches-toolbar__field .ui-select__button-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
}

.entity-matches-toolbar__field .ui-select__button-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.entity-matches-toolbar__field .ui-select__button-arrow {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.entity-matches-toolbar__field .ui-select.ui-select--open .ui-select__button-arrow {
  border-top: 0;
  border-bottom: 5px solid rgba(255, 255, 255, 0.92);
}

.entity-matches-toolbar__field .ui-select__menu {
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 6px 0;
  background: #11181d;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
}

.entity-matches-toolbar__field .ui-select__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.entity-matches-toolbar__field .ui-select__option-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.entity-matches-toolbar__field .ui-select__option-icon--empty {
  flex-basis: 0;
  width: 0;
  margin: 0;
}

.entity-matches-toolbar__field .ui-select__option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.entity-matches-toolbar__field .ui-select__option--selected {
  color: #5b6cff;
  background: transparent;
}

.team-matches-select__field .ui-select-wrap,
.entity-matches-toolbar__field .ui-select-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.team-matches-select__field .ui-select-wrap ion-select.ui-select,
.entity-matches-toolbar__field .ui-select-wrap ion-select.ui-select {
  min-height: 28px;
  --padding-start: 0;
  --padding-end: 36px;
  --padding-top: 4px;
  --padding-bottom: 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.team-matches-view,
.entity-matches-view {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 0;
}

.team-matches-view__pill,
.entity-matches-view__pill {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-tab-border);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.team-matches-view__pill--active,
.entity-matches-view__pill--active {
  background: var(--color-black);
  color: var(--color-white);
}

.team-matches-view__pill:not(.team-matches-view__pill--active):hover,
.entity-matches-view__pill:not(.entity-matches-view__pill--active):hover {
  background: #e8e8e8;
}

.team-matches-card__header,
.entity-matches-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-tab-border);
}

.entity-matches-card + .entity-matches-card {
  margin-top: 12px;
}

.entity-matches-card--hidden {
  display: none !important;
}

/* 哨兵节点：默认不可见，IntersectionObserver 用它触发加载 */
.team-matches-more {
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* 降级（不支持 IntersectionObserver）时显示按钮 */
.team-matches-more--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 12px 16px;
  pointer-events: auto;
}

.team-matches-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.team-matches-more__btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.team-matches-more__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Team page — match card orange accent (图一风格) */
.entity-matches-card__title,
.team-matches-card__title {
  /* color: #e07b39; */
}

.entity-match-row__date {
  color: #e07b39;
}

.team-matches-card__title,
.entity-matches-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.team-matches-card__trophy,
.entity-matches-card__trophy {
  width: 16px;
  height: 16px;
  background: #c9a227;
  border-radius: 2px;
}

.team-match-row,
.entity-match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-tab-border);
}

a.entity-match-row--link {
  text-decoration: none;
  color: inherit;
}

a.entity-match-row--link:hover {
  background: rgba(55, 77, 245, 0.03);
}

.team-match-row:first-child,
.entity-match-row:first-child {
  border-top: none;
}

.team-match-row__time,
.entity-match-row__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  font-size: 11px;
  color: var(--color-text-secondary);
  text-align: center;
  gap: 3px;
}

.team-match-row__date,
.entity-match-row__date {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: rgb(107, 114, 128);
  line-height: 1.3;
}

.team-match-row__kickoff,
.entity-match-row__kickoff {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.team-match-row__status,
.entity-match-row__status {
  font-size: 10px;
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.team-match-row__divider,
.entity-match-row__divider {
  width: 1px;
  align-self: stretch;
  min-height: 36px;
  background: var(--color-tab-border);
  flex-shrink: 0;
}

.team-match-row__teams,
.entity-match-row__teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.team-match-row__scores,
.entity-match-row__scores,
a.entity-match-row__scores {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

a.entity-match-row__scores,
a.football-match-row__scores {
  text-decoration: none;
  color: inherit;
}

a.wc26-overview-match-card {
  text-decoration: none;
  color: inherit;
}

a.wc26-overview-team-card--link {
  text-decoration: none;
  color: inherit;
}

.tournament-stat-card__name--link,
.team-squad-coach__name--link,
.team-squad-list__club--link,
.entity-competition-stat-row__name--link,
.wc26-overview-champions__name--link,
.wc26-overview-standings-table__team-link {
  text-decoration: none;
  color: inherit;
}

.tournament-totw-player--link {
  text-decoration: none;
  color: inherit;
}

.team-match-row__score,
.entity-match-row__score {
  line-height: 1.2;
}

.team-match-row__result,
.entity-match-row__result {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  line-height: 1;
}

.team-match-row__result--win,
.entity-match-row__result--win {
  background: #2e9e5b;
}

.team-match-row__result--loss,
.entity-match-row__result--loss {
  background: #e53935;
}

.team-match-row__result--draw,
.entity-match-row__result--draw {
  background: #9e9e9e;
}

/* Standings tab: 筛选条贴顶贴边，卡片保留左右留白 */
.team-tab-panel:has(.team-panel--standings) {
  padding-top: 0;
}

.team-panel--standings {
  gap: 0;
}

.team-standings-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% + 2 * var(--space-page));
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  padding: 10px var(--space-page);
  background: #f4f5f7;
  box-sizing: border-box;
}

.team-standings-select {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.team-standings-select--season {
  padding: 6px 8px;
}

.team-standings-select--season .ui-select-wrap {
  width: 100%;
  border: none;
  background: transparent;
}

.team-standings-select__trophy {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.team-standings-select__comp-logo {
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: contain;
}

.team-standings-select__field {
  flex: 0 1 auto;
  min-width: 0;
}

.team-standings-row--current td {
  background: rgba(var(--color-primary-rgb, 17, 31, 162), 0.06);
  font-weight: var(--font-weight-semibold);
}

.team-standings-table tbody tr[data-row-href],
.tournament-standings-table tbody tr[data-row-href] {
  cursor: pointer;
}

.team-standings-table tbody tr[data-row-href]:hover td,
.tournament-standings-table tbody tr[data-row-href]:hover td {
  background: rgba(55, 77, 245, 0.03);
}

.team-standings-table tbody tr[data-row-href]:focus-visible,
.tournament-standings-table tbody tr[data-row-href]:focus-visible {
  outline: 2px solid rgba(55, 77, 245, 0.35);
  outline-offset: -2px;
}

.team-standings-select__field .ui-select-wrap,
.team-standings-select--season .ui-select-wrap {
  border: none;
  background: transparent;
}

.team-standings-select .ui-select__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.team-standings-select .ui-select__button {
  min-height: 34px;
  padding: 5px 10px 5px 8px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.team-standings-select .ui-select__button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.team-standings-select .ui-select__button-text {
  max-width: 220px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.team-standings-select .ui-select__menu {
  min-width: 220px;
  background: var(--color-surface);
  border-color: #dfe3ea;
}

.team-standings-select__field .ui-select-wrap ion-select.ui-select,
.team-standings-select--season .ui-select-wrap ion-select.ui-select {
  min-height: 28px;
  --padding-start: 0;
  --padding-end: 36px;
  --padding-top: 4px;
  --padding-bottom: 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.team-standings-card {
  padding: 0;
  overflow: hidden;
}

.team-standings-card__appearance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--color-tab-border);
}

.team-standings-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.team-standings-filter__btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 30px;
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  cursor: pointer;
  line-height: 1;
}

.team-standings-filter__btn--active {
  color: #fff;
  background: var(--color-black);
  border-color: var(--color-black);
}

.team-standings-card__appearance-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.team-standings-card__appearance-hint {
  display: block;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.team-standings-card__appearance-select {
  flex-shrink: 0;
  min-width: auto;
}

.team-standings-card__appearance-select--right {
  margin-left: auto;
}

.team-standings-card__appearance-select .ui-select__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.team-standings-card__appearance-select .ui-select__button {
  min-height: 30px;
  padding: 5px 9px;
  background: #f8f9fb;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
}

.team-standings-card__appearance-select .ui-select__button-text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: lowercase;
}

.team-standings-panel[hidden] {
  display: none !important;
}

#football-team-page .team-standings-filter__btn {
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}

#football-team-page .team-standings-filter__btn--active {
  color: #fff;
  background: var(--color-black);
  border-color: var(--color-black);
}

.team-standings-card__appearance-select .ui-select-wrap {
  min-width: 100px;
}

.team-standings-card__appearance-select .ui-select-wrap ion-select.ui-select {
  min-height: 36px;
}

.team-standings-card__group {
  margin: 0;
  padding: 14px 16px 8px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.team-standings-table-wrap {
  padding: 0 8px 8px;
}

.team-standings-group-label {
  margin: 12px 4px 6px;
  padding: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.team-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.team-standings-table thead th {
  padding: 8px 8px 10px;
  font-size: 11px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--color-tab-border);
}

.team-standings-table tbody td {
  padding: 12px 8px;
  vertical-align: middle;
}

.team-st-col-rank {
  width: 36px;
  text-align: center;
}

.team-st-col-team {
  min-width: 0;
}

.team-st-col-p,
.team-st-col-diff,
.team-st-col-pts {
  width: 40px;
  text-align: right;
}

.st-num {
  font-variant-numeric: tabular-nums;
}

.team-standings-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: var(--color-tab-border);
  color: var(--color-text-primary);
}

.team-standings-rank--qual {
  background: #2e9e5b;
  color: #fff;
}

.team-standings-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: var(--font-weight-semibold);
}

.team-standings-team img {
  border-radius: 50%;
  flex-shrink: 0;
}

.team-standings-rules {
  margin: 8px 12px 14px;
  background: rgba(17, 31, 162, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.team-standings-rules__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  list-style: none;
}

.team-standings-rules__summary::-webkit-details-marker {
  display: none;
}

.team-standings-rules__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(-135deg);
  transition: transform 0.15s;
}

.team-standings-rules[open] .team-standings-rules__chevron {
  transform: rotate(45deg);
}

.team-standings-rules__body {
  padding: 0 14px 14px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.team-standings-rules__playoff {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: var(--font-size-sm);
}

.team-standings-rules__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e5b;
  flex-shrink: 0;
}

.team-standings-rules__intro {
  margin: 0 0 8px;
}

.team-standings-rules__list {
  margin: 0 0 12px;
  padding-left: 18px;
}

.team-standings-rules__list-item {
  margin-bottom: 4px;
}

.team-standings-rules__legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.team-standings-rules__legend>div {
  display: contents;
}

.team-standings-rules__legend dt {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

.team-standings-rules__legend dd {
  margin: 0;
  color: var(--color-text-primary);
}

/* Squad tab */
.team-tab-panel:has(.team-panel--squad) {
  padding: 0 var(--space-page) var(--space-section);
}

.team-panel--squad {
  gap: 0;
}


.team-squad-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
  padding-top: var(--space-block-gap);
}

.team-squad-card {
  margin: 0;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
}

.team-squad-coach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--space-page);
}

.team-squad-coach__avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.team-squad-coach__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.team-squad-coach__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.team-squad-coach__flag {
  border-radius: 2px;
  object-fit: cover;
}

.team-squad-card__heading {
  margin: 0;
  padding: 14px var(--space-page) 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.team-squad-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-squad-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px var(--space-page);
  position: relative;
}

.team-squad-list__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--space-page) + 40px + 12px);
  right: var(--space-page);
  height: 1px;
  background: var(--color-tab-border);
}

.team-squad-list__avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.team-squad-list__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.team-squad-list__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.team-squad-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.team-squad-list__pos {
  flex-shrink: 0;
}

.team-squad-list__club-logo {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.team-squad-list__club {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-squad-list__injury {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: #e53935;
  line-height: 1.3;
}

.team-squad-list__injury-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.team-squad-list__injury-icon::before,
.team-squad-list__injury-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #e53935;
  transform: translate(-50%, -50%);
}

.team-squad-list__injury-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Squad: 球衣号 + 位置简写 + 国旗 + 三字码 全部内联 + view 切换 */
.team-squad-list__number {
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.team-squad-list__pos {
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

.team-squad-list__flag {
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.team-squad-list__nationality {
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

.team-squad-list__value,
.team-squad-coach__value {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
  min-width: 80px;
  text-align: right;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.team-squad-data {
  display: none;
}

.team-squad-card--empty {
  padding: 24px var(--space-page);
  text-align: center;
}

.team-squad-empty {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* 根据 panel 上的 data-active-view 切换显示对应字段 */
.team-panel--squad[data-active-view="general"] .team-squad-data[data-squad-view="general"],
.team-panel--squad[data-active-view="age"] .team-squad-data[data-squad-view="age"],
.team-panel--squad[data-active-view="height"] .team-squad-data[data-squad-view="height"],
.team-panel--squad[data-active-view="value"] .team-squad-data[data-squad-view="value"],
.team-panel--squad[data-active-view="previous_club"] .team-squad-data[data-squad-view="previous_club"],
.team-panel--squad[data-active-view="contract"] .team-squad-data[data-squad-view="contract"] {
  display: inline-block;
}

/* Top players */
.team-tab-panel:has(.team-panel--top-players) {
  padding: 0 var(--space-page) var(--space-section);
}

.team-panel--top-players {
  gap: 0;
}

.team-top-toolbar {
  width: calc(100% + 2 * var(--space-page));
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  background: var(--color-surface);
  box-sizing: border-box;
}

.team-top-selects {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
  padding: 8px var(--space-page) 10px;
  border-bottom: 1px solid var(--color-divider);
  box-sizing: border-box;
}

.team-top-select {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.team-top-select--competition {
  flex: 1 1 auto;
}

.team-top-select--year {
  flex: 0 0 98px;
}

.team-top-select .ui-select {
  width: 100%;
}

.team-top-select .ui-select__button {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  background: var(--color-white);
  border-color: var(--color-divider);
  border-radius: 8px;
}

.team-top-select .ui-select__button-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.team-top-select .ui-select__menu {
  min-width: 100%;
}

.team-top-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
  padding-top: var(--space-block-gap);
}

.team-top-cards .team-top-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.team-top-cards .team-top-panel[hidden] {
  display: none;
}

.tournament-panel--stats [data-tournament-stats-entity-panel][hidden],
.tournament-panel--stats [data-tournament-stats-panel][hidden] {
  display: none !important;
}

.team-top-cards .team-top-stat-card {
  padding: 14px var(--space-page);
  border: none;
  border-radius: 12px;
  background: var(--color-white);
}

.team-top-stat-card__more {
  text-decoration: none;
}

.team-top-stat-card__rating {
  min-width: 44px;
  text-align: center;
  background: #15a395;
  border-radius: 6px;
}

.team-top-stat-card__footer {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-divider);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Statistics */
.team-tab-panel:has(.team-panel--statistics) {
  padding: 0 var(--space-page) var(--space-section);
}

.team-panel--statistics {
  gap: 0;
}

.team-stats-filters {
  width: calc(100% + 2 * var(--space-page));
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  background: var(--color-surface);
  box-sizing: border-box;
}

.team-stats-selects {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 8px var(--space-page) 10px;
  box-sizing: border-box;
}

.team-stats-select {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  box-sizing: border-box;
}

.team-stats-select--season {
  flex: 0.55;
  max-width: 120px;
  padding: 6px 8px;
}

.team-stats-select__icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.team-stats-select__field {
  flex: 1;
  min-width: 0;
}

.team-stats-select__field .ui-select-wrap,
.team-stats-select--season .ui-select-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
}

.team-stats-select__field .ui-select-wrap ion-select.ui-select,
.team-stats-select--season .ui-select-wrap ion-select.ui-select {
  min-height: 28px;
  --padding-start: 0;
  --padding-end: 36px;
  --padding-top: 4px;
  --padding-bottom: 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.team-stats-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
  padding-top: var(--space-block-gap);
}

.team-rating-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
}

.team-rating-card__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--space-page);
}

.team-rating-card__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.team-rating-card__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--color-text-secondary);
  border-radius: 50%;
  background: transparent;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  font-style: italic;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.team-rating-card__rank {
  margin: 4px 0 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.team-rating-card__score {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.team-rating-card__indicator {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #2e9e5b;
  flex-shrink: 0;
}

.team-rating-card__value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  color: var(--color-text-primary);
}

.player-season-panel,
.team-stats-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.team-stats-section {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
}

.team-stats-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-page);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  list-style: none;
}

.team-stats-section__summary::-webkit-details-marker {
  display: none;
}

.team-stats-section__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.team-stats-section[open] .team-stats-section__chevron {
  transform: rotate(-135deg);
}

.team-stats-section__rows {
  margin: 0;
  padding: 0 var(--space-page) 14px;
}

.team-stats-section__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.team-stats-section__label {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
}

.team-stats-section__value {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: end;
  flex-shrink: 0;
}

/* FIFA Ranking page */
.football-fifa-ranking-page {
  background: var(--color-surface);
  padding-bottom: var(--space-section);
}

.fifa-ranking-head {
  padding: 16px var(--space-page);
  background: var(--color-surface);
}

.fifa-ranking-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.fifa-ranking-brand__logo {
  flex-shrink: 0;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.fifa-ranking-brand__text {
  min-width: 0;
}

.fifa-ranking-brand__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

.fifa-ranking-brand__updated {
  margin: 4px 0 0;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  color: var(--color-text-secondary);
}

.fifa-ranking-search-wrap {
  padding: 12px var(--space-page);
  background: var(--color-surface);
}

.fifa-ranking-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-tab-border);
  border-radius: var(--radius-pill);
}

.fifa-ranking-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  outline: none;
}

.fifa-ranking-search__input::placeholder {
  color: var(--color-text-secondary);
}

.fifa-ranking-search__icon {
  flex-shrink: 0;
  opacity: 0.5;
}

.fifa-ranking-table-card {
  margin: 0;
  background: var(--color-surface);
}

.fifa-ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.fifa-ranking-table thead th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--color-tab-border);
}

.fifa-ranking-table__col-rank {
  width: 36px;
  padding-left: var(--space-page);
  text-align: center;
}

.fifa-ranking-table__col-team {
  min-width: 0;
}

.fifa-ranking-table__col-pts,
.fifa-ranking-table__col-diff {
  width: 72px;
  text-align: right;
  padding-right: var(--space-page);
}

.fifa-ranking-table__col-diff {
  width: 56px;
}

.fifa-ranking-table__row {
  border-bottom: 1px solid var(--color-tab-border);
}

.fifa-ranking-table__row--hidden {
  display: none;
}

.fifa-ranking-table__row--highlight {
  background: rgba(17, 31, 162, 0.08);
}

.fifa-ranking-table__row td {
  padding: 12px 12px;
  vertical-align: middle;
}

.fifa-ranking-table__row .fifa-ranking-table__col-rank {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
}

.fifa-ranking-table__team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.fifa-ranking-table__flag {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.fifa-ranking-table__name {
  font-weight: var(--font-weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fifa-ranking-table__col-pts {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.fifa-ranking-diff {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 32px;
}

.fifa-ranking-diff__arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.fifa-ranking-diff--up {
  color: #2e9e5b;
}

.fifa-ranking-diff--up .fifa-ranking-diff__arrow {
  border-bottom: 6px solid #2e9e5b;
}

.fifa-ranking-diff--down {
  color: #e53935;
}

.fifa-ranking-diff--down .fifa-ranking-diff__arrow {
  border-top: 6px solid #e53935;
}

.fifa-ranking-diff--same {
  color: var(--color-text-secondary);
}

.fifa-ranking-diff__dash {
  font-size: var(--font-size-sm);
}

.fifa-ranking-diff__value {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
}

.fifa-ranking-empty {
  margin: 0;
  padding: 24px var(--space-page);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Shared entity profile header */
.entity-hero {
  background: var(--color-surface);
  padding-bottom: 8px;
}

.entity-hero__main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px var(--space-page) 12px;
}

.entity-hero__avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.entity-hero__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.entity-hero__action {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

/* Shared stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
  padding: 8px 16px 16px;
}

.stat-grid--coach {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--color-tab-border);
}

.stat-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.stat-grid--coach .stat-grid__item {
  align-items: flex-start;
  text-align: left;
}

.stat-grid__flag {
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.stat-grid__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.stat-grid__value--flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.stat-grid--coach .stat-grid__value {
  font-size: var(--font-size-md);
}

.stat-grid__sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.stat-grid__label {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.stat-grid:not(.stat-grid--coach) .stat-grid__label {
  margin-top: 4px;
}

.stat-grid--coach .stat-grid__label {
  margin-bottom: 4px;
}

/* Shared W/L/D performance bar */
.wld-performance {
  padding: 4px 16px 16px;
}

.wld-performance__grid {
  display: grid;
  gap: 0;
  width: 100%;
}

.wld-performance__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wld-performance__count {
  padding: 0 4px 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
}

.wld-performance__count--win {
  color: #2e9e5b;
}

.wld-performance__count--draw {
  color: #9e9e9e;
}

.wld-performance__count--loss {
  color: #e53935;
}

.wld-performance__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  overflow: hidden;
}

.wld-performance__col:first-child .wld-performance__segment {
  border-radius: 6px 0 0 6px;
}

.wld-performance__col:last-child .wld-performance__segment {
  border-radius: 0 6px 6px 0;
}

.wld-performance__segment--win {
  background: #2e9e5b;
}

.wld-performance__segment--draw {
  background: #9e9e9e;
}

.wld-performance__segment--loss {
  background: #e53935;
}

/* Shared W/L/D inline stats */
.wld-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.wld-inline__games {
  color: var(--color-text-primary);
}

.wld-inline__win {
  color: #2e9e5b;
}

.wld-inline__draw {
  color: #9e9e9e;
}

.wld-inline__loss {
  color: #e53935;
}

/* Coach detail page */
.football-coach-page {
  background: var(--color-tab-border);
  padding-bottom: var(--space-section);
}

.coach-sticky-bar .scroll-tabs-wrap {
  box-shadow: none;
}

.coach-tab-panel {
  padding: 8px var(--space-page) var(--space-section);
}

.coach-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.coach-panel--matches {
  gap: var(--space-block-gap);
}

.coach-panel--details .tournament-card {
  padding: 0;
  overflow: hidden;
}

.coach-info-card__club {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}

.coach-info-card__club-logo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.coach-info-card__club-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  text-align: right;
}

.coach-performance-card .tournament-card__title,
.coach-career-card .tournament-card__title {
  padding: 14px 16px 0;
  margin: 0;
}

.coach-career-chart {
  padding: 0 16px 12px;
}

.coach-career-chart__plot {
  position: relative;
  height: 132px;
  margin-bottom: 10px;
}

.coach-career-chart__avg-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 0;
  border-top: 2px dashed #e53935;
  z-index: 2;
  pointer-events: none;
}

.coach-career-chart__bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
  padding-top: 28px;
  box-sizing: border-box;
}

.coach-career-chart__col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  height: 100%;
}

.coach-career-chart__bar {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  background: #2e9e5b;
}

.coach-career-chart__logos {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  pointer-events: none;
}

.coach-career-chart__logo {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.coach-career-chart__legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 10px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.coach-career-chart__legend-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.coach-career-chart__legend-line {
  display: inline-block;
  width: 18px;
  height: 2px;
  flex-shrink: 0;
}

.coach-career-chart__legend-line--avg {
  background: #2e9e5b;
}

.coach-career-chart__legend-line--total {
  background: repeating-linear-gradient(90deg, #e53935 0, #e53935 4px, transparent 4px, transparent 7px);
}

.coach-career-chart__legend-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.coach-career-list-wrap {
  border-top: 1px solid var(--color-tab-border);
}

.coach-career-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
}

.coach-career-list__head-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.coach-career-list__head-metric {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.coach-career-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coach-career-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-tab-border);
}

.coach-career-list__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.coach-career-list__logo {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.coach-career-list__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coach-career-list__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.coach-career-list__tenure {
  margin-top: 2px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.coach-career-list__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 4px;
}

.coach-career-list__ppg {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-text-primary);
}

.wld-inline--career {
  margin-top: 0;
  gap: 6px;
}

/* Rating badge tiers */
.tournament-stat-card__rating--high,
.entity-rating-badge--high {
  background: #2e9e5b;
}

.tournament-stat-card__rating--mid,
.entity-rating-badge--mid {
  background: #e8b020;
}

.tournament-stat-card__rating--low,
.entity-rating-badge--low {
  background: #e86a17;
}

.entity-rating-badge--excellent {
  background: #1e5bb8;
}

.entity-rating-badge--great {
  background: #4fc3f7;
}

.entity-rating-badge--teal {
  background: #26a69a;
}

.entity-rating-badge--good {
  background: #2e9e5b;
}

.entity-rating-badge--average {
  background: #c9a227;
}

.entity-rating-badge--large {
  font-size: var(--font-size-lg);
  padding: 6px 12px;
  border-radius: 8px;
}

.entity-rating-badge--timeline {
  font-size: 11px;
  padding: 2px 6px;
}

.entity-rating-badge--match {
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  padding: 4px 8px;
}

/* Player detail page */
.football-player-page {
  background: var(--color-tab-border);
  padding-bottom: var(--space-section);
}

.player-sticky-bar .scroll-tabs-wrap {
  box-shadow: none;
}

.player-tab-panel {
  padding: 8px var(--space-page) var(--space-section);
}

.player-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.player-panel--details .tournament-card,
.player-panel--season .tournament-card,
.player-panel--fantasy .tournament-card {
  padding: 0;
  overflow: hidden;
}

.entity-hero--player .entity-hero__avatar {
  border-radius: 50%;
}

.stat-grid--player .stat-grid__item {
  align-items: center;
  text-align: center;
}

.stat-grid__value--position {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-grid__pitch-icon {
  display: inline-block;
  width: 22px;
  height: 28px;
  border: 1px solid var(--color-divider);
  border-radius: 2px;
  background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
  position: relative;
  vertical-align: middle;
}

.stat-grid__pitch-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  left: 50%;
  top: 35%;
  transform: translateX(-50%);
}

/* Club card */
.player-club-card__club {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-tab-border);
}

.player-club-card__logo {
  border-radius: 50%;
  object-fit: cover;
}

.player-club-card__name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.player-club-card__contract {
  display: block;
  margin-top: 2px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.stat-grid--player {
  border-top: none;
}

/* Summary */
.player-summary-card .tournament-card__title,
.player-attribute-card .tournament-card__title,
.player-positions-card .tournament-card__title,
.player-transfer-card .tournament-card__title,
.player-national-card .tournament-card__title {
  padding: 14px 16px 10px;
  margin: 0;
}

.player-summary-chart {
  padding: 8px 16px 0;
}

.player-summary-chart__plot {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 4px;
  cursor: pointer;
  outline: none;
}

.player-summary-chart__plot:focus-visible {
  box-shadow: 0 0 0 2px var(--color-primary);
  border-radius: 4px;
}

.player-summary-chart__scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 14px;
  padding: 18px 0 28px;
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-align: right;
  background: linear-gradient(180deg, #26c6da 0%, #2e9e5b 28%, #e8b020 55%, #e86a17 82%, #e53935 100%);
  -webkit-background-clip: text;
  background-clip: text;
  border-radius: 2px;
  position: relative;
}

.player-summary-chart__scale::before {
  content: "";
  position: absolute;
  inset: 18px 0 28px;
  right: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #26c6da 0%, #2e9e5b 28%, #e8b020 55%, #e86a17 82%, #e53935 100%);
  z-index: -1;
}

.player-summary-chart__scale span {
  color: var(--color-text-secondary);
  background: var(--color-white);
  padding-left: 2px;
}

.player-summary-chart__bars {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: 120px;
  padding-top: 20px;
}

.player-summary-chart__avg-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed #e8b020;
  pointer-events: none;
  z-index: 2;
}

.player-summary-chart__col {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100px;
  justify-content: flex-end;
}

.player-summary-chart__col--injury::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 22px;
  width: 100%;
  max-width: 22px;
  transform: translateX(-50%);
  background: rgba(229, 57, 53, 0.12);
  border-radius: 2px;
  pointer-events: none;
}

.player-summary-chart__month {
  height: 14px;
  font-size: 9px;
  color: var(--color-text-secondary);
  line-height: 14px;
  margin-bottom: 2px;
}

.player-summary-chart__marker {
  height: 14px;
  flex-shrink: 0;
}

.player-summary-chart__marker--transfer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 22px;
}

.player-summary-chart__marker--transfer .player-summary-chart__marker-line {
  width: 2px;
  flex: 1;
  background: var(--color-primary);
}

.player-summary-chart__marker--transfer .player-summary-chart__marker-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  position: relative;
  flex-shrink: 0;
}

.player-summary-chart__marker--transfer .player-summary-chart__marker-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid #fff;
}

.player-summary-chart__marker--injury {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 16px;
}

.player-summary-chart__marker--injury .player-summary-chart__marker-icon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #e53935;
  position: relative;
}

.player-summary-chart__marker--injury .player-summary-chart__marker-icon::before,
.player-summary-chart__marker--injury .player-summary-chart__marker-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.player-summary-chart__marker--injury .player-summary-chart__marker-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.player-summary-chart__bar-wrap {
  position: relative;
  width: 100%;
  max-width: 16px;
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
}

.player-summary-chart__bar {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
}

.player-summary-chart__bar--alt {
  display: none;
}

.player-summary-chart__plot--swap .player-summary-chart__bar--primary {
  display: none;
}

.player-summary-chart__plot--swap .player-summary-chart__bar--alt {
  display: block;
}

.player-summary-chart__bar--high {
  background: #2e9e5b;
}

.player-summary-chart__bar--mid {
  background: #e8b020;
}

.player-summary-chart__bar--orange {
  background: #e86a17;
}

.player-summary-chart__bar--low {
  background: #e53935;
}

.player-summary-chart__value {
  margin-top: 4px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.player-summary-chart__value--alt {
  display: none;
}

.player-summary-chart__plot--swap .player-summary-chart__value--primary {
  display: none;
}

.player-summary-chart__plot--swap .player-summary-chart__value--alt {
  display: block;
}

.player-summary-chart__value--high {
  color: #2e9e5b;
}

.player-summary-chart__value--mid {
  color: #c9a227;
}

.player-summary-chart__value--orange {
  color: #e86a17;
}

.player-summary-chart__value--low {
  color: #e53935;
}

.player-summary-chart__caption {
  margin: 6px 0 0;
  padding: 0 4px;
  font-size: 10px;
  color: var(--color-text-secondary);
}

.player-summary-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding: 0 4px 12px;
  list-style: none;
  font-size: 10px;
  color: var(--color-text-secondary);
}

.player-summary-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.player-summary-legend__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.player-summary-legend__item--swap .player-summary-legend__icon {
  border-radius: 50%;
  border: 1.5px solid #2e9e5b;
  position: relative;
}

.player-summary-legend__item--swap .player-summary-legend__icon::before {
  content: "↻";
  position: absolute;
  inset: 0;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  color: #2e9e5b;
}

.player-summary-legend__item--injury .player-summary-legend__icon {
  border-radius: 2px;
  background: #e53935;
  position: relative;
}

.player-summary-legend__item--injury .player-summary-legend__icon::before,
.player-summary-legend__item--injury .player-summary-legend__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.player-summary-legend__item--injury .player-summary-legend__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.player-summary-legend__item--transfer .player-summary-legend__icon {
  border-radius: 50%;
  background: var(--color-primary);
  position: relative;
}

.player-summary-legend__item--transfer .player-summary-legend__icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid #fff;
}

.player-summary-competitions {
  border-top: 1px solid var(--color-tab-border);
}

.entity-competition-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-tab-border);
}

.entity-competition-summary-row:last-child {
  border-bottom: none;
}

.entity-competition-summary-row__logo {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.entity-competition-summary-row__body {
  flex: 1;
  min-width: 0;
}

.entity-competition-summary-row__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
  line-height: 1.3;
}

a.entity-competition-summary-row__name:hover {
  color: var(--color-primary);
}

.entity-competition-summary-row__apps {
  display: block;
  margin-top: 2px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.entity-competition-summary-row__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.entity-competition-summary-row__square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.entity-competition-summary-row__square--high {
  background: #2e9e5b;
}

.entity-competition-summary-row__square--mid {
  background: #e8b020;
}

.entity-competition-summary-row__square--orange {
  background: #e86a17;
}

.entity-competition-summary-row__square--low {
  background: #e53935;
}

.entity-competition-summary-row__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  min-width: 2.5rem;
  text-align: right;
}

/* Legacy compact row (other tabs) */
.entity-competition-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-tab-border);
}

.entity-competition-stat-row:last-child {
  border-bottom: none;
}

.entity-competition-stat-row__logo {
  flex-shrink: 0;
  border-radius: 4px;
}

.entity-competition-stat-row__name {
  flex: 1;
  min-width: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  text-decoration: none;
}

.entity-competition-stat-row__name--link:hover {
  color: var(--color-primary);
}

.entity-competition-stat-row__apps {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  min-width: 1.5rem;
  text-align: right;
}

.player-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: none;
  border-top: 1px solid var(--color-tab-border);
  background: transparent;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  cursor: pointer;
}

.player-summary-toggle__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.player-summary-toggle--expanded .player-summary-toggle__chevron {
  transform: rotate(-135deg);
}

/* Attribute */
.player-attribute-card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px 4px;
}

.player-attribute-card__head .tournament-card__title {
  padding: 0;
  margin: 0;
}

.player-attribute-card__info {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.player-attribute-snapshot {
  padding: 4px 20px 0;
}

.player-attribute-radar-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 1;
  cursor: pointer;
}

.player-attribute-radar {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.player-attribute-radar__bg {
  fill: #e8eaed;
  stroke: none;
}

.player-attribute-radar__grid {
  fill: none;
  stroke: #d0d4d9;
  stroke-width: 1;
}

.player-attribute-radar__avg {
  fill: none;
  stroke: #c9a227;
  stroke-width: 1.5;
}

.player-attribute-radar__fill {
  fill: rgba(46, 158, 91, 0.22);
  stroke: #2e9e5b;
  stroke-width: 2.5;
}

.player-attribute-badge {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: 1.15;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.player-attribute-badge--high {
  background: #2e9e5b;
}

.player-attribute-badge--yellow {
  background: #c9a227;
}

.player-attribute-badge--orange {
  background: #e86a17;
}

.player-attribute-badge--low {
  background: #e53935;
}

.player-attribute-badge--ATT {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.player-attribute-badge--TEC {
  top: 14%;
  right: -4px;
}

.player-attribute-badge--TAC {
  bottom: 12%;
  right: -2px;
}

.player-attribute-badge--DEF {
  bottom: 12%;
  left: -2px;
}

.player-attribute-badge--CRE {
  top: 14%;
  left: -4px;
}

.player-attribute-badge__key {
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.player-attribute-badge__val {
  font-size: 12px;
  line-height: 1.1;
}

.player-attribute-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 12px 24px 0;
  padding: 0 4px 4px;
  min-height: 44px;
}

.player-attribute-timeline__track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 7px;
  height: 2px;
  background: #d8dce0;
  border-radius: 1px;
  pointer-events: none;
}

.player-attribute-timeline__point {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex: 1;
}

.player-attribute-timeline__point:disabled {
  cursor: default;
  opacity: 0.85;
}

.player-attribute-timeline__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b0b8c0;
  flex-shrink: 0;
}

.player-attribute-timeline__point--active .player-attribute-timeline__dot {
  width: 14px;
  height: 14px;
  background: #2e9e5b;
  box-shadow: 0 0 0 2px #fff;
  position: relative;
}

.player-attribute-timeline__point--active .player-attribute-timeline__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #fff;
}

.player-attribute-timeline__label {
  font-size: 10px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.player-attribute-timeline__point--active .player-attribute-timeline__label {
  color: #2e9e5b;
  font-weight: var(--font-weight-semibold);
}

.player-attribute-timeline__point:disabled .player-attribute-timeline__label {
  color: var(--color-text-secondary);
}

.player-attribute-card__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px 16px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-align: center;
}

.player-attribute-card__hint-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  color: var(--color-text-secondary);
}

/* Positions */
.player-positions-card__body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 16px 18px;
}

.player-positions-card__lists {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.player-positions-card__group+.player-positions-card__group {
  margin-top: 16px;
}

.player-positions-card__subtitle {
  margin: 0 0 8px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.player-positions-card__subtitle--strength {
  color: #2e9e5b;
}

.player-positions-card__subtitle--weak {
  color: #a94442;
}

.player-positions-card__tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-positions-card__tags li {
  font-size: var(--font-size-sm);
  line-height: 1.45;
  color: var(--color-text-primary);
}

.player-positions-card__tags li+li {
  margin-top: 2px;
}

.player-positions-card__pitch {
  position: relative;
  width: 108px;
  flex-shrink: 0;
  align-self: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}

.player-positions-card__pitch:hover {
  opacity: 0.92;
}

.player-positions-card__pitch:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.player-positions-card__pitch-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.player-positions-card__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.player-positions-card__marker--primary {
  background: #2e9e5b;
  z-index: 2;
}

.player-positions-card__marker--secondary {
  background: #e53935;
  z-index: 1;
}

/* Player positions bottom sheet */
.player-positions-modal__inner {
  padding: 8px var(--space-page) calc(24px + env(safe-area-inset-bottom, 0px));
}

.player-positions-modal__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  background: #d1d5db;
  border-radius: 2px;
}

.player-positions-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.player-positions-modal__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.player-positions-modal__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

.player-positions-modal__groups {
  display: flex;
  flex-direction: column;
}

.player-positions-modal__group+.player-positions-modal__group {
  border-top: 1px solid var(--color-tab-border);
  margin-top: 4px;
  padding-top: 4px;
}

.player-positions-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.player-positions-modal__abbr {
  flex-shrink: 0;
  min-width: 32px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.player-positions-modal__abbr--forward {
  color: #d32f2f;
}

.player-positions-modal__abbr--midfielder {
  color: #2e9e5b;
}

.player-positions-modal__abbr--defender {
  color: #1e5bb8;
}

.player-positions-modal__abbr--goalkeeper {
  color: #f5a623;
}

.player-positions-modal__name {
  flex: 1;
  text-align: right;
  font-size: var(--font-size-sm);
  line-height: 1.3;
  color: var(--color-text-primary);
}

/* Transfer */
.player-transfer-chart-panel {
  padding: 0 16px 12px;
}

.player-transfer-chart__plot {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.player-transfer-chart__y-axis {
  position: relative;
  flex: 0 0 52px;
  align-self: flex-start;
  height: 124px;
  margin-top: 8px;
}

.player-transfer-chart__y-label {
  position: absolute;
  right: 0;
  transform: translateY(50%);
  font-size: 10px;
  line-height: 1;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.player-transfer-chart__canvas {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 8px 8px 6px;
  background: #f3f4f6;
  border-radius: 8px;
  box-sizing: border-box;
}

.player-transfer-chart__graph {
  position: relative;
  height: 100px;
  margin-bottom: 18px;
}

.player-transfer-chart__grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(50%);
  pointer-events: none;
}

.player-transfer-chart__market-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed #e8a020;
  transform: translateY(50%);
  pointer-events: none;
  z-index: 2;
}

.player-transfer-chart__club-logo {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.player-transfer-chart__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.player-transfer-chart__area {
  fill: rgba(46, 158, 91, 0.18);
}

.player-transfer-chart__line--fee {
  fill: none;
  stroke: #2e9e5b;
  stroke-width: 2;
}

.player-transfer-chart__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-bottom: -4px;
  border-radius: 50%;
  background: #2e9e5b;
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 4;
  pointer-events: none;
}

.player-transfer-chart__x-axis {
  position: relative;
  height: 16px;
}

.player-transfer-chart__x-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  color: var(--color-text-secondary);
}

.player-transfer-chart__summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-tab-border);
}

.player-transfer-chart__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.player-transfer-chart__summary-row+.player-transfer-chart__summary-row {
  margin-top: 6px;
}

.player-transfer-chart__summary-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.player-transfer-chart__legend-line {
  display: inline-block;
  width: 18px;
  height: 0;
  flex-shrink: 0;
}

.player-transfer-chart__legend-line--market {
  border-top: 2px dashed #e8a020;
}

.player-transfer-chart__legend-line--fee {
  border-top: 2px solid #2e9e5b;
}

.player-transfer-chart__summary-val {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-transfer-chart__summary-val--fee {
  color: #2e9e5b;
}

.player-transfer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-tab-border);
}

.player-transfer-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-tab-border);
}

.player-transfer-list__club {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.player-transfer-list__logo {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

.player-transfer-list__body {
  min-width: 0;
}

.player-transfer-list__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.player-transfer-list__date {
  display: block;
  margin-top: 2px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.player-transfer-list__fee {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  min-width: 72px;
}

.player-transfer-list__fee-primary {
  font-size: var(--font-size-sm);
  line-height: 1.2;
}

.player-transfer-list__fee-secondary {
  font-size: var(--font-size-xs);
  line-height: 1.2;
  color: #2e9e5b;
}

.player-transfer-list__fee--fee .player-transfer-list__fee-primary {
  font-weight: var(--font-weight-semibold);
  color: #2e9e5b;
}

.player-transfer-list__fee--status .player-transfer-list__fee-primary {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

.player-transfer-list__fee--dash .player-transfer-list__fee-primary {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

/* National */
.player-national-card__team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 16px;
  text-decoration: none;
  color: inherit;
}

.player-national-card__flag {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.player-national-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-national-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.player-national-card__sublabel {
  font-size: var(--font-size-xs);
  line-height: 1.3;
  color: var(--color-text-secondary);
}

.player-national-card__stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--color-tab-border);
}

.player-national-card__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-top: 12px;
  text-align: center;
}

.player-national-card__stat-label {
  font-size: 10px;
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.player-national-card__stat-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text-primary);
}

/* Info banner */
.entity-info-banner[hidden] {
  display: none;
}

.entity-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: var(--space-block-gap);
  background: var(--color-white);
  border-radius: var(--radius-card);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.entity-info-banner__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-tab-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.entity-info-banner__text {
  flex: 1;
  margin: 0;
}

.entity-info-banner__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.entity-info-banner--inset {
  margin: 0;
  border-radius: 0;
  border-top: 1px solid var(--color-tab-border);
  background: #f3f4f6;
}

/* Season */
.player-season-filters {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  /* margin-bottom: var(--space-block-gap); */
}

.player-season-filters__select {
  /* flex: 1; */
  min-width: 0;
}

.player-season-filters__select .ui-select-wrap {
  width: 100%;
}

.player-rating-card {
  overflow: hidden;
  background: var(--color-white);
}

.player-rating-card__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--color-tab-border);
}

.player-rating-card__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.player-rating-card__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  font-style: italic;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.player-rating-card__score {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-rating-card__indicator {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  background: #2e9e5b;
}

.player-rating-card__value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  color: var(--color-text-primary);
}

.player-rating-chart {
  padding: 12px 16px 14px;
}

.player-rating-chart__body {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.player-rating-chart__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.player-rating-chart__viewport::-webkit-scrollbar {
  display: none;
}

.player-rating-chart__track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min-content;
}

.player-rating-chart__track--fit {
  width: 100%;
  min-width: 0;
}

.player-rating-chart__headers,
.player-rating-chart__plots {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.player-rating-chart__track--fit .player-rating-chart__headers,
.player-rating-chart__track--fit .player-rating-chart__plots {
  width: 100%;
}

.player-rating-chart__header-col,
.player-rating-chart__plot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 64px;
  width: 64px;
  scroll-snap-align: start;
}

.player-rating-chart__track--fit .player-rating-chart__header-col,
.player-rating-chart__track--fit .player-rating-chart__plot-col {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.player-rating-chart__header-col {
  gap: 8px;
}

.player-rating-chart__date {
  font-size: 11px;
  line-height: 1.2;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.player-rating-chart__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.player-rating-chart__plots {
  position: relative;
  height: 108px;
  padding: 0 4px;
  background: #f3f4f6;
  border-radius: 10px;
}

.player-rating-chart__plot {
  position: relative;
  width: 100%;
  height: 108px;
}

.player-rating-chart__baseline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 0;
  border-top: 2px solid #2e9e5b;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.player-rating-chart__badge {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 2;
  min-width: 38px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.player-rating-chart__scale {
  flex: 0 0 6px;
  width: 6px;
  height: 108px;
  align-self: flex-end;
  border-radius: 3px;
  background: linear-gradient(180deg,
      #1e5bb8 0%,
      #4fc3f7 16%,
      #26a69a 32%,
      #2e9e5b 46%,
      #c9a227 62%,
      #e86a17 78%,
      #e53935 100%);
}

.player-rating-card__info-bar {
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 8px;
}

.entity-info-banner--inset.player-rating-card__info-bar {
  border-top: none;
}

.player-heatmap-card {
  background: var(--color-white);
  overflow: hidden;
}

.player-heatmap-card__summary,
.player-penalty-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.player-heatmap-card__head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player-heatmap-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-heatmap-card__icon svg {
  display: block;
}

.player-heatmap-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-heatmap-card__summary::-webkit-details-marker,
.player-penalty-card__summary::-webkit-details-marker {
  display: none;
}

.player-heatmap-card__chevron,
.player-penalty-card__chevron,
.entity-stat-section__chevron,
.team-stats-section__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

details[open]>summary .player-heatmap-card__chevron,
details[open]>summary .player-penalty-card__chevron,
details[open]>.entity-stat-section__summary .entity-stat-section__chevron,
details[open]>.team-stats-section__summary .team-stats-section__chevron {
  transform: rotate(-135deg);
}

.player-heatmap-card__body {
  padding: 0 12px 12px;
}

.player-heatmap-card__stage {
  padding: 14px 12px 12px;
  background: #d9eeda;
  border-radius: 12px;
}

.player-heatmap-card__direction {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.player-heatmap-card__direction svg {
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.player-heatmap-card__pitch {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.entity-stat-sections .entity-stat-section,
.team-stats-sections .team-stats-section {
  border: 1px solid var(--color-divider);
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.entity-stat-section__summary,
.team-stats-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.entity-stat-section__summary::-webkit-details-marker,
.team-stats-section__summary::-webkit-details-marker {
  display: none;
}

.entity-stat-section__title,
.team-stats-section__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.entity-stat-section__rows,
.team-stats-section__rows {
  margin: 0;
  padding: 0 16px 12px;
}

.entity-stat-section__row,
.team-stats-section__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-tab-border);
}

.entity-stat-section__row:last-child,
.team-stats-section__row:last-child {
  border-bottom: none;
}

.entity-stat-section__label,
.team-stats-section__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.entity-stat-section__value,
.team-stats-section__value {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.player-penalty-card {
  background: var(--color-white);
  overflow: hidden;
}

.player-penalty-card__head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player-penalty-card__icon svg {
  display: block;
}

.player-penalty-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-penalty-card__body {
  padding: 0 12px 12px;
}

.player-penalty-card__pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.player-penalty-card__pills::-webkit-scrollbar {
  display: none;
}

.player-penalty-match-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.player-penalty-match-nav__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

.player-penalty-match-nav__btn--prev {
  border-radius: 8px;
  background: rgba(55, 77, 245, 0.1);
}

.player-penalty-match-nav__btn--next {
  background: transparent;
}

.player-penalty-match-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.player-penalty-match-nav__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.player-penalty-match-nav__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.player-penalty-match-nav__teams img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.player-penalty-match-nav__score {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.player-penalty-match-nav__date {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.player-penalty-goal-stage {
  border-radius: 12px;
  overflow: hidden;
}

.player-penalty-goal-svg {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.player-penalty-marker {
  cursor: pointer;
  outline: none;
}

.player-penalty-marker:focus-visible .player-penalty-marker__ring,
.player-penalty-marker.is-active .player-penalty-marker__ring {
  stroke: var(--color-primary);
}

.player-penalty-marker__ring {
  pointer-events: none;
}

.player-penalty-marker[hidden] {
  display: none;
}

.player-penalty-marker:hover path[fill-rule="evenodd"] {
  opacity: 0.92;
}

.player-penalty-shot-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px auto 0;
  max-width: 280px;
  text-align: center;
}

.player-penalty-shot-details__item {
  margin: 0;
}

.player-penalty-shot-details__item dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.player-penalty-shot-details__item dd {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-penalty-stats-card {
  margin-top: 14px;
  padding: 4px 16px;
  background: #f3f4f6;
  border-radius: 12px;
}

.player-penalty-stats-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: var(--font-size-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.player-penalty-stats-card__row:first-child {
  border-top: none;
}

.player-penalty-stats-card__row dd {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* Matches */
.player-matches-filter {
  /* margin-bottom: var(--space-block-gap); */
}

.player-matches-filter .ui-select-wrap {
  /* width: 100%; */
}

.player-match-row .player-match-event {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}

.player-match-row__rating {
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-match-row__rating-empty {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  background: var(--color-tab-border);
}

.player-match-event--goal {
  border-radius: 50%;
  background: #333;
}

.player-match-event--yellow {
  width: 8px;
  height: 11px;
  border-radius: 1px;
  background: #ffeb3b;
  border: 1px solid #c9a800;
}

.player-match-event--sub {
  font-size: 8px;
  line-height: 12px;
  text-align: center;
  color: var(--color-text-secondary);
}

.player-match-event--sub::before {
  content: "⇄";
}

/* Career */
.player-panel--career {
  gap: var(--space-block-gap);
}

.player-panel--career .entity-info-banner {
  margin-bottom: 0;
}

.player-career-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-career-toolbar__select {
  flex: 1;
  min-width: 0;
}

.player-career-competition-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.player-career-competition-trigger__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-career-toolbar__select .ui-select-wrap {
  width: 100%;
}

.player-career-toolbar__filter {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.player-career-categories {
  margin: 0;
}

.player-career-categories .tournament-pills-segment__track {
  background: #ebebeb;
}

.player-career-card {
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.player-career-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.player-career-table-wrap::-webkit-scrollbar {
  display: none;
}

.player-career-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  table-layout: auto;
}

.player-career-table thead th {
  padding: 10px 6px 8px;
  text-align: left;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: transparent;
  border-bottom: 1px solid var(--color-tab-border);
  white-space: nowrap;
}

.player-career-table thead th:first-child,
.player-career-table tbody td:first-child {
  padding-left: 12px;
}

.player-career-table thead th:last-child,
.player-career-table tbody td:last-child {
  padding-right: 12px;
}

.player-career-table tbody td {
  padding: 10px 6px;
  text-align: left;
  border-bottom: 1px solid var(--color-tab-border);
  white-space: nowrap;
  vertical-align: middle;
}

.player-career-table tbody tr:last-child td {
  border-bottom: none;
}

.player-career-table__season--open td {
  background: rgba(55, 77, 245, 0.03);
}

.player-career-table__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.player-career-table thead th[data-col="year"],
.player-career-table tbody td[data-col="year"] {
  width: 1%;
  white-space: nowrap;
}

.player-career-table thead th[data-col="team"],
.player-career-table tbody td[data-col="team"] {
  min-width: 120px;
  width: auto;
  white-space: nowrap;
}

.player-career-table thead th[data-col]:not([data-col="year"]):not([data-col="team"]),
.player-career-table tbody td[data-col]:not([data-col="year"]):not([data-col="team"]) {
  min-width: 56px;
  padding-left: 10px;
  padding-right: 10px;
}

.player-career-table thead th[data-col="asr"],
.player-career-table tbody td[data-col="asr"] {
  width: 60px;
  padding-left: 12px;
  padding-right: 12px;
}

.player-career-table__teams {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-career-table__teams img {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}

.player-career-table__team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-primary);
  text-decoration: none;
}

.player-career-table__team:hover .player-career-table__team-name {
  color: var(--color-primary);
}

.player-career-table__team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  font-weight: var(--font-weight-semibold);
}

.player-career-table__comp-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.player-career-table__comp-name img {
  flex-shrink: 0;
}

.player-career-table__comp-name>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.player-career-table__chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.player-career-table__toggle--open .player-career-table__chevron {
  transform: rotate(-135deg);
}

.player-career-table__year {
  font-weight: var(--font-weight-semibold);
}

.player-career-table__teams {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.player-career-table__teams img {
  border-radius: 50%;
  object-fit: contain;
}

.player-career-table__comp td {
  background: #fafafa;
}

.player-career-table__comp-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

.player-career-table__comp-name img {
  border-radius: 50%;
  object-fit: contain;
}

.player-career-table__comp-year {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-career-table tbody td[data-col="mp"],
.player-career-table tbody td[data-col="min"],
.player-career-table tbody td[data-col="gls"],
.player-career-table tbody td[data-col="ast"],
.player-career-table tbody td[data-col="tos"],
.player-career-table tbody td[data-col="sot"],
.player-career-table tbody td[data-col="bcm"],
.player-career-table tbody td[data-col="aps"],
.player-career-table tbody td[data-col="aps_pct"],
.player-career-table tbody td[data-col="alb"],
.player-career-table tbody td[data-col="acr"],
.player-career-table tbody td[data-col="ca_pct"],
.player-career-table tbody td[data-col="cls"],
.player-career-table tbody td[data-col="yc"],
.player-career-table tbody td[data-col="2yc"],
.player-career-table tbody td[data-col="rc"],
.player-career-table tbody td[data-col="eltg"],
.player-career-table tbody td[data-col="drp"],
.player-career-table tbody td[data-col="tack"],
.player-career-table tbody td[data-col="int"],
.player-career-table tbody td[data-col="bls"],
.player-career-table tbody td[data-col="adw"] {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-career-table thead th[data-col="mp"],
.player-career-table thead th[data-col="min"],
.player-career-table thead th[data-col="gls"],
.player-career-table thead th[data-col="ast"],
.player-career-table thead th[data-col="asr"],
.player-career-table thead th[data-col="tos"],
.player-career-table thead th[data-col="sot"],
.player-career-table thead th[data-col="bcm"],
.player-career-table thead th[data-col="aps"],
.player-career-table thead th[data-col="aps_pct"],
.player-career-table thead th[data-col="alb"],
.player-career-table thead th[data-col="acr"],
.player-career-table thead th[data-col="ca_pct"],
.player-career-table thead th[data-col="cls"],
.player-career-table thead th[data-col="yc"],
.player-career-table thead th[data-col="2yc"],
.player-career-table thead th[data-col="rc"],
.player-career-table thead th[data-col="eltg"],
.player-career-table thead th[data-col="drp"],
.player-career-table thead th[data-col="tack"],
.player-career-table thead th[data-col="int"],
.player-career-table thead th[data-col="bls"],
.player-career-table thead th[data-col="adw"],
.player-career-table thead th[data-col="shots"],
.player-career-table thead th[data-col="shot_on"],
.player-career-table thead th[data-col="passes"],
.player-career-table thead th[data-col="key_passes"],
.player-career-table thead th[data-col="accuracy"],
.player-career-table thead th[data-col="tackles"],
.player-career-table thead th[data-col="blocks"],
.player-career-table thead th[data-col="interceptions"],
.player-career-table thead th[data-col="yellow"],
.player-career-table thead th[data-col="red"],
.player-career-table tbody td[data-col="mp"],
.player-career-table tbody td[data-col="min"],
.player-career-table tbody td[data-col="gls"],
.player-career-table tbody td[data-col="ast"],
.player-career-table tbody td[data-col="asr"],
.player-career-table tbody td[data-col="tos"],
.player-career-table tbody td[data-col="sot"],
.player-career-table tbody td[data-col="bcm"],
.player-career-table tbody td[data-col="aps"],
.player-career-table tbody td[data-col="aps_pct"],
.player-career-table tbody td[data-col="alb"],
.player-career-table tbody td[data-col="acr"],
.player-career-table tbody td[data-col="ca_pct"],
.player-career-table tbody td[data-col="cls"],
.player-career-table tbody td[data-col="yc"],
.player-career-table tbody td[data-col="2yc"],
.player-career-table tbody td[data-col="rc"],
.player-career-table tbody td[data-col="eltg"],
.player-career-table tbody td[data-col="drp"],
.player-career-table tbody td[data-col="tack"],
.player-career-table tbody td[data-col="int"],
.player-career-table tbody td[data-col="bls"],
.player-career-table tbody td[data-col="adw"],
.player-career-table tbody td[data-col="shots"],
.player-career-table tbody td[data-col="shot_on"],
.player-career-table tbody td[data-col="passes"],
.player-career-table tbody td[data-col="key_passes"],
.player-career-table tbody td[data-col="accuracy"],
.player-career-table tbody td[data-col="tackles"],
.player-career-table tbody td[data-col="blocks"],
.player-career-table tbody td[data-col="interceptions"],
.player-career-table tbody td[data-col="yellow"],
.player-career-table tbody td[data-col="red"] {
  text-align: right;
}

.player-career-table__col-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.player-career-table thead th[data-col="mp"] .player-career-table__col-label,
.player-career-table thead th[data-col="min"] .player-career-table__col-label,
.player-career-table thead th[data-col="gls"] .player-career-table__col-label,
.player-career-table thead th[data-col="ast"] .player-career-table__col-label,
.player-career-table thead th[data-col="asr"] .player-career-table__col-label,
.player-career-table thead th[data-col="tos"] .player-career-table__col-label,
.player-career-table thead th[data-col="sot"] .player-career-table__col-label,
.player-career-table thead th[data-col="bcm"] .player-career-table__col-label,
.player-career-table thead th[data-col="aps"] .player-career-table__col-label,
.player-career-table thead th[data-col="aps_pct"] .player-career-table__col-label,
.player-career-table thead th[data-col="alb"] .player-career-table__col-label,
.player-career-table thead th[data-col="acr"] .player-career-table__col-label,
.player-career-table thead th[data-col="ca_pct"] .player-career-table__col-label,
.player-career-table thead th[data-col="cls"] .player-career-table__col-label,
.player-career-table thead th[data-col="yc"] .player-career-table__col-label,
.player-career-table thead th[data-col="2yc"] .player-career-table__col-label,
.player-career-table thead th[data-col="rc"] .player-career-table__col-label,
.player-career-table thead th[data-col="eltg"] .player-career-table__col-label,
.player-career-table thead th[data-col="drp"] .player-career-table__col-label,
.player-career-table thead th[data-col="tack"] .player-career-table__col-label,
.player-career-table thead th[data-col="int"] .player-career-table__col-label,
.player-career-table thead th[data-col="bls"] .player-career-table__col-label,
.player-career-table thead th[data-col="adw"] .player-career-table__col-label,
.player-career-table thead th[data-col="shots"] .player-career-table__col-label,
.player-career-table thead th[data-col="shot_on"] .player-career-table__col-label,
.player-career-table thead th[data-col="passes"] .player-career-table__col-label,
.player-career-table thead th[data-col="key_passes"] .player-career-table__col-label,
.player-career-table thead th[data-col="accuracy"] .player-career-table__col-label,
.player-career-table thead th[data-col="tackles"] .player-career-table__col-label,
.player-career-table thead th[data-col="blocks"] .player-career-table__col-label,
.player-career-table thead th[data-col="interceptions"] .player-career-table__col-label,
.player-career-table thead th[data-col="yellow"] .player-career-table__col-label,
.player-career-table thead th[data-col="red"] .player-career-table__col-label {
  justify-content: flex-end;
}

.entity-rating-badge.player-career-table__rating,
.player-career-table__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-white);
}

.player-career-table__rating-empty {
  color: var(--color-text-secondary);
}

.player-career-legend {
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
}

.player-career-legend__title {
  margin: 0 0 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.player-career-legend__list {
  margin: 0;
}

.player-career-legend__item {
  display: flex;
  gap: 8px;
  font-size: var(--font-size-xs);
  padding: 3px 0;
}

.player-career-legend__item dt {
  font-weight: var(--font-weight-semibold);
  min-width: 36px;
  color: var(--color-text-primary);
}

.player-career-legend__item dd {
  margin: 0;
  color: var(--color-text-secondary);
}

.player-career-competition-modal::part(content) {
  --border-radius: 16px 16px 0 0;
}

.player-career-competition-modal__inner {
  min-height: 100%;
  background: var(--color-white);
}

.player-career-filter-modal {
  --border-radius: 18px 18px 0 0;
}

.player-career-filter-modal__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  box-sizing: border-box;
  overflow: hidden;
}

.player-career-filter-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.player-career-filter-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}

.player-career-filter-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-career-filter-modal__close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1;
}

.player-career-filter-modal__section {
  padding: 12px 20px;
}

.player-career-filter-modal__section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-career-filter-range {
  padding: 4px 0 8px;
}

.player-career-filter-range__label {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.player-career-filter-range__track {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.player-career-filter-range__track::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-tab-border);
  top: 50%;
  transform: translateY(-50%);
}

.player-career-filter-range__track-fill {
  position: absolute;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.player-career-filter-range__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 24px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.player-career-filter-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.player-career-filter-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.player-career-filter-range__input::-webkit-slider-runnable-track {
  background: transparent;
  height: 24px;
}

.player-career-filter-range__input::-moz-range-track {
  background: transparent;
  height: 24px;
}

.player-career-filter-field {
  display: block;
  background: var(--color-tab-bg);
  border-radius: 12px;
  padding: 10px 14px;
}

.player-career-filter-field__label {
  display: block;
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.player-career-filter-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.player-career-filter-field__select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  padding-right: 24px;
  cursor: pointer;
}

.player-career-filter-field__control .ui-select__button-arrow {
  position: absolute;
  right: 0;
  pointer-events: none;
}

.player-career-filter-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-career-filter-radio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.player-career-filter-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.player-career-filter-radio__indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-tab-border);
  background: var(--color-white);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.player-career-filter-radio input:checked+.player-career-filter-radio__indicator {
  border-color: var(--color-primary);
}

.player-career-filter-radio input:checked+.player-career-filter-radio__indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-primary);
}

.player-career-filter-radio__label {
  font-size: 14px;
  color: var(--color-text-primary);
}

.player-career-filter-modal__section--buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.player-career-filter-modal__section--buttons .player-career-filter-modal__btn {
  flex: none;
  min-width: 120px;
}

.player-career-filter-modal__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  transition: filter 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.player-career-filter-modal__btn--reset {
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
}

.player-career-filter-modal__btn--apply {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.player-career-filter-modal__btn--reset:hover,
.player-career-filter-modal__btn--apply:hover {
  filter: brightness(0.95);
}

.player-career-filter-modal__btn--reset:active,
.player-career-filter-modal__btn--apply:active {
  filter: brightness(0.9);
}

.player-career-competition-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-tab-border);
}

.player-career-competition-modal__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.player-career-competition-modal__close {
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
}

.player-career-competition-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #edf0f5;
  border-radius: 999px;
}

.player-career-competition-modal__tab {
  border: none;
  border-radius: 999px;
  min-height: 32px;
  background: transparent;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.player-career-competition-modal__tab--active {
  background: #202025;
  color: #fff;
}

.player-career-competition-modal__group {
  border-top: 1px solid var(--color-tab-border);
  padding: 14px 0;
}

.player-career-competition-modal__group-title {
  margin: 0 0 8px;
  padding: 0 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.player-career-competition-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
  border: none;
  background: var(--color-white);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  text-align: left;
}

.player-career-competition-option--active {
  background: #eef2f7;
}

.player-career-competition-option img {
  object-fit: contain;
}

/* Fantasy */
.player-fantasy-select-card {
  padding: 8px !important;
}

.player-fantasy-overview-card .tournament-card__title,
.player-fantasy-results-card .tournament-card__title {
  padding: 14px 16px 4px;
}

.stat-grid--fantasy {
  padding: 4px 12px 16px;
  gap: 14px 6px;
}

.stat-grid--fantasy .stat-grid__item {
  align-items: center;
}

.stat-grid--fantasy .stat-grid__label {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.stat-grid--fantasy .stat-grid__value {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.stat-grid--fantasy .stat-grid__value--position {
  font-size: var(--font-size-md);
}

.player-fantasy-results {
  padding-bottom: 4px;
}

.fantasy-result-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto auto auto 16px;
  align-items: center;
  gap: 10px 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-top: 1px solid var(--color-tab-border);
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
}

.fantasy-result-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.fantasy-result-row:first-child {
  border-top: none;
}

.fantasy-result-row__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fantasy-result-row__round {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}

.fantasy-result-row__datetime {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--color-text-secondary);
}

.fantasy-result-row__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
}

.fantasy-result-row__logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
}

.fantasy-result-row__score {
  min-width: 28px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.fantasy-result-row__result {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-white);
}

.fantasy-result-row__result--win {
  background: #1fbb64;
}

.fantasy-result-row__result--draw {
  background: #9da3a8;
}

.fantasy-result-row__result--loss {
  background: #e02020;
}

.fantasy-result-row__points {
  min-width: 40px;
  text-align: right;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  white-space: nowrap;
}

.fantasy-result-row__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1;
}

.fantasy-result-row__chevron::before {
  content: "›";
  font-weight: var(--font-weight-semibold);
}

/* Fantasy points breakdown modal */
.fantasy-points-modal__inner {
  padding: 8px var(--space-page) calc(24px + env(safe-area-inset-bottom, 0px));
}

.fantasy-points-modal__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  background: #d1d5db;
  border-radius: 2px;
}

.fantasy-points-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fantasy-points-modal__heading {
  min-width: 0;
}

.fantasy-points-modal__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
}

.fantasy-points-modal__round {
  margin: 2px 0 0;
  font-size: var(--font-size-sm);
  line-height: 1.25;
  color: var(--color-text-secondary);
}

.fantasy-points-modal__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

.fantasy-points-modal__match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #f2f2f7;
  border-radius: 12px;
}

.fantasy-points-modal__match-text {
  flex: 1;
  min-width: 0;
}

.fantasy-points-modal__match-title {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.fantasy-points-modal__match-date {
  margin: 3px 0 8px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--color-text-secondary);
}

.fantasy-points-modal__score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.fantasy-points-modal__team-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.fantasy-points-modal__score {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.fantasy-points-modal__total {
  flex-shrink: 0;
  margin: 0;
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.fantasy-points-modal__table {
  --fantasy-points-col-value: 92px;
  --fantasy-points-col-pts: 28px;
}

.fantasy-points-modal__table-head,
.fantasy-points-modal__stat-row {
  display: grid;
  grid-template-columns: 1fr var(--fantasy-points-col-value) var(--fantasy-points-col-pts);
  column-gap: 10px;
  align-items: center;
}

.fantasy-points-modal__table-head {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.fantasy-points-modal__table-head span:nth-child(2),
.fantasy-points-modal__table-head span:nth-child(3) {
  text-align: right;
}

.fantasy-points-modal__table-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fantasy-points-modal__table-body--counted {
  margin-bottom: 2px;
}

.fantasy-points-modal__stat-label {
  font-size: var(--font-size-sm);
  line-height: 1.3;
  color: var(--color-text-secondary);
}

.fantasy-points-modal__table-body--counted .fantasy-points-modal__stat-label {
  color: var(--color-text-primary);
}

.fantasy-points-modal__stat-value {
  justify-self: end;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  text-align: right;
  color: var(--color-text-primary);
}

.fantasy-points-modal__stat-points {
  justify-self: end;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  text-align: right;
  color: var(--color-text-primary);
}

.entity-rating-badge--breakdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-white);
}

.fantasy-points-modal__section-label {
  margin: 16px 0 12px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-secondary);
}

.fantasy-points-modal__table-body--uncounted.fantasy-points-modal__table-body--collapsed .fantasy-points-modal__stat-row:nth-child(n + 4) {
  display: none;
}

.fantasy-points-modal__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 4px 0 0;
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

.fantasy-points-modal__toggle-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
}

.fantasy-points-modal__toggle--collapsed .fantasy-points-modal__toggle-icon {
  margin-top: -3px;
  transform: rotate(45deg);
}

.team-squad-list__name--link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.team-squad-list__name--link:hover {
  text-decoration: underline;
}

/* Match detail page */
.football-match-page {
  background: var(--color-tab-border);
  padding-bottom: var(--space-section);
}

.match-hero {
  background: var(--color-surface);
  padding-bottom: 8px;
  text-align: center;
}

.match-hero .breadcrumb {
  text-align: left;
}

.match-hero__kickoff {
  margin: 0;
  padding: 10px var(--space-page) 6px;
  text-align: center;
}

.match-hero__kickoff-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #f0f2f5;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-tight);
  color: #22252a;
  letter-spacing: 0.01em;
}

.match-hero__scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  padding: 12px var(--space-page);
}

.match-hero__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.match-hero__team--away {
  text-align: center;
}

.match-hero__logo {
  border-radius: 50%;
  object-fit: cover;
}

.match-hero__team-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.match-hero__center {
  padding-top: 4px;
}

.match-hero__score {
  margin: 0;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0.02em;
}

.match-hero__status {
  margin: 6px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.match-hero__phase {
  margin: 2px 0 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.match-hero__goal-events {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4px 8px;
  align-items: start;
  padding: 0 var(--space-page) 12px;
}

.match-hero__goal-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-hero__goal-list--home {
  align-items: flex-end;
  text-align: right;
}

.match-hero__goal-list--away {
  align-items: flex-start;
  text-align: left;
}

.match-hero__goal-item-wrap {
  max-width: 100%;
}

.match-hero__goal-item {
  display: inline-block;
  max-width: 100%;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.match-hero__goal-item:hover {
  color: var(--color-text);
}

.match-hero__goal-item-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-hero__goal-divider {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1px;
  color: #8e8e8e;
}

.match-hero__goal-divider .match-commentary-icon svg {
  width: 14px;
  height: 14px;
}

.match-hero__scorers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 4px var(--space-page) 12px;
}

.match-hero__scorer {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-decoration: none;
}

.match-hero__scorer-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.match-hero__scorer-min {
  color: var(--color-text-muted);
}

.match-hero__scorer-ball {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text);
  flex-shrink: 0;
}

.match-sticky-bar .scroll-tabs-wrap {
  box-shadow: none;
}

.match-tab-panel {
  padding: var(--space-tab-gap) var(--space-block-gap) var(--space-section);
}

.match-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.match-panel--lineups,
.match-panel--statistics,
.match-panel--standings,
.match-panel--commentary {
  gap: 0;
}

.match-lineups-panels {
  margin-top: var(--space-block-gap);
}

.match-lineups-panels>.match-lineups-panel>.match-lineups-pitch-card {
  margin-top: 0;
}

.match-lineups-team-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.match-panel--lineups>.match-lineups-team-stack {
  margin-top: var(--space-block-gap);
}

/* Match page: unified card section titles */
#football-match-page .match-details-card__title,
#football-match-page .match-stat-section-card__title,
#football-match-page .match-avg-positions-block__title,
#football-match-page .match-lineups-injuries-card__title,
#football-match-page .match-lineups-subs-card__heading,
#football-match-page .entity-matches-card__title,
#football-match-page .match-card__title,
#football-match-page .player-heatmap-card__title,
#football-match-page .tournament-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-align: center;
  width: 100%;
}

#football-match-page .match-stat-section-card__header--team-toggle .match-stat-section-card__title {
  margin-bottom: 0;
}

#football-match-page .match-avg-positions-block__title {
  padding-top: 14px;
  padding-bottom: 10px;
}

.match-stats-period-scroll,
.match-commentary-filter-scroll,
.match-standings-view-scroll {
  margin-bottom: 0;
}

[data-standings-view-panel][hidden] {
  display: none !important;
}

.match-stats-period-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-block-gap);
}

.match-panel--statistics>.match-stats-period-scroll+.match-stats-period-panel {
  margin-top: var(--space-block-gap);
}


.match-stat-section-card {
  padding: 14px 16px;
}

.match-stat-empty {
  margin: 0;
  padding: 8px 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
}

.match-stat-section-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.match-stat-section-card__header--center-only,
.match-stat-section-card__header--team-toggle {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.match-stat-section-card__header--team-toggle .match-stat-section-card__title,
.match-stat-section-card__header--center-only .match-stat-section-card__title {
  flex: none;
}

.match-stat-section-card__header--team-toggle .match-team-switcher {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.match-stat-section-card__title {
  margin: 0;
  flex: 1;
}

.match-card__title {
  margin: 0 0 12px;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.match-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
}

.match-card-link__chevron {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* Match statistics: comparison bar & metric rows */
.match-stat-section-card--center-title .match-stat-section-card__header--center-only {
  justify-content: center;
}

.match-comparison-bar {
  margin-bottom: 14px;
}

.match-comparison-bar__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.2fr) 1fr;
  align-items: center;
  column-gap: 8px;
  margin-bottom: 10px;
}

.match-comparison-bar--inline .match-comparison-bar__head .match-comparison-bar__label {
  margin: 0;
}

.match-comparison-bar--inline .match-comparison-bar__head .match-comparison-bar__pill--home {
  justify-self: start;
}

.match-comparison-bar--inline .match-comparison-bar__head .match-comparison-bar__pill--away {
  justify-self: end;
}

.match-comparison-bar__label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #000;
  line-height: 1.2;
}

.match-comparison-bar__pills {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.match-comparison-bar--thick .match-comparison-bar__track {
  height: 10px;
  background: transparent;
}

.match-comparison-bar--thick .match-comparison-bar__fill--home {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.match-comparison-bar--thick .match-comparison-bar__fill--away {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.match-comparison-bar__pill {
  min-width: 44px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-align: center;
  color: #fff;
}

.match-comparison-bar__pill--home {
  background: #5cb85c;
}

.match-comparison-bar__pill--away {
  background: #6fa8dc;
}

.match-comparison-bar__track {
  display: flex;
  height: 8px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #f0f0f0;
}

.match-comparison-bar__fill {
  height: 100%;
  min-width: 0;
}

.match-comparison-bar__fill--home {
  background: #5cb85c;
}

.match-comparison-bar__fill--away {
  background: #6fa8dc;
}

.match-stat-metric-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-stat-metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.match-stat-metric-row__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.4fr) 1fr;
  align-items: center;
  column-gap: 8px;
  margin-bottom: 8px;
}

.match-stat-metric-row__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #000;
  line-height: 1.2;
}

.match-stat-metric-row__val {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: #000;
}

.match-stat-metric-row__val--home {
  text-align: left;
}

.match-stat-metric-row__val--away {
  text-align: right;
}

.match-stat-metric-row__info {
  display: inline-flex;
  color: #3355ff;
  line-height: 0;
}

.match-stat-metric-row__bars {
  display: flex;
  gap: 10px;
  align-items: center;
}

.match-stat-metric-row__side {
  flex: 1;
  min-width: 0;
}

.match-stat-metric-row__side--home .match-stat-metric-row__track {
  display: flex;
  justify-content: flex-end;
}

.match-stat-metric-row__side--away .match-stat-metric-row__track {
  display: flex;
  justify-content: flex-start;
}

.match-stat-metric-row__track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #f0f0f0;
}

.match-stat-metric-row__fill {
  height: 100%;
  min-width: 0;
  border-radius: 3px;
  max-width: 100%;
}

.match-stat-metric-row__fill--home.is-strong {
  background: #28a745;
}

.match-stat-metric-row__fill--home.is-muted {
  background: rgba(40, 167, 69, 0.28);
}

.match-stat-metric-row__fill--away.is-strong {
  background: #3355ff;
}

.match-stat-metric-row__fill--away.is-muted {
  background: rgba(51, 85, 255, 0.28);
}

/* Pitch & lineups — dual-team performance card */
.match-lineups-pitch-card {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.match-lineups-pitch-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-white);
}

.match-lineups-pitch-band__lead {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.match-lineups-pitch-band__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-lineups-pitch-band__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  text-decoration: none;
  flex-shrink: 0;
}

.match-lineups-pitch-band__team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.match-lineups-pitch-band__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.match-lineups-pitch-band__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.match-lineups-pitch-band__swatch--home-green {
  background: #43a047;
}

.match-lineups-pitch-band__swatch--away-orange {
  background: #f9a825;
}

.match-lineups-pitch-band__rating-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #22252a;
  font-variant-numeric: tabular-nums;
}

.match-lineups-pitch-band__info {
  display: inline-flex;
  color: #3b82f6;
}

.match-lineups-pitch-band__formation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
}

.match-lineups-pitch-band__kit {
  width: 14px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.match-lineups-pitch-band__kit--espanyol {
  background: repeating-linear-gradient(90deg, #1e4fd8 0 3px, #fff 3px 6px);
}

.match-lineups-pitch-band__kit--athletic {
  background: repeating-linear-gradient(90deg, #c62828 0 3px, #fff 3px 6px);
}

.match-lineups-pitch-card__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 6px 14px;
  background: #3d8b45;
  overflow: visible;
}

.match-lineups-pitch-card__markings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.match-lineups-pitch-card__half-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.match-lineups-pitch-card__center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.match-lineups-pitch-card__box {
  position: absolute;
  left: 16%;
  right: 16%;
  height: 18%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.match-lineups-pitch-card__box--top {
  top: 0;
  border-top: none;
}

.match-lineups-pitch-card__box--bottom {
  bottom: 0;
  border-bottom: none;
}

.match-lineups-pitch-card__zone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px 0;
}

.match-lineups-pitch-card__line {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-height: 74px;
  flex-shrink: 0;
}

.match-lineups-pitch-card__line--spread {
  justify-content: space-evenly;
  gap: 4px;
  padding: 0 2px;
}

.match-lineups-pitch-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  max-width: 22vw;
  text-decoration: none;
  color: #fff;
}

.match-lineups-pitch-player__figure {
  position: relative;
  display: inline-flex;
}

.match-lineups-pitch-player__avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #2e5e34;
}

.match-lineups-pitch-player__rating {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.match-lineups-pitch-player__rating--elite,
.match-lineups-pitch-player__rating--potm {
  background: #00b5bd;
}

.match-lineups-pitch-player__rating--high {
  background: #43a047;
}

.match-lineups-pitch-player__rating--mid {
  background: #f9a825;
}

.match-lineups-pitch-player__rating--low {
  background: #e53935;
}

.match-lineups-pitch-player__star {
  font-size: 8px;
  line-height: 1;
}

.match-lineups-pitch-player__label {
  max-width: 100%;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-lineups-pitch-player__event {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.match-lineups-pitch-player__event--sub {
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #e53935 50%, #43a047 50%);
}

.match-lineups-pitch-player__event--injury {
  top: -2px;
  left: -2px;
  background: #fff;
}

.match-lineups-pitch-player__event--injury::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #e53935;
  line-height: 1;
}

.match-lineups-pitch-player__event--goal {
  top: -2px;
  left: -2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23222'/%3E%3C/svg%3E") center/10px no-repeat;
}

.match-lineups-panel>.match-lineups-pitch-card {
  margin-top: 0;
}

.match-player-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-player-list-row:last-child {
  border-bottom: none;
}

.match-player-list-row__player {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.match-player-list-row__avatar {
  border-radius: 50%;
  object-fit: cover;
}

.match-player-list-row__sub {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.match-player-list-row__sub--in {
  background: #4caf50;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.match-player-list-row__sub--out {
  background: #e53935;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Lineups: average positions block (bottom of tab) */
.match-panel--lineups>.match-avg-positions-block {
  margin-top: var(--space-block-gap);
}

.match-avg-positions-block {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.match-avg-positions-block__title {
  margin: 0;
  padding: 14px 16px 10px;
}

.match-avg-positions-block .match-team-switcher {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 0 12px 10px;
  box-sizing: border-box;
}

.match-avg-positions-block__stage {
  background: #4a8b5f;
}

.match-avg-positions-pitch__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 10px;
}

.match-avg-positions-pitch__filter-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.match-avg-positions-pitch__filter-btn--active {
  background: #214999;
}

.match-avg-positions-pitch__filter-btn--muted {
  background: rgba(33, 73, 153, 0.42);
}

.match-avg-positions-pitch__field {
  padding: 0 12px 16px;
}

.match-avg-positions-pitch__surface {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #4a8b5f;
}

.match-avg-positions-pitch__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.match-avg-positions-pitch__dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: 1;
  z-index: 2;
}

.match-avg-positions-pitch__dot--gk {
  background: #7a2f52;
  z-index: 3;
}

.match-avg-positions-pitch__dot--player,
.match-avg-positions-pitch__dot--sub-active {
  background: #214999;
}

.match-avg-positions-pitch__dot--sub-muted,
.match-avg-positions-pitch__dot--filterable.is-muted {
  background: rgba(33, 73, 153, 0.42);
}

.match-lineups-panel__hint {
  margin: 0;
  padding: 16px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
}

/* Match Details tab */
.match-details-card {
  padding: 14px 16px;
}

.match-details-card__title {
  margin: 0 0 12px;
}


.match-details-card__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
}

/* Asian handicap */
.match-handicap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-handicap-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 12px 10px;
  border: 1px solid var(--color-tab-border);
  border-radius: var(--radius-md);
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.match-handicap-box:hover {
  background: #eeeeee;
}

.match-handicap-box__team {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.3;
}

.match-handicap-box__odds {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.match-handicap-box__value {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.match-handicap-box__trend {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  flex-shrink: 0;
}

.match-handicap-box__odds--up .match-handicap-box__trend {
  border-bottom: 6px solid #2e7d32;
}

.match-handicap-box__odds--down .match-handicap-box__trend {
  border-top: 6px solid #c62828;
}

/* Attack momentum */

.match-details-card--momentum {
  padding: 10px 8px 12px;
}

.match-momentum {
  --colors-home-away-home-primary: #52b552;
  --colors-home-away-away-primary: #5b6abf;
}

.match-momentum__grid {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 5px;
  row-gap: 0;
}

.match-momentum__events--home {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 6px;
}

.match-momentum__logos {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  height: 84px;
}

.match-momentum__chart {
  grid-column: 2;
  grid-row: 2;
}

.match-momentum__events--away {
  grid-column: 2;
  grid-row: 3;
  margin-top: 6px;
}

.match-momentum__logo-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.match-momentum__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.match-momentum__logo-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Goal icons: align with chart halves */
.match-momentum__events {
  display: flex;
  gap: 1px;
  height: 14px;
}

.match-momentum__events-half {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 16px;
}

.match-momentum__event {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  line-height: 0;
}

.match-momentum__event-icon,
.match-momentum__ball-icon {
  display: block;
  width: 14px;
  height: 14px;
}

.match-momentum__event--home .match-momentum__event-icon {
  fill: var(--colors-home-away-home-primary);
}

.match-momentum__event--away .match-momentum__event-icon {
  fill: var(--colors-home-away-away-primary);
}

.match-momentum__card-icon {
  display: block;
  width: 8px;
  height: 12px;
  margin: 1px auto 0;
  border-radius: 1px;
}

.match-momentum__card-icon--yellow {
  background: #f1c40f;
}

.match-momentum__card-icon--red {
  background: #d93025;
}

.match-momentum__var-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 12px;
  margin-left: -2px;
  border-radius: 2px;
  background: #3355ff;
  color: #fff;
  font-size: 7px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.match-momentum__finish-icon {
  display: block;
  width: 14px;
  height: 14px;
  color: #d93025;
}

/* Chart: two halves with white gap */
.match-momentum__chart {
  display: flex;
  gap: 1px;
  min-width: 0;
  height: 84px;
  background: transparent;
}

.match-momentum__half {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  border-left: 1px solid rgba(0, 0, 0, 0.35);
  background: #fff;
}

.match-momentum__chart-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.match-momentum__chart-bg-half {
  flex: 1;
  min-height: 0;
}

.match-momentum__chart-bg-half--home {
  background: #edf7ed;
}

.match-momentum__chart-bg-half--away {
  background: #eceef8;
}

.match-momentum__bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
  padding: 0 1px;
}

.match-momentum__tick {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.match-momentum__tick-half {
  flex: 1;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.match-momentum__tick-half--home {
  align-items: flex-end;
  padding-bottom: 0;
}

.match-momentum__tick-half--away {
  align-items: flex-start;
  padding-top: 0;
}

.match-momentum__bar {
  display: block;
  flex-shrink: 0;
  width: 2px;
  max-width: 100%;
  min-height: 2px;
  border-radius: 1px 1px 0 0;
}

.match-momentum__bar--home {
  max-height: 100%;
  background: #52b552;
}

.match-momentum__bar--away {
  max-height: 100%;
  border-radius: 0 0 1px 1px;
  background: #5b6abf;
}

/* Player of the match */
.match-details-card--pom {
  padding: 0;
  overflow: hidden;
}

.match-pom-card {
  position: relative;
  min-height: 118px;
  background: #fff;
}

.match-pom-card__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.match-pom-card__pattern svg {
  display: block;
  width: 100%;
  height: 100%;
}

.match-pom-card__inner {
  position: relative;
  z-index: 1;
  padding: 16px 16px 18px;
}

.match-pom-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.match-pom-card__star {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00b5bd;
  color: #fff;
}

.match-pom-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #22252a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.match-pom-card__player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-pom-card__avatar-link {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.match-pom-card__avatar {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8ecef;
  background: #f5f7fa;
}

.match-pom-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-pom-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #22252a;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.match-pom-card__name:hover {
  text-decoration: underline;
}

.match-pom-card__team {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-pom-card__team-logo {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
}

.match-pom-card__team-name {
  font-size: 13px;
  font-weight: var(--font-weight-regular);
  color: #6b7280;
  text-decoration: none;
  line-height: 1.2;
}

.match-pom-card__team-name:hover {
  text-decoration: underline;
}

.match-pom-card__rating {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  margin-left: auto;
  border-radius: 5px;
  background: #00b5bd;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Match events timeline (Details tab) */
.match-details-card--timeline {
  padding: 12px 16px 16px;
}

.match-timeline {
  font-size: 13px;
  line-height: 1.3;
}

.match-timeline__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.match-timeline__divider-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.match-timeline__divider-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #22252a;
  letter-spacing: 0.01em;
}

.match-timeline__divider--ht .match-timeline__divider-label {
  font-weight: 600;
  color: #6b7280;
}

.match-timeline__addon {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.match-timeline__addon-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: #f0f2f5;
  color: #6b7280;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
}

.match-timeline__row {
  display: flex;
  align-items: stretch;
  min-height: 36px;
  padding: 8px 0;
}

.match-timeline__lane {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.match-timeline__lane--home {
  justify-content: flex-start;
  padding-right: 8px;
}

.match-timeline__lane--away {
  justify-content: flex-end;
  padding-left: 8px;
}

.match-timeline__line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.match-timeline__line--away {
  grid-template-columns: minmax(0, 1fr) auto;
}

.match-timeline__min {
  flex-shrink: 0;
  min-width: 44px;
  font-size: 13px;
  font-weight: 700;
  color: #22252a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}

.match-timeline__min-extra {
  font-size: 0.68em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -0.35em;
  margin-left: 1px;
}

.match-timeline__line--away .match-timeline__min {
  text-align: right;
  grid-column: 2;
  grid-row: 1;
}

.match-timeline__line--away .match-timeline__content--away {
  grid-column: 1;
  grid-row: 1;
}

.match-timeline__content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.match-timeline__content--home {
  justify-content: flex-start;
}

.match-timeline__content--away {
  justify-content: flex-end;
}

.match-timeline__icon-slot {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.match-timeline__icon-slot:empty {
  display: none;
}

.match-timeline__svg {
  flex-shrink: 0;
  display: block;
}

.match-timeline__svg--goal {
  color: #22252a;
}

.match-timeline__svg--yellow {
  color: #f9a825;
}

.match-timeline__svg--var {
  color: #374df5;
}

.match-timeline__score-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-grow: 0;
  padding: 4px 10px 4px 8px;
  border: 1px solid #374df5;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #374df5;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.match-timeline__score-play {
  flex-shrink: 0;
  display: block;
}

.match-timeline__score-text {
  white-space: nowrap;
}

.match-timeline__names {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

.match-timeline__content--away .match-timeline__names {
  justify-content: flex-end;
}

.match-timeline__names--sub {
  gap: 6px;
}

.match-timeline__player,
.match-timeline__assist {
  white-space: nowrap;
}

.match-timeline__player {
  font-weight: 600;
  color: #22252a;
  text-decoration: none;
}

.match-timeline__player:hover {
  text-decoration: underline;
}

.match-timeline__assist {
  font-weight: var(--font-weight-regular);
  color: #9ca3af;
  text-decoration: none;
}

.match-timeline__assist:hover {
  text-decoration: underline;
  color: #6b7280;
}

/* Highest-rated players */
.match-details-card--top-rated {
  padding-bottom: 14px;
}

.match-details-card__footer-link--center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.match-top-rated {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 0;
}

.match-top-rated__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.match-top-rated__row {
  display: grid;
  align-items: center;
  column-gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  overflow: hidden;
}

.match-top-rated__row--home {
  grid-template-columns: auto 36px minmax(0, 1fr);
  justify-items: start;
}

.match-top-rated__row--away {
  grid-template-columns: minmax(0, 1fr) 36px auto;
  justify-items: end;
}

.match-top-rated__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.match-top-rated__name {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.match-top-rated__row--home .match-top-rated__name {
  text-align: left;
  justify-self: stretch;
}

.match-top-rated__row--away .match-top-rated__name {
  text-align: right;
  justify-self: stretch;
  grid-column: 1;
}

.match-top-rated__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 30px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.match-top-rated__rating--elite {
  background: #00b5bd;
}

.match-top-rated__rating--high {
  background: #43a047;
}

.match-top-rated__rating--mid {
  background: #f9a825;
}

.match-top-rated__rating--low {
  background: #e53935;
}

/* Prematch standings */
.match-details-card--prematch .match-details-card__footer-link--center {
  margin-top: 12px;
}

.match-prematch-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--font-size-xs);
}

.match-prematch-table th {
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  text-align: left;
  vertical-align: bottom;
}

.match-prematch-table td {
  padding: 12px 0;
  vertical-align: middle;
  border-top: 1px solid var(--color-tab-border);
}

.match-prematch-table__team-hd {
  width: 96px;
}

.match-prematch-table__latest-hd {
  width: auto;
}

.match-prematch-table__rating-hd {
  width: 52px;
}

.match-prematch-table__pts-hd {
  width: 36px;
  text-align: right;
}

.match-prematch-table__team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.match-prematch-table__team-link img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.match-prematch-table__team-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.match-prematch-table__rank {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.match-prematch-table__name {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  line-height: 1.25;
  word-break: break-word;
}

.match-prematch-table__team-link:hover .match-prematch-table__name {
  text-decoration: underline;
}

.match-prematch-table__latest {
  text-align: left;
}

.match-prematch-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.match-prematch-table__rating {
  text-align: right;
  white-space: nowrap;
  overflow: visible;
}

.match-prematch-table__rating-icon {
  display: inline-block;
  width: 12px;
  height: 14px;
  margin-right: 5px;
  border-radius: 2px;
  background: #f9a825;
  vertical-align: middle;
  flex-shrink: 0;
}

.match-prematch-table__rating-value {
  font-size: 13px;
  font-weight: 700;
  color: #22252a;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.match-prematch-table__pts {
  text-align: right;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  font-variant-numeric: tabular-nums;
}

/* Live Details — prematch standings */
.match-details-card--prematch-live {
  padding: 14px 16px 12px;
}

.match-prematch-table--live {
  table-layout: auto;
}

.match-prematch-table--live th {
  padding: 0 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #757575;
  border: none;
}

.match-prematch-table--live td {
  padding: 11px 4px;
  border-top: 1px solid #eeeeee;
}

.match-prematch-table--live tbody tr:first-child td {
  border-top: none;
}

.match-prematch-table--live .match-prematch-table__rank-hd {
  width: 28px;
  text-align: center;
  padding-left: 0;
}

.match-prematch-table--live .match-prematch-table__logo-hd {
  width: 40px;
  padding-left: 0;
}

.match-prematch-table--live .match-prematch-table__latest-hd {
  padding-left: 2px;
}

.match-prematch-table--live .match-prematch-table__pts-hd {
  width: 32px;
  text-align: right;
  padding-right: 0;
}

.match-prematch-table--live .match-prematch-table__rank-col {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.match-prematch-table--live .match-prematch-table__logo-col {
  width: 40px;
  padding-left: 0;
  padding-right: 0;
  vertical-align: middle;
}

.match-prematch-table--live .match-prematch-table__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.match-prematch-table--live .match-prematch-table__logo-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.match-prematch-table--live .match-prematch-form {
  gap: 3px;
}

.match-prematch-table--live .tournament-form {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 9px;
}

.match-prematch-table--live .tournament-standings-form__slot {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #e8eaed;
}

.match-prematch-table--live .match-prematch-table__pts {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  padding-right: 0;
}

.match-details-card--prematch-live .match-details-card__footer-link--center {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

/* Live Details — full-time odds */
.match-details-card--live-odds {
  padding: 14px 16px 12px;
}

.match-details-live-odds__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.match-details-live-odds__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.match-details-live-odds__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: rgba(229, 233, 239, 0.5);
}

.match-details-live-odds__label {
  font-size: 11px;
  font-weight: 500;
  color: #9e9e9e;
  line-height: 1;
}

.match-details-live-odds__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.match-details-live-odds__odds {
  font-size: 12px;
  font-weight: 700;
  color: #e65100;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.match-details-live-odds__trend {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  flex-shrink: 0;
}

.match-details-live-odds__value--up .match-details-live-odds__trend {
  border-bottom: 5px solid #2e7d32;
}

.match-details-live-odds__value--down .match-details-live-odds__trend {
  border-top: 5px solid #c62828;
}

/* Live Details — match progress timeline */
.match-details-card--live-progress {
  padding: 14px 16px 16px;
}

.match-live-progress {
  --progress: 44%;
  --live-red: var(--color-live-chip-text);
  --dot-size: 12px;
}

.match-live-progress__timeline {
  position: relative;
  padding-top: 18px;
}

.match-live-progress__clock {
  position: absolute;
  top: 0;
  left: var(--progress);
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--live-red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.match-live-progress__line-box {
  position: relative;
  height: var(--dot-size);
}

.match-live-progress__line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.match-live-progress__line--base {
  left: 0;
  right: 0;
  height: 2px;
  background: #e8e8e8;
  z-index: 0;
}

.match-live-progress__line--live {
  left: 0;
  width: var(--progress);
  max-width: 100%;
  height: 4px;
  background: var(--live-red);
  z-index: 1;
}

.match-live-progress__dot {
  position: absolute;
  top: 50%;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 2px solid #c4c4c4;
  background: #fff;
  box-sizing: border-box;
  z-index: 2;
}

.match-live-progress__dot--kickoff {
  left: 0;
  transform: translateY(-50%);
}

.match-live-progress__dot.is-live {
  border-color: var(--live-red);
}

.match-live-progress__dot--ht {
  left: 50%;
  transform: translate(-50%, -50%);
}

.match-live-progress__dot--ft {
  left: 100%;
  transform: translate(-100%, -50%);
}

.match-live-progress__markers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #9e9e9e;
}

.match-live-progress__marker:nth-child(1) {
  text-align: left;
}

.match-live-progress__marker:nth-child(2) {
  text-align: center;
}

.match-live-progress__marker:nth-child(3) {
  text-align: right;
}

/* Live Details — poll carousel */
.match-live-polls {
  margin-bottom: 12px;
}

.match-live-polls__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.match-live-polls__viewport::-webkit-scrollbar {
  display: none;
}

.match-live-polls__track {
  display: flex;
  gap: 0;
}

.match-live-poll-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 16px 16px 14px;
  box-sizing: border-box;
}

.match-live-poll-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.match-live-poll-card__titles {
  min-width: 0;
}

.match-live-poll-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.match-live-poll-card__votes {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #757575;
}

.match-live-poll-card__trophy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.match-live-poll-card__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.match-live-poll-card__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 5px 12px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #f5f6f8;
}

.match-live-poll-card__pill-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.match-live-poll-card__pill-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #424242;
}

.match-live-poll-card__pill-pct {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.match-live-polls__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
}

.match-live-polls__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c5d4f0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.match-live-polls__dot--active {
  background: #2563eb;
}

.match-live-polls__dot:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Finished Details — prematch standings */
.match-details-card--prematch-finished {
  padding: 14px 16px 12px;
}

.match-prematch-table--finished {
  table-layout: auto;
}

.match-prematch-table--finished th {
  padding: 0 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #757575;
  border: none;
}

.match-prematch-table--finished td {
  padding: 11px 4px;
  border-top: 1px solid #eeeeee;
}

.match-prematch-table--finished tbody tr:first-child td {
  border-top: none;
}

.match-prematch-table--finished .match-prematch-table__rank-hd {
  width: 28px;
  text-align: center;
  padding-left: 0;
}

.match-prematch-table--finished .match-prematch-table__logo-hd {
  width: 40px;
  padding-left: 0;
}

.match-prematch-table--finished .match-prematch-table__latest-hd {
  padding-left: 2px;
}

.match-prematch-table--finished .match-prematch-table__rating-hd {
  width: 52px;
  padding-right: 2px;
}

.match-prematch-table--finished .match-prematch-table__pts-hd {
  width: 32px;
  text-align: right;
  padding-right: 0;
}

.match-prematch-table--finished .match-prematch-table__rank-col {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.match-prematch-table--finished .match-prematch-table__logo-col {
  width: 40px;
  padding-left: 0;
  padding-right: 0;
  vertical-align: middle;
}

.match-prematch-table--finished .match-prematch-table__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.match-prematch-table--finished .match-prematch-table__logo-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.match-prematch-table--finished .match-prematch-form {
  gap: 3px;
}

.match-prematch-table--finished .tournament-form {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 9px;
}

.match-prematch-table--finished .tournament-standings-form__slot {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #e8eaed;
}

.match-prematch-table--finished .match-prematch-table__rating {
  text-align: right;
  white-space: nowrap;
}

.match-prematch-table--finished .match-prematch-table__rating-icon {
  width: 12px;
  height: 14px;
  margin-right: 4px;
}

.match-prematch-table--finished .match-prematch-table__rating-value {
  font-size: 13px;
  font-weight: 700;
  color: #000;
}

.match-prematch-table--finished .match-prematch-table__pts {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  padding-right: 0;
}

.match-details-card--prematch-finished .match-details-card__footer-link--center {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

/* Head-to-head / Manager H2H (shared h2h-duel) */
.h2h-duel-block__subtitle {
  margin: 0 0 14px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
}

.h2h-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.h2h-duel__side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.h2h-duel__side--home {
  justify-content: flex-start;
}

.h2h-duel__side--away {
  justify-content: flex-end;
}

.h2h-duel__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.h2h-duel__side--away .h2h-duel__info {
  align-items: flex-end;
}

.h2h-duel__media {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.h2h-duel__media img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.h2h-duel--coach .h2h-duel__media img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.h2h-duel__count {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h2h-duel__count--home {
  color: #43a047;
}

.h2h-duel__count--away {
  color: #374df5;
}

.h2h-duel__count--draw {
  color: #9ca3af;
}

.h2h-duel__center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.h2h-duel__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  text-decoration: none;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
}

.h2h-duel__name:hover {
  text-decoration: underline;
}

.h2h-duel__side--away .h2h-duel__name {
  text-align: right;
}

/* Win odds */
.match-win-odds {
  margin-top: 4px;
}

.match-win-odds__item {
  padding: 14px 0;
  border-top: 1px solid var(--color-tab-border);
}

.match-win-odds__item:first-child {
  border-top: none;
  padding-top: 4px;
}

.match-win-odds__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-win-odds__logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.match-win-odds__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.match-win-odds__formula {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: var(--font-size-sm);
  color: #22252a;
  line-height: 1.3;
  white-space: nowrap;
}

.match-win-odds__odds {
  font-weight: 700;
}

.match-win-odds__eq {
  font-weight: var(--font-weight-regular);
}

.match-win-odds__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.match-win-odds__pill {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.match-win-odds__pill--highlight {
  background: #d4a017;
}

.match-win-odds__pill--muted {
  background: #9499a1;
}

.match-win-odds__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #3b82f6;
  cursor: pointer;
}

.match-win-odds__chevron {
  display: block;
  transition: transform 0.15s ease;
}

.match-win-odds__item--open .match-win-odds__chevron {
  transform: rotate(180deg);
}

.match-win-odds__panel {
  padding: 10px 0 2px 38px;
}

.match-win-odds__desc {
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: #6b7280;
  line-height: 1.5;
}

/* Match info */
.match-info-card {
  display: flex;
  flex-direction: column;
}

.match-info-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--color-tab-border);
  text-decoration: none;
  color: inherit;
}

.match-info-row:first-child {
  border-top: none;
  padding-top: 4px;
}

.match-info-row--link {
  cursor: pointer;
}

.match-info-row--link:hover .match-info-row__value {
  color: var(--color-primary);
}

.match-info-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-self: center;
}

.match-info-row__icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.match-info-row--competition .match-info-row__icon img {
  border-radius: 2px;
}

.match-info-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.match-info-row--referee {
  align-items: flex-start;
}

.match-info-row--referee .match-info-row__icon,
.match-info-row--referee .match-info-row__arrow {
  margin-top: 2px;
}

.match-info-row--referee .match-info-row__body {
  gap: 6px;
}

.match-info-row__label {
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  color: #9ca3af;
  line-height: 1.2;
}

.match-info-row__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  line-height: 1.3;
}

.match-info-row__value--referee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.match-info-row__referee-name {
  font-weight: var(--font-weight-semibold);
}

.match-info-row__flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.match-info-row__cards {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: #22252a;
}

.match-info-row__cards-label {
  font-weight: var(--font-weight-semibold);
}

.match-info-row__card-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.match-info-row__card-bar {
  width: 8px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.match-info-row__card-bar--red {
  background: #e53935;
}

.match-info-row__card-bar--yellow {
  background: #f9a825;
}

.match-info-row__card-num {
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.match-info-row__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}

.match-info-row__arrow img {
  display: block;
  width: 16px;
  height: 16px;
}

.match-info-row--static {
  grid-template-columns: 20px 1fr;
}

.match-info-row--venue-location .match-info-row__icon img {
  border-radius: 50%;
  object-fit: cover;
}

.match-details-card--venue .match-info-card {
  margin-top: 4px;
}

.match-details-card__footer-link--arrow img {
  display: block;
  width: 16px;
  height: 16px;
}

/* Commentary — five row kinds: goal | sub | match-end | period-end | event */
.match-commentary-list {
  padding: 12px var(--space-page) 16px;
  background: #e8edf3;
}

.match-commentary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-commentary-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.match-commentary-item__rail {
  flex: 0 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 14px;
}

.match-commentary-item--match-end .match-commentary-item__rail,
.match-commentary-item--period-end .match-commentary-item__rail {
  padding-top: 18px;
}

.match-commentary-icon--ft {
  color: #9aa3ad;
}

.match-commentary-icon--ft svg {
  width: 28px;
  height: 28px;
}

.match-commentary-icon--goal svg {
  width: 16px;
  height: 16px;
}

.match-commentary-icon--sub svg {
  width: 14px;
  height: 14px;
}

.match-commentary-rail__dash {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: #6b7280;
  line-height: 1;
}

.match-commentary-rail__time {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
  color: #000;
  line-height: 1.2;
}

.match-commentary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.match-commentary-card {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.match-commentary-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.match-commentary-card__content {
  flex: 1;
  min-width: 0;
}

.match-commentary-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #000;
  line-height: 1.2;
}

.match-commentary-card__title--emph {
  font-weight: 800;
}

.match-commentary-card--goal .match-commentary-card__text,
.match-commentary-card--sub .match-commentary-card__sub-players {
  margin: 0;
}

.match-commentary-card__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
}

.match-commentary-card__media {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.match-commentary-card__avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.match-commentary-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-commentary-card__team {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  object-fit: cover;
  background: #fff;
}

.match-commentary-card__crest {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.match-commentary-card__sub-players {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-commentary-card__sub-player {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
}

.match-commentary-card__sub-name-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.match-commentary-card__sub-tag {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.match-commentary-card__sub-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}

.match-commentary-card__sub-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-commentary-card__sub-name {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: #000;
  text-decoration: none;
}

.match-commentary-card__sub-name:hover {
  text-decoration: underline;
}

.match-commentary-card__sub-tag--in {
  color: #2e9e4b;
}

.match-commentary-card__sub-tag--out {
  color: #e53935;
}

/* Match standings */
.match-panel--standings {
  gap: 0;
}

.match-panel--standings>.match-standings-card {
  margin-top: var(--space-block-gap);
}

.match-standings-table tr.is-home-team {
  background: rgba(76, 175, 80, 0.14);
}

.match-standings-table tr.is-away-team {
  background: rgba(99, 102, 241, 0.12);
}

.match-standings-card__header {
  margin-bottom: 12px;
}

.match-standings-card__season {
  font-size: 15px;
  font-weight: 800;
  color: #000;
  text-decoration: none;
}

.match-standings-rules__zones {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-standings-rules__zone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #000;
}

.match-standings-rules__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-standings-rules__dot--ucl {
  background: #2e9e4b;
}

.match-standings-rules__dot--europa {
  background: #3355ff;
}

.match-standings-rules__dot--conference {
  background: #26a69a;
}

.match-standings-rules__dot--relegation {
  background: #e53935;
}

.tournament-standings-rules__intro {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
}

.tournament-standings-rules__list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
}

/* Match statistics: Attack heatmap */
.match-stats-heatmap {
  margin-bottom: 4px;
}

.match-stats-heatmap__surface {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #5a9e5a;
}

.match-stats-heatmap__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
}

.match-stats-heatmap__legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 0 2px;
}

.match-stats-heatmap__scale {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 14px;
  height: 36px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.match-stats-heatmap__scale-step {
  flex: 1 1 0;
  min-height: 0;
}

.match-stats-heatmap__scale-step--4 {
  background: #3d9a3d;
}

.match-stats-heatmap__scale-step--3 {
  background: #62b662;
}

.match-stats-heatmap__scale-step--2 {
  background: #85c985;
}

.match-stats-heatmap__scale-step--1 {
  background: #a8d8a8;
}

.match-stats-heatmap__scale-step--0 {
  background: #c5e6c5;
}

.match-stats-heatmap__legend-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 36px;
  padding: 2px 0;
}

.match-stats-heatmap__legend-label {
  font-size: 11px;
  line-height: 1.3;
  color: #9ca3af;
}

.match-stats-heatmap__legend-label--high {
  align-self: flex-start;
}

.match-stats-heatmap__legend-label--low {
  align-self: flex-start;
}

.match-stats-pitch-svg {
  display: block;
  width: 100%;
  height: auto;
}

.match-stats-pass-zones {
  margin-bottom: 4px;
}

.match-stats-pass-zones__surface {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.match-stats-pass-zones__zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 5 / 2;
}

.match-stats-pass-zones__zone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-stats-pass-zones__zone--def,
.match-stats-pass-zones__zone--att {
  background: #ebe4c8;
}

.match-stats-pass-zones__zone--mid {
  background: #d4bc78;
}

.match-stats-pass-zones__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: #000;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.match-stats-pass-zones__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.match-stat-section-card__circular {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-tab-border);
}

.match-stat-section-card__circular--trio {
  grid-template-columns: repeat(3, 1fr);
}

.match-stat-section-card__circular--pass-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.match-stat-section-card__circular--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-stat-section-card__circular--duo-center {
  display: block;
}

.match-stat-section-card__circular--duo-large {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.match-stat-section-card__circular--duo-large .match-circular-stat__ring {
  width: 72px;
  height: 72px;
  font-size: var(--font-size-sm);
}

.match-stat-section-card__circular--trio .match-circular-stat__label,
.match-stat-section-card__circular--duo-large .match-circular-stat__label {
  font-size: 11px;
  line-height: 1.25;
}

/* Defending: ring | label | ring */
.match-circular-stat--duo-center {
  display: grid;
  grid-template-columns: 1fr minmax(72px, 1fr) 1fr;
  align-items: center;
  column-gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.match-circular-stat--duo-center .match-circular-stat__ring--home {
  justify-self: end;
}

.match-circular-stat--duo-center .match-circular-stat__ring--away {
  justify-self: start;
}

.match-circular-stat--duo-center .match-circular-stat__label {
  margin: 0;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #000;
  text-align: center;
  line-height: 1.25;
}

.match-stat-section-card__circular--duo-center .match-circular-stat__ring {
  width: 64px;
  height: 64px;
}

.match-stat-section-card__circular--duo-center .match-circular-stat__pct {
  font-size: 13px;
}

/* Circular stats (legacy grid fallback) */
.match-circular-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.match-circular-stat__pair {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.match-circular-stat__ring {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(farthest-side, #fff 64%, transparent 66%),
    conic-gradient(var(--ring-color) calc(var(--pct) * 1%), #eceef1 0);
}

.match-circular-stat__ring--home {
  --ring-color: #5cb85c;
}

.match-circular-stat__ring--away {
  --ring-color: #6fa8dc;
}

.match-circular-stat__pct {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: #000;
  line-height: 1;
}

.match-circular-stat__label {
  margin: 0 0 8px;
  text-align: center;
  font-size: var(--font-size-sm);
}

/* Passes: fraction + ring + label row */
.match-circular-stat--row {
  display: grid;
  grid-template-columns: 1fr minmax(88px, 1.1fr) 1fr;
  align-items: center;
  column-gap: 8px;
}

.match-circular-stat--row .match-circular-stat__label {
  margin: 0;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #000;
  line-height: 1.25;
  text-align: center;
}

.match-circular-stat__side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-circular-stat__side--home {
  justify-content: flex-end;
}

.match-circular-stat__side--away {
  justify-content: flex-start;
}

.match-circular-stat__frac {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
}

.match-stat-section-card__circular--pass-rows .match-circular-stat__ring {
  width: 48px;
  height: 48px;
}

.match-stat-section-card__circular--pass-rows .match-circular-stat__pct {
  font-size: 11px;
}

.match-stat-section-card__graphic {
  margin: 12px 0;
}

/* Lineups detail: team switcher, coach card, substitutions card */
.match-lineups-coach-card {
  padding: 0;
  overflow: hidden;
}

.match-lineups-coach-card .match-team-switcher {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-divider);
  box-sizing: border-box;
}

.match-lineups-coach-card [data-filter-panel] {
  width: 100%;
}

.match-lineups-coach-card .match-lineups-detail-card__coach {
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
}

.match-lineups-subs-card {
  padding: 0;
  overflow: hidden;
}

.match-lineups-subs-card__heading {
  margin: 0;
  padding: 14px 14px 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #000;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-lineups-subs-card__list {
  padding: 0 14px 8px;
}

.match-lineups-detail-card {
  padding: 0;
  overflow: hidden;
}

.match-lineups-detail-card .match-team-switcher {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-divider);
  box-sizing: border-box;
}

/* Match page: compact logo team switcher (pill track + dark active segment) */
#football-match-page .match-team-switcher .tournament-pills-segment__track {
  padding: 2px;
  background: #f2f4f7;
  border-radius: 999px;
}

#football-match-page .match-team-switcher .tournament-pill--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

#football-match-page .match-team-switcher .tournament-pill--logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#football-match-page .match-team-switcher .tournament-pill--logo.tournament-pill--active {
  background: #1d1f22;
}

#football-match-page .match-team-switcher .tournament-pill--logo:not(.tournament-pill--active) {
  background: transparent;
}

.match-lineups-detail-card__coach {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-lineups-detail-card__coach img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.match-lineups-detail-card__coach-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-lineups-detail-card__coach-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
}

.match-lineups-detail-card__coach-role {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #3b82f6;
}

.match-lineups-detail-card__heading {
  margin: 14px 14px 8px;
}

#football-match-page .match-lineups-detail-card__heading {
  margin-bottom: 8px;
}

.match-lineups-detail-card__list {
  padding: 0 14px;
}

.match-sub-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-sub-row:last-child {
  border-bottom: none;
}

.match-sub-row__avatar-link {
  line-height: 0;
}

.match-sub-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.match-sub-row__body {
  min-width: 0;
}

.match-sub-row__headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.match-sub-row__name-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  text-decoration: none;
  color: #22252a;
}

.match-sub-row__number {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.match-sub-row__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.match-sub-row__events {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.match-lineups-icon--goal {
  color: #6b7280;
}

.match-sub-row__sub-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: #9ca3af;
}

.match-sub-row__minute {
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
}

.match-sub-row__out-label {
  color: #9ca3af;
}

.match-sub-row__out-name {
  color: #9ca3af;
  text-decoration: none;
}

a.match-sub-row__out-name:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.match-sub-row__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.match-sub-row__rating--high {
  background: #43a047;
}

.match-sub-row__rating--mid {
  background: #f9a825;
}

.match-sub-row__rating--low {
  background: #e53935;
}

.match-bench-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-bench-row:last-child {
  border-bottom: none;
}

.match-bench-row__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #22252a;
}

.match-bench-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.match-bench-row__number {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.match-bench-row__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

/* Injuries and ratings note (below substitutions card) */
.match-lineups-injuries-card {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.match-lineups-injuries-card__title {
  margin: 0;
  padding: 14px 14px 10px;
}

.match-lineups-injuries-card__list {
  padding: 0 14px 6px;
}

.match-injury-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-tab-border);
}

.match-injury-row:last-child {
  border-bottom: none;
}

.match-injury-row__avatar-link {
  line-height: 0;
}

.match-injury-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.match-injury-row__body {
  min-width: 0;
}

.match-injury-row__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #22252a;
  text-decoration: none;
  line-height: 1.3;
}

.match-injury-row__name:hover {
  color: var(--color-primary);
}

.match-injury-row__status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.match-injury-row__status-label {
  font-weight: var(--font-weight-semibold);
  color: #8b2942;
}

.match-injury-row__status-detail {
  color: #9ca3af;
  font-weight: var(--font-weight-regular);
}

.match-lineups-ratings-note {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px 10px;
  padding: 14px;
  border-radius: 12px;
}

.match-lineups-ratings-note__icon {
  display: inline-flex;
  color: #9ca3af;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
}

.match-lineups-ratings-note__text {
  margin: 0;
  grid-column: 2;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.match-lineups-ratings-note__link {
  grid-column: 2;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #3b82f6;
  text-decoration: none;
}

.match-lineups-ratings-note__link:hover {
  text-decoration: underline;
}

/* Match matches tab */
#football-match-page .match-matches-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #000;
  text-align: left;
  width: 100%;
}

#football-match-page .match-matches-card__title--center {
  text-align: center;
}

.match-matches-card {
  padding: 14px 16px;
}

/* Streaks cards */
.match-streaks-card__odds-block {
  margin-bottom: 14px;
}

.match-streaks-card__subhead {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #000;
}

.match-streaks-odds--triplet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.match-streaks-odds__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  /* min-height: 52px; */
  padding: 3px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: rgba(229, 233, 239, 0.5);
}

.match-streaks-odds__btn--active {
  border-color: #2563eb;
}

.match-streaks-odds__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: #9e9e9e;
  line-height: 1;
}

.match-streaks-odds__value {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.match-streaks-odds__odds {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
  color: #000;
  line-height: 1.2;
}

.match-streaks-odds__trend {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  flex-shrink: 0;
}

.match-streaks-odds__value--up .match-streaks-odds__trend {
  border-bottom: 5px solid #2e7d32;
}

.match-streaks-odds__value--down .match-streaks-odds__trend {
  border-top: 5px solid #c62828;
}

.match-streaks-odds--ou {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.match-streaks-odds__line {
  flex: 0 0 auto;
  min-width: 52px;
  padding-bottom: 3px;
  font-size: 15px;
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.match-streaks-odds__ou-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-streaks-odds__ou-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-streaks-odds__ou-hd {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-align: center;
}

.match-streaks-odds__ou-col .match-streaks-odds__btn {
  width: 100%;
}

.match-streaks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-streaks-row {
  display: grid;
  grid-template-columns: minmax(28px, auto) 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding: 0;
}

.match-streaks-row__logos {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
}

.match-streaks-row__logos img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
}

.match-streaks-row__label {
  min-width: 0;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: #424242;
  line-height: 1.35;
  text-align: center;
}

.match-streaks-row__meta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  justify-self: end;
}

.match-streaks-row__value {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: #000;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.match-streaks-row__status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.match-streaks-row__status--hit {
  color: #2e7d32;
}

.match-streaks-row__status--miss {
  color: #c62828;
}

.match-streaks-icon {
  display: block;
}

/* Goal distribution */
.match-goal-distribution__filters {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.match-goal-distribution__pills {
  display: inline-flex;
  gap: 8px;
}

#football-match-page .match-goal-distribution__pills .tournament-pill {
  min-height: 32px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: #f2f4f7;
  color: #000;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}

#football-match-page .match-goal-distribution__pills .tournament-pill--active {
  background: #1d1f22;
  color: #fff;
}

.match-goal-distribution__body {
  --goal-dist-logo: 24px;
  --goal-dist-kind: 52px;
  --goal-dist-total: 32px;
  --goal-dist-col-gap: 10px;
}

.match-goal-distribution-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-goal-distribution-team+.match-goal-distribution-team {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-tab-border);
}

.match-goal-dist-row {
  display: grid;
  grid-template-columns: var(--goal-dist-logo) var(--goal-dist-kind) var(--goal-dist-total) 1fr;
  align-items: center;
  gap: var(--goal-dist-col-gap);
}

.match-goal-dist-row__logo {
  width: var(--goal-dist-logo);
  height: var(--goal-dist-logo);
  object-fit: contain;
  border-radius: 50%;
}

.match-goal-dist-row__kind {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #000;
  white-space: nowrap;
}

.match-goal-dist-row__total {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.match-goal-dist-row--scored .match-goal-dist-row__total {
  color: #2e7d32;
}

.match-goal-dist-row--conceded .match-goal-dist-row__total {
  color: #c62828;
}

.match-goal-dist-row__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}

.match-goal-dist-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.match-goal-dist-seg--scored.match-goal-dist-seg--l0 {
  background: #e8f5e9;
  color: #2e7d32;
}

.match-goal-dist-seg--scored.match-goal-dist-seg--l1 {
  background: #c8e6c9;
  color: #1b5e20;
}

.match-goal-dist-seg--scored.match-goal-dist-seg--l2 {
  background: #81c784;
}

.match-goal-dist-seg--scored.match-goal-dist-seg--l3 {
  background: #4caf50;
}

.match-goal-dist-seg--scored.match-goal-dist-seg--l4 {
  background: #2e7d32;
}

.match-goal-dist-seg--conceded.match-goal-dist-seg--l0 {
  background: #ffebee;
  color: #c62828;
}

.match-goal-dist-seg--conceded.match-goal-dist-seg--l1 {
  background: #ffcdd2;
  color: #b71c1c;
}

.match-goal-dist-seg--conceded.match-goal-dist-seg--l2 {
  background: #ef9a9a;
}

.match-goal-dist-seg--conceded.match-goal-dist-seg--l3 {
  background: #e57373;
}

.match-goal-dist-seg--conceded.match-goal-dist-seg--l4 {
  background: #c62828;
}

.match-goal-distribution__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  margin-left: auto;
  width: calc(6 * 24px + 5 * 3px);
  max-width: 100%;
  font-size: 10px;
  color: #9e9e9e;
  font-variant-numeric: tabular-nums;
}

.match-goal-distribution__footnote {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #9e9e9e;
  text-align: left;
}

/* H2H Matches block */
.match-h2h-matches-card .match-h2h-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  padding: 4px;
  max-width: 185px;
  border-radius: var(--radius-pill);
  background: #f2f4f7;
}

.match-h2h-toggle__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-h2h-toggle__btn {
  min-width: 72px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.match-h2h-toggle__btn--active {
  background: #1d1f22;
  color: #fff;
}

.match-h2h-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.match-h2h-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.match-h2h-filter__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.match-h2h-filter__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #bdbdbd;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}

.match-h2h-filter__input:checked+.match-h2h-filter__box {
  border-color: #1d1f22;
  background: #1d1f22;
  box-shadow: inset 0 0 0 2px #fff;
}

.match-h2h-filter__label {
  font-size: 13px;
  color: #000;
}

.match-h2h-competition+.match-h2h-competition {
  margin-top: 12px;
}

.match-h2h-competition__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
}

.match-h2h-competition__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.match-h2h-competition__name {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: #757575;
}

.match-h2h-competition__list {
  margin: 0 -16px;
}

.match-h2h-row__team--muted span:not(.football-match-row__card) {
  color: #9e9e9e;
}

.match-h2h-row__score--muted {
  color: #9e9e9e;
}

.match-h2h-row--live .entity-match-row__date {
  font-weight: var(--font-weight-regular);
  color: #9e9e9e;
}

.match-h2h-row--live .match-h2h-row__live {
  margin-top: 2px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-live-chip-text);
  line-height: 1.2;
}

.match-h2h-row--live .match-h2h-row__scores--live .entity-match-row__score {
  color: var(--color-live-chip-text);
  font-weight: var(--font-weight-bold);
}

.match-h2h-row--walkover .entity-match-row__date {
  font-weight: var(--font-weight-regular);
  color: #9e9e9e;
}

.match-h2h-row--walkover .match-h2h-row__status {
  font-weight: var(--font-weight-semibold);
  color: var(--color-live-chip-text);
}

/* Match page — upcoming hero */
.match-hero--upcoming {
  padding-bottom: 12px;
}

.match-hero--upcoming .match-hero__kickoff {
  display: none;
}

.match-hero--upcoming .match-hero__scoreboard--upcoming {
  align-items: center;
  gap: 8px 20px;
  padding: 18px var(--space-page) 20px;
}

.match-hero--upcoming .match-hero__team {
  gap: 6px;
}

.match-hero--upcoming .match-hero__logo--flag {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.match-hero--upcoming .match-hero__team-name {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
}

.match-hero--upcoming .match-hero__schedule {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0 4px;
}

.match-hero--upcoming .match-hero__schedule-date {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.match-hero--upcoming .match-hero__schedule-time {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: #757575;
}

/* Match page — live hero */
.match-hero--live {
  padding-bottom: 12px;
}

.match-hero--live .match-hero__scoreboard--live {
  align-items: center;
  gap: 8px 20px;
  padding: 18px var(--space-page) 8px;
}

.match-hero--live .match-hero__team-name {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
}

.match-hero--live .match-hero__center--live {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0 4px;
}

.match-hero--live .match-hero__score--live {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-live-chip-text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.match-hero--live .match-hero__clock {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-live-chip-text);
  font-variant-numeric: tabular-nums;
}

.match-hero--live .match-hero__goal-event {
  padding: 4px var(--space-page) 14px;
}

.match-hero--live .match-hero__goal-event .match-hero__scorer--live {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  transform: translateX(50%);
}

.match-hero--live .match-hero__scorer--live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: #8e8e8e;
  text-decoration: none;
}

.match-hero--live .match-hero__scorer--live:hover {
  color: var(--color-text-secondary);
}

.match-hero--live .match-hero__scorer-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-hero--live .match-commentary-icon {
  flex-shrink: 0;
  color: #8e8e8e;
}

.match-panel--standings-upcoming>.match-standings-toolbar {
  margin-bottom: 0;
}

.match-standings-appearance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px var(--space-page);
}

.match-standings-appearance-row__text {
  flex: 1;
  min-width: 0;
}

.match-standings-appearance-row__title {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #000;
  line-height: 1.3;
}

.match-standings-appearance-row__hint {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  color: #9e9e9e;
  line-height: 1.35;
}

.match-panel--standings-upcoming>.match-standings-card {
  margin-top: var(--space-block-gap);
}

/* Upcoming Details — last H2H match */
.match-h2h-last-match__subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: #000;
  text-align: center;
}

.match-h2h-last-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
}

.match-h2h-last-match__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.match-h2h-last-match__side--away {
  text-align: center;
}

.match-h2h-last-match__logo {
  border-radius: 50%;
  object-fit: cover;
}

.match-h2h-last-match__score {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.match-h2h-last-match__score--home {
  color: #2e7d32;
}

.match-h2h-last-match__score--away {
  color: #3355ff;
}

.match-h2h-last-match__name {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-align: center;
}

.match-h2h-last-match__center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  text-decoration: none;
  color: var(--color-text-muted);
}

.match-h2h-last-match__sep {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

/* Upcoming Details — competition + FIFA */
.match-details-competition-fifa__competition {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-tab-border);
  text-decoration: none;
  color: inherit;
}

.match-details-competition-fifa__comp-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.match-details-competition-fifa__comp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-details-competition-fifa__comp-label {
  font-size: 11px;
  font-weight: var(--font-weight-regular);
  color: #9e9e9e;
  line-height: 1.2;
}

.match-details-competition-fifa__comp-value {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.35;
}

.match-details-competition-fifa__chevron {
  flex-shrink: 0;
  align-self: center;
  color: #3355ff;
  display: flex;
  align-items: center;
  padding-left: 4px;
}

.match-details-competition-fifa__rankings-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.match-details-competition-fifa__rankings-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.match-details-competition-fifa__rank-side {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.match-details-competition-fifa__rank-side--home {
  justify-content: flex-start;
}

.match-details-competition-fifa__rank-side--away {
  justify-content: flex-end;
}

.match-details-competition-fifa__rank-flag {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.match-details-competition-fifa__rank-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-details-competition-fifa__rank-side--home .match-details-competition-fifa__rank-meta {
  align-items: flex-start;
}

.match-details-competition-fifa__rank-side--away .match-details-competition-fifa__rank-meta {
  align-items: flex-end;
}

.match-details-competition-fifa__rank-value {
  font-size: 18px;
  font-weight: 700;
  color: #3355ff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.match-details-competition-fifa__rank-name {
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  color: #757575;
  line-height: 1.3;
}

.match-details-competition-fifa__rank-side--home .match-details-competition-fifa__rank-name {
  text-align: left;
}

.match-details-competition-fifa__rank-side--away .match-details-competition-fifa__rank-name {
  text-align: right;
}