/* ============================================================
   Cartomante FC — Página do Jogador (perfil estático SEO)
   Standalone (não depende de CSS do BI). Light theme.
   Design system espelhando style.css do provaveis.com.br.
   ============================================================ */

:root {
  --color-bg:          #FFFFFF;
  --color-surface:     #F3F0FF;
  --color-alt:         #F8FAFC;
  --color-primary:     #4D52AF;
  --color-primary-d:   #3D4290;
  --color-accent:      #F5921A;
  --color-dark:        #0F172A;
  --color-dark-purple: #2D2E6E;
  --color-text:        #1E293B;
  --color-muted:       #64748B;
  --color-border:      #E2E8F0;

  --color-success:     #16A34A;
  --color-loss:        #DC2626;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w:  1100px;
  --container-px: 16px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,.08), 0 4px 10px -3px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body.card-jogador-page {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar (mesmo padrão do _gerarHtmlClube → .cp-header) ──── */
.cp-header {
  background: #2D2E6E;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 100;
}
.cp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.cp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.75);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  transition: all .2s;
  text-decoration: none;
}
.cp-back:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

/* ── Wrapper / Content ──────────────────────────────────────── */
.main-wrapper { display: block; }
.content {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 24px var(--container-px) 40px;
}

#cardGrid { display: flex; flex-direction: column; gap: 16px; }

/* ── Card / Panel ───────────────────────────────────────────── */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-xs);
}
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.panel__title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--color-muted);
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap;
}
.badge--primary { background: var(--color-primary); color: #fff; }
.badge.mini { font-size: 9px; padding: 2px 5px; }

/* ── Top row (jersey card + ZBM card) ───────────────────────── */
.top-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  align-items: start;
}
.top-row > * { min-width: 0; }
@media (max-width: 720px) {
  .top-row { grid-template-columns: minmax(0,1fr); }
}

/* ── Bottom row (pizzas + campinhos) ────────────────────────── */
.bottom-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bottom-row > * { min-width: 0; }

/* ── Jersey row (com foto do jogador) ───────────────────────── */
.jersey-row {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.player-photo-wrap {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.player-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.player-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 22px;
  background: var(--color-surface);
  letter-spacing: .5px;
}

.player-name {
  font-size: 20px; font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0;
}
.confronto-line {
  display: flex; align-items: center; gap: 6px;
  margin-top: 5px;
  font-size: 13px;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.confronto-x { font-weight: 700; color: var(--color-text); }
.confronto-rd { color: var(--color-muted); }
.confronto-line--empty { font-size: 12px; }

.mando-tag {
  font-size: 9px; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(77,82,175,.12); color: var(--color-primary);
  border-radius: 3px; padding: 2px 5px;
}

/* ── Stats grid (3 cols × 2 rows = 6 boxes) ─────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat-box {
  padding: 12px 8px; text-align: center;
  position: relative;
  border-top: 3px solid transparent;
  background: var(--color-bg);
}
.stat-box + .stat-box::before {
  content: ''; position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px; background: var(--color-border);
}
.stat-box--highlight { background: rgba(22,163,74,.06); border-top-color: var(--color-success); }
.stat-box--active    { background: rgba(77,82,175,.06); border-top-color: var(--color-primary); }
.stat-box__label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--color-muted); margin-bottom: 5px; white-space: nowrap;
}
.stat-box__value {
  font-size: 22px; font-weight: 800; line-height: 1;
  color: var(--color-primary);
}
.stat-box__value.orange { color: var(--color-accent); }
.stat-box__value.green  { color: var(--color-success); }
.stat-box__value.warn   { color: var(--color-accent); }
.rank-total { font-size: 11px; font-weight: 500; color: var(--color-muted); }

/* ── Gate de filtros (toggle + slider acima do stats-grid) ──── */
.gate-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.gate-controls > * { pointer-events: none; }   /* deixa o click cair no wrapper → modal */
.gate-controls .view-tabs { padding: 2px; }
.gate-controls .view-tab {
  padding: 5px 12px;
  font-size: 11px;
}
.rodadas-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}
.rodadas-slider__label {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}
.rodadas-slider__label strong { color: var(--color-primary); font-weight: 700; }
.rodadas-slider__input {
  flex: 1;
  min-width: 80px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  height: 5px;
  background: var(--color-border);
  border-radius: 999px;
  outline: none;
  opacity: .8;
}
.rodadas-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(77,82,175,.4);
  cursor: pointer;
}
.rodadas-slider__input::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  cursor: pointer;
}

