/* ============================================================
   CBN Futebol — Estilos base
   Paleta: verde CBN #1a7a3c, vermelho #c62828, fundo neutro
   ============================================================ */

:root {
  --ft-green:      #1a7a3c;
  --ft-green-light:#eaf3de;
  --ft-red:        #c62828;
  --ft-red-light:  #fdecea;
  --ft-yellow:     #ef9f27;
  --ft-blue:       #185FA5;
  --ft-gray:       #888780;
  --ft-bg:         #ffffff;
  --ft-bg-2:       #f7f7f5;
  --ft-border:     rgba(0,0,0,.1);
  --ft-text:       #1a1a18;
  --ft-text-2:     #5f5e5a;
  --ft-radius:     10px;
  --ft-radius-sm:  6px;
  --ft-shadow:     0 2px 12px rgba(0,0,0,.08);
  --ft-font:       'Oxygen', system-ui, sans-serif;
}

/* Reset leve */
.ft-block,
.ft-shortcode,
.ft-placeholder {
  box-sizing: border-box;
  font-family: var(--ft-font);
  font-size: 14px;
  color: var(--ft-text);
  line-height: 1.5;
}

/* ============================================================
   PLACEHOLDER (desenvolvimento)
   ============================================================ */
.ft-placeholder {
  background: var(--ft-bg-2);
  border: 1.5px dashed var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ft-ph-label {
  font-family: monospace;
  font-size: 13px;
  color: var(--ft-green);
  font-weight: 700;
}
.ft-ph-note {
  font-size: 12px;
  color: var(--ft-text-2);
}

/* ============================================================
   CARD BASE
   ============================================================ */
.ft-card {
  background: var(--ft-bg);
  border: 0.5px solid var(--ft-border);
  border-radius: var(--ft-radius);
  box-shadow: var(--ft-shadow);
  overflow: hidden;
}

/* ============================================================
   BADGES DE STATUS
   ============================================================ */
.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ft-badge--live   { background: var(--ft-red);   color: #fff; }
.ft-badge--today  { background: var(--ft-blue);  color: #fff; }
.ft-badge--done   { background: var(--ft-bg-2);  color: var(--ft-text-2); border: 0.5px solid var(--ft-border); }
.ft-badge--next   { background: var(--ft-green-light); color: var(--ft-green); }

.ft-badge--live::before {
  content: "";
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: ft-pulse 1.2s infinite;
}
@keyframes ft-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .4; }
}

/* ============================================================
   PLACAR / MATCH ROW
   ============================================================ */
.ft-match {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--ft-border);
}
.ft-match:last-child { border-bottom: none; }
.ft-match__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--ft-text-2);
}
.ft-match__row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 8px;
}
.ft-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ft-team--away { flex-direction: row-reverse; text-align: right; }
.ft-team__logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--ft-bg-2);
  border: 0.5px solid var(--ft-border);
  flex-shrink: 0;
}
.ft-team__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ft-score {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ft-text);
}
.ft-score__time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ft-red);
  margin-top: 2px;
}

/* ============================================================
   TABELA DE CLASSIFICAÇÃO
   ============================================================ */
.ft-table-wrap { overflow-x: auto; }
.ft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ft-table th {
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ft-text-2);
  text-align: center;
  border-bottom: 0.5px solid var(--ft-border);
}
.ft-table th:first-child { text-align: left; padding-left: 10px; }
.ft-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 0.5px solid var(--ft-border);
}
.ft-table td:first-child { text-align: left; padding-left: 10px; }
.ft-table tr:last-child td { border-bottom: none; }
.ft-table tr:hover td { background: var(--ft-bg-2); }

.ft-pos { font-weight: 700; color: var(--ft-text-2); }
.ft-pos--lib  { color: var(--ft-green); }
.ft-pos--sul  { color: var(--ft-blue);  }
.ft-pos--rel  { color: var(--ft-red);   }
.ft-pts       { font-weight: 700; }

.ft-form { display: flex; gap: 3px; align-items: center; }
.ft-form__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ft-form__dot--v { background: var(--ft-green); }
.ft-form__dot--e { background: var(--ft-yellow); }
.ft-form__dot--d { background: var(--ft-red); }

