.zal-live-scores {
	width: min(calc(100% - 32px), 1240px);
	margin: clamp(3.5rem, 8vw, 7rem) auto;
	color: #101417;
}

.zal-live-scores[aria-busy="true"] {
	cursor: progress;
}

.zal-live-scores [hidden] {
	display: none !important;
}

.zal-score-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.zal-live-scores__frame {
	position: relative;
	padding: clamp(1.15rem, 3vw, 2.4rem);
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 22px;
	background:
		radial-gradient(circle at 94% 3%, rgb(207 49 59 / 24%), transparent 28%),
		linear-gradient(145deg, #151a1e, #090b0d 66%);
	color: #f4f6f5;
	box-shadow: 0 34px 90px rgb(16 20 23 / 20%);
}

.zal-live-scores__frame::before {
	position: absolute;
	top: 0;
	left: clamp(1.15rem, 3vw, 2.4rem);
	width: min(180px, 34%);
	height: 4px;
	background: #cf313b;
	content: "";
}

.zal-live-scores__intro {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
	margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.zal-live-scores__intro h2 {
	max-width: 12ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 5.3rem);
	line-height: 0.92;
	letter-spacing: -0.04em;
}

.zal-live-scores__intro p {
	max-width: 54ch;
	margin: 0;
	color: #bcc5c0;
	font-size: 0.95rem;
	line-height: 1.65;
}

.zal-live-scores__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1rem;
	color: #ff9aa1;
	font-size: 0.73rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.zal-live-scores__eyebrow i,
.zal-score-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #ef4350;
	box-shadow: 0 0 0 5px rgb(239 67 80 / 15%);
}

.zal-live-scores__toolbar {
	position: relative;
	display: grid;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 15px;
	background: rgb(255 255 255 / 6%);
	backdrop-filter: blur(12px);
}

.zal-live-scores__days {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
}

.zal-live-scores button {
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 9px;
	font: inherit;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.zal-live-scores button:focus-visible,
.zal-score-match:focus-visible,
.zal-live-scores__footer a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #cf313b;
}

.zal-live-scores__days button {
	display: flex;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 0.8rem;
	background: rgb(255 255 255 / 7%);
	color: #dce2de;
}

.zal-live-scores__days button small {
	color: #929e98;
	font-size: 0.73rem;
}

.zal-live-scores__days button:hover,
.zal-live-scores__days button.is-active {
	border-color: #cf313b;
	background: #cf313b;
	color: #fff;
}

.zal-live-scores__days button.is-active small {
	color: #fff;
}

.zal-live-scores__filters {
	display: grid;
	gap: 0.65rem;
}

.zal-live-scores__filters > div {
	display: flex;
	gap: 0.45rem;
	padding-bottom: 2px;
	overflow-x: auto;
	scrollbar-width: thin;
	overscroll-behavior-inline: contain;
}

.zal-live-scores__filters button {
	display: inline-flex;
	min-width: max-content;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.65rem 0.9rem;
	border-color: rgb(255 255 255 / 12%);
	background: transparent;
	color: #aeb8b2;
	font-size: 0.79rem;
	font-weight: 750;
}

.zal-live-scores__filters button:hover,
.zal-live-scores__filters button.is-active {
	border-color: #fff;
	background: #f4f6f5;
	color: #101417;
}

.zal-live-scores__state {
	display: flex;
	min-height: 42px;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0.25rem;
	color: #aeb8b2;
	font-size: 0.78rem;
}

.zal-live-scores__groups {
	display: grid;
	gap: 0.8rem;
}

.zal-score-league {
	overflow: hidden;
	border: 1px solid #dce1de;
	border-radius: 14px;
	background: #f4f6f5;
	color: #101417;
}

.zal-score-league > header {
	display: flex;
	min-height: 72px;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #dce1de;
	background: #e9edeb;
}

.zal-score-league__mark {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid #c9d0cc;
	border-radius: 50%;
	background: #fff;
	color: #b02530;
	font-size: 0.71rem;
	font-weight: 900;
	letter-spacing: 0.06em;
}

