.match-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.match-tabs {
	display: inline-flex;
	border: 2px solid #000;
	background: #fff;
	padding: 4px;
	gap: 10px;
}

.match-tabs .tab-btn {
	padding: 10px 30px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-weight: 600;
	color: #000;
	width: 100%;
}

.match-tabs .tab-btn.active {
	background: #1d2226;
	color: #fff;
}

.match-category-filter select {
	min-width: 220px;
	border: 2px solid #2f3438;
	background: #efefef;
	color: #1d2226;
	font-size: 14px;
	font-weight: 500;
	outline: none;
	cursor: pointer;
}

.match-item.hide {
	display: none !important;
}

.match-cards-grid {
	display: grid;
	gap: 30px;
}

.match-card-wrap {
	position: relative;
}

.match-card-wrap::before {
	content: "";
	position: absolute;
	top: -5px;
	right: -13px;
	width: 43px;
	height: 25px;
	background: #fff;
	transform: rotate(45deg);
	border-bottom: 2px solid #000;
	z-index: 9;
}

.match-card-shadow {
	position: absolute;
	inset: 0;
	transform: translate(-12px, 1px);
	background: #0e1a22;
	clip-path: polygon(12px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 9px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	z-index: 0;
	height: 106%;
	width: 100.8%;
}

.match-card {
	position: relative;
	z-index: 1;
	background: #efefef;
	border: 2px solid #2f3438;
	/* overflow: hidden; */
}

.match-top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-height: 78px;
	padding: 14px 20px;
	border-bottom: 1px solid #2f3438;
	font-weight: normal;
	text-transform: uppercase;
	color: #1d2226;
	flex-wrap: wrap;
	font-family: 'Garp Sans Normal Italic';
}

.team {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 220px;
	justify-content: center;
}

.team img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	display: block;
}

.vs {
	font-size: 18px;
	font-weight: 500;
}

.match-bottom,
.result-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	min-height: 56px;
	gap: 15px;
	flex-wrap: wrap;
}

.date-block .date {
	font-size: 20px;
	font-weight: 700;
	color: #000;
}

.date-block .meta {
	font-size: 16px;
	color: #000;
}

.right-side {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.venue {
	font-size: 16px;
	color: #000;
}

.status {
	background: #ff5a00;
	color: #fff;
	padding: 10px 22px;
	font-size: 14px;
	line-height: 1;
	display: inline-block;
}

.result-card-top {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 260px 1fr;
	align-items: center;
	border-bottom: 1px solid #2f3438;
	min-height: 92px;
}

.result-team {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 22px 20px 14px;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	color: #1d2226;
}

.result-team img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	display: block;
}

.result-team-name {
	line-height: 1.1;
}

.result-score-box {
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 18px 0 10px;
}

.result-score-item {
	text-align: center;
	line-height: 1.1;
}

.result-score-item + .result-score-item {
	border-left: 2px solid #000;
}

.result-score-main {
	font-size: 18px;
	font-weight: 800;
	font-style: normal;
	color: #1d2226;
}

.result-score-overs {
	font-size: 13px;
	color: #1d2226;
	margin-top: 4px;
}

.result-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ff5a00;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	line-height: 1;
	white-space: nowrap;
	z-index: 2;
}

.result-mobile-layout {
	display: none;
}

.result-vs-mobile {
	display: none;
}

@media (max-width: 767px) {
	.match-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.match-category-filter select {
		width: 100%;
	}

	/* keep desktop result row hidden on mobile */
	.result-card-top {
		display: none;
	}

	/* mobile only result row */
	.result-mobile-layout {
		display: block;
		position: relative;
		border-bottom: 1px solid #2f3438;
		padding: 18px 14px 14px;
	}

	.result-mobile-inner {
		display: grid;
		grid-template-columns: 1fr 40px 1fr;
		align-items: start;
		gap: 10px;
		margin-top: 12px;
	}

	.result-badge {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translate(-50%, -50%);
		font-size: 12px;
		padding: 8px 14px;
		white-space: nowrap;
	}

	.result-mobile-team {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		text-align: center;
		gap: 8px;
	}

	.result-mobile-team img {
		width: 46px;
		height: 46px;
		object-fit: contain;
		display: block;
	}

	.result-mobile-name {
		display: none;
	}

	.result-vs-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 28px;
		font-weight: 700;
		color: #000;
		padding-top: 8px;
	}

	.result-mobile-score {
		text-align: center;
		line-height: 1.1;
	}

	.result-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.right-side {
		justify-content: space-between;
		width: 100%;
	}

	.team span {
		display: none;
	}

	.team {
		min-width: 100px;
	}
}