body {
  font-family: Arial;
  background: #0f172a;
  color: white;
  margin: 0;
}

.header {
  background: #020617;
  padding: 15px;
  text-align: center;
}

.top-bar {
  display: flex;
  gap: 10px;
  padding: 10px;
  justify-content: center;
}

input, select, button {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

.btn-main {
  width: 90%;
  margin: 20px auto;
  display: block;
  background: #22c55e;
}

.card {
  background: #1e293b;
  margin: 10px;
  padding: 30px;
  border-radius: 15px;
}

.match {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.team img {
  width: 35px;
}

.score {
  display: flex;
  align-items: center;
  gap: 5px;
}

.score input {
  width: 40px;
  text-align: center;
}

.meta {
  margin-top: 10px;
  font-size: 12px;
  color: #38bdf8;
}

.liga {
  font-size: 11px;
  color: #94a3b8;
}

.tabla-item {
  background: #1e293b;
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.gold {
  background: gold;
  color: black;
  animation: glow 1s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px gold; }
  to { box-shadow: 0 0 15px gold; }
}

.estado {
  text-align: center;
  padding: 10px;
}

.estado.open {
  color: #22c55e;
}

.estado.closed {
  color: #ef4444;
}

button {
  min-width: 120px;
  margin-bottom: 10px;
}

.estado.warning {
  color: orange;
  font-weight: bold;
}
#tabla {
  margin-top: 20px;
  overflow-x: auto;
}

.fila {
  display: flex;
  align-items: center;
}

/* 🔥 celdas de la tabla */
.celda {
  border-radius: 6px;
}

.celda span {
  font-weight: bold;
}

.jugador {
  min-width: 140px;
  text-align: left;
  padding-left: 10px;
}

.puntos {
  min-width: 70px;
}

.header {
  background: #1e3a5f;
  color: white;
}


/* 🔥 colores de resultados */
.verde {
  background: #22c55e;
  color: #ffffff;
}

.amarillo {
  background: #eab308;
  color: #000000;
}

.rojo {
  background: #ef4444;
  color: #ffffff;
}

/* 🔥 ESTE ES EL QUE TE ESTÁ FALLANDO */
/* 🔥 fondo para gris */
.gris {
  background: #1e293b !important;
  color: #94a3b8 !important;
}
/* 🏆 TOP 3 */

.top1 {
  background: linear-gradient(90deg, #ffd700, #facc15);
  color: black;
  font-weight: bold;
}

.top2 {
  background: linear-gradient(90deg, #c0c0c0, #e5e7eb);
  color: black;
  font-weight: bold;
}

.top3 {
  background: linear-gradient(90deg, #cd7f32, #f59e0b);
  color: black;
  font-weight: bold;
}
.fila {
  background: transparent; /* 🔥 evita bloque gris */
}

/* ✨ efecto suave */
.fila {
  display: flex;
  align-items: center;
}

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

.fila:hover {
  transform: scale(1.02);
}

/* 🥇 BRILLO CAMPEÓN */

.top1 {
  background: linear-gradient(90deg, #ffd700, #facc15);
  color: black;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

/* ✨ efecto glow */
.top1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: brillo 2.5s infinite;
}

/* 🔥 animación */
@keyframes brillo {
  0% { left: -100%; }
  100% { left: 100%; }
}

.top1 {
  box-shadow: 0 0 15px #ffd700, 0 0 30px #facc15;
}

/* 🥇 CAMPEÓN BRILLO PRO */
.top1 {
  background: linear-gradient(90deg, #ffd700, #facc15);
  color: black;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

/* ✨ efecto brillo animado */
.top1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: brillo 2.5s infinite;
}

/* animación */
@keyframes brillo {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 💥 glow extra */
.top1 {
  box-shadow: 0 0 15px #ffd700, 0 0 30px #facc15;
}

.meta {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  opacity: 0.9;
}

.hora {
  font-weight: bold;
  color: #e2e8f0;
}

.liga {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

.meta {
  background: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: 8px;
}
.banner {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

.banner img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.banner img {
  width: 100%;
  max-width: 650px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  transition: transform 0.3s;
}

.banner img:hover {
  transform: scale(1.02);
}

/* 🔥 SOLUCIÓN FINAL VISUAL TABLA */

.celda {
  min-width: 80px;
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: bold;

  background: #0f172a; /* 🔥 fondo oscuro base */
  color: #ffffff;
}

/* 🔥 asegura que el contenido se vea */
.celda span {
  background: #1e293b !important; /* 🔥 oscuro */
  color: #ffffff !important;
  padding: 4px 8px;
  border-radius: 6px;
}

/* 🔥 COLORES REALES */
.verde span {
  background: #22c55e;
  color: #fff;
}

.amarillo span {
  background: #eab308;
  color: #000;
}

.rojo span {
  background: #ef4444;
  color: #fff;
}

.gris span {
  background: #334155; /* 🔥 gris oscuro visible */
  color: #cbd5f5;
}

.tabla-scroll {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.fila {
  min-width: max-content;
}

.celda {
  min-width: 70px;
  flex: 0 0 auto;
}

/* 🔥 FORZAR COLORES TOP COMPLETOS */
.fila.top1 .celda {
  background: linear-gradient(90deg, #ffd700, #facc15) !important;
  color: black !important;
}

.fila.top2 .celda {
  background: linear-gradient(90deg, #c0c0c0, #e5e7eb) !important;
  color: black !important;
}

.fila.top3 .celda {
  background: linear-gradient(90deg, #cd7f32, #f59e0b) !important;
  color: black !important;
}

/* 🔥 espacio entre columnas */
.celda {
  margin: 4px;
  border-radius: 10px;
}

/* 🔥 espacio entre filas */
.fila {
  margin-bottom: 8px;
}

/* contenedor más ordenado */
#tabla {
  padding: 10px;
}

/* separar bloques */
.fila {
  gap: 6px;
}

/* que no se vean pegadas */
.celda {
  padding: 12px;
}

.fila {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 5px;
}

.admin-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 25px;
  background: #1e293b;
  border-radius: 15px;
}

.admin-container input,
.admin-container select,
.admin-container button {
  width: 100%;
  box-sizing: border-box;
}

.admin-container input,
.admin-container select {
  margin-bottom: 10px;
}

.admin-container button {
  margin-top: 10px;
}

.admin-container input,
.admin-container select,
.admin-container button {
  width: 100% !important;
  box-sizing: border-box;
  display: block;
}

.admin-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.admin-container * {
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

.form-row input,
.form-row select,
.form-row button {
  margin-top: 12px;
  width: 100% !important;
  margin-bottom: 15px;
  display: block;
}

.form-row {
  gap: 12px;
}

.card {
  padding: 35px;
}

.form-row input,
.form-row select {
  margin-bottom: 15px;
}

.form-row button {
  margin-top: 10px;
  margin-bottom: 10px;
}

.card {
  padding: 30px;
}

.form-row {
  gap: 12px;
}

button {
  background: #22c55e; /* verde */
  color: white;
  font-weight: bold;
}

button:hover {
  background: #16a34a !important; /* verde más oscuro */
}



button:not([onclick="resetearTodo()"]):not([onclick="logout()"]) {
  background: #22c55e;
  color: white;
}

/* 🟢 BOTONES VERDES */
.btn-verde {
  background: #22c55e;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 10px;
  width: 100%;
}

.btn-verde:hover {
  background: #16a34a;
}

/* 🔴 CERRAR SESIÓN */
.btn-rojo {
  background: #ef4444;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.btn-rojo:hover {
  background: #dc2626;
}

/* 🔥 RESET */
.btn-reset {
  background: #ff0000;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
  width: 100%;
  font-weight: bold;
  box-shadow: 0 0 10px red;
}

.btn-reset:hover {
  background: #cc0000;
}

button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.97);
}