/* CS2Day 1.4.0: unified entity, person and match detail pages. */
body.cs2day-v2 :where(.content-section--match, .cs2-detail-page) {
	width: min(100% - 32px, 1440px);
	max-width: 1440px;
	margin-inline: auto;
}

body.cs2day-v2 .entry--match,
body.cs2day-v2 .entry--match .entry__content {
	width: 100%;
	max-width: none;
}

body.cs2day-v2 .cs2-detail {
	--cs2-detail-accent: var(--cs2-entity-accent, var(--cs2-accent));
	display: grid;
	gap: 14px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto 40px;
}

body.cs2day-v2 .cs2-detail-hero,
body.cs2day-v2 .cs2-detail-panel {
	border: 1px solid color-mix(in srgb, var(--cs2-border) 88%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--cs2-card) 94%, var(--cs2-bg));
	box-shadow: 0 16px 34px rgb(0 0 0 / 16%);
}

body.cs2day-v2 .cs2-detail-hero {
	position: relative;
	min-height: 270px;
	overflow: hidden;
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--cs2-card-elevated) 90%, transparent), color-mix(in srgb, var(--cs2-bg) 95%, transparent)),
		radial-gradient(circle at 16% 40%, color-mix(in srgb, var(--cs2-detail-accent) 11%, transparent), transparent 34%);
}

body.cs2day-v2 .cs2-detail-hero--entity,
body.cs2day-v2 .cs2-detail-hero--person {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr) auto;
	align-items: center;
	gap: 30px;
	padding: 34px 38px;
}

body.cs2day-v2 .cs2-detail-hero__media {
	display: grid;
	place-items: center;
	width: 190px;
	height: 190px;
}

body.cs2day-v2 :where(.cs2-detail-hero__logo, .cs2-detail-hero__avatar) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 6px;
}

body.cs2day-v2 .cs2-detail-hero__avatar {
	object-fit: cover;
}

body.cs2day-v2 .cs2-detail-monogram {
	display: grid;
	place-items: center;
	background: var(--cs2-bg-alt);
	border: 1px solid var(--cs2-border);
	color: var(--cs2-text);
	font-size: 42px;
	font-weight: 800;
}

