body {
  font-family: 'Times New Roman', Times, serif;
  background: #f6f6f6;
  color: #222;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

/* Encabezado tipo diario */
.header-deporte {
  width: 100%;
  text-align: center;
  padding: 24px 0 12px 0;
  background: #ededed;
  border-bottom: 4px double #222;
  letter-spacing: 2px;
  font-family: 'Impact', 'Georgia', serif;
  font-size: 2.8em;
  color: #222;
  text-shadow: 1px 1px 0 #fff, 0 2px 2px #bbb;
  margin-bottom: 0;
}

.header-deporte h1 {
  margin: 0;
  font-size: 2.2em;
  font-family: 'Impact', 'Georgia', serif;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* Subtítulo tipo diario */
h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.3em;
  color: #222;
  background: #ededed;
  border-bottom: 2px solid #222;
  margin: 32px 0 8px 0;
  padding: 8px 0 4px 0;
  text-align: left;
  letter-spacing: 1px;
}

/* Contenedor de eventos con bordes circulares tipo iPhone */
#eventos {
  margin: 0 auto;
  max-width: 900px;
  background: #fff;
  border: 2px solid #222;
  border-radius: 28px;
  box-shadow: 0 2px 16px #bbb;
  padding: 24px 18px;
}

/* Tabla con bordes circulares tipo iPhone */
table.agenda-tabla {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 2px solid #222;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1em;
  border-radius: 22px;
  overflow: hidden;
}
.agenda-tabla thead {
  background: #e5e5e5;
  color: #222;
  border-radius: 0 !important;
  font-weight: bold;
  font-size: 1.05em;
  letter-spacing: 1px;
  border-bottom: 2px solid #bbb;
  padding: 12px 8px;
}
.agenda-tabla th,
.agenda-tabla td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #bbb;
  color: #222;
}
.agenda-tabla th {
  font-weight: bold;
  color: #222;
  font-size: 1.05em;
  letter-spacing: 1px;
}
.agenda-tabla tr:hover {
  background: #f6f6f6;
}

/* Encabezado y celdas de la tabla con bordes circulares arriba */
.agenda-tabla thead th {
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

/* Última fila con bordes circulares abajo */
.agenda-tabla tbody tr:last-child td {
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  border-bottom: none;
}

/* Logos de equipos con color más fuerte */
.equipo-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  filter: grayscale(0%) contrast(1.2) drop-shadow(0 0 2px #222);
}

/* Hora */
.partido-hora {
  color: #222;
  font-weight: bold;
  font-size: 1em;
  font-family: 'Georgia', serif;
}

/* Canal */
.partido-canal {
  color: #1976d2;
  font-size: 14px;
  white-space: nowrap;
}
.partido-canal a {
  color: #1976d2;
  text-decoration: none;
}

/* Acciones / botón de liga */
.liga-actions {
  max-width: 900px;
  margin: 14px auto 6px auto; /* coincide con #eventos */
  padding: 0 18px;
  display: flex;
  justify-content: flex-start; /* <- botón a la izquierda */
  align-items: center;
  gap: 8px;
}
.liga-btn {
  display: inline-block;
  background: linear-gradient(180deg,#f3e9c9,#e6d3a0);
  color: #222;
  border: 2px solid #222;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
  font-family: 'Georgia', serif;
}
.liga-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.liga-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Responsive: mover el botón a la izquierda en móviles y reducir tamaño */
@media (max-width:700px) {
  .liga-actions { padding: 0 8px; justify-content: flex-start; margin-bottom: 8px; }
  .liga-btn { padding: 6px 10px; border-radius: 12px; font-size: 0.95em; }
}

/* Responsive para móviles y tablets */
@media (max-width: 700px) {
  .header-deporte {
    font-size: 1.3em;
    padding: 12px 0 8px 0;
    letter-spacing: 2px;
  }
  .header-deporte h1 {
    font-size: 1.1em;
    letter-spacing: 2px;
  }
  #eventos {
    padding: 8px 2px;
    max-width: 100vw;
    font-size: 0.97em;
  }
  h2 {
    font-size: 1em !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
    padding: 6px 0 2px 0;
  }
  table.agenda-tabla {
    font-size: 0.95em;
    min-width: 320px;
    width: 100%;
    display: block;
    overflow-x: auto;
  }
  .agenda-tabla th,
  .agenda-tabla td {
    padding: 6px 2px;
    font-size: 0.95em;
    white-space: nowrap;
  }
  .equipo-logo {
    width: 18px;
    height: 18px;
    margin-right: 3px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 400px) {
  .header-deporte h1 {
    font-size: 1em;
  }
  table.agenda-tabla {
    min-width: 220px;
  }
}

/* Competition logo (columna Liga) */
.competition-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Fallback text when no logo */
.competition-name-fallback {
  font-weight: 700;
  color: #333;
  font-size: 0.95em;
}

/* Team crest / badge (local y visitante) */
.team-badge {
  height: 24px;
  width: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Ajustes responsive */
@media (max-width: 700px) {
  .competition-logo { height: 22px; margin-right: 6px; }
  .team-badge { height: 18px; width: 18px; margin-right: 6px; }
  .competition-name-fallback { font-size: 0.9em; }
}