/* rodada.css — estilos específicos da página /rodada/:n e do hub /rodadas
   Reaproveita .jogo / .lineup-card / .pitch / .player / .cap / .stat do index
   (vindos de styles.v1.css + customizacao.css). Este arquivo só adiciona
   os blocos que são exclusivos da rodada anterior: placar, hero, pager, hub.
   Mobile-first. */

.rd-main {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 14px 60px;
  box-sizing: border-box;
  color: var(--text, #1a1a1a);
}
@media (max-width: 768px) {
  .rd-main { width: 100%; }
}

/* Breadcrumbs */
.rd-breadcrumbs {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 14px;
}
.rd-breadcrumbs a { color: #6b7280; text-decoration: none; }
.rd-breadcrumbs a:hover { color: #fb5904; }
.rd-breadcrumbs span { margin: 0 4px; }

/* Hero */
.rd-hero {
  background: linear-gradient(135deg, #fff5ef 0%, #fff 100%);
  border: 1px solid #ffe0cc;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 16px;
}
.rd-hero h1 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #1a1a1a;
}
.rd-hero-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px;
}

/* WhatsApp share */
.rd-share-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .1s;
}
.rd-share-wa:hover { transform: translateY(-1px); color: #fff; }
.rd-share-wa svg { flex: 0 0 18px; }

/* Placar card — aparece acima das duas escalações, dentro do .jogo.
   Especificidade reforçada com #jogos-root para não perder para regras
   de customizacao.css que alcançam descendentes de .custom-provaveis-item. */
#jogos-root .rd-placar-card,
.rd-placar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 4px auto 10px;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}
#jogos-root .rd-placar-row,
.rd-placar-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#jogos-root .rd-placar-time,
.rd-placar-time {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
#jogos-root .rd-placar-time-r,
.rd-placar-time-r { justify-content: flex-end; }
#jogos-root .rd-placar-time img,
#jogos-root .rd-placar-escudo,
.rd-placar-time img,
.rd-placar-escudo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
  display: inline-block;
  vertical-align: middle;
  max-width: none;
}
#jogos-root .rd-placar-time strong,
.rd-placar-time strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#jogos-root .rd-placar-gols,
.rd-placar-gols {
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}
.rd-placar-gols .rd-x {
  color: #9ca3af;
  margin: 0 4px;
  font-weight: 400;
}
.rd-placar-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 8px 0 0;
  text-align: center;
}

/* Força container do .jogo a não herdar fundo com listra par/ímpar do index.
   Aqui é página de histórico — visual limpo. */
.rd-jogos .jogo:nth-of-type(even) .custom-provaveis-item {
  background: transparent;
}

