/* ==========================================
   RESET & CONFIGURAÇÕES GERAIS
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --card-color-border-title: #746615;
  --card-color-primary: #f7dd43;
}

body.blue {
  --card-color-border-title: #43f333;
  --card-color-primary: #43f333;
}

body.green {
  --card-color-border-title: #0ecc04;
  --card-color-primary: #0ecc04;
}

ul {
  list-style: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59,130,246,.25), transparent 30%);
  pointer-events: none;
}

body {
  background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)), url("./assets/bgstadium.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

body * {
  font-family: "Roboto", sans-serif;
}

#app {
  width: 100%;
  max-width: 1280px;
  margin: 52px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

/* ==========================================
   HEADER & COMPONENTES EXTRA
   ========================================== */
header {
  margin-bottom: 63px;
  text-align: center;
}

header img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.section-title {
  text-align: center;
  color: #f7dd43;
  margin-bottom: 30px;
}

.countdown {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: rgba(24, 31, 66, 0.9);
  border: 2px solid #f7dd43;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(247, 221, 67, .5);
}

.countdown strong {
  color: #f7dd43;
  font-size: 30px;
}

.fact-container {
  background: #1d1c25;
  border: 1px solid #323238;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 15px auto 0 auto;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

.fact-title {
  display: block;
  color: #f7dd43;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.fact-container p {
  color: #e1e1e6;
  font-size: 13px;
  line-height: 150%;
  margin: 0;
}

.broadcasts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.tv-icon {
  font-size: 14px;
}

.broadcast-tag {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================
   MENU DE FILTROS / BOTÕES
   ========================================== */
.menu {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.menu button {
  padding: 12px 24px;
  background: #181f42;
  color: #fff;
  border: 1px solid #43f333;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: .3s;
}

.menu button:hover,
.menu button.active {
  background: #43f333;
  color: #000;
}

.hidden {
  display: none;
}

/* ==========================================
   BUSCA E FILTROS RÁPIDOS
   ========================================== */
.search-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#search-input {
  width: 100%;
  background-color: #1d1c25 !important;
  border: 2px solid #323238 !important;
  color: #FFFFFF !important;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

#search-input:focus {
  border-color: #F7DD43 !important;
  background-color: #25242e !important;
}

#search-input::placeholder {
  color: #7c7c8a !important;
  opacity: 1;
}

.quick-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-flag-btn {
  background-color: #1d1c25 !important;
  border: 1px solid #323238 !important;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-flag-btn img {
  width: 32px;
  height: auto;
  display: block;
}

.filter-flag-btn:hover,
.filter-flag-btn.active {
  border-color: #F7DD43 !important;
  background-color: rgba(247, 221, 67, 0.1) !important;
  transform: translateY(-2px);
}

.clear-filter-btn {
  background-color: #E23E44 !important;
  color: #FFFFFF !important;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================
   CARDS DE JOGOS / RODADAS
   ========================================== */
#cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.card {
  padding: 32px 23px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 10px rgba(59,130,246,.4), 0 0 30px rgba(59,130,246,.4);
  background: #181f42;
  border-bottom: 2px solid var(--card-color-primary);
  border-radius: 6px;
  animation: appear 0.6s ease-out;
}

.card:hover {
  transform: translateY(-5px);
  transition: .3s;
  border-color: #3b82f6;
}

.card h2 {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--card-color-border-title);
  border-radius: 6px;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 53px;
  color: #f7dd43;
  transition: transform 0.2s;
}

.card h2 span {
  color: #e1e1e6;
  font-size: 16px;
  text-transform: uppercase;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 270px;
}

.card ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card ul li + li {
  padding-top: 24px;
  border-top: 1px solid #2424bc;
}

.card ul li strong {
  font-weight: 900;
  font-size: 36px;
  line-height: 125%;
  color: #e1e1e6;
  transition: transform 0.2s;
}

.card ul li img {
  transition: transform 0.2s;
}

.card h2:hover,
.card ul li strong:hover,
.card ul li img:hover {
  transform: scale(1.2);
}

@keyframes appear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.round {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.round-badge {
  margin-bottom: 24px;
}

.round-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
}

.country-name {
  font-size: 11px;
  font-weight: 700;
  color: #E1E1E6;
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
  word-break: break-word;
}

.tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.flag:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 90px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #323238;
  border-radius: 8px;
  color: #000000;
}

.score-box span {
  font-size: 18px;
  font-weight: 700;
}

.score-box strong {
  font-size: 20px !important;
  color: var(--card-color-primary) !important;
}

.match-info small {
  color: #f7dd43;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ==========================================
   TELA DE CAMPEÕES (ESCUDOS ATUALIZADOS)
   ========================================== */
#championsList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.champion-card {
  background: #181f42;
  border-bottom: 2px solid #04f724;
  border-radius: 8px;
  padding: 16px;
  width: 220px;
  text-align: center;
}

.champion-year {
  display: block;
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.champion-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.champion-team img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
}

.champion-team strong {
  color: #fff;
  font-size: 16px;
}

/* ==========================================
   ESTILIZAÇÃO UNIFICADA DOS GRUPOS (IGUAL CARDS)
   ========================================== */
#groupsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 10px;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.group-card {
  padding: 32px 23px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 10px rgba(59,130,246,.4), 0 0 30px rgba(59,130,246,.4);
  background: #181f42;
  border-bottom: 2px solid #f7dd43;
  border-radius: 6px;
  box-sizing: border-box;
  transition: transform 0.3s, border-color 0.3s;
}

.group-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

.group-card h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.2rem;
  color: #ffffff;
  text-transform: uppercase;
}

/* ESTRUTURA E ALINHAMENTO DA TABELA */
.group-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Alinhamento dos cabeçalhos da tabela */
.group-table th {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 12px;
}

/* Ajuste de distância nas colunas específicas */
.group-table th:nth-child(1),
.group-table td:nth-child(1) {
  width: 35px;
  text-align: center;
  padding-left: 4px;
}

.group-table th:nth-child(2),
.group-table td:nth-child(2) {
  text-align: left;
}

.group-table th:nth-child(3), .group-table td:nth-child(3),
.group-table th:nth-child(4), .group-table td:nth-child(4),
.group-table th:nth-child(5), .group-table td:nth-child(5) {
  width: 35px;
  text-align: center;
}

.group-table tr {
  border-bottom: 1px solid #04f724;
}

.group-table td {
  padding: 10px 0;
  color: #E1E1E6;
  vertical-align: middle;
}

/* Alinhamento em linha das Flags na classificação */
.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.team-cell span {
  white-space: nowrap;
}

/* Ajuste fino da mini bandeira */
.table-flag {
  width: 24px;
  height: 16px;
  min-width: 24px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Linha Amarela de Classificação 
.group-table tr:nth-child(1) td,
.group-table tr:nth-child(2) td {
  border-left: 1px solid #F7DD43;
  padding-left: 4px;
}*/

/* ==========================================
   RODAPÉ (ESTÁTICO / DESIGN SLIM)
   ========================================== */
.main-footer {
  width: 100%;
  background-color: #14161b;
  color: #8f9299;
  padding: 24px 20px;
  border-top: 1px solid #2f333d;
  font-family: sans-serif;
  box-sizing: border-box;
  margin-top: 60px;
}

.main-footer .footer-container {
  display: none; 
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.8;
}

/* ==========================================
   RESPONSIVIDADE & ADAPTAÇÕES
   ========================================== */
@media (min-width: 700px) {
  #cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .main-footer {
    padding: 20px 40px;
    margin-top: 80px;
  }

  .main-footer .footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
  }

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

  .footer-section h3, 
  .footer-section h4 {
    font-size: 0.85rem;
    margin: 0;
    color: #f7f9fa;
    white-space: nowrap;
  }

  .footer-section p {
    display: none;
  }

  .footer-section ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer-section ul li a {
    font-size: 0.8rem;
    color: #8f9299;
    text-decoration: none;
  }
  
  .footer-section ul li a:hover {
    color: #f7f9fa;
  }

  .tech-badges {
    display: flex;
    gap: 5px;
  }

  .tech-badges span {
    padding: 2px 6px;
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #fff;
  }
}

@media (max-width: 360px) {
  .group-table {
    font-size: 0.8rem;
  }
  
  .table-flag {
    width: 20px;
    height: 14px;
  }
}

.text-center {
  text-align: center !important;
}

.font-bold {
  font-weight: bold;
}