body.cs2day-v2 .cs2-detail-kicker,
body.cs2day-v2 .cs2-detail-panel__heading span {
	display: block;
	color: var(--cs2-text-muted);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-detail-hero__identity h1 {
	margin: 7px 0 12px;
	font-size: 52px;
	line-height: 1;
	letter-spacing: 0;
}

body.cs2day-v2 .cs2-detail-badges,
body.cs2day-v2 .cs2-detail-hero__meta,
body.cs2day-v2 .cs2-detail-actions,
body.cs2day-v2 .cs2-detail-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

body.cs2day-v2 .cs2-detail-hero__meta {
	margin-top: 14px;
	color: var(--cs2-text-muted);
}

body.cs2day-v2 .cs2-detail-hero__meta > :not(:last-child)::after {
	content: "·";
	margin-left: 8px;
	color: var(--cs2-text-disabled);
}

body.cs2day-v2 .cs2-detail-status,
body.cs2day-v2 .cs2-verified-badge {
	padding: 5px 8px;
	border: 1px solid var(--cs2-border);
	border-radius: 4px;
	background: color-mix(in srgb, var(--cs2-bg) 70%, transparent);
	color: var(--cs2-text-muted);
	font-size: 12px;
	font-weight: 700;
}

body.cs2day-v2 .cs2-verified-badge {
	border-color: color-mix(in srgb, var(--cs2-detail-accent) 45%, var(--cs2-border));
	color: var(--cs2-detail-accent);
}

body.cs2day-v2 .cs2-detail-actions {
	justify-content: flex-end;
	align-self: end;
}

body.cs2day-v2 .cs2-detail-actions form {
	margin: 0;
}

body.cs2day-v2 .cs2-detail-actions :where(.button, button),
body.cs2day-v2 .cs2-detail-links a {
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: color-mix(in srgb, var(--cs2-bg-alt) 86%, transparent);
	color: var(--cs2-text);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

body.cs2day-v2 .cs2-detail-actions .button--primary {
	border-color: var(--cs2-detail-accent);
	background: var(--cs2-detail-accent);
	color: var(--cs2-on-accent);
}

body.cs2day-v2 .cs2-detail-tabs,
body.cs2day-v2 .cs2-profile-activity__tabs {
	display: flex;
	align-items: stretch;
	gap: 4px;
	overflow-x: auto;
	padding: 4px;
	border: 1px solid var(--cs2-border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--cs2-bg-alt) 84%, transparent);
	scrollbar-width: thin;
}

body.cs2day-v2 :where(.cs2-detail-tabs, .cs2-profile-activity__tabs) button {
	position: relative;
	flex: 0 0 auto;
	min-height: 38px;
	padding: 8px 14px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--cs2-text-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	cursor: pointer;
}

body.cs2day-v2 :where(.cs2-detail-tabs, .cs2-profile-activity__tabs) button:hover,
body.cs2day-v2 :where(.cs2-detail-tabs, .cs2-profile-activity__tabs) button.is-active {
	background: var(--cs2-card-elevated);
	color: var(--cs2-text);
}

body.cs2day-v2 :where(.cs2-detail-tabs, .cs2-profile-activity__tabs) button.is-active::after {
	position: absolute;
	right: 10px;
	bottom: 0;
	left: 10px;
	height: 2px;
	background: var(--cs2-detail-accent);
	content: "";
}

body.cs2day-v2 .cs2-profile-activity__tabs button span {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	margin-left: 7px;
	border-radius: 10px;
	background: var(--cs2-bg);
	color: var(--cs2-text-muted);
	font-size: 11px;
}

body.cs2day-v2 .cs2-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	align-items: start;
	gap: 18px;
}

body.cs2day-v2 .cs2-detail-main,
body.cs2day-v2 .cs2-detail-tabpanel,
body.cs2day-v2 .cs2-detail-sidebar {
	display: grid;
	gap: 14px;
	min-width: 0;
}

body.cs2day-v2 .cs2-detail-tabpanel[hidden],
body.cs2day-v2 .cs2-profile-activity__panel[hidden] {
	display: none;
}

body.cs2day-v2 .cs2-detail-panel {
	min-width: 0;
	padding: 20px;
}

body.cs2day-v2 .cs2-detail-panel--sticky {
	position: sticky;
	top: 84px;
}

body.cs2day-v2 .cs2-detail-panel__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

body.cs2day-v2 .cs2-detail-panel__heading h2 {
	margin: 3px 0 0;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: 0;
}

body.cs2day-v2 .cs2-detail-panel__heading > strong {
	display: grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	border-radius: 4px;
	background: var(--cs2-bg-alt);
	color: var(--cs2-text-muted);
}

body.cs2day-v2 .cs2-detail-copy {
	max-width: 78ch;
	color: var(--cs2-text-muted);
	font-size: 15px;
	line-height: 1.7;
}

body.cs2day-v2 .cs2-detail-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

body.cs2day-v2 .cs2-detail-stats > div {
	min-height: 84px;
	padding: 13px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
}

body.cs2day-v2 .cs2-detail-stats span,
body.cs2day-v2 .cs2-detail-stats strong {
	display: block;
}

body.cs2day-v2 .cs2-detail-stats span {
	color: var(--cs2-text-muted);
	font-size: 11px;
}

body.cs2day-v2 .cs2-detail-stats strong {
	margin-top: 7px;
	font-size: 20px;
}

body.cs2day-v2 .cs2-detail-facts {
	display: grid;
	gap: 0;
	margin: 0;
}

body.cs2day-v2 .cs2-detail-facts--columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
}

body.cs2day-v2 .cs2-detail-facts > div {
	display: grid;
	grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--cs2-border) 62%, transparent);
}