/* ── Modal MEE ──────────────────────────────────────────────── */
.mee-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mee-modal[aria-hidden="false"] { display: flex; }
.mee-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.mee-modal__box {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px 24px 26px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mee-modal__close {
  position: absolute;
  top: 8px; right: 12px;
  background: none; border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px 8px;
  font-family: var(--font);
}
.mee-modal__close:hover { color: var(--color-text); }
.mee-modal__icon { font-size: 40px; line-height: 1; }
.mee-modal__title {
  font-size: 18px; font-weight: 800;
  color: var(--color-dark-purple);
  margin: 0;
}
.mee-modal__text {
  font-size: 14px; line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.mee-modal__btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 14px; font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s, transform .15s;
}
.mee-modal__btn:hover {
  background: var(--color-primary-d);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Pizza / ZBM ────────────────────────────────────────────── */
.pie-wrap { position: relative; flex: 1; min-height: 0; }
.pie-legend {
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: center; gap: 8px 16px;
}
.pie-legend__item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pie-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pie-legend__label { color: var(--color-muted); }

.scouts-body {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; flex: 1;
}
.scouts-pie-wrap {
  position: relative;
  width: 180px; height: 180px;
  flex-shrink: 1;
}
.scouts-body--fill { flex: 1; min-height: 0; }
.scouts-body--fill .scouts-pie-wrap {
  flex: 1; min-height: 160px;
  width: 100%; height: auto;
}
.scouts-legend {
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: center; gap: 8px 16px;
}
.scout-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.scout-row__dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.scout-row__name { color: var(--color-muted); }
.scout-row__name strong { color: var(--color-text); }

/* ── Toggle Conquistados / Cedidos ──────────────────────────── */
.scouts-toggle-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scouts-toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 4px;
}
.scouts-toggle-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--color-muted);
  margin: 0;
}
.view-tabs {
  display: flex;
  gap: 3px;
  background: var(--color-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
  width: fit-content;
}
.view-tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.view-tab:hover { color: var(--color-text); }
.view-tab--active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(77,82,175,.35);
}
.view-tab--active:hover { color: #fff; }

/* Visibilidade por modo (data-active no wrapper) — só cards, não botões.
   !important porque os cards têm style="display:flex" inline (vence a CSS externa). */
.scouts-toggle-wrap[data-active="conq"] .bottom-row > [data-mode="ced"]  { display: none !important; }
.scouts-toggle-wrap[data-active="ced"]  .bottom-row > [data-mode="conq"] { display: none !important; }

/* ── Scout Cards (substitui pizza de scouts) ────────────────── */
.scout-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  width: 100%;
}
.scout-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px 10px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-xs);
  transition: transform .15s, box-shadow .15s;
  min-height: 92px;
}
.scout-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.scout-card__icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
}
.scout-card__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text);
}
.scout-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}
.scout-cards-empty {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  font-style: italic;
  padding: 24px 8px;
  width: 100%;
}
/* Cards no modo "cedido" — destaque a média (laranja accent) + sublinha com total/jogos */
.scout-card--ced {
  border-top: 3px solid var(--color-accent);
}
.scout-card__value--ced {
  color: var(--color-accent);
  font-size: 24px;
}
.scout-card__sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-muted);
  margin-top: 2px;
  letter-spacing: .2px;
}

/* ── ZBM (Consistência) full-width ──────────────────────────── */
.zbm-body {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.zbm-pie-wrap {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 220px;
}
.zbm-legend {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  flex: 1;
  min-width: 200px;
}
.zbm-legend .pie-legend__item { padding: 4px 0; font-size: 14px; }
.zbm-legend .pie-legend__dot  { width: 12px; height: 12px; }
@media (max-width: 560px) {
  .zbm-pie-wrap { width: 180px; height: 180px; }
  .zbm-body { gap: 16px; }
  .zbm-legend { min-width: 100%; }
}

/* ── Histórico chart ────────────────────────────────────────── */
.chart-wrap { position: relative; flex: 1; min-height: 220px; }
.chart-toggle-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
  margin: 4px 0 12px;
  align-self: flex-start;
}
.chart-toggle-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}
.chart-toggle-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── Campinho 6×6 ───────────────────────────────────────────── */
.campinho-wrap { display: flex; justify-content: center; }
.campinho-pitch {
  position: relative;
  width: 320px; height: 428px;
  flex-shrink: 0;
  background: url('/images/campinho.png?v=2') center/100% 100% no-repeat;
}
.campinho-grid {
  position: absolute;
  top: 11px; left: 11px; right: 11px; bottom: 11px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  z-index: 1;
}
.campinho-label-top, .campinho-label-bot {
  position: absolute; left: 11px; right: 11px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.9);
  text-align: center; pointer-events: none;
  z-index: 2;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.campinho-label-top { top: 14px; }
