/* Hockey El Casar — partidos. Estilo del cartel del club: negro y amarillo. */

.hec-partidos {
	--hec-negro: #0b0b0b;
	--hec-fondo: #141414;
	--hec-fila: #1b1b1b;
	--hec-amarillo: #fac012;
	--hec-amarillo-osc: #c99600;
	--hec-dorado: #f7ae11;
	--hec-dorado-claro: #ffd36b;
	--hec-blanco: #ffffff;
	--hec-gris: #a8a8a8;
	--hec-titulos: "Bebas Neue", "Oswald", Impact, sans-serif;
	--hec-condensada: "Barlow Condensed", "Arial Narrow", sans-serif;

	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	color: var(--hec-blanco);
	font-family: var(--hec-condensada);
}

body.hec-pagina-partidos {
	background:
		linear-gradient(115deg, transparent 72%, rgba(250, 192, 18, .10) 72.2%, transparent 76%),
		linear-gradient(115deg, transparent 80%, rgba(250, 192, 18, .07) 80.2%, transparent 83%),
		#0b0b0b;
	background-attachment: fixed;
}

.hec-partidos *,
.hec-partidos *::before,
.hec-partidos *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- cabecera */

.hec-cabecera { margin-bottom: 28px; }

.hec-cabecera__volver {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--hec-amarillo);
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}

.hec-cabecera__titulo {
	margin: 0;
	font-family: var(--hec-titulos);
	font-weight: 400;
	font-style: italic;
	font-size: clamp(56px, 11vw, 120px);
	line-height: .9;
	letter-spacing: .01em;
	color: var(--hec-amarillo);
	text-transform: uppercase;
}

.hec-cabecera__sub {
	margin: 10px 0 0;
	max-width: 60ch;
	color: var(--hec-gris);
	font-size: 19px;
	font-weight: 500;
}

/* ---------------------------------------------------------------- secciones */

.hec-seccion { margin-top: 48px; }

.hec-seccion__cab {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.hec-seccion__cab h2 {
	margin: 0;
	font-family: var(--hec-titulos);
	font-weight: 400;
	font-size: 40px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--hec-blanco);
}

.hec-seccion__cab a {
	color: var(--hec-amarillo);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-decoration: none;
}

.hec-seccion__cab a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ cartel */

.hec-cartel + .hec-cartel { margin-top: 56px; }

.hec-cartel__fecha {
	margin: 0 0 18px;
	font-family: var(--hec-titulos);
	font-weight: 400;
	font-style: italic;
	font-size: clamp(34px, 6vw, 64px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--hec-blanco);
}

.hec-cartel__fecha em { color: var(--hec-amarillo); font-style: italic; }

.hec-dia + .hec-dia { margin-top: 22px; }

.hec-dia__barra {
	display: inline-block;
	min-width: min(100%, 420px);
	padding: 8px 48px 4px 22px;
	background: var(--hec-amarillo);
	color: var(--hec-negro);
	font-family: var(--hec-titulos);
	font-size: 32px;
	line-height: 1;
	text-transform: uppercase;
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
	border-radius: 6px 0 0 0;
}

/* ------------------------------------------------------------------- filas */

.hec-filas {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 2px solid var(--hec-amarillo);
	border-radius: 0 6px 6px 6px;
	background: rgba(20, 20, 20, .92);
	overflow: hidden;
}

.hec-dia--lista .hec-filas { border-radius: 6px; }

.hec-fila {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) minmax(0, 34%);
	align-items: stretch;
	min-height: 64px;
}

.hec-fila + .hec-fila { border-top: 1px solid rgba(250, 192, 18, .55); }

.hec-fila > div { display: flex; align-items: center; padding: 10px 16px; }

.hec-fila__hora {
	position: relative;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	font-family: var(--hec-titulos);
	font-size: 34px;
	line-height: 1;
	color: var(--hec-amarillo);
	text-align: center;
}

/* el corte en ángulo entre la hora y el partido, como en el cartel */
.hec-fila__hora::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 14px;
	background: linear-gradient(to right bottom, transparent 49%, rgba(250, 192, 18, .55) 50%, transparent 56%),
	            linear-gradient(to right top, transparent 49%, rgba(250, 192, 18, .55) 50%, transparent 56%);
	background-size: 100% 50%;
	background-repeat: no-repeat;
	background-position: top, bottom;
}

.hec-fila__fecha {
	font-family: var(--hec-condensada);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hec-blanco);
}

.hec-fila__partido {
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 2px;
	padding-left: 24px !important;
	border-right: 2px solid var(--hec-amarillo);
}

.hec-fila__equipo {
	flex: 1 1 0;
	min-width: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	color: #d6d6d6;
}

.hec-fila__equipo--visitante { text-align: right; }

.hec-fila__equipo.es-club { color: var(--hec-blanco); font-size: 25px; }

.hec-fila__vs {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	color: var(--hec-blanco);
}

.hec-fila__marcador {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 12px 0;
	border-radius: 4px;
	background: var(--hec-amarillo);
	color: var(--hec-negro);
	font-family: var(--hec-titulos);
	font-size: 30px;
	line-height: 1.1;
}

.hec-fila__marcador i { font-style: normal; opacity: .6; }