body.cs2day-v2 .cs2-detail-facts > div:last-child {
	border-bottom: 0;
}

body.cs2day-v2 .cs2-detail-facts :where(dt, dd) {
	margin: 0;
	overflow-wrap: anywhere;
}

body.cs2day-v2 .cs2-detail-facts dt {
	color: var(--cs2-text-muted);
}

body.cs2day-v2 .cs2-detail-facts dd {
	color: var(--cs2-text);
	font-weight: 650;
}

body.cs2day-v2 .cs2-detail-source,
body.cs2day-v2 .cs2-detail-broadcast {
	display: grid;
	gap: 5px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--cs2-border);
}

body.cs2day-v2 :where(.cs2-detail-source, .cs2-detail-broadcast) span {
	color: var(--cs2-text-muted);
	font-size: 11px;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-detail-people,
body.cs2day-v2 .cs2-detail-team-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

body.cs2day-v2 .cs2-detail-person-card,
body.cs2day-v2 .cs2-detail-team-grid > a {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 78px;
	padding: 10px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
	color: var(--cs2-text);
	text-decoration: none;
}

body.cs2day-v2 .cs2-detail-person-card > :first-child,
body.cs2day-v2 .cs2-detail-team-grid > a > span {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--cs2-bg) 78%, transparent);
	object-fit: cover;
}

body.cs2day-v2 .cs2-detail-team-grid__logo,
body.cs2day-v2 .cs2-match-lineups__logo,
body.cs2day-v2 .cs2-match-form__logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

body.cs2day-v2 :where(.cs2-detail-person-card, .cs2-detail-team-grid > a) strong,
body.cs2day-v2 :where(.cs2-detail-person-card, .cs2-detail-team-grid > a) small,
body.cs2day-v2 .cs2-detail-person-card em {
	display: block;
}

body.cs2day-v2 :where(.cs2-detail-person-card, .cs2-detail-team-grid > a) small {
	margin-top: 4px;
	color: var(--cs2-text-muted);
}

body.cs2day-v2 .cs2-detail-person-card em {
	margin-top: 4px;
	color: var(--cs2-detail-accent);
	font-size: 11px;
	font-style: normal;
}

body.cs2day-v2 .cs2-detail-timeline {
	display: grid;
	gap: 2px;
}

body.cs2day-v2 .cs2-detail-timeline article {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 11px 5px;
	border-bottom: 1px solid var(--cs2-border);
}

body.cs2day-v2 .cs2-detail-timeline__dot {
	width: 7px;
	height: 7px;
	border: 2px solid var(--cs2-detail-accent);
	border-radius: 50%;
}

body.cs2day-v2 .cs2-detail-timeline small,
body.cs2day-v2 .cs2-detail-timeline time {
	color: var(--cs2-text-muted);
}

body.cs2day-v2 .cs2-detail-timeline small {
	display: block;
	margin-top: 2px;
}

body.cs2day-v2 .cs2-detail-empty {
	display: grid;
	gap: 5px;
	min-height: 92px;
	place-content: center;
	padding: 20px;
	border: 1px dashed var(--cs2-border);
	border-radius: 5px;
	color: var(--cs2-text-muted);
	text-align: center;
}

body.cs2day-v2 .cs2-detail-empty strong {
	color: var(--cs2-text);
}

body.cs2day-v2 .cs2-profile-activity {
	display: grid;
	gap: 12px;
}

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

body.cs2day-v2 .cs2-profile-activity-card {
	min-height: 145px;
	padding: 14px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
}

body.cs2day-v2 .cs2-profile-activity-card > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--cs2-text-muted);
	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-profile-activity-card h3 {
	margin: 10px 0 7px;
	font-size: 15px;
	line-height: 1.35;
}

body.cs2day-v2 .cs2-profile-activity-card a {
	color: var(--cs2-text);
	text-decoration: none;
}