/* ==========================================
   MÓDULO SEJA TÉCNICO (NOVA ABA)
   ========================================== */
.setup-container {
  margin: 10px auto 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-weight: 700;
}

.setup-container select {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #43f333;
  border-radius: 8px;
  background-color: #1d1c25;
  color: #fff;
  cursor: pointer;
  outline: none;
}

.setup-container select:focus {
  border-color: #f7dd43;
}

.coach-layout {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

/* O Campo de Futebol Integrado */
.field {
  width: 340px;
  height: 480px;
  background-color: #0b5e29;
  border: 4px solid #ffffff;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(59,130,246,.4);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.06) 50%, transparent 50%);
  background-size: 100% 30px;
}

.field::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,0.7);
}

.center-circle {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Slots de Posição */
.position-slot {
  width: 60px;
  height: 60px;
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.position-slot:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Jogador Escalado (Dentro do Campo) */
.position-slot.filled {
  background: #f7dd43 !important;
  color: #000000 !important;
  border: 2px solid #181f42 !important;
  font-size: 10px;
  line-height: 1.1;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Banco de Escolha de Elenco */
.players-pool {
  width: 320px;
  background: #181f42;
  padding: 24px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(59,130,246,.4);
  border-bottom: 2px solid #f7dd43;
  max-height: 480px;
  overflow-y: auto;
}

.pool-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coach-player-card {
  background: #1d1c25;
  border: 1px solid #323238;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 700;
  transition: all 0.2s;
}

.coach-player-card:hover {
  border-color: #43f333;
  background-color: rgba(67, 243, 51, 0.05);
}

.badge-pos {
  font-size: 10px;
  color: #000;
  background: #43f333;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
}

/* Seção Compartilhar */
.share-section {
  display: none;
  width: 100%;
  max-width: 690px;
  text-align: center;
  background: #181f42;
  border: 2px solid #43f333;
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(67, 243, 51, 0.4);
  margin: 10px auto;
  animation: appear 0.4s ease-out;
}

.share-section h2 {
  color: #f7dd43;
  margin-bottom: 8px;
  font-size: 22px;
}

.share-section p {
  color: #e1e1e6;
  font-size: 14px;
  margin-bottom: 18px;
}

.btn-share-social {
  padding: 10px 24px;
  background: #1d1c25;
  color: #fff;
  border: 1px solid #f7dd43;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  margin: 0 6px;
  transition: .2s;
}

.btn-share-social:hover {
  background: #f7dd43;
  color: #000;
  transform: translateY(-2px);
}

/* Ajuste Responsivo para o Campo */
@media (min-width: 700px) {
  .field {
    width: 400px;
    height: 540px;
  }
  .position-slot {
    width: 70px;
    height: 70px;
    font-size: 12px;
  }
  .position-slot.filled {
    font-size: 11px;
  }
}

/* Card desabilitado quando o jogador já está escalado no campo */
.coach-player-card.already-scaled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none; /* Bloqueia cliques adicionais */
  border-color: #323238 !important;
  background-color: #121214 !important;
}

/* Transforma as tags de transmissão em botões clicáveis */
.broadcasts {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-streaming {
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-streaming:hover {
  background-color: #f7dd43 !important; /* Muda a cor de fundo para o amarelo do tema */
  color: #121214 !important;            /* Texto escuro no hover para dar contraste */
  transform: translateY(-2px);          /* Leve efeito de subir o botão */
  box-shadow: 0 4px 8px rgba(247, 221, 67, 0.3);
}

/* Container do Carrossel de Abas */
.tabs-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;              /* Permite rolar para os lados */
  scroll-behavior: smooth;       /* Suaviza o movimento */
  scroll-snap-type: x mandatory;  /* Faz o efeito "ímã" elástico de aplicativo */
  padding: 10px 16px;
  width: 100%;
  max-width: 480px;              /* Limita a largura máxima no desktop */
  margin: 0 auto 32px auto;      /* Centraliza na tela e empurra o conteúdo para baixo */
  
  /* Melhora o deslize em telas touch */
  -webkit-overflow-scrolling: touch; 
}

/* Esconde a barra de rolagem horizontal padrão do navegador para ficar estético */
.tabs-carousel::-webkit-scrollbar {
  display: none;
}

/* Estilo padrão dos botões dentro do carrossel */
.tabs-carousel button {
  flex: 0 0 auto;                /* Impede que o texto quebre ou os botões encolham */
  scroll-snap-align: center;      /* Centraliza o botão focado quando deslizar */
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 99px;           /* Design moderno em formato pílula */
  background-color: #202024;
  color: #8d8d99;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Estado ativo do botão selecionado */
.tabs-carousel button.active {
  background-color: var(--card-color-primary, #f7dd43);
  color: #121214;
  box-shadow: 0 4px 12px rgba(247, 221, 67, 0.2);
}

/* Efeito Hover para computadores */
.tabs-carousel button:hover:not(.active) {
  color: #ffffff;
  border-color: rgba(247, 221, 67, 0.4);
}

/* ==========================================
   STATUS DOS TIMES NOS GRUPOS
   ========================================== */

.qualified td {
  border-left: 4px solid #00ff6a;
}

.best-third td {
  border-left: 4px solid #f7dd43;
}

.eliminated td {
  border-left: 4px solid #ff4d4d;
}


/* cards de jogos */
.knockout-card {
  padding: 32px 23px;
  width: 320px;
  text-align: center;

  box-shadow: 0 0 10px rgba(59,130,246,.4),
              0 0 30px rgba(59,130,246,.4);

  background: #181f42;
  border-bottom: 2px solid var(--card-color-primary);
  border-radius: 6px;

  animation: appear 0.6s ease-out;
  transition: transform 0.3s, border-color 0.3s;
}

.knockout-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

/* linha do jogo */
.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.match-row img {
  width: 24px;
  height: 16px;
  object-fit: contain;
}

.score {
  font-weight: 700;
  color: #f7dd43;
}

/* conexão visual tipo bracket */
.round::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #323238;
  position: absolute;
  right: -40px;
  top: 50%;
}

.knockout-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.knockout-match {
  background: var(--card-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

/* ==========================================
   AJUSTES FINAIS - MATAMATA (COPA 2026)
   ========================================== */

#knockoutCardsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
}

/* Garante que os cards gerados dinamicamente no mata-mata sigam o padrão exato do dia 11/06 */
#knockoutCardsContainer .card {
  animation: appear 0.6s ease-out;
  transition: transform 0.3s, border-color 0.3s;
}

#knockoutCardsContainer .card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6; /* Destaca com um leve azul sutil ao passar o mouse */
}

#knockoutContainer #cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 30px;
}

/* Remove o efeito verde fantasma se o botão não for o clicado ativo */
header nav button:not(.active) {
  background: transparent !important;
  color: #ffffff !important;
}

/* ======================================
   CARD BASE (JOGOS + MATA-MATA)
====================================== */

.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* FLAGS */
.match-card .flag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.match-card .flag img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.country-name {
  font-size: 13px;
  color: #fff;
}

/* SCORE */
.match-card .match-info {
  text-align: center;
  flex: 1;
}

.score-box {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}

.match-info small {
  display: block;
  font-size: 20px;
  opacity: 0.7;
  margin-top: 4px;
}

/* TRANSMISSÃO */
.broadcasts {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.broadcast-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-decoration: none;
}

/* ======================================
   MATA-MATA (DIFERENCIAÇÃO VISUAL)
====================================== */

.match-card.knockout {
  background: linear-gradient(
    135deg,
    rgba(32,35,41,.95),
    rgba(20,22,28,.95)
  );

  border: 1px solid rgba(247,221,67,.15);

  border-radius: 18px;

  padding: 18px;

  margin-bottom: 14px;

  transition: .3s;

  position: relative;
  overflow: hidden;
}

.match-card.knockout::before {
  content: attr(data-stage);
  position: absolute;
  top: -10px;
  left: 12px;
  background: #f7dd43;
  color: #000;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: bold;
}

/* TÍTULO DA FASE (OITAVAS, QUARTAS...) */
.knockout-stage-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #f7dd43;
  text-transform: uppercase;
}

.match-date {
  font-size: 1rem;
  font-weight: 700;
  color: #f7dd43;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.knockout .match-date,
.score-box,
.country-name {
  font-family: 'Rajdhani', sans-serif;
}

.match-date {
  font-size: 1rem;
  font-weight: 700;
  color: #f7dd43;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.knockout .match-date {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(90deg, #f7dd43, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 8px;
}

.knockout .flag img {
  transition: all .3s ease;
}

.match-card.knockout:hover .flag img {
  transform: scale(1.15);
}

.knockout-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: #f7dd43;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.knockout-day {
  margin: 30px 0 15px;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #f7dd43;
  border-bottom: 2px solid rgba(247,221,67,.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-card.knockout {
  animation: knockoutAppear .5s ease forwards;
}

@keyframes knockoutAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.knockout-day {
  position: sticky;
  top: 0;
  z-index: 10;

  background: linear-gradient(
    90deg,
    #f7dd43,
    #ffd700
  );

  color: #121214;

  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;

  text-transform: uppercase;

  padding: 12px 18px;
  border-radius: 12px;

  margin: 24px 0 12px;
  box-shadow: 0 4px 20px rgba(247,221,67,.3);
}

@keyframes knockoutAppear {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-card.knockout {
  animation: knockoutAppear .5s ease forwards;
}

.knockout-stage {
  text-align: center;

  font-size: 1.5rem;
  font-weight: 900;

  color: #f7dd43;

  margin: 30px 0;

  text-transform: uppercase;
}

.knockout-subtitle {
  text-align: center;

  font-size: 1.25rem;
  font-weight: 700;

  color: #f7dd43;

  margin-top: -10px;
  margin-bottom: 30px;

  text-shadow: 0 0 10px rgba(247, 221, 67, 0.3);
}

@media (max-width: 768px) {
  .knockout-subtitle {
    font-size: 0.95rem;
    padding: 0 15px;
  }
}

.match-card.knockout .flag img {
  width: 56px;
  height: 56px;

  border: 2px solid rgba(247, 221, 67, 0.4);

  border-radius: 50%;

  box-shadow:
    0 0 10px rgba(247, 221, 67, 0.25),
    0 0 20px rgba(247, 221, 67, 0.15);
}

.match-card.knockout .flag {
  min-width: 120px;
}

@media (max-width: 768px) {

  .match-card.knockout .flag img {
    width: 42px;
    height: 42px;
  }

  .match-card.knockout .country-name {
    font-size: 0.9rem;
  }
}

.match-card.knockout .flag img {
  width: 56px;
  height: 56px;

  border-radius: 50%;

  object-fit: cover;
  object-position: center;

  overflow: hidden;
}

.knockout-team span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,255,255,.15);
}

.knockout-time {
  display: inline-block;

  margin-top: 14px;
  padding: 10px 22px;

  background: linear-gradient(
    135deg,
    #ffd700,
    #ffb300
  );

  color: #111;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 1.5px;

  border-radius: 30px;

  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.35),
    0 0 30px rgba(255, 215, 0, 0.15);

  transition: all .3s ease;
}

.knockout-time:hover {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .knockout-time {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

.best-thirds {
  margin-top: 40px;
}

.best-thirds h2 {
  text-align: center;
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.thirds-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.thirds-table th {
  background: #111827;
  color: #fff;
  padding: 12px;
}

.thirds-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.thirds-table img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}

.qualified-third {
  background: rgba(0,255,106,.08);
}

.qualified-third td:first-child {
  border-left: 4px solid #00ff6a;
}

.best-thirds-card {
  margin-top: 40px;
  animation: appear .5s ease;
}

.best-thirds-title {
  text-align: center;
  color: #ffd700;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.qualified-third {
  background: rgba(0,255,106,.08);
}

.qualified-third td:first-child {
  border-left: 4px solid #00ff6a;
}

.thirds-note {
  text-align: center;
  margin-top: 12px;
  color: #00ff6a;
  font-weight: 700;
}

.best-thirds-card{
  margin-top: 30px;
  background: #202024;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
}

.best-thirds-title{
  text-align:center;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.qualified-third{
  background: rgba(0,255,106,.12);
}

.thirds-note{
  text-align:center;
  margin-top: 15px;
  color:#00ff6a;
  font-weight:700;
}

.match-broadcasters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.broadcast-btn {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  transition: 0.2s;
}

.broadcast-btn:hover {
  background: #ffd700;
  color: #000;
}

@media (max-width: 768px) {

  .match-broadcasters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    max-width: 120px;
  }

  .broadcast-btn {
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 10px;
  }

}

