/* =====================================================================
   Orden de juego MOSCOW 2026 (torneo 2310) - para partidosDiaD.aspx
   Diseno: "Order oa play.ai" (fondo + cabecera con logo y anunciantes)
   y el mismo lenguaje que css/marcadorMoscow26.css para los partidos.
   Nota: partidosDiaD.aspx trae un <style> en linea con media queries;
   aqui se usan selectores con .divTotal delante para ganarles.
   ===================================================================== */

/* ---------- FUENTES ---------- */
@font-face {
	font-family: 'ZapusMoscow';
	src: url('../fonts/ZapusSans-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}
@font-face {
	font-family: 'ZapusMoscow';
	src: url('../fonts/ZapusSans-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
}
@font-face {
	font-family: 'VictorMoscow';
	src: url('../fonts/VictorMono-Semibold.woff2') format('woff2'),
	     url('../fonts/VictorMono-Semibold.woff') format('woff'),
	     url('../fonts/VictorMono-Semibold.ttf') format('truetype');
	font-weight: 100;
	font-style: normal;
}

/* ---------- COLORES ---------- */
:root {
	--m26-fondo: #10114a;
	--m26-azul: #2b3ddb;
	--m26-cian: #16b4f0;
	--m26-blanco: #ffffff;
	--m26-cab1: #2563d9;
	--m26-cab2: #4a9aee;
	--m26-rosa: #b0307a;
}

/* ---------- BASE ---------- */
html, body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--m26-fondo) url('../img/moscow26/fondo.png') repeat 0 0 / 1920px 1080px fixed;
	color: var(--m26-blanco);
	font-family: 'ZapusMoscow', Arial, sans-serif;
	font-size: 16px;
}
.divTotal {
	width: 100%;
	max-width: 1840px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 0 20px 30px;
	box-sizing: border-box;
}
#div_html { display: flow-root; }

/* ---------- CABECERA ---------- */
/* el html trae: titulo+fecha, .datosPatro y la fila de logos; los reordenamos como en el diseno */
#div_html > div:first-child {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	min-height: 0 !important;
	padding-top: 60px;
	margin-bottom: 30px;
}
#div_html > div:first-child > .row {
	order: 1;
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 30px 0;
}
#div_html > div:first-child > .row::before,
#div_html > div:first-child > .row::after { display: none; }   /* clearfix de bootstrap 3 */
#div_html > div:first-child > .row > div {
	float: none;
	width: auto;
	min-width: 0;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 1 auto;
}
/* logo del torneo (logo_largo_torneo / -OJ) */
#div_html > div:first-child > .row > div:first-child img {
	width: auto !important;
	max-width: 620px;
	max-height: 200px;
	margin: 0 !important;
}
/* anunciantes (logo_pit_torneo) */
#Img2 {
	max-width: 780px !important;
	max-height: 80px;
	margin: 0 !important;
}

.datosTorneoDepartment {
	order: 2;
	flex: 1 1 auto;
	height: auto;
	padding: 0;
	font-family: 'ZapusMoscow', Arial, sans-serif;
	font-weight: 800;
	font-size: 48px;
	line-height: 52px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--m26-blanco);
}
.datosTorneoDepartment br { display: none; }
.datosTorneoFecha {
	display: inline-block;
	float: none;
	margin-left: 24px;
	line-height: 52px !important;
	font-family: 'VictorMoscow', 'Courier New', monospace;
	font-weight: 100;
	font-size: 40px;
	color: var(--m26-cian);
	text-transform: uppercase;
	vertical-align: bottom;
}
.datosTorneoFecha:empty { display: none; }
.datosPatro { display: none; }

/* ---------- COLUMNA DE PISTA ---------- */
.divTotal .row > [class*="col-"] {
	padding-left: 12px !important;
	padding-right: 12px !important;
	margin-bottom: 30px !important;
}
.divHeaderPartidos {
	display: inline-block;
	height: auto;
	margin: 0;
	padding: 10px 34px 8px 30px;
	background: linear-gradient(90deg, var(--m26-cab1), var(--m26-cab2));
	clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
	font-family: 'ZapusMoscow', Arial, sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 36px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--m26-blanco);
	text-align: left;
}

/* ---------- PARTIDO ---------- */
.divTotal .DivPartido,
.divTotal .DivPartido.masculino,
.divTotal .DivPartido.femenino {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: auto;
	min-height: 104px;
	margin: 0 0 -3px 0;             /* los bordes se solapan como en la tabla del marcador */
	padding: 0;
	box-sizing: border-box;
	border: 3px solid var(--m26-azul);
	background: rgba(8, 10, 52, 0.45);
	position: relative;
}
.divTotal .DivPartido:first-of-type { margin-top: 0; }
.divTotal .DivPartido.vacio { border-color: transparent; background: none; }