/* ============================================================
   TRANSMISSÃO / LANCES
   ============================================================ */
.ft-events { display: flex; flex-direction: column; gap: 1px; }
.ft-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--ft-radius-sm);
  transition: background .1s;
}
.ft-event:hover { background: var(--ft-bg-2); }
.ft-event--gol     { background: var(--ft-green-light); }
.ft-event--gol:hover { background: #d5ecbf; }

.ft-event__min {
  min-width: 34px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ft-text-2);
  padding-top: 2px;
}
.ft-event__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.ft-event__icon--gol    { background: var(--ft-green); color: #fff; }
.ft-event__icon--cartao { background: #fff3cd; color: #856404; border: 0.5px solid #ffc107; }
.ft-event__icon--sub    { background: #cfe2ff; color: #084298; border: 0.5px solid #9ec5fe; }
.ft-event__icon--var    { background: var(--ft-red-light); color: var(--ft-red); }
.ft-event__icon--info   { background: var(--ft-bg-2); color: var(--ft-text-2); }

.ft-event__body {}
.ft-event__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ft-text);
  line-height: 1.3;
}
.ft-event__sub {
  font-size: 12px;
  color: var(--ft-text-2);
  margin-top: 2px;
}

/* ============================================================
   BLOCO GOL — destaque máximo
   ============================================================ */
.ft-block--gol {
  background: var(--ft-green);
  color: #fff;
  border-radius: var(--ft-radius);
  padding: 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ft-block--gol::before {
  content: "⚽";
  font-size: 64px;
  position: absolute;
  top: -16px;
  right: -10px;
  opacity: .08;
  line-height: 1;
}
.ft-gol__score {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 6px;
}
.ft-gol__player {
  font-size: 18px;
  font-weight: 700;
}
.ft-gol__detail {
  font-size: 13px;
  opacity: .8;
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 480px) {
  .ft-team__name { font-size: 12px; }
  .ft-score      { font-size: 17px; }
  .ft-match__row { grid-template-columns: 1fr 52px 1fr; }
}

/* ============================================================
   TRANSMISSÃO AO VIVO
   ============================================================ */

.ft-transmissao { max-width: 680px; }

/* Score bar */
.ft-tx-scorebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--ft-green);
  border-radius: var(--ft-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #fff;
}
.ft-tx-team { font-size: 14px; font-weight: 700; }
.ft-tx-team--away { text-align: right; }
.ft-tx-score-center { text-align: center; }
.ft-tx-score {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
}
.ft-tx-score-sep { opacity: .6; }
.ft-tx-status {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .85;
}
.ft-tx-status--live     { color: #ffcdd2; }
.ft-tx-status--finished { color: #c8e6c9; }
.ft-tx-status--halftime { color: #fff9c4; }
.ft-tx-status--scheduled,
.ft-tx-status--prematch {
  color: rgba(255,255,255,.75);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .3px;
}
.ft-tx-venue {
  display: block;
  font-size: 11px;
  opacity: .6;
  margin-top: 2px;
}

/* Feed de lances */
.ft-tx-empty {
  padding: 20px;
  text-align: center;
  color: var(--ft-text-2);
  font-style: italic;
  font-size: 14px;
}

/* Animação de novo lance */
.ft-event--new {
  animation: ft-new-event .8s ease forwards;
}
@keyframes ft-new-event {
  0%   { background: #fff9c4; }
  100% { background: transparent; }
}

/* ============================================================
   TABELA DE CLASSIFICAÇÃO
   ============================================================ */

.ft-tabela { max-width: 720px; }

.ft-col-pos  { width: 32px; text-align: center !important; }
.ft-col-num  { width: 36px; text-align: center; font-size: 13px; }
.ft-col-pts  { width: 36px; text-align: center; font-weight: 700; font-size: 14px; }
.ft-col-form { width: 70px; }

.ft-team-cell  { display: flex; align-items: center; gap: 8px; }
.ft-team__logo { width: 22px; height: 22px; object-fit: contain; border-radius: 2px; flex-shrink: 0; }
.ft-team__logo-ph {
  width: 22px; height: 22px;
  background: var(--ft-bg-2);
  border: 0.5px solid var(--ft-border);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ft-text-2);
}

.ft-pos--lib { color: var(--ft-green);  font-weight: 700; }
.ft-pos--sul { color: var(--ft-blue);   font-weight: 700; }
.ft-pos--rel { color: var(--ft-red);    font-weight: 700; }

.ft-tabela-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--ft-border);
  font-size: 11px;
  color: var(--ft-text-2);
  flex-wrap: wrap;
}
.ft-legend-item::before {
  content: "●";
  margin-right: 4px;
}
.ft-legend-item--lib::before { color: var(--ft-green); }
.ft-legend-item--sul::before { color: var(--ft-blue);  }
.ft-legend-item--rel::before { color: var(--ft-red);   }

/* ============================================================
   PLAYER CBN — Layout F (v2)
   Desktop + Mobile: coluna preta à esquerda com
   [escudo] [nome] [placar] [nome] [escudo]
   Player CBN à direita / abaixo (sem logo branca no desktop)
   ============================================================ */

.ft-player-wrapper {
  font-family: 'Oxygen', system-ui, sans-serif;
  display: grid;
  grid-template-columns: 110px 1fr;
  border-radius: 16px;
  overflow: hidden;
  max-width: 520px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Coluna esquerda — placar vertical */
.ft-player-matchinfo {
  grid-column: 1;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  color: #fff;
}

/* Bloco de time: escudo em cima, nome embaixo */
.ft-player-matchinfo__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.ft-player-matchinfo__team--away {
  flex-direction: column;
}

.ft-player-badge {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
}

.ft-player-team-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  max-width: 90px;
}

/* Placar central */
.ft-player-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  width: 100%;
}

.ft-player-score {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
  text-align: center;
}

.ft-player-score-sep { opacity: .35; margin: 0 2px; }

.ft-player-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 2px 0;
}

