body {
	font-family: Arial, sans-serif;
	background-color: #f3f4f6;
	color: #333;
	margin: 0;
	padding: 0;
}

.main-container {
	display: flex;
	flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente fila */
	justify-content: center; /* Centra los elementos horizontalmente */
	gap: 15px; /* Espacio entre los elementos */
	padding: 15px;
	padding-top: 0px;
}

.container {
	width: calc(50% - 20px); /* Ajusta el ancho para que quepan dos por fila, considerando el espacio */
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-sizing: border-box; /* Incluye los bordes en el cálculo del ancho */
	padding: 15px;
}

.container2 {
	width: calc(50% - 20px); /* Ajusta el ancho para que quepan dos por fila, considerando el espacio */
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-sizing: border-box; /* Incluye los bordes en el cálculo del ancho */
	padding: 15px;
}

.container2:hover {
	border-color: #333;
	cursor: pointer;
}

.player:hover {
	border: 1px solid #333;
	cursor: pointer;
}

.containerJugadoresDestacados {
	/*width: calc(100% - 20px);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-sizing: border-box;
	padding: 15px;*/
	display: flex;
	
	justify-content: center;
	gap: 10px;
	padding: 20px;
}

.player {
	width: 33%;
	background: white;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.team-logo {
	width: 50px;
	height: 50px;
}
.player-info {
	text-align: center;
	flex-grow: 1;
}
.player-name {
	font-size: 18px;
	font-weight: bold;
	padding-left: 25px;
    padding-right: 25px;
}
.player-dorsal {
	font-size: 14px;
	color: gray;
}
.player-points {
	width: 50px;
	height: 50px;
	background: red;
	color: white;
	font-size: 20px;
	font-weight: bold;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
}

.points-label {
	font-size: 10px;
	font-weight: normal;
}

@media (max-width: 768px) {
	.container {
		flex-direction: column;
		align-items: center;
	}
	
	.container2 {
		flex-direction: column;
		align-items: center;
	}
	
	.player {
		width: 90%;
	}
	
	.containerJugadoresDestacados {
		flex-wrap: wrap;
	}
}

.logo img {
	display: block;
	margin: 10px auto 10px auto;
	padding-top: 10px;
	/*max-width: 100px;*/
	height: 150px;
}

.top-info {
	width: 100%;
	margin-bottom: 10px;
}

.bottom-info {
	width: 100%;
	margin-top: 10px;
}

.scoreboard {
	width: 100%;
	border-radius: 8px;
	padding: 15px;
	background: #f7f7f7;
}

.team-score {
	width: 100%;
	margin: 10px 0;
}

.separator {
	border-top: 1px solid #ddd;
	margin: 10px 0;
}

.categoria {
	width: 100%;
	padding: 5px;
	border-radius: 8px;
	background: #333;
	color: #FFF;
}

.categoria2 {
	padding: 5px;
	border-radius: 8px;
	background: #333;
	color: #FFF;
}

.clasificacion {
	width: 44%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #f7f7f7; /* Azul tipo Bootstrap */
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	user-select: none;
}

.clasificacion:hover {
	background-color: #333;
	color: white;
}

.clasificacion i {
	font-size: 1rem;
}

.botonAnotadores {
	width: 90%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #ff5722; /* Azul tipo Bootstrap */
	padding: 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	user-select: none;
	color: white;
	font-size: 20px;
    font-weight: bold;
	text-align: center;
}

.botonAnotadores:hover {
	background-color: #333;
	color: white;
}

.botonAnotadores i {
	font-size: 2rem;
}

@media (max-width: 768px) {
	.container {
		width: 100%; /* En pantallas pequeñas, cada bloque ocupa toda la fila */
	}
	
	.container2 {
		width: 100%; /* En pantallas pequeñas, cada bloque ocupa toda la fila */
	}
	
	.logo img {
		max-width: 300px;
	}
	
	.clasificacion {
		width: 39%;
	}
}
/*
.semana-selector {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 18px;
}
.semana-selector button {
	padding: 5px 10px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 8px;
	background: #333;
	color: #FFF;
	font-weight: bold;
}
.checkbox-container {
	display: flex;
	align-items: right;
	gap: 5px;
}*/

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between; /* Alinea el selector a la izquierda y el checkbox a la derecha */
	padding: 10px 20px;
	border-bottom: 2px solid #ccc;
	background-color: #f8f8f8;
}

.semana-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
}

.semana-selector button {
	padding: 5px 10px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 8px;
	background: #333;
	color: #FFF;
	font-weight: bold;
}

.checkbox-container {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 16px;
	font-weight: bold;
}

/* Estilizar el checkbox */
.checkbox-container input[type="checkbox"] {
	appearance: none; /* Oculta el checkbox nativo */
	width: 22px;
	height: 22px;
	border: 2px solid #333;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
}

/* Estilizar cuando está marcado */
.checkbox-container input[type="checkbox"]:checked {
	background-color: #333;
	border: 2px solid #333;
}

/* Agregar el "check" cuando está marcado */
.checkbox-container input[type="checkbox"]:checked::after {
	content: '✔';
	color: white;
	font-size: 14px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.select-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
}

