/**
 * fanorate/editorial-hero-live
 *
 * Full-bleed hero with a latest-results bar at the top, editorial content left,
 * and a featured-match card right. Countdown ticks to kick-off; at zero the
 * countdown hides and the LIVE badge appears.
 *
 * JS hooks
 *   [data-ehl-api]         – section  — API base URL.
 *   [data-ehl-match]       – section  — JSON of featured match data.
 *   [data-ehl-results-bar] – div      — hidden until JS loads results; JS removes hidden.
 *   [data-ehl-results-list]– div      — JS injects result items here.
 *   [data-ehl-live-badge]  – span     — hidden until live; JS removes hidden.
 *   [data-ehl-countdown]   – div      — visible until live; JS adds hidden.
 *   [data-utc]             – countdown div — UTC kick-off timestamp.
 *   [data-unit]            – tile div — "hours" | "minutes" | "seconds".
 *   [data-ehl-local-dt]    – info item — JS rewrites to visitor's local time.
 *   .ehl--live             – section  — added by JS at kick-off.
 */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
#editorial-hero-live.section-editorial-hero-live {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #0a0e1a;
	background-image: var(--ehl-bg, none);
	background-size: cover;
	background-position: center top;
	padding: 0;
	overflow: hidden;
	padding-top: 0;
}


.section-editorial-hero-live > * {
	position: relative;
	z-index: 1;
}

/* ── Results bar ─────────────────────────────────────────────────────────── */
.ehl-results-bar {
	background: rgb(12 16 20 / 100%);
    border-bottom: 1px solid rgb(54 56 58);
    width: 100%;
    margin: auto;
    border-radius: 0px;
    padding: 0px 0;
	min-height: 58px;
	transition: opacity 0.3s ease;
}

.ehl-results-bar .container{
	max-width: 100%;
}

.ehl-results-bar__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	overflow: hidden;
}

.ehl-results-bar__label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-primary, #e5253d);
	flex-shrink: 0;
	padding: 0 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ehl-results-bar__label svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.ehl-results-bar__list {
	display: flex;
	align-items: stretch;
	gap: 0;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.ehl-results-bar__view-all {
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	white-space: nowrap;
	flex-shrink: 0;
	text-decoration: none;
	transition: color 140ms ease;
	padding: 0 20px;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
}

.ehl-results-bar__view-all:hover {
	color: #fff;
}

/* Each result card (built by JS) — whole card is a link */
.ehl-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.10);
	flex: 1;
	min-width: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background 140ms ease;
}

.ehl-result:hover {
	background: rgba(255, 255, 255, 0.05);
}

.ehl-result:last-child {
	border-right: none;
}

.ehl-result__status {
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.38);
	text-transform: uppercase;
	display: none;
}

.ehl-result__teams {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.ehl-result__flag {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ehl-result__team {
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.90);
}

.ehl-result__score {
	font-family: var(--font-ui);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
	padding: 0 6px;
}

.ehl-result__report {
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--color-primary, #e5253d);
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
	display: none;
}

.ehl-result__report:hover {
	text-decoration: underline;
}

/* ── Hero body ───────────────────────────────────────────────────────────── */
.ehl-hero {
	padding: 56px 0 60px;
}

.ehl-inner {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 48px;
	align-items: center;
}

/* ── Editorial content column ────────────────────────────────────────────── */
.ehl-content {
	display: flex;
	flex-direction: column;
}

.ehl-content__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-primary, #e5253d);
	margin-bottom: 16px;
}

.ehl-content__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.ehl-content__headline {
	font-family: var(--font-display);
	font-size: clamp(44px, 5vw, 68px);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 22px;
}

.ehl-content__headline em {
	font-style: normal;
	color: var(--color-primary, #e5253d);
}

.ehl-content__deck {
	font-family: var(--font-ui);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: #fff;
	max-width: 560px;
	margin: 0;
}

.ehl-content__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.ehl-content__cta {
	display: inline-block;
	background: var(--color-primary, #e5253d);
	color: #fff;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border: 1.5px solid var(--color-primary, #e5253d);
	text-decoration: none;
	transition: background 140ms ease, border-color 140ms ease;
}

.ehl-content__cta::after {
	content: " →";
}

.ehl-content__cta:hover {
	background: var(--color-primary-dark, #c01e32);
	border-color: var(--color-primary-dark, #c01e32);
	color: #fff;
}

.ehl-content__byline {
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.45);
}

.ehl-content__byline-link {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	margin-left: 4px;
	transition: color 140ms ease;
	border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 12px 22px;
	text-transform: uppercase;
	display: inline-block;
}

.ehl-content__byline-link::after {
	content: " →";
}

.ehl-content__byline-link:hover {
	color: #fff;
}

/* ── Featured match card ─────────────────────────────────────────────────── */
.ehl-card {
	background: #fff;
	padding: 24px 28px 0; /* bottom padding removed; CTA/note provide it */
	display: flex;
	flex-direction: column;
	gap: 18px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30);
	border-radius: 15px;
	overflow: hidden; /* clips ticker bleed to border-radius */
}

/* Card header: label (left) + live badge + date/time (right) */
.ehl-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ehl-card__head-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ehl-card__label {
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-tertiary, #9ca3af);
}

.ehl-card__live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-primary, #e5253d);
	color: #fff;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: var(--radius-pill, 999px);
}

.ehl-card__live-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: ehl-blink 1.2s ease-in-out infinite;
}

@keyframes ehl-blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.25; }
}

/* Date/time in card header — bold and prominent */
.ehl-card__datetime {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-primary, #111827);
	white-space: nowrap;
}