.ft-player-status {
  font-size: 9px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
}
.ft-player-status--live { color: #ff6b6b; }

/* Player à direita — sem box-shadow/radius próprios */
.ft-player-embed {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
}
.ft-player-wrapper .rp-card {
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  min-width: 0;
}

/* Oculta a área branca da logo CBN em qualquer tela —
   a coluna preta com o placar já identifica o contexto.
   O rp-right (vermelho com controles) ocupa toda a largura. */
.ft-player-wrapper .rp-left {
  display: none;
}
.ft-player-wrapper .rp-right {
  padding: 12px 14px;
  border-radius: 0;
}

/* Sem jogo vinculado: card standalone */
.ft-player-wrapper--solo {
  grid-template-columns: 1fr;
  max-width: 420px;
}
.ft-player-wrapper--solo .rp-card {
  border-radius: 16px;
}

/* ---- MOBILE: coluna preta mais estreita ---- */
@media (max-width: 480px) {
  .ft-player-wrapper {
    grid-template-columns: 80px 1fr;
    max-width: 100%;
  }

  .ft-player-matchinfo {
    padding: 10px 6px;
    gap: 3px;
  }

  .ft-player-badge {
    width: 28px;
    height: 28px;
  }

  .ft-player-team-name {
    font-size: 10px;
  }

  .ft-player-score {
    font-size: 18px;
    letter-spacing: 2px;
  }
}

/* Escudo na barra de placar da transmissão */
.ft-tx-badge-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  vertical-align: middle;
  margin: 0 4px;
  flex-shrink: 0;
}
.ft-tx-team {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ft-tx-team--away { flex-direction: row-reverse; }

/* ============================================================
   NOTICE / LOADING
   ============================================================ */
.ft-notice {
  padding: 12px 16px;
  background: var(--ft-bg-2);
  border-left: 3px solid var(--ft-gray);
  border-radius: 0 var(--ft-radius-sm) var(--ft-radius-sm) 0;
  color: var(--ft-text-2);
  font-size: 13px;
  margin: 8px 0;
}
.ft-loading {
  display: block;
  padding: 14px;
  text-align: center;
  color: var(--ft-text-2);
  font-size: 13px;
}