/* suspendido, aplazado o pendiente de resultado */
.hec-fila__incidencia {
	flex: 0 0 auto;
	padding: 4px 10px 2px;
	border-radius: 4px;
	border: 2px solid #ff5a4f;
	color: #ff8a82;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hec-fila--incidencia {
	background-image: repeating-linear-gradient(135deg, rgba(255, 90, 79, .08) 0 10px, transparent 10px 20px);
}

.hec-fila--derrota .hec-fila__marcador { background: transparent; color: var(--hec-blanco); box-shadow: inset 0 0 0 2px var(--hec-gris); }
.hec-fila--empate .hec-fila__marcador { background: transparent; color: var(--hec-amarillo); box-shadow: inset 0 0 0 2px var(--hec-amarillo); }

.hec-fila__comp {
	flex: 1 0 100%;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--hec-gris);
	text-align: center;
}

.hec-fila__pista {
	flex-wrap: wrap;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--hec-blanco);
}

.hec-fila--fuera .hec-fila__pista { color: #cfcfcf; }

/* ------------------------------------------------- partidos en casa: dorado */

.hec-fila--casa {
	background: linear-gradient(90deg, rgba(247, 174, 17, .30) 0%, rgba(247, 174, 17, .12) 55%, rgba(247, 174, 17, .06) 100%);
	box-shadow: inset 6px 0 0 var(--hec-dorado);
}

.hec-fila--casa .hec-fila__hora { color: var(--hec-dorado-claro); }

.hec-fila--casa .hec-fila__equipo.es-club { color: var(--hec-dorado-claro); }

.hec-fila__lugar { display: inline-flex; align-items: flex-start; gap: 8px; min-width: 0; }

.hec-fila__lugar svg { flex: 0 0 auto; color: var(--hec-amarillo); }

.hec-fila__mapa { color: inherit; text-decoration: none; }

.hec-fila__mapa span {
	text-decoration: underline;
	text-decoration-color: rgba(250, 192, 18, .5);
	text-underline-offset: 3px;
}

.hec-fila__mapa:hover { color: var(--hec-amarillo); }
.hec-fila__mapa:hover span { text-decoration-color: currentColor; }

.hec-fila__acciones {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.hec-fila__cal {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px 3px;
	border: 1px solid var(--hec-amarillo);
	border-radius: 3px;
	color: var(--hec-amarillo);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-decoration: none;
	white-space: nowrap;
}

.hec-fila__cal svg { width: 14px; height: 14px; }

.hec-fila__cal:hover,
.hec-fila__cal:focus-visible { background: var(--hec-amarillo); color: var(--hec-negro); }

.hec-fila__casa {
	flex: 0 0 auto;
	padding: 3px 7px 1px;
	border-radius: 3px;
	background: var(--hec-dorado);
	color: var(--hec-negro);
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hec-leyenda {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -6px 0 14px;
	color: var(--hec-gris);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.hec-leyenda__muestra {
	width: 28px;
	height: 14px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(247, 174, 17, .55), rgba(247, 174, 17, .15));
	box-shadow: inset 4px 0 0 var(--hec-dorado);
}

/* ----------------------------------------------------------------- balance */

.hec-balance { display: flex; gap: 12px; flex-wrap: wrap; }

.hec-balance__item {
	flex: 1 1 120px;
	padding: 14px 16px 10px;
	border: 2px solid var(--hec-amarillo);
	border-radius: 6px;
	text-align: center;
}

.hec-balance__item b {
	display: block;
	font-family: var(--hec-titulos);
	font-weight: 400;
	font-size: 56px;
	line-height: 1;
	color: var(--hec-amarillo);
}

.hec-balance__item span {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hec-gris);
}

/* ----------------------------------------------------------------- equipos */

.hec-equipos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}

.hec-equipos__item {
	display: block;
	padding: 14px 16px 12px;
	border: 2px solid rgba(250, 192, 18, .5);
	border-radius: 6px;
	background: rgba(20, 20, 20, .92);
	color: var(--hec-blanco);
	text-decoration: none;
	transition: border-color .15s, background .15s;
}

.hec-equipos__item b {
	display: block;
	font-family: var(--hec-titulos);
	font-weight: 400;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
}

.hec-equipos__item span {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--hec-gris);
}

.hec-equipos__item:hover,
.hec-equipos__item:focus-visible,
.hec-equipos__item.is-actual { border-color: var(--hec-amarillo); background: rgba(250, 192, 18, .1); }

.hec-equipos__item.is-actual b { color: var(--hec-amarillo); }

.hec-vacio {
	padding: 20px;
	border: 2px dashed rgba(250, 192, 18, .4);
	border-radius: 6px;
	color: var(--hec-gris);
	font-size: 18px;
}

/* ------------------------------------------------------------------- móvil */

@media (max-width: 720px) {
	.hec-fila {
		grid-template-columns: 84px minmax(0, 1fr);
		grid-template-areas: "hora partido" "hora pista";
	}
	.hec-fila__hora { grid-area: hora; font-size: 28px; }
	.hec-fila__partido { grid-area: partido; border-right: 0; padding-bottom: 2px !important; padding-left: 18px !important; }
	.hec-fila__pista { grid-area: pista; padding-top: 0 !important; padding-left: 18px !important; font-size: 14px; }
	.hec-fila__equipo { flex-basis: 100%; text-align: left !important; font-size: 19px; }
	.hec-fila__equipo.es-club { font-size: 21px; }
	.hec-fila__comp { text-align: left; }
	.hec-dia__barra { font-size: 26px; }
}