.campinho-label-bot { bottom: 14px; }
.campinho-cell {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.08);
  transition: filter .15s;
  cursor: default;
  line-height: 1;
}
.campinho-cell:hover { filter: brightness(1.15); }

/* ── Blur overlay (gate MEE — campinho cedido / chart cedido) ─ */
.cp-blur-container { position: relative; }
.cp-blur-target {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: filter .2s ease;
}
.cp-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(243, 240, 255, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.cp-blur-overlay[hidden] { display: none; }   /* sobrepõe display:flex acima */
.cp-blur-overlay__inner {
  background: var(--color-bg);
  border: 1px solid rgba(77, 82, 175, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
  padding: 20px 22px;
  text-align: center;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cp-blur-overlay__icon {
  font-size: 32px;
  line-height: 1;
}
.cp-blur-overlay__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.cp-blur-overlay__btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: 4px;
}
.cp-blur-overlay__btn:hover {
  background: var(--color-primary-d);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Análise narrativa (com Ler mais) ───────────────────────── */
#cardAnalise {
  background: var(--color-surface);
  border-color: rgba(77,82,175,.18);
}
.analise-texto {
  max-height: 5.4em;          /* ~3 linhas (line-height 1.7 × 14px) */
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}
.analise-texto.expanded { max-height: 200em; }
.analise-texto:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.6em;
  background: linear-gradient(transparent, var(--color-surface));
  pointer-events: none;
}
.analise-texto p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 8px;
}
.analise-texto p:last-child { margin-bottom: 0; }
.analise-lermais {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0 0;
  font-family: var(--font);
}
.analise-lermais:hover { opacity: .8; }

/* ── Histórico de Pontuação (Conquistado / Cedido) ──────────── */
.ced-toggle-wrap { display: flex; flex-direction: column; gap: 12px; }
.ced-toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 4px 4px;
}
.ced-toggle-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--color-muted);
  margin: 0;
}
.ced-toggle-wrap[data-active="conq"] .ced-cards-list[data-mode="ced"]  { display: none; }
.ced-toggle-wrap[data-active="ced"]  .ced-cards-list[data-mode="conq"] { display: none; }

/* ── Cards (lista expandível) ───────────────────────────────── */
.ced-cards-list { display: flex; flex-direction: column; gap: 8px; }
.ced-cards-list__visible,
.ced-cards-list__hidden { display: flex; flex-direction: column; gap: 8px; }
.ced-cards-list__hidden[hidden] { display: none; }
.ced-cards-list__empty {
  font-size: 13px; color: var(--color-muted);
  font-style: italic; padding: 16px; text-align: center;
}
.ced-cards-list__toggle {
  align-self: center;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 6px;
  transition: all .15s;
}
.ced-cards-list__toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

.ced-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
a.ced-card,
a.ced-card:hover { text-decoration: none; color: inherit; }
.ced-card--linked {
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ced-card--linked:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(77,82,175,.12);
  transform: translateY(-1px);
}
.ced-card__row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ced-card__rodada {
  background: rgba(220, 38, 38, .10);
  color: var(--color-loss);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: .3px;
}
.ced-card__nome {
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
  min-width: 100px;
  font-size: 14px;
}
.ced-card__spacer { flex: 1; }   /* ocupa espaço do nome quando não exibido */
.ced-card__mando {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ced-card__mando--fora { color: var(--color-muted); }
.ced-card__mando--casa { color: var(--color-success); }
.ced-card__clube {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text);
}
.ced-card__clube img {
  width: 20px; height: 20px;
  object-fit: contain;
}
.ced-card__clube strong { font-weight: 700; }
.ced-card__pts {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 17px;
  margin-left: auto;
}
.ced-card__scouts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ced-tag {
  background: var(--color-alt);
  color: var(--color-muted);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ── Tabela cedido adversário (legacy, não mais usada) ──────── */
.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 420px;            /* ~8 linhas + header → scroll vertical */
}
#tabelaCedidoAdv {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#tabelaCedidoAdv thead th {
  background: var(--color-dark-purple);
  color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  padding: 9px 10px; text-align: left; white-space: nowrap;
  position: sticky; top: 0; z-index: 4;   /* header fixo durante scroll */
}
#tabelaCedidoAdv tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
#tabelaCedidoAdv tbody tr:nth-child(even) td { background: var(--color-alt); }
#tabelaCedidoAdv td.empty {
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
}
.primary { color: var(--color-primary); }

#tabelaCedidoAdv thead th:nth-child(2),
#tabelaCedidoAdv tbody td:nth-child(2) {
  position: sticky; left: 0; z-index: 2; background: var(--color-bg);
}
#tabelaCedidoAdv tbody tr:nth-child(even) td:nth-child(2) { background: var(--color-alt); }
#tabelaCedidoAdv thead th:nth-child(2) { background: var(--color-dark-purple); z-index: 3; }

