/* Extraído do <style> inline de FutPlayerCard.razor — reaproveitado, com a MESMA aparência, pelo Modo
   Espectador (EspectadorWebService), que reproduz o mesmo HTML/classes em texto puro (sem Blazor). */
.fut-card {
    position: relative;
    width: 152px;
    min-width: 152px;
    aspect-ratio: 152/210;
    border-radius: 14px 14px 30% 30% / 14px 14px 12% 12%;
    padding: 0.6rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #2b1d05;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    transition: transform .15s ease;
    /* visible (não hidden) — .fut-valor agora é position:absolute pendurado por FORA do rodapé do card
       (mesma técnica do .ct-top30-badge, que fica de fora sem ser cortado); com overflow:hidden aqui, esse
       selo saía cortado/"por dentro" do card quando o conteúdo interno passava da altura fixa do
       aspect-ratio. O selo #ranking/✓ selecionado continuam funcionando igual, só quem ficava de fora era
       cortado por engano. */
    overflow: visible;
}

.fut-card:hover { transform: translateY(-4px); }

/* Cor do card muda de acordo com o overall — bronze/prata/ouro/ouro-elite, igual a lógica real de raridade do FUT. */
.fut-tier-bronze { background: linear-gradient(155deg, #8a5a3c 0%, #5c3b26 55%, #40281a 100%); color: #f4e3d3; }
.fut-tier-prata { background: linear-gradient(155deg, #d9dee3 0%, #9aa4ac 55%, #6b747c 100%); color: #1c2226; }
.fut-tier-ouro { background: linear-gradient(155deg, #ffe89a 0%, #e8b23d 55%, #a86a10 100%); color: #3a2400; }
.fut-tier-elite { background: linear-gradient(155deg, #4a4458 0%, #221d33 55%, #0d0a17 100%); color: #f2d98a; box-shadow: 0 6px 20px rgba(232,178,61,.35); }

.fut-card-topo { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.fut-ovr { font-size: 1.55rem; font-weight: 900; line-height: 1; align-self: flex-start; }
.fut-pos { font-size: 0.72rem; font-weight: 800; align-self: flex-start; text-transform: uppercase; opacity: 0.9; margin-top: 0.1rem; }
.fut-bandeira { position: absolute; top: 0; right: 26px; width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.fut-escudo { position: absolute; top: 0; right: 0; width: 22px; height: 22px; object-fit: contain; }

.fut-foto { width: 100%; height: 76px; display: flex; align-items: flex-end; justify-content: center; margin-top: -0.2rem; position: relative; z-index: 1; }
/* Backdrop sólido do avatar num pseudo-elemento SEPARADO da <img> — o head é um PNG recortado (fundo já
   transparente), e a <img> tem mask-image pra suavizar a borda em círculo; se o background translúcido
   ficasse na própria <img> (como antes), o mask desbotava ELE junto no anel externo, criando uma faixa
   "furada"/transparente entre a foto e o card em vez de um fundo sólido atrás do recorte. */
.fut-foto::before { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.25); box-shadow: 0 2px 8px rgba(0,0,0,.4); z-index: 1; }
.fut-foto img { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 62%, transparent 100%); mask-image: radial-gradient(circle at 50% 42%, #000 62%, transparent 100%); position: relative; z-index: 2; }
.fut-foto-vazia { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: rgba(255,255,255,.2); position: relative; z-index: 2; }

.fut-nome { width: 100%; text-align: center; font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0.35rem 0.2rem 0.3rem; border-bottom: 1px solid rgba(0,0,0,.2); }

.fut-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 0.15rem; padding-top: 0.3rem; }
.fut-stats div { display: flex; flex-wrap: nowrap; white-space: nowrap; min-width: 0; align-items: baseline; gap: 0.15rem; font-size: 0.68rem; font-weight: 700; justify-content: center; } /* valor, ▲▼ e rótulo sempre na mesma linha */
.fut-stats .fut-delta { margin-left: 0.05rem; font-size: 0.5rem; }
.fut-card:not(.fut-card-lg) .fut-stats div { gap: 0.1rem; letter-spacing: -0.02em; }
.fut-card:not(.fut-card-lg) .fut-stats span { font-size: 0.58rem; }
.fut-card:not(.fut-card-lg) .fut-stats b { font-size: 0.7rem; }
.fut-card:not(.fut-card-lg) .fut-stats { column-gap: 0.25rem; }
.fut-stats b { font-size: 0.78rem; }
.fut-stats span { opacity: 0.75; font-weight: 800; }

/* Pendurado por FORA do rodapé do card (position:absolute + bottom negativo), em vez de empurrado pelo
   fluxo normal (margin-top) — assim ele sempre fica visível embaixo do card com tamanho fixo, nunca
   espremido/cortado por dentro quando o conteúdo interno (foto+nome+stats) já preenche toda a altura do
   card. z-index alto garante que ele desenha NA FRENTE do próximo card da grade/lista, não escondido atrás
   dele. */
.fut-valor { position: absolute; left: 50%; bottom: -0.8rem; transform: translateX(-50%); z-index: 5; max-width: calc(100% + 1.2rem); width: max-content; text-align: center; font-size: 0.62rem; font-weight: 800; color: #ffd76a; padding: 0.28rem 0.6rem; border-radius: 999px; background-color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.fut-card-lg .fut-valor { font-size: 0.9rem; bottom: -1.1rem; padding: 0.4rem 0.9rem; }

.fut-delta { font-size: 0.55rem; font-weight: 800; margin-left: 0.15rem; white-space: nowrap; }
.fut-delta.up { color: #16a34a; }
.fut-delta.down { color: #dc2626; }
.fut-ovr .fut-delta { font-size: 0.75rem; vertical-align: middle; }
.fut-card-lg .fut-ovr .fut-delta { font-size: 1.05rem; }
.fut-card-lg .fut-delta { font-size: 0.75rem; }

/* aspect-ratio/height auto (em vez de herdar o aspect-ratio:152/210 do .fut-card pequeno): no tamanho
   grande, ovr/pos/stats maiores + o selo de valor somam mais altura do que esse aspect-ratio permite,
   e o overflow:hidden do .fut-card corta (esconde atrás da borda arredondada) o selo de valor no rodapé —
   com altura automática o card cresce o quanto precisar e o valor sempre fica visível/à frente, igual o
   selo #ranking (que fica de fora do card, sem ser cortado pelo overflow). */
.fut-card-lg { width: 236px; min-width: 236px; aspect-ratio: auto; height: auto; padding: 1rem 0.9rem 0.9rem; cursor: default; }
.fut-card-lg:hover { transform: none; }
.fut-card-lg .fut-ovr { font-size: 2.3rem; }
.fut-card-lg .fut-pos { font-size: 1rem; margin-top: 0.15rem; }
.fut-card-lg .fut-bandeira { right: 40px; width: 34px; height: 23px; }
.fut-card-lg .fut-escudo { width: 34px; height: 34px; }
.fut-card-lg .fut-foto { height: 118px; }
.fut-card-lg .fut-foto::before,
.fut-card-lg .fut-foto img,
.fut-card-lg .fut-foto-vazia { width: 118px; height: 118px; }
.fut-card-lg .fut-foto-vazia { font-size: 2.8rem; }
.fut-card-lg .fut-nome { font-size: 1.05rem; padding: 0.55rem 0.3rem 0.5rem; }
.fut-card-lg .fut-stats { padding-top: 0.6rem; row-gap: 0.5rem; }
.fut-card-lg .fut-stats div { font-size: 0.85rem; gap: 0.2rem; }
.fut-card-lg .fut-stats b { font-size: 1.05rem; }
.fut-card-lg .fut-stats .fut-delta { font-size: 0.6rem; }

/* Espectador: mesmo card, mas navegando por link em vez de onclick Blazor. */
a.fut-card { text-decoration: none; }

.fut-card-selecionada { outline: 3px solid #22c55e; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(34,197,94,.25), 0 6px 16px rgba(0,0,0,.35); }
.fut-selecionada-badge { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: #22c55e; color: #06210f; font-weight: 900; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); z-index: 3; }
