/* ========================================
   Reset e estilo base
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  position: relative;
}

.pitch-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

h1 {
  font-size: 5rem;
  letter-spacing: 6px;
  position: relative;
  z-index: 2;
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ========================================
   Conteúdo principal
   ======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.controls {
  text-align: center;
  margin-bottom: 2rem;
}

#refresh-btn {
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

#refresh-btn:hover {
  transform: translateY(-4px);
}

#status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ========================================
   Tabela de jogos
   ======================================== */
#schedule-table {
  border-radius: 16px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 1.3rem 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
  font-weight: 700;
}

tbody td {
  padding: 0.2rem 0rem;
  text-align: center;
}

tr[data-today="true"] {
  border-left: 6px solid #34c759;
}

.time {
  font-weight: 700;
  min-width: 100px;
}

.date {
  font-size: 0.95rem;
}

.match {
  font-size: 1.2rem;
  font-weight: 500;
}

.competition {
  font-size: 0.9rem;
}

.channel {
  font-weight: 700;
  font-size: 1rem;
}

.today-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   Responsivo
   ======================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
    letter-spacing: 3px;
  }

  .header {
    padding: 2rem 1rem;
  }

  tbody td {
    padding: 0.9rem 0.6rem;
    font-size: 0.95rem;
  }

  .match {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .container {
    padding: 1rem 0.5rem;
  }

  #refresh-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  /* Tabela compacta */
  thead th {
    padding: 0.8rem 0.2rem;
    font-size: 0.75rem;
  }

  tbody td {
    padding: 0.6rem 0.2rem;
    font-size: 0.8rem;
  }

  .time {
    min-width: auto;
    font-size: 0.8rem;
  }

  .date {
    font-size: 0.75rem;
  }

  .match {
    font-size: 0.9rem;
  }

  .competition {
    font-size: 0.7rem;
  }

  .channel {
    font-size: 0.75rem;
  }

  .today-badge {
    font-size: 0.55rem;
    padding: 1px 4px;
    margin-left: 4px;
  }
}
