/**
 * Matches shortcode (Today / Upcoming / Results).
 */

.a2z-matches {
	margin-bottom: 24px;
}

.a2z-matches__header.card__header {
	padding-top: 18px;
	padding-bottom: 14px;
}

.a2z-matches__title {
	margin: 0;
	line-height: 1.25;
}

.a2z-matches__content {
	padding-top: 0;
}

.a2z-matches__tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0 0 14px;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.a2z-matches__tab {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 8px 6px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.a2z-matches__tab:hover,
.a2z-matches__tab:focus {
	color: #fff;
	outline: none;
}

.a2z-matches__tab.is-active {
	color: #fff;
	border-bottom-color: #9fe870;
}

.a2z-matches__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 10px;
	font-weight: 700;
	color: inherit;
}

.a2z-matches__panel[hidden] {
	display: none !important;
}

.a2z-matches__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.a2z-matches__row {
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.a2z-matches__row:last-child {
	border-bottom: 0;
	padding-bottom: 2px;
}

.a2z-matches__teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.a2z-matches__team {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.a2z-matches__team--home {
	justify-content: flex-end;
	text-align: right;
	flex-direction: row-reverse;
}

.a2z-matches__team--away {
	justify-content: flex-start;
	text-align: left;
}

.a2z-matches__logo {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.a2z-matches__logo-fallback {
	flex: 0 0 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.a2z-matches__name {
	min-width: 0;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.a2z-matches__name:hover {
	color: #9fe870 !important;
}

.a2z-matches__center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 72px;
	padding: 0 4px;
	text-align: center;
}

.a2z-matches__vs {
	color: rgba(255, 255, 255, 0.45);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.a2z-matches__score {
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	border-bottom: 0 !important;
	white-space: nowrap;
}

.a2z-matches__score:hover {
	color: #9fe870 !important;
}

.a2z-matches__meta {
	color: rgba(255, 255, 255, 0.65);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.a2z-matches__league {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.4);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.a2z-matches__empty {
	margin: 8px 0 4px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 420px) {
	.a2z-matches__logo,
	.a2z-matches__logo-fallback {
		flex-basis: 24px;
		width: 24px;
		height: 24px;
	}

	.a2z-matches__name {
		font-size: 11px;
	}

	.a2z-matches__center {
		min-width: 58px;
	}

	.a2z-matches__score {
		font-size: 14px;
	}

	.a2z-matches__tab {
		font-size: 10px;
		padding-left: 2px;
		padding-right: 2px;
	}
}
