/* ─────────────────────────────────────────────────────────────────────────────
   style.css — Jogos de Hoje
   Para personalizar: edite as variáveis em :root
───────────────────────────────────────────────────────────────────────────── */

/* ── Variáveis (edite aqui para mudar o tema) ── */
:root {
  --verde:     #00e676;   /* cor principal / destaque */
  --verde2:    #00c853;
  --amarelo:   #ffd600;
  --azul:      #1565c0;
  --bg:        #070d14;   /* fundo principal */
  --bg2:       #0d1520;
  --bg3:       #111d2b;
  --card:      #0f1c2a;   /* fundo dos cards */
  --borda:     #1a2e42;   /* cor das bordas */
  --texto:     #e8f4ff;   /* texto principal */
  --muted:     #5a7a99;   /* texto secundário */
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--texto);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Fundo animado ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0,230,118,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(21,101,192,.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,13,20,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borda);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 38px; height: 38px;
  background: var(--verde);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  color: #000;
  font-family: 'Bebas Neue';
}

.logo-text {
  font-family: 'Bebas Neue';
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--texto);
}
.logo-text span { color: var(--verde); }

.header-date { font-size: 13px; color: var(--muted); font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 12px; }

.live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(229,57,53,.15);
  border: 1px solid rgba(229,57,53,.4);
  color: #ef5350;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
}

.live-dot {
  width: 7px; height: 7px;
  background: #ef5350;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

.claude-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  white-space: nowrap;
}
.claude-badge.on {
  border-color: rgba(0,230,118,.45);
  background: rgba(0,230,118,.12);
  color: #bff7d9;
}
.claude-badge.off {
  border-color: rgba(239,83,80,.35);
  background: rgba(239,83,80,.10);
  color: #ffb6b6;
}

.day-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.seo-day-switch {
  display: flex;
  gap: 8px;
  padding: 10px 18px 0 18px;
  align-items: center;
}

.seo-variant {
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
}

.seo-variant option {
  background: #ffffff;
  color: #111111;
}

.thumb-day-switch {
  display: flex;
  gap: 8px;
  padding: 10px 18px 0 18px;
}

.thumb-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px 0 18px;
}

.thumb-template {
  grid-column: 1 / -1;
}

.thumb-control select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
}

.thumb-control select option {
  background: #ffffff;
  color: #111111;
}
.day-btn {
  padding: 7px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--texto);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
}
.day-btn:hover { background: rgba(255,255,255,.10); }

.dia-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--borda);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow', sans-serif;
}
.dia-btn.active,
.dia-btn:hover {
  background: var(--verde);
  border-color: var(--verde);
  color: #000;
}

.video-pick {
  margin-top: 12px;
  border-top: 1px solid var(--borda);
  padding-top: 12px;
}
.video-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.video-pick-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  font-size: 13px;
  font-weight: 700;
}
.video-pick-all input {
  width: 16px;
  height: 16px;
}
.video-pick-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.video-pick-list {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.04);
}
.video-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.video-pick-item:hover {
  background: rgba(255,255,255,.06);
}
.video-pick-item input {
  width: 16px;
  height: 16px;
}
.video-pick-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.video-pick-main {
  color: var(--texto);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}
.video-pick-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  padding: 48px 24px 32px;
  text-align: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,230,118,.10);
  border: 1px solid rgba(0,230,118,.30);
  color: var(--verde);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Bebas Neue';
  font-size: clamp(52px, 8vw, 96px);
  line-height: .9;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 0%, #a8d8ff 50%, var(--verde) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px; color: var(--muted); font-weight: 500;
  margin-bottom: 32px;
}

/* Estatísticas */
.stats-row {
  display: flex; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 40px;
}

.stat { text-align: center; }
.stat-num  { font-family: 'Bebas Neue'; font-size: 42px; color: var(--verde); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ═══════════════════════════════════════════════════
   CONTROLES / FILTROS
═══════════════════════════════════════════════════ */
.controls {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--borda);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow', sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--verde);
  border-color: var(--verde);
  color: #000;
}