select {
	width: 100%;
	padding: 12px;
	font-size: 16px;
	color: white;
	background-color: #333;
	border: none;
	border-radius: 5px;
	text-align: center;
	font-weight: bold;
}

option {
	color: black; /* Opciones con texto negro */
	background-color: white;
}

.circle-img {
    width: 60px; /* Tamaño de la imagen */
    height: 60px; /* Tamaño de la imagen */
	margin: 5px;
}

.circle-img2 {
    width: 40px; /* Tamaño de la imagen */
    height: 40px; /* Tamaño de la imagen */
	margin: 3px;
}

/* Diseño responsive */
@media (max-width: 768px) {
	.header-container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 10px;
	}

	.semana-selector {
		justify-content: center;
	}

	.checkbox-container {
		justify-content: center;
	}
}
/*
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
	background-color: white;
	margin: 10% auto;
	padding: 20px;
	border-radius: 10px;
	width: 80%;
	max-width: 400px;
	text-align: left;
}
.close {
	float: right;
	font-size: 24px;
	cursor: pointer;
}
*/

.name-and-points {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.points-circle {
	background-color: #e63946; /* rojo fuerte */
	color: white;
	font-weight: bold;
	font-size: 1rem;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 12px;
	box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.modal-overlay {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.player-modal {
	background: #fff;
	margin: 10% auto;
	padding: 20px;
	border-radius: 10px;
	width: 80%;
	max-width: 500px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	font-family: 'Segoe UI', sans-serif;
	animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.team-logo2 {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 8px;
	background-color: #f2f2f2;
}

.player-info2 {
	flex-grow: 1;
}

.player-name2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
}

.player-number2 {
	margin: 4px 0 0;
	font-size: 1rem;
	color: #777;
}

.player-stats2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
}

.stat {
	display: flex;
	justify-content: space-between;
	font-size: 1rem;
	color: #444;
}

.label {
	font-weight: 500;
}

.value {
	font-weight: 600;
	color: #222;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* CLASIFICACIÓN */
.cabecera td {
	background-color: #333;
    color: #ffffff;
    padding: 16px 10px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
	border-color: #333;
}

.clasificacion-table {
	margin-top: 10px;
	width: 100%;
	border-collapse: collapse;
	overflow-x: auto;
	display: block;
}

.clasificacion-table td {
	padding: 10px;
	font-size: 14px;
}

.even {
	background-color: #A9A9A9;
    color: white;
}

/* Ocultar columnas en pantallas medianas */
@media (max-width: 575px) {
  .clasificacion-table .col-5 {
    display: none;
  }
}

/* Ocultar más columnas en pantallas pequeñas 
@media (max-width: 520px) {
  .clasificacion-table .col-3 {
    display: none;
  }
}*/

.match {
	border: 1px solid #dee2e6;
	border-radius: 1rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
	background-color: #f8f9fa;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vs {
	font-size: 1.2rem;
	color: #6c757d;
	margin: 0 0.5rem;
}

.bracket-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .full-height {
	height: 100%;
  }
}

#opcionesTabla {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #ccc;
	border-radius: 10px;
	overflow: hidden;
	width: 100%;           /* ocupa todo el ancho disponible */
	max-width: 350px;      /* límite máximo en móviles */
	margin: 0 auto;        /* centrado */
	table-layout: fixed;   /* celdas iguales de ancho */
}

#opcionesTabla td {
	cursor: pointer;
	text-align: center;
	padding: 8px 5px;       /* menos padding en móviles */
	border: 1px solid #ccc;
	user-select: none;
	transition: background-color 0.2s ease;
	word-wrap: break-word;   /* evita que el texto desborde */
}

/* Efecto hover */
/*#opcionesTabla td:hover {
	background-color: #f0f0f0; /* gris suave */
}*/

/* Esquinas redondeadas */
#opcionesTabla tr:first-child td:first-child {
	border-top-left-radius: 10px;
}
#opcionesTabla tr:first-child td:last-child {
	border-top-right-radius: 10px;
}
#opcionesTabla tr:last-child td:first-child {
	border-bottom-left-radius: 10px;
}
#opcionesTabla tr:last-child td:last-child {
	border-bottom-right-radius: 10px;
}

.seleccionada {
	background-color: #444;
	color: white;
}

.seleccionadaLive {
	background-color: #FF0000;
	color: white;
}

#loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1.5em;
	z-index: 9999;
	display: none; /* Oculto por defecto */
}

#loading-overlay2{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1.5em;
	z-index: 9999;
	display: none; /* Oculto por defecto */
}

/* === SPINNER ANIMADO === */
.spinner {
	border: 6px solid rgba(255, 255, 255, 0.2);
	border-top: 6px solid #fff;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Reutiliza tu .modal-overlay existente */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* inicialmente oculto */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Contenedor principal */
.warning-modal {
  background: #fff8e1;
  border: 2px solid #fbc02d;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Cabecera */
.warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.warning-icon {
  width: 40px;
  height: 40px;
}

.warning-title {
  color: #f57c00;
  font-size: 1.4em;
  font-weight: bold;
}

/* Cuerpo */
.warning-body {
  font-size: 1.1em;
  color: #5d4037;
  margin-bottom: 15px;
}

/* Botón de cierre */
.close-btn {
  background: #fbc02d;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  color: #5d4037;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #fdd835;
}