/* Release 231: profile match lists fit their content column without horizontal scrolling. */
body.cs2day-v2 .cs2-detail-panel--profile-matches,
body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-profile-matches,
body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-matchcenter__tab-panel,
body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-matchcenter__fixtures {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-matchcenter__fixtures {
	overflow-x: hidden;
	overflow-x: clip;
	scrollbar-gutter: auto;
}

body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line {
	grid-template-columns: minmax(0, 1fr) auto;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__main {
	box-sizing: border-box;
	gap: 7px;
	grid-template-columns: 76px 38px minmax(0, 1fr) 44px minmax(0, 1fr) 38px minmax(96px, .9fr);
	max-width: 100%;
	min-width: 0;
	padding: 8px 10px;
	width: 100%;
}

body.cs2day-v2 .cs2-detail-panel--profile-matches :where(.cs2-match-line__team, .cs2-match-line__league),
body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__league span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__caster {
	box-sizing: border-box;
	max-width: 96px;
	min-width: 0;
	padding: 8px;
}

@media (max-width: 720px) {
	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line {
		display: block;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__caster {
		display: none;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__main {
		grid-template-columns: 32px minmax(0, 1fr) auto minmax(0, 1fr) 32px;
		grid-template-rows: auto minmax(34px, auto) auto;
		padding: 9px 10px;
		row-gap: 6px;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__date {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__main > .cs2-match-line__logo:first-of-type {
		grid-column: 1;
		grid-row: 2;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__team--home {
		grid-column: 2;
		grid-row: 2;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__score {
		grid-column: 3;
		grid-row: 2;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__team--away {
		grid-column: 4;
		grid-row: 2;
		text-align: right;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__main > .cs2-match-line__logo:nth-of-type(3) {
		grid-column: 5;
		grid-row: 2;
	}

	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__league {
		grid-column: 1 / -1;
		grid-row: 3;
	}
}