.spacer { flex: 1; }

/* Botão narrar todos */
.narrar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--verde);
  border: none; border-radius: 24px;
  color: #000;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(0,230,118,.30);
}
.narrar-btn:hover    { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,230,118,.45); }
.narrar-btn:active   { transform: scale(.97); }
.narrar-btn.falando  { background: #ef5350; box-shadow: 0 4px 20px rgba(239,83,80,.40); }
.narrar-btn svg      { width: 16px; height: 16px; }

.video-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(21,101,192,.14);
  border: 1px solid rgba(21,101,192,.45);
  border-radius: 24px;
  color: #a8d8ff;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .2s;
  box-shadow: 0 4px 22px rgba(21,101,192,.14);
}
.video-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(21,101,192,.22); }
.video-btn:active { transform: scale(.97); }
.video-btn svg    { width: 16px; height: 16px; }

.thumb-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(255,214,0,.12);
  border: 1px solid rgba(255,214,0,.38);
  border-radius: 24px;
  color: #ffe066;
  font-size: 14px; font-weight: 900;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .2s;
  box-shadow: 0 4px 22px rgba(255,214,0,.10);
}
.thumb-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(255,214,0,.18); }
.thumb-btn:active { transform: scale(.97); }
.thumb-btn svg    { width: 16px; height: 16px; }

.seo-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(0,230,118,.10);
  border: 1px solid rgba(0,230,118,.28);
  border-radius: 24px;
  color: var(--verde);
  font-size: 14px; font-weight: 900;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .2s;
  box-shadow: 0 4px 22px rgba(0,230,118,.12);
}
.seo-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(0,230,118,.18); }
.seo-btn:active { transform: scale(.97); }
.seo-btn svg    { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════
   SEÇÕES (separadores entre competições)
═══════════════════════════════════════════════════ */
.secao {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 16px;
  display: flex; align-items: center; gap: 14px;
}
.secao-linha  { flex: 1; height: 1px; background: var(--borda); }
.secao-titulo {
  font-family: 'Barlow Condensed';
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.secao-icon { font-size: 16px; }

/* ═══════════════════════════════════════════════════
   GRID DE JOGOS
═══════════════════════════════════════════════════ */
.jogos-grid {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ═══════════════════════════════════════════════════
   CARD DO JOGO
═══════════════════════════════════════════════════ */
.jogo-card {
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
  animation: fadeUp .4s ease both;
}
.jogo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,230,118,.40);
  box-shadow: 0 12px 40px rgba(0,0,0,.50);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Delays de entrada */
.jogo-card:nth-child(1)  { animation-delay: .05s; }
.jogo-card:nth-child(2)  { animation-delay: .10s; }
.jogo-card:nth-child(3)  { animation-delay: .15s; }
.jogo-card:nth-child(4)  { animation-delay: .20s; }
.jogo-card:nth-child(5)  { animation-delay: .25s; }
.jogo-card:nth-child(6)  { animation-delay: .30s; }
.jogo-card:nth-child(7)  { animation-delay: .35s; }
.jogo-card:nth-child(8)  { animation-delay: .40s; }
.jogo-card:nth-child(9)  { animation-delay: .45s; }
.jogo-card:nth-child(10) { animation-delay: .50s; }
.jogo-card:nth-child(11) { animation-delay: .55s; }
.jogo-card:nth-child(12) { animation-delay: .60s; }

/* Topo do card */
.card-top {
  padding: 14px 18px 12px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
}
.card-top::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--comp-cor) 0%, transparent 70%);
  opacity: .12;
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--comp-cor);
  position: relative; z-index: 1;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-hora {
  font-family: 'Bebas Neue';
  font-size: 22px; color: var(--texto);
  position: relative; z-index: 1;
}

/* Confronto */
.confronto {
  padding: 20px 18px;
  display: flex; align-items: center; gap: 12px;
}

.time-lado {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}

.escudo-wrap {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.escudo-wrap img {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.60));
  transition: transform .2s;
}
.jogo-card:hover .escudo-wrap img { transform: scale(1.08); }