/* ── Bloco SEO + Footer ─────────────────────────────────────── */
.card-jogador-page__seo {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
  padding: 12px 4px;
  margin-top: 8px;
}
.card-jogador-page__seo p { margin: 0; }

.card-jogador-page__footer {
  background: var(--color-dark-purple);
  color: rgba(255,255,255,.75);
  padding: 18px 16px;
  text-align: center;
  font-size: 12px;
  margin-top: 24px;
}
.card-jogador-page__footer a { color: #fff; font-weight: 600; }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .content { padding: 16px var(--container-px) 32px; }
  .card { padding: 14px; }
  .player-name { font-size: 18px; }
  .stat-box__value { font-size: 19px; }
  .scouts-pie-wrap { width: 160px; height: 160px; }
  .campinho-pitch { width: 280px; height: 376px; }
}

/* ============================================================
   Copa do Mundo — paleta inspirada no guideline FIFA 2026.
   Ativado quando `<body class="card-jogador-page is-copa">` (detectado
   por canonicalBase em jogador-html.js / _gerarHtmlClube em serverbi.js).
   ============================================================ */
:root {
  --copa-red:        #C82834;
  --copa-blue:       #2D4FB8;
  --copa-blue-dark:  #0E2A6C;
  --copa-lime:       #A8D60C;
  --copa-orange:     #F37A1F;
  --copa-gold:       #F5B61A;
  --copa-purple:     #4A1F8C;
}

/* Ribbon multicolorido no topo do header */
body.is-copa .cp-header { position: relative; }
body.is-copa .cp-header::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--copa-red)    0%,    var(--copa-red)    16.6%,
    var(--copa-orange) 16.6%, var(--copa-orange) 33.2%,
    var(--copa-gold)   33.2%, var(--copa-gold)   49.8%,
    var(--copa-lime)   49.8%, var(--copa-lime)   66.4%,
    var(--copa-blue)   66.4%, var(--copa-blue)   83%,
    var(--copa-purple) 83%,   var(--copa-purple) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Nome do jogador em Anton uppercase */
body.is-copa .player-name {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* Section labels (Análise / Histórico / Mapa de Calor / Cedidos / etc.) em Anton */
body.is-copa .sec-label,
body.is-copa .card__title,
body.is-copa h2,
body.is-copa h3 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Badge da posição (do jogador) com cor Copa */
body.is-copa .badge {
  background: var(--copa-blue-dark);
  color: #fff;
}

/* Cartões/stats com borda colorida ciclando */
body.is-copa .stat-box {
  border-top: 3px solid transparent;
}
body.is-copa .stat-box:nth-child(6n+1) { border-top-color: var(--copa-red); }
body.is-copa .stat-box:nth-child(6n+2) { border-top-color: var(--copa-orange); }
body.is-copa .stat-box:nth-child(6n+3) { border-top-color: var(--copa-gold); }
body.is-copa .stat-box:nth-child(6n+4) { border-top-color: var(--copa-lime); }
body.is-copa .stat-box:nth-child(6n+5) { border-top-color: var(--copa-blue); }
body.is-copa .stat-box:nth-child(6n)   { border-top-color: var(--copa-purple); }

/* Cards principais (panels) com fina borda colorida no topo, ciclando */
body.is-copa .card.panel {
  border-top: 3px solid transparent;
}
body.is-copa .card.panel:nth-of-type(6n+1) { border-top-color: var(--copa-red); }
body.is-copa .card.panel:nth-of-type(6n+2) { border-top-color: var(--copa-orange); }
body.is-copa .card.panel:nth-of-type(6n+3) { border-top-color: var(--copa-gold); }
body.is-copa .card.panel:nth-of-type(6n+4) { border-top-color: var(--copa-lime); }
body.is-copa .card.panel:nth-of-type(6n+5) { border-top-color: var(--copa-blue); }
body.is-copa .card.panel:nth-of-type(6n)   { border-top-color: var(--copa-purple); }

/* Footer com ribbon no topo */
body.is-copa .card-jogador-page__footer { position: relative; }
body.is-copa .card-jogador-page__footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--copa-purple) 0%,    var(--copa-purple) 16.6%,
    var(--copa-blue)   16.6%, var(--copa-blue)   33.2%,
    var(--copa-lime)   33.2%, var(--copa-lime)   49.8%,
    var(--copa-gold)   49.8%, var(--copa-gold)   66.4%,
    var(--copa-orange) 66.4%, var(--copa-orange) 83%,
    var(--copa-red)    83%,   var(--copa-red)    100%);
  pointer-events: none;
}
