/* The cross-league player profile. */

.player {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: var(--measure-mid);
  margin: 0 auto;
}

.player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.player__nickname {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
}

/* The main is the answer; the rest are the fallbacks. A numbered list made
   all five look like the same kind of claim, when only the first one is what
   the league counts and the balancer reaches for first. */
.player__main {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.player__main-role {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.player__backups {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.player__main-label,
.player__backups-label {
  color: var(--text-tertiary);
}

.player__backups-roles {
  color: var(--text-secondary);
}

.player__section-title {
  margin: 0 0 var(--space-smd);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.player__empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.player__league-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.player__league-item {
  padding: var(--row-pad-y) 0;
  border-bottom: var(--border-width) solid var(--border-default);
}

.player__league-item:last-child {
  border-bottom: none;
}

.player__league-link {
  font-weight: var(--weight-medium);
}

.player__league-link:hover {
  text-decoration: underline;
}

/* The Discord link, with the escape hatch for when it's wrong. */
.player__discord-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.player__discord-row form {
  margin: 0;
}

.player__discord-name {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--ink-700);
  overflow-wrap: anywhere;
}

.player__discord-unlink {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease-out);
}

.player__discord-unlink:hover {
  color: var(--action-destructive-fg);
}

/* The name Riot knows them by, when it is not the name this league does —
   "boomzpwnz" plays as "Wasteson", and both are correct. */
.player__riot-name {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: var(--space-2xs) 0 0;
}

.player__riot-label {
  color: var(--text-tertiary);
}

.player__riot-id {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
