.tmpro {
	color: #15202b;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tmpro-section {
	margin: 0 0 32px;
}

.tmpro-section h2 {
	font-size: clamp(1.3rem, 2vw, 2rem);
	letter-spacing: 0;
	margin: 0 0 14px;
}

.tmpro-table-wrap {
	overflow-x: auto;
}

.tmpro-table {
	background: #ffffff;
	border-collapse: collapse;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(10, 22, 40, 0.08);
	min-width: 520px;
	overflow: hidden;
	width: 100%;
}

.tmpro-table th,
.tmpro-table td {
	border-bottom: 1px solid #e7ebf0;
	padding: 12px 14px;
	text-align: left;
}

.tmpro-table th {
	background: #101820;
	color: #ffffff;
	font-size: 0.78rem;
	text-transform: uppercase;
}

.tmpro-team-cell,
.tmpro-team,
.tmpro-side,
.tmpro-bracket-match > div,
.tmpro-champion-card {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.tmpro-logo {
	background: #f2f5f8;
	border-radius: 50%;
	height: 34px;
	object-fit: cover;
	width: 34px;
}

.tmpro-team-name {
	overflow-wrap: anywhere;
	white-space: normal;
	word-break: normal;
}

.tmpro-matches {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmpro-match {
	background: #ffffff;
	border: 1px solid #dce3eb;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(10, 22, 40, 0.07);
	overflow: hidden;
	padding: 0;
}

.tmpro-match-meta {
	background: #101820;
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 800;
	margin: 0;
	padding: 9px 12px;
	text-transform: uppercase;
}

.tmpro-matchup {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
	padding: 18px 16px 14px;
}

.tmpro-match-team {
	min-width: 0;
}

.tmpro-match-team .tmpro-team {
	flex-direction: row;
	gap: 8px;
	text-align: left;
}

.tmpro-match-team .tmpro-logo {
	flex: 0 0 42px;
	height: 42px;
	width: 42px;
}

.tmpro-match-team .tmpro-team-name {
	display: block;
	font-weight: 800;
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
}

.tmpro-match-team-away .tmpro-team {
	justify-content: flex-end;
	text-align: right;
}

.tmpro-match-score {
	align-items: center;
	background: #f1f4f8;
	border: 1px solid #dde5ee;
	border-radius: 8px;
	color: #101820;
	display: flex;
	justify-content: center;
	min-height: 44px;
	min-width: 60px;
	padding: 0 8px;
}

.tmpro-side strong,
.tmpro-bracket-match strong,
.tmpro-match-score strong {
	font-size: 1.25rem;
}

.tmpro-public-score {
	align-items: center;
	border-top: 1px solid #edf0f4;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 12px 14px 14px;
}

.tmpro-public-score input {
	border: 1px solid #bdc7d3;
	border-radius: 6px;
	min-height: 36px;
	padding: 6px 8px;
	width: 64px;
}

.tmpro-public-score .tmpro-score-input {
	flex: 1 1 96px;
	font-size: 1rem;
	font-weight: 800;
	text-align: center;
	width: auto;
}

.tmpro-point-input {
	color: #657482;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.tmpro-point-input input {
	display: block;
	font-size: 1rem;
	font-weight: 800;
	margin-top: 4px;
	text-align: center;
	width: 72px;
}

.tmpro-score-separator {
	font-size: 1.3rem;
	font-weight: 900;
	margin-top: 18px;
}

.tmpro-hp {
	left: -10000px;
	position: absolute;
}

.tmpro-public-score label {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.tmpro-public-score button {
	background: #d71920;
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	font-weight: 800;
	min-height: 36px;
	padding: 8px 12px;
}

.tmpro-message {
	color: #23643a;
	flex-basis: 100%;
	font-size: 0.9rem;
	margin: 0;
}

.tmpro-bracket-scroll {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: visible;
	padding: 8px clamp(12px, 2vw, 28px) 18px;
	width: 100vw;
}

.tmpro-bracket {
	align-items: stretch;
	display: grid;
	gap: clamp(12px, 2vw, 34px);
	grid-template-columns: 1.15fr 1.05fr 1.05fr 1fr 1fr;
	min-width: 0;
	width: 100%;
}

.tmpro-round {
	display: flex;
	flex-direction: column;
	gap: 22px;
	justify-content: center;
	position: relative;
}

.tmpro-round h3 {
	font-size: 0.9rem;
	margin: 0;
	text-transform: uppercase;
}

.tmpro-bracket-match {
	background: #ffffff;
	border: 1px solid #cfd8e3;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(10, 22, 40, 0.08);
	padding: 10px;
	position: relative;
}

.tmpro-bracket-match::after {
	background: #8996a3;
	content: "";
	height: 2px;
	left: 100%;
	position: absolute;
	top: 50%;
	width: clamp(12px, 2vw, 34px);
}

.tmpro-round:last-child .tmpro-bracket-match::after {
	display: none;
}

.tmpro-champion-round {
	align-self: center;
}

.tmpro-champion-card {
	background: #101820;
	border: 2px solid #d71920;
	border-radius: 8px;
	color: #ffffff;
	min-height: 74px;
	padding: 14px;
	position: relative;
}

.tmpro-champion-card::before {
	background: #8996a3;
	content: "";
	height: 2px;
	position: absolute;
	right: 100%;
	top: 50%;
	width: clamp(12px, 2vw, 34px);
}

.tmpro-champion-card .tmpro-logo {
	background: #ffffff;
	height: 44px;
	width: 44px;
}

.tmpro-champion-card .tmpro-team-name {
	font-size: 1rem;
	font-weight: 900;
}

.tmpro-bracket-match > div {
	justify-content: space-between;
	min-height: 42px;
}

.tmpro-bracket-match > div + div {
	border-top: 1px solid #edf0f4;
}

.tmpro-bracket-score {
	margin-top: 10px;
}

.tmpro-bracket-score input {
	width: 56px;
}

@media (max-width: 680px) {
	.tmpro-matches {
		grid-template-columns: 1fr;
	}

	.tmpro-public-score {
		align-items: stretch;
	}

	.tmpro-public-score button {
		width: 100%;
	}
}

@media (min-width: 681px) and (max-width: 980px) {
	.tmpro-matches {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 980px) {
	.tmpro-bracket-scroll {
		margin-left: 0;
		margin-right: 0;
		overflow-x: auto;
		padding-left: 0;
		padding-right: 0;
		width: 100%;
	}

	.tmpro-bracket {
		gap: 28px;
		grid-template-columns: repeat(5, minmax(190px, 1fr));
		min-width: 1040px;
	}
}

@media (prefers-color-scheme: dark) {
	.tmpro {
		color: #edf2f7;
	}

	.tmpro-table,
	.tmpro-match,
	.tmpro-bracket-match {
		background: #111820;
		border-color: #2c3846;
		box-shadow: none;
	}

	.tmpro-table th {
		background: #d71920;
	}

	.tmpro-table td,
	.tmpro-table th,
	.tmpro-public-score,
	.tmpro-bracket-match > div + div {
		border-color: #2c3846;
	}

	.tmpro-match-meta,
	.tmpro-message {
		color: #9db0c3;
	}

	.tmpro-public-score input {
		background: #0c1117;
		border-color: #3b4754;
		color: #edf2f7;
	}

	.tmpro-match-meta {
		background: #d71920;
	}

	.tmpro-match-score {
		background: #0c1117;
		border-color: #3b4754;
		color: #edf2f7;
	}
}
