.cm-rankings-champion-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 2px 0;
}

.cm-rankings-name-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cm-rankings-primary-title {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
	flex: 0 0 auto;
}

.cm-rankings-champion {
	font-weight: 700;
	font-size: 1.08em;
	line-height: 1.1;
}

.cm-rankings-subtitle {
	display: block;
	margin-left: 24px;
	font-size: 11px;
	line-height: 1.2;
	color: #5f6b78;
	font-weight: 600;
}

.cm-rankings-icons {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 4px;
	vertical-align: middle;
}

.cm-rankings-icon {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.cm-rankings-overflow {
	font-size: 10px;
	font-weight: 700;
	color: #1d2327;
}

.cm-history-table-wrap {
	margin: 20px 0;
	overflow-x: auto;
}

.cm-history-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cm-history-table th,
.cm-history-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
	white-space: nowrap;
}

.cm-history-table th {
	background: #f6f7f7;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.cm-history-table th.sortable {
	cursor: pointer;
	user-select: none;
	position: relative;
	padding-right: 25px;
}

.cm-history-table th.sortable:hover {
	background: #e8e8e8;
}

.cm-history-table th.sortable .sort-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.3;
}

.cm-history-table th.sortable .sort-icon:before {
	content: '↕';
	font-size: 14px;
}

.cm-history-table th.sortable.sort-asc .sort-icon:before {
	content: '↑';
	opacity: 1;
}

.cm-history-table th.sortable.sort-desc .sort-icon:before {
	content: '↓';
	opacity: 1;
}

.cm-history-table tr:hover {
	filter: brightness(0.985);
}

.cm-history-result--new-champ {
	background: #ecfdf3;
}

.cm-history-result--new-champ td {
	font-weight: 700;
	font-size: 1.05em;
	letter-spacing: 0.01em;
}

.cm-history-result--new-champ td * {
	font-weight: inherit;
	font-size: inherit;
}

.cm-history-result--defense {
	background: #f4f8ff;
}

.cm-history-result--vacated {
	background: #fff4f1;
}

.cm-history-result--other {
	background: #f8f9fa;
}

.cm-history-result--defense .cm-history-result-cell,
.cm-history-result--vacated .cm-history-result-cell,
.cm-history-result--other .cm-history-result-cell {
	font-weight: 600;
}

.cm-history-details-row td {
	padding: 0;
	border-bottom: 1px solid #e2e4e7;
	background: #fbfcfd;
}

.cm-history-defense-wrap {
	padding: 10px 14px 14px;
}

.cm-history-defense-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	background: #fff;
	cursor: pointer;
	font: inherit;
	text-align: left;
	margin-bottom: 8px;
}

.cm-history-defense-toggle:hover {
	border-color: #2271b1;
}

.cm-history-defense-toggle-label {
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #3c434a;
}

.cm-history-defense-toggle-count {
	font-size: 12px;
	font-weight: 600;
	color: #646970;
}

.cm-history-defense-toggle-icon {
	width: 14px;
	text-align: center;
	font-size: 14px;
	line-height: 1;
}

.cm-history-defense-toggle-icon:before {
	content: '+';
}

.cm-history-defense-toggle[aria-expanded='true'] .cm-history-defense-toggle-icon:before {
	content: '-';
}

.cm-history-defense-panel[hidden] {
	display: none;
}

.cm-history-defense-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e2e4e7;
}

.cm-history-defense-table th,
.cm-history-defense-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
	white-space: nowrap;
	font-size: 13px;
}

.cm-history-defense-table th {
	background: #f6f7f7;
	font-weight: 600;
}

.cm-history-defense-table tr:last-child td {
	border-bottom: 0;
}

.cm-history-empty,
.cm-history-error {
	padding: 12px 14px;
	border: 1px solid #ccd0d4;
	background: #fff;
}

@media (max-width: 768px) {
	.cm-history-table {
		font-size: 14px;
	}

	.cm-history-table th,
	.cm-history-table td {
		padding: 8px 10px;
	}

	.cm-history-defense-wrap {
		padding: 8px 10px 10px;
	}
}

@media (max-width: 480px) {
	.cm-history-table thead {
		display: none;
	}

	.cm-history-main-row {
		display: block;
		margin-bottom: 8px;
		border: 1px solid #ddd;
		border-radius: 4px;
	}

	.cm-history-main-row td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px;
		border: none;
		white-space: normal;
	}

	.cm-history-main-row td:before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 10px;
		color: #3c434a;
	}

	.cm-history-details-row td {
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.cm-history-defense-wrap {
		padding: 0 0 12px;
	}

	.cm-history-defense-toggle {
		border-radius: 4px;
	}

	.cm-history-defense-table thead {
		display: none;
	}

	.cm-history-defense-table,
	.cm-history-defense-table tbody,
	.cm-history-defense-table tr,
	.cm-history-defense-table td {
		display: block;
		width: 100%;
	}

	.cm-history-defense-table tr {
		border: 1px solid #e2e4e7;
		border-radius: 4px;
		margin-bottom: 8px;
		overflow: hidden;
	}

	.cm-history-defense-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border: none;
		padding: 8px 10px;
		white-space: normal;
	}

	.cm-history-defense-table td:before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 10px;
		color: #3c434a;
	}
}
