.basketball-match-view {
	--basketball-surface: #fff;
	--basketball-surface-subtle: #f8fafc;
	--basketball-surface-accent: #eff6ff;
	--basketball-border: #dbe3ee;
	--basketball-border-strong: #aebdce;
	--basketball-text: #172033;
	--basketball-muted: #64748b;
	--basketball-accent: #2563eb;
	--basketball-accent-strong: #1d4ed8;
	--basketball-score: #0f172a;
	color: var(--basketball-text);
}

.basketball-match-tabs {
	margin-top: 18px;
}

.basketball-box-scores {
	display: grid;
	gap: 24px;
	padding-bottom: 8px;
}

.basketball-box-score {
	min-width: 0;
}

.basketball-box-score__team-name {
	color: var(--basketball-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px;
	text-wrap: balance;
}

.basketball-box-score__scroll {
	-webkit-overflow-scrolling: touch;
	background: var(--basketball-surface);
	border: 1px solid var(--basketball-border);
	border-radius: 10px;
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-color: var(--basketball-border-strong) transparent;
	scrollbar-width: thin;
}

.basketball-box-score__scroll:focus-visible {
	outline: 3px solid var(--basketball-accent);
	outline-offset: 2px;
}

.basketball-box-score__table.table {
	background: var(--basketball-surface);
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	color: var(--basketball-text);
	font-size: 14px;
	margin: 0;
	min-width: 728px;
	width: 100%;
}

.basketball-box-score__table.table > thead > tr > th,
.basketball-box-score__table.table > tbody > tr > th,
.basketball-box-score__table.table > tbody > tr > td {
	border: 0;
	border-bottom: 1px solid var(--basketball-border);
	line-height: 1.35;
	padding: 11px 12px;
	vertical-align: middle;
}

.basketball-box-score__table.table > thead > tr > th {
	background: #eef3f8;
	color: #42526a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.basketball-box-score__table.table > thead > tr > .basketball-box-score__sortable-heading {
	padding: 0 8px;
}

.basketball-box-score__sort {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	gap: 5px;
	justify-content: center;
	letter-spacing: inherit;
	min-height: 44px;
	padding: 10px 4px;
	text-transform: inherit;
	width: 100%;
}

.basketball-box-score__sort:hover,
.basketball-box-score__sort[data-direction] {
	color: var(--basketball-accent-strong);
}

.basketball-box-score__sort:focus-visible {
	outline: 2px solid var(--basketball-accent);
	outline-offset: -2px;
}

.basketball-box-score__sort-icon::after {
	color: var(--basketball-muted);
	content: '↕';
	font-size: 14px;
}

.basketball-box-score__sort[data-direction="ascending"] .basketball-box-score__sort-icon::after {
	color: inherit;
	content: '↑';
}

.basketball-box-score__sort[data-direction="descending"] .basketball-box-score__sort-icon::after {
	color: inherit;
	content: '↓';
}

.basketball-box-score__table.table > tbody > tr > td {
	font-variant-numeric: tabular-nums;
	text-align: center;
	white-space: nowrap;
}

.basketball-box-score__table.table > tbody > tr > th {
	font-weight: 700;
}

.basketball-box-score__table.table > tbody > tr:nth-child(even):not(.boxscore-total-row) > * {
	background: var(--basketball-surface-subtle);
}

.basketball-box-score__table.table > tbody > tr:last-child > * {
	border-bottom: 0;
}

.basketball-box-score__table .box-score-data {
	font-size: inherit;
}

.basketball-box-score__table.table .basketball-box-score__player-heading {
	left: 0;
	min-width: 260px;
	position: sticky;
	text-align: left;
	z-index: 3;
}

.basketball-box-score__table.table .basketball-box-score__player-name,
.basketball-box-score__table.table .basketball-box-score__total-label {
	background: var(--basketball-surface);
	left: 0;
	min-width: 260px;
	position: sticky;
	text-align: left;
	white-space: normal;
	width: 260px;
	z-index: 2;
}

.basketball-box-score__table.table > tbody > tr:nth-child(even):not(.boxscore-total-row) > .basketball-box-score__player-name {
	background: var(--basketball-surface-subtle);
}

.basketball-box-score__player-name-text {
	font-weight: 700;
}

.basketball-box-score__player-position,
.basketball-box-score__player-number {
	color: var(--basketball-muted);
	font-weight: 400;
}

.basketball-box-score__player-position {
	margin-right: 5px;
}

.basketball-box-score__player-number {
	margin-left: 5px;
}

.basketball-box-score__table.table .basketball-box-score__points-heading,
.basketball-box-score__table.table .basketball-box-score__points {
	background: var(--basketball-surface-accent);
	color: var(--basketball-accent-strong);
	font-size: 15px;
}

.basketball-box-score__table.table > tbody > tr:not(.boxscore-total-row) > .basketball-box-score__points {
	background: var(--basketball-surface-accent);
}

.basketball-box-score__table.table > tbody > .boxscore-total-row > * {
	background: #e8eef5;
	border-top: 2px solid var(--basketball-border-strong);
	font-weight: 700;
}

.basketball-box-score__table.table > tbody > .boxscore-total-row > .basketball-box-score__points {
	background: #dbeafe;
	color: var(--basketball-accent-strong);
	font-size: 15px;
}

.basketball-play-by-play {
	background: var(--basketball-surface);
	border: 1px solid var(--basketball-border);
	border-radius: 10px;
	overflow: hidden;
}

.basketball-play-by-play__header,
.basketball-play-by-play__event {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
}

.basketball-play-by-play__header {
	align-items: center;
	background: #eef3f8;
	color: #42526a;
	font-size: 13px;
	font-weight: 700;
	min-height: 46px;
	padding: 0 16px;
}

.basketball-play-by-play__team--away {
	text-align: right;
}

.basketball-play-by-play__score-label {
	text-align: center;
}

.basketball-play-by-play__events {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.basketball-play-by-play__events::before {
	background: var(--basketball-border);
	bottom: 0;
	content: '';
	left: 50%;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 1px;
}

.basketball-play-by-play__period {
	display: flex;
	justify-content: center;
	padding: 18px 16px 10px;
	position: relative;
	z-index: 1;
}

.basketball-play-by-play__period span {
	background: var(--basketball-score);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 5px 12px;
	text-transform: uppercase;
}

.basketball-play-by-play__event {
	align-items: center;
	border-bottom: 1px solid var(--basketball-border);
	min-height: 62px;
	padding: 10px 16px;
	position: relative;
}

.basketball-play-by-play__event:last-child {
	border-bottom: 0;
}

.basketball-play-by-play__event:hover {
	background: var(--basketball-surface-subtle);
}

.basketball-play-by-play__detail {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 3px 6px;
	min-width: 0;
}

.basketball-play-by-play__detail--away {
	justify-content: flex-end;
	text-align: right;
}

.basketball-play-by-play__player {
	color: var(--basketball-text);
	font-weight: 700;
}

.basketball-play-by-play__action,
.basketball-play-by-play__time {
	color: var(--basketball-muted);
}

.basketball-play-by-play__time {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.basketball-play-by-play__score {
	background: var(--basketball-surface);
	border: 1px solid var(--basketball-border-strong);
	border-radius: 999px;
	color: var(--basketball-score);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	justify-self: center;
	line-height: 1;
	min-width: 58px;
	padding: 8px 10px;
	text-align: center;
	z-index: 1;
}

@media (max-width: 767px) {
	.basketball-match-tabs > li {
		flex: 1 1 0;
	}

	.basketball-match-tabs > li > a {
		padding-left: 8px;
		padding-right: 8px;
	}

	.basketball-box-scores {
		gap: 22px;
	}

	.basketball-box-score__team-name {
		font-size: 18px;
	}

	.basketball-box-score__table.table {
		font-size: 13px;
		min-width: 684px;
	}

	.basketball-box-score__table.table > thead > tr > th,
	.basketball-box-score__table.table > tbody > tr > th,
	.basketball-box-score__table.table > tbody > tr > td {
		padding: 10px;
	}

	.basketball-box-score__table.table .basketball-box-score__player-heading {
		min-width: 162px;
	}

	.basketball-box-score__table.table .basketball-box-score__player-name,
	.basketball-box-score__table.table .basketball-box-score__total-label {
		box-shadow: 10px 0 14px -16px #0f172a;
		font-size: 12px;
		min-width: 162px;
		width: 162px;
	}

	.basketball-play-by-play__header,
	.basketball-play-by-play__event {
		grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
	}

	.basketball-play-by-play__header {
		font-size: 12px;
		padding: 0 10px;
	}

	.basketball-play-by-play__event {
		align-items: stretch;
		min-height: 72px;
		padding: 10px;
	}

	.basketball-play-by-play__detail {
		align-content: flex-start;
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.basketball-play-by-play__detail--away {
		align-content: flex-end;
		align-items: flex-end;
	}

	.basketball-play-by-play__action {
		font-size: 12px;
	}

	.basketball-play-by-play__score {
		align-self: center;
		font-size: 14px;
		min-width: 52px;
		padding: 7px 8px;
	}
}