.zal-score-league > header small {
	display: block;
	margin-bottom: 0.1rem;
	color: #687279;
	font-size: 0.69rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.zal-score-league > header h3 {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	line-height: 1;
}

.zal-score-league__matches {
	display: grid;
}

.zal-score-match {
	display: grid;
	grid-template-columns: 76px minmax(150px, 1fr) 72px minmax(150px, 1fr) 28px;
	min-height: 66px;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e0e4e2;
	background: #fff;
	color: #101417;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.zal-score-match:last-child {
	border-bottom: 0;
}

a.zal-score-match:hover {
	background: #f8f9f8;
	color: #101417;
	transform: translateX(3px);
}

.zal-score-match__status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: #59636a;
	font-size: 0.75rem;
	font-weight: 800;
	white-space: nowrap;
}

.zal-score-match__status--live {
	color: #b02530;
}

.zal-score-match__status--finished {
	color: #687279;
}

.zal-score-team {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.9rem;
}

.zal-score-team strong {
	overflow: hidden;
	font-weight: 750;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zal-score-team img {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	object-fit: contain;
}

.zal-score-team--home {
	justify-content: flex-end;
	text-align: right;
}

.zal-score-team--away {
	justify-content: flex-start;
}

.zal-score-match__score {
	font-size: 1.12rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
	white-space: nowrap;
}

.zal-score-match__open {
	color: #b02530;
	font-size: 1rem;
	font-weight: 900;
	text-align: right;
}

.zal-live-scores__empty {
	display: grid;
	gap: 0.25rem;
	padding: 2.5rem 1rem;
	border: 1px dashed rgb(255 255 255 / 20%);
	border-radius: 14px;
	color: #dce2de;
	text-align: center;
}

.zal-live-scores__empty span {
	color: #929e98;
	font-size: 0.85rem;
}

.zal-live-scores__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0.2rem 0;
	color: #8f9a94;
	font-size: 0.74rem;
}

.zal-live-scores__footer p {
	margin: 0;
}

.zal-live-scores__footer a {
	min-width: max-content;
	color: #ff9aa1;
	font-weight: 800;
}

.zal-live-scores.is-loading .zal-live-scores__groups {
	opacity: 0.55;
	pointer-events: none;
}

.zal-live-scores.is-loading .zal-live-scores__eyebrow i,
.zal-score-match__status--live .zal-score-live-dot {
	animation: zal-score-pulse 1.4s ease-out infinite;
}

@keyframes zal-score-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgb(239 67 80 / 10%); }
	50% { box-shadow: 0 0 0 7px rgb(239 67 80 / 20%); }
}

@media (max-width: 760px) {
	.zal-live-scores {
		width: min(calc(100% - 24px), 1240px);
		margin-block: 3.5rem;
	}

	.zal-live-scores__frame {
		padding: 1rem;
		border-radius: 16px;
	}

	.zal-live-scores__intro {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.zal-live-scores__intro h2 {
		font-size: clamp(2.7rem, 15vw, 4.3rem);
	}

	.zal-live-scores__days button {
		min-height: 64px;
		flex-direction: column;
		gap: 0.1rem;
	}

	.zal-score-match {
		grid-template-columns: 64px minmax(0, 1fr) 58px;
		grid-template-areas:
			"status home score"
			"status away open";
		gap: 0.35rem 0.65rem;
		padding: 0.8rem;
	}

	.zal-score-match__status { grid-area: status; }
	.zal-score-team--home { grid-area: home; justify-content: flex-start; flex-direction: row-reverse; text-align: left; }
	.zal-score-team--away { grid-area: away; }
	.zal-score-match__score { grid-area: score; text-align: right; }
	.zal-score-match__open { grid-area: open; }
	.zal-score-team strong { font-size: 0.82rem; }
	.zal-score-team img { width: 25px; height: 25px; }

	.zal-live-scores__footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 420px) {
	.zal-live-scores__state {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.2rem;
	}

	.zal-score-league > header {
		min-height: 64px;
	}

	.zal-score-match {
		grid-template-columns: 58px minmax(0, 1fr) 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zal-live-scores *,
	.zal-live-scores *::before,
	.zal-live-scores *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