/* Estado vazio */
.rd-empty {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* H1 visualmente oculto (mantém sinal de SEO sem poluir o layout).
   Técnica padrão Bootstrap/WCAG — lê por screen-reader, não aparece. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Pager */
.rd-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}
.rd-pager a {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.rd-pager a:hover { border-color: #fb5904; color: #fb5904; }
.rd-pager .rd-prev { justify-self: start; }
.rd-pager .rd-next { justify-self: end; }
.rd-pager .rd-hub {
  background: #fb5904;
  color: #fff;
  border-color: #fb5904;
}

/* Pager do topo: versão compacta para abrir espaço pro conteúdo.
   Mesmo visual do rodapé mas com padding menor e margem de topo zerada. */
.rd-pager-top {
  margin-top: 4px;
  margin-bottom: 12px;
}
.rd-pager-top a {
  padding: 7px 10px;
  font-size: 12px;
}
@media (min-width: 560px) {
  .rd-pager-top a { padding: 8px 12px; font-size: 13px; }
}

/* Hub (/rodadas) */
.rd-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.rd-hub-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .1s, border-color .1s;
}
.rd-hub-card:hover { border-color: #fb5904; transform: translateY(-2px); color: #1a1a1a; }
.rd-hub-card h3 { margin: 0; font-size: 16px; }
.rd-hub-card .rd-hub-taxa {
  font-size: 22px;
  font-weight: 800;
  color: #21c05a;
  line-height: 1;
}
.rd-hub-card .rd-hub-meta {
  font-size: 12px;
  color: #6b7280;
}
/* Rodada em andamento — destaque laranja sutil com badge "Agora" */
.rd-hub-card--atual {
  border-color: #fb5904;
  background: linear-gradient(135deg, #fff5ef 0%, #fff 100%);
}
.rd-hub-card--atual:hover { border-color: #e04e00; }
.rd-hub-card--atual h3 { color: #1a1a1a; }
.rd-hub-badge {
  display: inline-block;
  background: #fb5904;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.6;
}

/* Rodada ainda não publicada — visual cinza/desativado.
   Transmite confiança (nada de 404) e mantém a expectativa viva com "em breve". */
.rd-hub-card--disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: .75;
  pointer-events: none; /* garante que nenhum click entra mesmo sendo <div> */
}
.rd-hub-card--disabled:hover {
  border-color: #e5e7eb;
  transform: none;
  color: #9ca3af;
}
.rd-hub-card--disabled h3 { color: #9ca3af; }
.rd-hub-card .rd-hub-soon {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
}
.rd-hub-card .rd-hub-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fb5904;
  line-height: 1;
}

/* --------------------------------------------------------------------
   .stat nas páginas de resultado: sobreposto na parte inferior da foto.
   Em vez de flutuar abaixo do nome, encosta no fundo do círculo —
   visual mais moderno, libera espaço vertical, destaca a pontuação.
   -------------------------------------------------------------------- */
.rd-jogos .pitch .player .stat {
  opacity: 1;
  top: auto;
  bottom: -9px;
  transform: translateX(-50%);
  animation: none;
  font-size: 10px !important;
  padding: 2px 7px !important;
  border-radius: 9px;
  z-index: 2;
}
.rd-jogos .pitch .player .stat::before,
.rd-jogos .pitch .player .stat::after {
  display: none;
}

/* Linha divisória entre os dois campinhos (mandante | visitante) */
.rd-jogos .lineups {
  position: relative;
}
.rd-jogos .lineups::after {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.1) 20%,
    rgba(0, 0, 0, 0.1) 80%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

/* No mobile os campinhos empilham — traço vertical some */
@media (max-width: 768px) {
  .rd-jogos .lineups::after {
    display: none;
  }
}

/* --------------------------------------------------------------------
   Escala de cores das pontuações (resultado da rodada)
   Aplica tanto em titulares (.pitch .player) quanto no banco (.bench)
   -------------------------------------------------------------------- */
.rd-jogos .player .stat.neutral {
  background: #374151 !important;
  color: #9ca3af !important;
  box-shadow: none !important;
}
.rd-jogos .player .stat.green {
  background: #14532d !important;
  color: #86efac !important;
  box-shadow: none !important;
}
.rd-jogos .player .stat.green-hi {
  background: #15803d !important;
  color: #4ade80 !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4) !important;
}
.rd-jogos .player .stat.red {
  background: #7f1d1d !important;
  color: #fca5a5 !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------
   Destaque +8 pontos — anel dourado. O badge .stat é controlado pela
   escala acima; aqui só ajustamos o anel/foto.
   -------------------------------------------------------------------- */

/* --------------------------------------------------------------------
   Slot AdSense — complementa o .ad-slot do styles.v1.css com
   rótulo "Publicidade" pequeno (transparência => confiança do usuário).
   -------------------------------------------------------------------- */
.rd-ad {
  margin: 16px auto;
  max-width: 728px;
  width: 100%;
  text-align: center;
  min-height: 90px;
}
.rd-ad .rd-ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

/* Em mobile, puxa o slot até as bordas do viewport cancelando os 14px de
   padding do .rd-main. Formatos mais largos (336x280, 320x100 full-width) têm
   CPM maior que 300x250 com margem lateral. O conteúdo ao redor mantém o
   padding — só o anúncio vira edge-to-edge. */
@media (max-width: 559px) {
  .rd-ad {
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
    max-width: none;
  }
}

/* --------------------------------------------------------------------
   BANCO — jogadores que entraram na partida
   Aparece após os dois pitches dentro do mesmo .custom-provaveis-item.
   Grid 2 colunas (mandante | visitante) casa com o layout de .lineups.
   .player.bench é uma override total: tira o position:absolute do pitch
   e vira um card inline-flex com foto menor (72px vs 92px dos titulares).
   -------------------------------------------------------------------- */
.rd-bancos {
  margin: 14px 0 0;
  padding: 12px 10px 10px;
  background: linear-gradient(180deg, #edf1f7 0%, #e4eaf3 100%);
  border-top: 2px solid #d1d9e6;
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}
.rd-bancos-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  margin: 0 2px 10px;
  font-weight: 700;
}
.rd-bancos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
}
.rd-banco-col {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  padding: 6px 2px 14px;
  min-height: 40px;
  justify-content: center;
}
.rd-banco-col:empty::before {
  content: '—';
  color: #d1d5db;
  font-size: 12px;
  padding: 6px 0;
}

/* Override do .player quando for do banco: vira um card empilhado (foto no
   topo, nome + stat embaixo) em vez do posicionamento absoluto do pitch. */
.player.bench {
  position: static !important;
  transform: none !important;
  width: 72px !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0;
  gap: 4px;
}
.player.bench img {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 2px #16a34a,  /* anel verde mais fininho que o do titular */
    0 4px 10px rgba(0, 0, 0, 0.18);
  transform: none !important;
}
.player.bench .cap,
.player.bench .stat {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
  max-width: 80px;
  display: inline-flex;
  pointer-events: none;
}
.player.bench .cap {
  margin-top: 2px;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.player.bench .stat {
  margin-top: 2px;
  padding: 2px 7px !important;
  font-size: 10px !important;
  border-radius: 9px;
  gap: 0.3em;
}
.player.bench .stat::before {
  inline-size: 0.38em;
  block-size: 0.38em;
}
.player.bench .stat::after { display: none; }
.player.bench .rd-bench-sub {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.15;
  color: #374151;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.player.bench .rd-bench-sub-muted {
  color: #9ca3af;
  font-style: italic;
}
/* +8 pts no banco = mesmo destaque dourado dos titulares */
.player.bench.rd-hot img {
  box-shadow:
    0 0 0 2px #f59e0b,
    0 0 12px rgba(245, 158, 11, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

/* --------------------------------------------------------------------
   MVP — maior pontuador da partida (anel dourado mais forte + estrela)
   -------------------------------------------------------------------- */
.rd-jogos .player.rd-mvp img {
  box-shadow:
    0 0 0 3px #fbbf24,
    0 0 18px rgba(251, 191, 36, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
/* Badge do MVP: fundo amarelo dourado com texto escuro — máximo contraste */
.rd-jogos .player.rd-mvp .stat {
  background: #fbbf24 !important;
  color: #1a1a1a !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5) !important;
}
/* Estrela acima do jogador titular */
.rd-jogos .pitch .player.rd-mvp::after {
  content: '★';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
  pointer-events: none;
  z-index: 5;
  line-height: 1;
}
/* No banco, a estrela fica acima da foto via margin negativo */
.rd-jogos .player.bench.rd-mvp {
  position: relative;
}
.rd-jogos .player.bench.rd-mvp::before {
  content: '★';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
  pointer-events: none;
  z-index: 5;
}

/* --------------------------------------------------------------------
   Badge de substituição — ícone discreto no canto do jogador que saiu
   -------------------------------------------------------------------- */
.rd-sub-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  background: #3b82f6;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 5;
  pointer-events: none;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.rd-sub-badge i {
  font-size: 9px;
  line-height: 1;
  display: block;
}
@media (max-width: 430px) {
  .rd-sub-badge {
    width: 15px;
    height: 15px;
    top: 1px;
    right: 1px;
  }
  .rd-sub-badge i { font-size: 7px; }
}

/* --------------------------------------------------------------------
   Total de pontos Cartola por time — linha no card de placar
   -------------------------------------------------------------------- */
.rd-pts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.rd-pts-val {
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  min-width: 48px;
  text-align: center;
}
.rd-pts-val.rd-pts-hi {
  color: #15803d;
}
.rd-pts-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

@media (min-width: 640px) {
  .rd-bancos { padding: 14px 14px 12px; }
  .rd-banco-col { gap: 16px 14px; }
  .player.bench { width: 80px !important; }
  .player.bench img { width: 68px !important; height: 68px !important; }
  .player.bench .cap,
  .player.bench .rd-bench-sub { max-width: 90px; }
}

/* --------------------------------------------------------------------
   CTA de compartilhar no FINAL — depois do consumo, melhor conversão.
   -------------------------------------------------------------------- */
.rd-share-footer {
  margin: 28px auto 8px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  text-align: center;
}
.rd-share-footer-copy {
  margin: 0 0 10px;
  font-size: 14px;
  color: #166534;
  font-weight: 600;
}
.rd-share-footer .rd-share-wa { margin: 0 auto; }

/* --------------------------------------------------------------------
   MODAL DE SCOUTS (abre ao clicar em .player)
   Padrão visual derivado do drawer-mando.css — escuro, premium,
   mobile-first (no mobile vira um sheet que sobe do rodapé).
   -------------------------------------------------------------------- */
.rd-jogos .player { cursor: pointer; }
.rd-jogos .player:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 50%;
}

#rd-scout-drawer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
}
#rd-scout-drawer.open { display: flex; }
body.rd-sc-open { overflow: hidden; }

.rd-sc-drawer {
  width: min(560px, 96vw);
  max-height: min(720px, 88vh);
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, #0a0f1e, #020617 60%);
  border: 1px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

/* Header */
.rd-sc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #0f172a, #020617 80%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
#rd-sc-foto {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  object-fit: cover;
  flex: 0 0 56px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.rd-sc-head-info { flex: 1; min-width: 0; }
.rd-sc-nome {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-sc-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 2px;
}
.rd-sc-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.rd-sc-close:hover { background: linear-gradient(180deg, #334155, #1e293b); }

/* Body */
.rd-sc-body {
  padding: 16px 18px 22px;
  overflow-y: auto;
}
.rd-sc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.rd-sc-stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  border-left: 3px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rd-sc-stat-big {
  grid-column: 1 / -1;
  background: linear-gradient(100deg, rgba(22, 163, 74, 0.12), rgba(15, 23, 42, 0.96));
  border-left-color: rgba(34, 197, 94, 0.6);
}
.rd-sc-stat-lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.rd-sc-stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
}
.rd-sc-stat-big .rd-sc-stat-val { font-size: 1.5rem; }
.rd-sc-stat-val.rd-sc-pts-hi { color: #86efac; }
.rd-sc-stat-val.rd-sc-pts-low { color: #fde68a; }
.rd-sc-stat-val.rd-sc-pts-neg { color: #fca5a5; }
.rd-sc-stat-val.rd-sc-var-up { color: #86efac; }
.rd-sc-stat-val.rd-sc-var-down { color: #fca5a5; }

.rd-sc-h4 {
  margin: 0 0 10px;
  font: 700 10px/1.2 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #64748b;
  position: relative;
  padding-left: 10px;
}
.rd-sc-h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, #38bdf8, #22c55e);
  border-radius: 2px;
}

.rd-sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rd-sc-chips .scout {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: #94a3b8;
}
.rd-sc-chips .scout-pos {
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(34, 197, 94, 0.6);
  color: #4ade80;
}
.rd-sc-chips .scout-neg {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}
.rd-sc-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
}

/* Mobile: vira sheet que sobe do fundo */
@media (max-width: 640px) {
  #rd-scout-drawer { padding-top: 0; align-items: flex-end; }
  .rd-sc-drawer {
    width: 100vw;
    max-width: 100vw;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
  .rd-sc-stats { grid-template-columns: 1fr 1fr; }
  .rd-sc-stat-big { grid-column: 1 / -1; }
}

/* Mobile polish */
@media (max-width: 480px) {
  .rd-hero h1 { font-size: 19px; }
  #jogos-root .rd-placar-gols,
  .rd-placar-gols { font-size: 20px; padding: 0 2px; }
  #jogos-root .rd-placar-time,
  .rd-placar-time { font-size: 13px; gap: 6px; }
  #jogos-root .rd-placar-time img,
  #jogos-root .rd-placar-escudo,
  .rd-placar-time img,
  .rd-placar-escudo { width: 28px; height: 28px; flex-basis: 28px; }
  .rd-pager a { padding: 8px 10px; font-size: 12px; }

  /* Banco — reduz tamanho dos jogadores significativamente no mobile */
  .rd-bancos { padding: 10px 8px 8px; }
  .rd-bancos-label { font-size: 10px; margin-bottom: 8px; }
  .rd-banco-col { gap: 8px 6px; padding: 4px 0 8px; min-height: 32px; }
  .player.bench { width: 52px !important; gap: 2px; }
  .player.bench img {
    width: 44px !important;
    height: 44px !important;
    box-shadow:
      0 0 0 1.5px #16a34a,
      0 2px 6px rgba(0, 0, 0, 0.18) !important;
  }
  .player.bench .cap {
    font-size: 8.5px !important;
    max-width: 58px !important;
    padding: 1px 4px !important;
    margin-top: 1px;
  }
  .player.bench .stat {
    font-size: 8px !important;
    padding: 1px 4px !important;
    margin-top: 1px;
    border-radius: 6px;
  }
  .player.bench .rd-bench-sub {
    font-size: 7.5px;
    max-width: 58px;
    margin-top: 2px;
  }
  /* MVP no banco: estrela menor */
  .rd-jogos .player.bench.rd-mvp::before { font-size: 9px; top: -12px; }
}

/* Desktop: mais ar */
@media (min-width: 768px) {
  .rd-hero h1 { font-size: 26px; }
}

/* ============================================================================
   FIX: botão "Voltar ao topo" — corrige conflito com arbitragem.css
   arbitragem.css redefine .backtop-btn como pill com texto visível;
   rodada.css carrega por último e restaura o visual de ícone circular.
   ============================================================================ */
.backtop-lane {
  display: flex;
  justify-content: center;
  align-items: center;
}
.backtop-lane .backtop-btn {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.15s, box-shadow 0.15s;
}
.backtop-lane .backtop-btn span {
  display: none;
}
.backtop-lane .backtop-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   FIX: chip "Atualizado" — overlay discreto sobre o campinho
   Override de alta especificidade para ganhar do arbitragem.css
   ============================================================================ */
.lineup-card .upd-chip {
  font-size: 0.67rem;
  font-weight: 500;
  padding: 2px 7px;
  gap: 3px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.88);
  border: none;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lineup-card .upd-chip i {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}