/* Escudo fallback (quando imagem não carrega) */
.escudo-fallback {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue';
  font-size: 20px; font-weight: 900;
  border: 3px solid rgba(255,255,255,.15);
  background: linear-gradient(135deg, var(--t-cor, #1a4fa0), rgba(0,0,0,.30));
  color: white;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.50));
}

.time-nome {
  font-size: 13px; font-weight: 800;
  text-align: center; color: var(--texto);
  text-transform: uppercase; letter-spacing: .5px;
  line-height: 1.2;
}

.vs-box {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; flex-shrink: 0;
}
.vs-text {
  font-family: 'Bebas Neue';
  font-size: 28px; color: var(--muted);
  letter-spacing: 2px;
}

/* Rodapé do card */
.card-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--borda);
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}

.estadio-info {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; font-weight: 500;
}
.estadio-info svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .6; }

.canal-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--verde);
  background: rgba(0,230,118,.08);
  border: 1px solid rgba(0,230,118,.20);
  padding: 5px 10px; border-radius: 10px;
  white-space: nowrap;
}
.canal-info svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Botão narrar no card */
.card-narrar {
  width: 100%; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px;
  background: rgba(0,230,118,.06);
  border: 1px solid rgba(0,230,118,.15);
  border-radius: 10px;
  color: var(--verde);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .2s;
}
.card-narrar:hover {
  background: rgba(0,230,118,.12);
  border-color: rgba(0,230,118,.35);
}

/* ═══════════════════════════════════════════════════
   PLAYER BAR (fixo na base)
═══════════════════════════════════════════════════ */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(9,16,24,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--borda);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.player-bar.visivel { transform: translateY(0); }

.player-info      { flex: 1; min-width: 0; }
.player-titulo    { font-size: 14px; font-weight: 700; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub       { font-size: 12px; color: var(--muted); }

.player-progress  { flex: 2; height: 4px; background: var(--borda); border-radius: 4px; overflow: hidden; }
.player-fill      { height: 100%; background: var(--verde); border-radius: 4px; width: 0%; transition: width .3s; }

.player-stop {
  padding: 8px 18px;
  background: rgba(239,83,80,.15);
  border: 1px solid rgba(239,83,80,.40);
  color: #ef5350;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  white-space: nowrap; transition: all .2s;
}
.player-stop:hover { background: rgba(239,83,80,.25); }

/* ═══════════════════════════════════════════════════
   UTILITÁRIOS
═══════════════════════════════════════════════════ */
.jogo-card.oculto { display: none; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.aberto { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}
.video-modal-inner {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(13,21,32,.96);
  border: 1px solid rgba(26,46,66,.9);
  box-shadow: 0 16px 60px rgba(0,0,0,.65);
  overflow: hidden;
}
.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--borda);
}
.video-modal-title {
  font-family: 'Barlow Condensed';
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--texto);
}
.video-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--texto);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.video-modal-close:hover { background: rgba(255,255,255,.10); }
.video-modal-body {
  padding: 14px 16px 6px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.video-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #091018;
}
#videoCanvas {
  display: block;
  width: 100%;
  height: auto;
}
#thumbCanvas {
  display: block;
  width: 100%;
  height: auto;
}
#videoPreview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.video-modal-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}
.video-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--borda);
}
.video-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--verde);
  color: #000;
  border: none;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
}
.video-action-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.video-download {
  display: none;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--texto);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.video-download:hover { background: rgba(255,255,255,.10); }

.seo-grid {
  display: grid;
  gap: 12px;
}
.seo-field {
  display: grid;
  gap: 8px;
}
.seo-label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(232,244,255,.92);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.seo-grid textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--texto);
  padding: 12px 12px;
  resize: vertical;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero h1        { font-size: 52px; }
  .stats-row      { gap: 20px; }
  .jogos-grid     { grid-template-columns: 1fr; gap: 14px; }
  .controls       { gap: 8px; }
  .header-date    { display: none; }
  .player-bar     { flex-wrap: wrap; }
  .player-progress{ width: 100%; order: 3; }
}