/* bloque izquierdo: ronda / categoria + hora */
.divTotal .DivIzq {
	float: none;
	flex: 0 0 26%;
	width: 26%;
	height: auto;
	padding: 10px 12px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(135deg, rgba(37, 99, 217, 0.85), rgba(74, 154, 238, 0.55));
	color: var(--m26-blanco);
	border-right: 3px solid var(--m26-azul);
}
.divTotal .DatoCuadroMALE,
.divTotal .DatoCuadroFEMALE {
	display: block;
	height: auto;
	margin: 0;
	padding: 0;
	font-family: 'ZapusMoscow', Arial, sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 22px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--m26-blanco);
}
.divTotal .DivResultado {
	margin: 6px 0 0 0;
	font-family: 'VictorMoscow', 'Courier New', monospace;
	font-weight: 100;
	font-size: 22px;
	line-height: 24px;
	color: var(--m26-blanco);
	text-transform: uppercase;
}

/* jugadores */
.divTotal .DatosJugadores {
	float: none;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 8px 18px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 0;
	font-family: 'ZapusMoscow', Arial, sans-serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 30px;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: anywhere;
	color: var(--m26-blanco);
}
.divTotal .DatosJugadores hr {
	margin: 4px 0 !important;
	border: 0;
	border-top: 2px solid var(--m26-azul);
	opacity: 1;
}
/* pareja ganadora: el html la marca con background:green en linea */
.divTotal .DatosJugadores span[style] {
	background: none !important;
	color: var(--m26-cian);
}
.divTotal .DatosJugadores .bi-award { color: var(--m26-cian); margin-left: 6px; }
.equipoteam {
	padding: 2px 8px;
	margin-right: 6px;
	border-radius: 4px;
	background: var(--m26-blanco);
	color: var(--m26-fondo);
	font-size: 12px;
	vertical-align: middle;
}

/* resultado */
.divTotal .DivDer {
	float: none;
	flex: 0 0 210px;          /* ancho fijo: lineas verticales alineadas */
	min-width: 0;
	width: 210px;
	height: auto;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 3px solid var(--m26-azul);
	line-height: normal;
}
.divTotal .DivResultado1 {
	margin: 0;
	font-family: 'ZapusMoscow', Arial, sans-serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 30px;
	color: var(--m26-cian);
	text-align: center;
	white-space: nowrap;
}

.DivpresentacionPartido {
	position: absolute;
	right: 6px;
	top: 6px;
	width: auto;
	height: auto;
}
.DivpresentacionPartido img { height: 22px; }

/* ---------- PANTALLAS PEQUENAS ---------- */
@media (max-width: 1400px) {
	.divTotal .DivDer { flex: 0 0 180px; width: 180px; }
	.divTotal .DatosJugadores { font-size: 20px; line-height: 28px; }
	.divTotal .DivResultado1 { font-size: 19px; }
	.divTotal .DatoCuadroMALE, .divTotal .DatoCuadroFEMALE { font-size: 16px; line-height: 19px; }
	.divTotal .DivResultado { font-size: 18px; }
	.datosTorneoDepartment { font-size: 38px; }
	.datosTorneoFecha { font-size: 30px; }
}
@media (max-width: 991px) {
	.divTotal .DivPartido.vacio { display: none; }
	#div_html > div:first-child { padding-top: 24px; }
	#div_html > div:first-child > .row { flex-wrap: wrap; gap: 16px; }
	#div_html > div:first-child > .row > div:first-child img { max-width: 100%; max-height: 140px; }
	#Img2 { max-width: 100% !important; max-height: 60px; }
}
@media (max-width: 600px) {
	.divTotal { padding: 0 8px 20px; }
	.divTotal .row { margin-left: 0; margin-right: 0; }
	#div_html > div:first-child > .row { flex-direction: column; align-items: flex-start; }
	.divTotal .row > [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
	.divTotal .DivPartido, .divTotal .DivPartido.masculino, .divTotal .DivPartido.femenino { flex-wrap: wrap; }
	.divTotal .DivIzq { flex: 0 0 100%; width: 100%; border-right: 0; border-bottom: 3px solid var(--m26-azul); }
	.divTotal .DatosJugadores { flex: 1 1 60%; font-size: 17px; line-height: 24px; padding: 8px 10px; }
	.divTotal .DivDer { flex: 0 0 124px; width: 124px; padding: 0 4px; }
	.divTotal .DivResultado1 { font-size: 14px; white-space: nowrap; }
	.datosTorneoDepartment { font-size: 26px; line-height: 32px; }
	.datosTorneoFecha { display: block; margin-left: 0; font-size: 22px; line-height: 30px !important; }
	.divHeaderPartidos { font-size: 22px; }
}
