/* Release 257: keep the shared match archive inside profile content columns. */
body.cs2day-v2 .cs2-detail-panel--profile-matches {
	min-width: 0;
}

body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-profile-matches {
	box-sizing: border-box;
	max-width: none;
	min-width: 0;
	width: calc(100% + 40px);
}

body.cs2day-v2 .cs2-detail-panel--profile-matches :is(.cs2-matchcenter__group, .cs2-matchcenter__tab-panel, .cs2-matchcenter__fixtures) {
	min-width: 0;
	width: 100%;
}

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

body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line__main {
	grid-template-columns: 72px 36px minmax(0, 1fr) 48px minmax(0, 1fr) 36px minmax(88px, .9fr);
	min-width: 0;
	width: 100%;
}

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

@media (max-width: 980px) {
	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-match-line {
		grid-template-columns: minmax(0, 1fr);
	}

	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: 34px minmax(0, 1fr) auto minmax(0, 1fr) 34px;
		grid-template-rows: auto minmax(38px, 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;
	}
}

@media (max-width: 720px) {
	body.cs2day-v2 .cs2-detail-panel--profile-matches .cs2-profile-matches {
		width: calc(100% + 28px);
	}
}