body.cs2day-v2 .cs2-profile-activity-card p {
	margin: 0;
	color: var(--cs2-text-muted);
	font-size: 12px;
	line-height: 1.5;
}

body.cs2day-v2 .cs2-detail-match-list {
	display: grid;
	gap: 4px;
}

body.cs2day-v2 .cs2-detail-match-list > a {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 10px 12px;
	border-radius: 4px;
	background: var(--cs2-bg-alt);
	color: var(--cs2-text);
	text-decoration: none;
}

body.cs2day-v2 .cs2-detail-match-list > a > small {
	grid-column: 2;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-detail-match-list > a > div {
	display: grid;
	grid-template-columns: 38px minmax(80px, 1fr) 50px minmax(80px, 1fr) 38px;
	align-items: center;
	gap: 9px;
}

body.cs2day-v2 .cs2-detail-match-list__logo {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

body.cs2day-v2 .cs2-detail-match-list small,
body.cs2day-v2 .cs2-detail-match-list time {
	color: var(--cs2-text-muted);
}

/* Match duel hero. */
body.cs2day-v2 .cs2-match-hero {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(220px, 1fr);
	grid-template-rows: 1fr auto auto;
	align-items: center;
	gap: 18px 30px;
	padding: 28px 40px 18px;
}

body.cs2day-v2 .cs2-match-hero__team {
	display: grid;
	grid-template-rows: 138px auto auto;
	place-items: center;
	gap: 8px;
	color: var(--cs2-text);
	text-align: center;
	text-decoration: none;
}

body.cs2day-v2 .cs2-match-hero__logo {
	width: 138px;
	height: 138px;
	object-fit: contain;
}

body.cs2day-v2 .cs2-match-hero__team strong {
	font-size: 24px;
	line-height: 1.15;
}

body.cs2day-v2 .cs2-match-hero__team > span {
	display: none;
}

body.cs2day-v2 .cs2-match-hero__center {
	display: grid;
	place-items: center;
	gap: 7px;
	text-align: center;
}

body.cs2day-v2 .cs2-match-hero__score {
	font-size: 38px;
	line-height: 1;
}

body.cs2day-v2 .cs2-match-hero__center :where(time, span:not(.cs2-status)) {
	color: var(--cs2-text-muted);
}

body.cs2day-v2 .cs2-match-hero__actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 8px;
}

body.cs2day-v2 .cs2-match-hero__actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
	color: var(--cs2-text);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

body.cs2day-v2 .cs2-match-hero__actions .button--primary {
	border-color: var(--cs2-detail-accent);
	background: var(--cs2-detail-accent);
	color: var(--cs2-on-accent);
}

body.cs2day-v2 .cs2-match-hero__footer {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 28px;
	padding-top: 14px;
	border-top: 1px solid var(--cs2-border);
	color: var(--cs2-text-muted);
	font-size: 12px;
}

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

body.cs2day-v2 .cs2-match-lineups > div,
body.cs2day-v2 .cs2-match-form > div {
	padding: 12px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
}

body.cs2day-v2 :where(.cs2-match-lineups, .cs2-match-form) h3 {
	display: grid;
	grid-template-columns: 34px 1fr;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px;
	font-size: 15px;
}

body.cs2day-v2 .cs2-match-lineups h3 img,
body.cs2day-v2 .cs2-match-form h3 img {
	width: 34px;
	height: 34px;
}

body.cs2day-v2 .cs2-match-lineups > div > a,
body.cs2day-v2 .cs2-match-lineups__person {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 4px;
	border-top: 1px solid var(--cs2-border);
	color: var(--cs2-text);
	text-decoration: none;
}

body.cs2day-v2 .cs2-match-form > div > div {
	display: flex;
	gap: 6px;
}

body.cs2day-v2 .cs2-match-form > div > div span {
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	border-radius: 4px;
	background: var(--cs2-bg);
	font-weight: 800;
}

body.cs2day-v2 .cs2-match-form .is-w { color: var(--cs2-success); }
body.cs2day-v2 .cs2-match-form .is-l { color: var(--cs2-error); }
body.cs2day-v2 .cs2-match-form .is-d { color: var(--cs2-warning); }

body.cs2day-v2 .cs2-match-maps--detail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

body.cs2day-v2 .cs2-match-maps--detail > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
}

