.afd-match-showcase {
	--afd-match-showcase-accent: #0b2d52;
	--afd-match-showcase-bg: #082b50;
	--afd-match-showcase-overlay: 90%;
	background:
		linear-gradient(
			color-mix(in srgb, #052240 var(--afd-match-showcase-overlay), transparent),
			color-mix(in srgb, #052240 var(--afd-match-showcase-overlay), transparent)
		),
		var(--afd-match-showcase-image, none),
		var(--afd-match-showcase-bg);
	background-position: center;
	background-size: cover;
	border-radius: 18px;
	overflow: hidden;
	padding: 22px 16px 46px;
}

.afd-match-showcase button {
	font: inherit;
}

.afd-match-showcase__toolbar {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 34px;
}

.afd-match-showcase__tabs,
.afd-match-showcase__arrows {
	display: flex;
	gap: 20px;
}

.afd-match-showcase__tabs{
    gap: 6px;
}

.afd-match-showcase__tabs button {
	background: transparent;
	border: 0 !important;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	min-width: 140px;
	padding: 10px 24px;
}

.afd-match-showcase__tabs button:hover{
    background-color: #0b2d52;
}

.afd-match-showcase__tabs button.is-active {
	background: #fff;
	color: var(--afd-match-showcase-accent);
}

.afd-match-showcase__arrows button {
	align-items: center;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	width: 50px;
	height: 50px;
	justify-content: center;
	padding: 0;
}

.afd-match-showcase__arrows button:hover, .afd-match-showcase__arrows button:focus{
    background: #0b2d52;
    border:1px solid #fff;
}

.afd-match-showcase__tabs button:focus-visible,
.afd-match-showcase__arrows button:focus-visible,
.afd-match-showcase__track:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .45);
	outline-offset: 3px;
}

.afd-match-showcase__panel[hidden] {
	display: none;
}

.afd-match-showcase__track {
	display: grid;
	gap: 30px;
	grid-auto-columns: minmax(390px, 1fr);
	grid-auto-flow: column;
	overflow-x: auto;
	padding: 0 0 4px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.afd-match-showcase__track::-webkit-scrollbar {
	display: none;
}

.afd-match-card {
	background: #fff;
	border: 2px solid transparent;
	border-radius: 30px;
	color: var(--afd-match-showcase-accent);
	min-height: 320px;
	padding: 35px 24px;
	scroll-snap-align: start;
}


.afd-match-card h3 {
	color: var(--afd-match-showcase-accent);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: bold;
	margin: 0;
	text-align: center;
}

.afd-match-card__meta {
	color: var(--afd-match-showcase-accent);
	font-size: 16px;
	line-height: 1.45;
	margin: 26px 0 32px;
	min-height: 24px;
	text-align: center;
}

.afd-match-card__match {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(80px, 1fr) minmax(80px, auto) minmax(80px, 1fr);
}

.afd-match-card__team {
	align-items: center;
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-align: center;
}

.afd-match-card__team > strong {
	font-size: 16px;
	font-weight: bold;
	overflow-wrap: anywhere;  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100px;
}

.afd-match-card__badge {
	align-items: center;
	display: inline-flex;
	height: 80px;
	justify-content: center;
	width: 80px;
	margin-bottom: 15px;
}

.afd-match-card__badge img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.afd-match-card__badge > span {
	align-items: center;
	background: #eef2f5;
	border-radius: 50%;
	display: flex;
	font-size: 24px;
	font-weight: 800;
	height: 80px;
	justify-content: center;
	width: 80px;
}

.afd-match-card__center {
	align-items: center;
	display: flex;
	flex-direction: column;
	min-width: 80px;
}

.afd-match-card__center > strong {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1;
	white-space: nowrap;
}

.afd-match-card__final {
	align-items: center;
	display: flex;
	gap: 8px;
}

.afd-match-card__final > strong {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1;
}

.afd-match-card__center time,
.afd-match-card__center small {
	font-size: 16px;
	margin-top: 12px;
	white-space: nowrap;
}

.afd-match-card__status {
	align-items: center;
	background: #edf0f3;
	border-radius: 50%;
	display: flex;
	font-size: 14px;
	font-weight: 600;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.afd-match-showcase__empty {
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 16px;
	color: #fff;
	padding: 40px;
	text-align: center;
}

@media (min-width: 1200px) {
	.afd-match-showcase__track {
		grid-auto-columns: calc((100% - 72px) / 3);
	}
}

@media (max-width: 900px) {
	.afd-match-showcase__toolbar {
		align-items: flex-start;
	}

	.afd-match-showcase__tabs {
		gap: 10px;
		overflow-x: auto;
	}

	.afd-match-showcase__tabs button {
		font-size: 15px;
		min-width: 130px;
		padding: 11px 20px;
	}

	.afd-match-showcase__arrows {
		gap: 8px;
	}

	.afd-match-showcase__arrows button {
		height: 44px;
		width: 44px;
	}

	.afd-match-showcase__track {
		grid-auto-columns: minmax(330px, 78%);
	}
}

@media (max-width: 600px) {
	.afd-match-showcase {
		border-radius: 14px;
		padding: 18px 14px 28px;
	}

	.afd-match-showcase__toolbar {
		flex-direction: column;
	}

	.afd-match-showcase__arrows {
		align-self: flex-end;
	}

	.afd-match-showcase__track {
		gap: 16px;
		grid-auto-columns: 94%;
	}

	.afd-match-card {
		border-radius: 24px;
		min-height: 370px;
		padding: 28px 18px;
	}

	.afd-match-card__meta {
		font-size: 13px;
		margin: 24px 0;
	}

	.afd-match-card__match {
		gap: 8px;
		grid-template-columns: minmax(80px, 1fr) minmax(82px, auto) minmax(80px, 1fr);
	}

	.afd-match-card__badge {
		height: 76px;
		width: 76px;
	}

	.afd-match-card__team > strong,
	.afd-match-card__center time,
	.afd-match-card__center small {
		font-size: 13px;
	}

	.afd-match-card__center > strong {
		font-size: 30px;
	}

	.afd-match-card__final {
		gap: 8px;
	}

	.afd-match-card__final > strong {
		font-size: 30px;
	}

	.afd-match-card__status {
		font-size: 13px;
		height: 36px;
		width: 36px;
	}
}
