/* =========================================================
   V55 — BRASÃO VISÍVEL NOS JOGADORES + LOGO FIXA DOS TIMES
   Usa Rank S azul no Estrelas e Rank S vermelho no Refúgos.
   ========================================================= */

.avatar img.team-affiliation-icon {
  inset: auto 2px 2px auto;
  width: 21px;
  height: 21px;
  object-fit: contain;
  background: rgba(255, 255, 255, .96);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(15, 49, 73, .22);
}

.avatar[data-team-side="estrelas"] {
  border-color: rgba(18, 101, 214, .26);
  box-shadow: inset 0 0 0 1px rgba(18, 101, 214, .08);
}

.avatar[data-team-side="refugos"] {
  border-color: rgba(181, 31, 46, .24);
  box-shadow: inset 0 0 0 1px rgba(181, 31, 46, .08);
}

.player-footer {
  align-items: flex-start;
  gap: 10px;
}

.player-footer-meta {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.player-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 12px;
  border: 1px solid #d7e3ea;
  background: #f8fbfd;
  color: #244255;
}

.player-team-chip > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.player-team-chip small {
  color: #6a7f8c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.player-team-chip b {
  font-size: 11px;
  line-height: 1.1;
}

.player-team-chip .icon,
.player-team-chip-emblem {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.player-team-chip-emblem,
.team-emblem.team-card-emblem,
.placard-team-emblem,
.home-last-team-emblem {
  object-fit: contain;
}

.player-team-chip.team-estrelas {
  background: linear-gradient(145deg, #ffffff, #edf5ff);
  border-color: #bfd6f7;
}

.player-team-chip.team-estrelas b { color: #1265d6; }

.player-team-chip.team-refugos {
  background: linear-gradient(145deg, #ffffff, #fff1f2);
  border-color: #efc0c5;
}

.player-team-chip.team-refugos b { color: #b51f2e; }

.team-emblem.team-card-emblem {
  object-fit: contain;
  background: linear-gradient(145deg, #fff, #f8fbfd);
}

.team-card.team-estrelas .team-card-copy h3,
.placard-team.team-estrelas small { color: #145fcb; }

.team-card.team-refugos .team-card-copy h3,
.placard-team.team-refugos small { color: #a22632; }

@media (max-width: 430px) {
  .avatar img.team-affiliation-icon {
    width: 19px;
    height: 19px;
    border-radius: 7px;
  }

  .player-footer {
    align-items: stretch;
    gap: 8px;
  }

  .player-team-chip {
    padding: 6px 8px;
    gap: 7px;
  }

  .player-team-chip .icon,
  .player-team-chip-emblem {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}