/* Hide the time label while a match is in progress */
.ehl--live .ehl-card__datetime {
	display: none;
}

/* Teams: flags on outer sides, VS badge in center */
.ehl-card__teams {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.ehl-card__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 1;
}

/* Rounded-square flags (smaller than before) */
.ehl-card__flag {
	width: 56px;
	height: 38px;
	border-radius: 6px;
	overflow: hidden;
	border: 1.5px solid var(--border-subtle, #e5e7eb);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-sunken, #f3f4f6);
}

.ehl-card .ehl-flag-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ehl-card__team-name {
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-primary, #111827);
	text-align: center;
}

/* VS badge — small circle centered with the flags */
.ehl-card__vs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--surface-sunken, #f3f4f6);
	border: 1.5px solid var(--border-subtle, #e5e7eb);
	font-family: var(--font-ui);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--text-tertiary, #9ca3af);
	flex-shrink: 0;
	margin-top: 4px; /* align badge center with flag center */
	align-self: flex-start;
}

/* Divider between teams and venue */
.ehl-card__divider {
	border: none;
	border-top: 1px solid var(--border-subtle, #e5e7eb);
	margin: 0;
}

/* Venue / round line */
.ehl-card__venue {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary, #6b7280);
	text-align: center;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

/* Countdown hidden visually; JS reads data-utc for goLive() */
.ehl-card__countdown {
	display: none;
}

.ehl-card__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 44px;
}

.ehl-card__tile-val {
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--text-primary, #111827);
}

.ehl-card__tile-lbl {
	font-family: var(--font-ui);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-tertiary, #9ca3af);
	margin-top: 4px;
}

.ehl-card__tile-sep {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 400;
	color: var(--text-tertiary, #9ca3af);
	line-height: 1;
	align-self: flex-start;
}

/* ── Compact results ticker (red bar inside card) ────────────────────────── */
.ehl-card__ticker {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--color-primary, #e5253d);
	/* bleed to card edges; overflow:hidden clips to card's border-radius */
	margin: 0 -28px;
	padding: 10px 20px;
	overflow: hidden;
}

.ehl-card__ticker-pulse {
	color: rgba(255, 255, 255, 0.9);
	font-size: 9px;
	flex-shrink: 0;
	animation: ehl-blink 1.2s ease-in-out infinite;
}

.ehl-card__ticker-list {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.ehl-card__ticker-more {
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	padding-left: 10px;
	margin-left: 4px;
	border-left: 1px solid rgba(255, 255, 255, 0.30);
}

.ehl-card__ticker-more:hover { color: #fff; }

/* Ticker result item (built by JS) */
.ehl-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.ehl-ticker__status {
	opacity: 0.80;
	letter-spacing: 0.10em;
}

.ehl-ticker__sep {
	color: rgba(255, 255, 255, 0.35);
	margin: 0 3px;
}

.ehl-ticker__flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	object-fit: cover;
	flex-shrink: 0;
}

.ehl-ticker__score {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.03em;
	margin: 0 3px;
}

.ehl-ticker__team {
	font-size: 11px;
	font-weight: 700;
}

/* CTA button */
.ehl-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #0d1b2e;
	color: #fff;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 16px 24px;
	/* bleed to card edges */
	margin: 0 auto;
	transition: background 140ms ease;
	width: 100%
}

.ehl-card__cta svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.ehl-card__cta:hover {
	background: #1a2f4a;
	color: #fff;
}

/* "Scores update live" note */
.ehl-card__note {
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 400;
	color: var(--text-tertiary, #9ca3af);
	text-align: center;
	letter-spacing: 0.04em;
	margin: 0;
	padding: 0px 0 18px;
}

/* [hidden] utility – keep hidden attr working when display is already set */
.ehl-card__live[hidden],
.ehl-card__countdown[hidden],
.ehl-card__ticker[hidden],
.ehl-card__ticker-more[hidden] {
	display: none !important;
}

/* Results bar: stay in flow (reserves 56px) but invisible until data arrives.
   This prevents the heading + card from jumping down when results load. */
.ehl-results-bar[hidden] {
	display: block !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ehl-inner {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 1199px) {
	.ehl-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ehl-content__headline {
		font-size: 40px;
		line-height: 1.2;
	}

	.ehl-results-bar__list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
		mask-image: linear-gradient(to right, black 75%, transparent 100%);
	}

	.ehl-results-bar__list::-webkit-scrollbar {
		display: none;
	}

	/* On mobile, results scroll horizontally — don't grow/shrink */
	.ehl-result {
		flex: 0 0 auto;
		min-width: 150px;
	}

	.ehl-results-bar__label {
		width: auto;
		min-width: 90px;
		max-width: 110px;
		padding: 0 10px;
		font-size: 9px;
		letter-spacing: 0.10em;
	}
	.ehl-content__deck{
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.ehl-hero {
		padding: 36px 0 40px;
	}

	.ehl-content__headline {
		font-size: 32px;
		line-height: 1.2;
	}

	.ehl-card {
		padding: 18px 20px 0;
		gap: 14px;
	}

	.ehl-card__flag {
		width: 48px;
		height: 32px;
	}

	.ehl-card__tile-val {
		font-size: 30px;
	}

	/* Keep ticker and CTA bleeding to card edges at smaller padding */
	/* .ehl-card__ticker,
	.ehl-card__cta {
		margin-left: -20px;
		margin-right: -20px;
	} */

	.ehl-card__note {
		padding: 10px 0 14px;
	}

	.ehl-results-bar__view-all {
		display: none;
	}
}