body.cs2day-v2 .cs2-match-scoreboard.cs2-match-section {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.cs2day-v2 .cs2-match-scoreboard > .cs2-match-section__heading {
	display: none;
}

body.cs2day-v2 .cs2-match-tournament {
	display: block;
	margin-bottom: 12px;
	font-size: 18px;
}

@media (max-width: 980px) {
	body.cs2day-v2 .cs2-detail-layout {
		grid-template-columns: 1fr;
	}
	body.cs2day-v2 .cs2-detail-panel--sticky {
		position: static;
	}
	body.cs2day-v2 .cs2-match-hero {
		grid-template-columns: 1fr 130px 1fr;
		padding-inline: 22px;
	}
	body.cs2day-v2 .cs2-detail-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	body.cs2day-v2 :where(.content-section--match, .cs2-detail-page) {
		width: min(100% - 20px, 1440px);
	}
	body.cs2day-v2 .cs2-detail-hero--entity,
	body.cs2day-v2 .cs2-detail-hero--person {
		grid-template-columns: 94px minmax(0, 1fr);
		gap: 16px;
		min-height: 0;
		padding: 20px;
	}
	body.cs2day-v2 .cs2-detail-hero__media {
		width: 94px;
		height: 94px;
	}
	body.cs2day-v2 .cs2-detail-hero__identity h1 {
		font-size: 30px;
	}
	body.cs2day-v2 .cs2-detail-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
	body.cs2day-v2 .cs2-detail-panel {
		padding: 15px;
	}
	body.cs2day-v2 .cs2-detail-people,
	body.cs2day-v2 .cs2-detail-team-grid,
	body.cs2day-v2 .cs2-profile-activity__grid,
	body.cs2day-v2 .cs2-match-lineups,
	body.cs2day-v2 .cs2-match-form,
	body.cs2day-v2 .cs2-match-maps--detail,
	body.cs2day-v2 .cs2-detail-facts--columns {
		grid-template-columns: 1fr;
	}
	body.cs2day-v2 .cs2-detail-match-list > a {
		grid-template-columns: 1fr;
		gap: 7px;
	}
	body.cs2day-v2 .cs2-detail-match-list > a > small {
		grid-column: 1;
	}
	body.cs2day-v2 .cs2-detail-match-list > a > div {
		grid-template-columns: 34px minmax(60px, 1fr) 42px minmax(60px, 1fr) 34px;
	}
	body.cs2day-v2 .cs2-match-hero {
		grid-template-columns: 1fr 74px 1fr;
		gap: 12px 8px;
		min-height: 0;
		padding: 20px 12px 14px;
	}
	body.cs2day-v2 .cs2-match-hero__team {
		grid-template-rows: 82px auto;
	}
	body.cs2day-v2 .cs2-match-hero__logo {
		width: 82px;
		height: 82px;
	}
	body.cs2day-v2 .cs2-match-hero__team strong {
		font-size: 14px;
	}
	body.cs2day-v2 .cs2-match-hero__score {
		font-size: 25px;
	}
	body.cs2day-v2 .cs2-match-hero__center time,
	body.cs2day-v2 .cs2-match-hero__center > span:not(.cs2-status) {
		font-size: 10px;
	}
	body.cs2day-v2 .cs2-match-hero__footer {
		justify-content: flex-start;
		gap: 8px 16px;
		overflow-x: auto;
		white-space: nowrap;
	}
}

@media (max-width: 430px) {
	body.cs2day-v2 .cs2-detail-stats {
		grid-template-columns: 1fr 1fr;
	}
	body.cs2day-v2 .cs2-detail-facts > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
