/* Match detail flow: hero, live player, line-ups, map scoreboards and veto. */
body.cs2day-v2 .cs2-match-detail-flow {
	display: grid;
	gap: 16px;
	margin-top: 16px;
}

body.cs2day-v2 .cs2-match-detail-flow > .cs2-detail-panel {
	margin: 0;
}

body.cs2day-v2 .cs2-match-live {
	position: relative;
	margin-top: 16px;
	overflow: hidden;
	border: 1px solid var(--cs2-border);
	border-radius: 6px;
	background: #090f15;
}

body.cs2day-v2 .cs2-match-live__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--cs2-border);
}

body.cs2day-v2 .cs2-match-live__heading span {
	color: var(--cs2-accent);
	font-size: 11px;
	font-weight: 850;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-match-live__player {
	aspect-ratio: 16 / 9;
}

body.cs2day-v2 .cs2-match-live__player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

body.cs2day-v2 .cs2-match-live__consent {
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 260px;
	padding: 24px;
	text-align: center;
}

body.cs2day-v2 .cs2-match-live__consent small { color: var(--cs2-text-muted); }

body.cs2day-v2 .cs2-match-lineups {
	grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
}

body.cs2day-v2 .cs2-match-lineups > div {
	padding: 0;
	overflow: hidden;
}

body.cs2day-v2 .cs2-match-lineups__versus {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 1px solid var(--cs2-border);
	border-radius: 50%;
	background: var(--cs2-bg-alt);
	font-size: 18px;
}

body.cs2day-v2 .cs2-match-lineups__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	padding: 10px;
}

body.cs2day-v2 .cs2-match-lineup-player {
	display: grid;
	grid-template-rows: 92px auto auto;
	gap: 5px;
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg);
	color: var(--cs2-text);
	text-align: center;
	text-decoration: none;
}

body.cs2day-v2 .cs2-match-lineup-player:is(:hover, :focus-visible) { border-color: var(--cs2-accent); }
body.cs2day-v2 .cs2-match-lineup-player.is-disabled { pointer-events: none; }

body.cs2day-v2 .cs2-match-lineup-player :where(img, .cs2-match-lineup-player__avatar) {
	display: grid;
	place-items: center;
	width: 100%;
	height: 92px;
	border-radius: 4px;
	background: var(--cs2-bg-alt);
	object-fit: cover;
}

body.cs2day-v2 .cs2-match-lineup-player strong {
	overflow: hidden;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-match-lineup-player small { color: var(--cs2-text-muted); }

body.cs2day-v2 .cs2-match-scoreboard__tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
	overflow-x: auto;
}

body.cs2day-v2 .cs2-match-scoreboard__tabs button {
	min-height: 34px;
	padding: 6px 13px;
	border: 1px solid var(--cs2-border);
	border-radius: 4px;
	background: var(--cs2-bg-alt);
	color: var(--cs2-text-muted);
	font: inherit;
	font-size: 12px;
	font-weight: 750;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-match-scoreboard__tabs button.is-active {
	border-color: var(--cs2-accent);
	color: var(--cs2-text);
}

body.cs2day-v2 .cs2-match-scoreboard__panel[hidden] { display: none; }

body.cs2day-v2 .cs2-match-scoreboard__team th {
	padding-block: 11px;
	background: var(--cs2-bg-alt);
	text-align: left;
}

body.cs2day-v2 .cs2-match-scoreboard__team th > * { vertical-align: middle; }
body.cs2day-v2 .cs2-match-scoreboard__team-logo { width: 28px; height: 28px; margin-right: 9px; object-fit: contain; }

body.cs2day-v2 .cs2-match-scoreboard__player {
	display: inline-grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
}

body.cs2day-v2 .cs2-match-scoreboard__player :where(img, i) {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cs2-bg);
	font-size: 10px;
	font-style: normal;
	object-fit: cover;
}

body.cs2day-v2 .cs2-match-scoreboard__player a { color: var(--cs2-text); text-decoration: none; }

body.cs2day-v2 .cs2-match-maps--detail {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.cs2day-v2 .cs2-match-maps--detail > .cs2-match-map {
	position: relative;
	display: grid;
	align-content: end;
	min-height: 150px;
	padding: 16px;
	overflow: hidden;
	background: #111b24;
}

body.cs2day-v2 .cs2-match-map::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 252, 167, .035);
}

body.cs2day-v2 .cs2-match-map > * { position: relative; }
body.cs2day-v2 .cs2-match-map > span { color: var(--cs2-text-muted); font-size: 10px; text-transform: uppercase; }
body.cs2day-v2 .cs2-match-map > strong { font-size: 22px; }
body.cs2day-v2 .cs2-match-map > b { justify-self: end; font-size: 24px; }

body.cs2day-v2 .cs2-match-veto {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	gap: 8px;
	padding: 0;
	list-style: none;
}

body.cs2day-v2 .cs2-match-veto li {
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
}

body.cs2day-v2 .cs2-match-veto__action { color: var(--cs2-accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
body.cs2day-v2 .cs2-match-veto small { color: var(--cs2-text-muted); }

body.cs2day-v2 .cs2-match-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 1120px) {
	body.cs2day-v2 .cs2-match-lineups__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	body.cs2day-v2 .cs2-match-lineups { grid-template-columns: 1fr; }
	body.cs2day-v2 .cs2-match-lineups__versus { margin-inline: auto; }
	body.cs2day-v2 .cs2-match-lineups__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.cs2day-v2 .cs2-match-related__grid { grid-template-columns: 1fr; }
	body.cs2day-v2 .cs2-match-live__consent { min-height: 180px; }
}

@media (max-width: 430px) {
	body.cs2day-v2 .cs2-match-lineups__list { grid-template-columns: 1fr 1fr; padding: 7px; }
	body.cs2day-v2 .cs2-match-lineup-player { grid-template-rows: 74px auto auto; }
	body.cs2day-v2 .cs2-match-lineup-player :where(img, .cs2-match-lineup-player__avatar) { height: 74px; }
}
