.pkhb-top-keys {
	margin: 60px 0;
	--pkhb-tk-text: #1f2733;
	--pkhb-tk-muted: #8a92a0;
	--pkhb-tk-rank: #c79a3a;
	--pkhb-tk-star: #f6b100;
	--pkhb-tk-line: #e7eaef;
	--pkhb-tk-accent: #f6b100;
	color: var(--pkhb-tk-text);
}

.pkhb-tk-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.pkhb-tk-tabs {
	display: flex;
	gap: 28px;
}

.pkhb-tk-tab {
	position: relative;
	padding: 0 0 10px;
	border: 0;
	background: none;
	font-size: 16px;
	font-weight: 600;
	color: var(--pkhb-tk-muted);
	cursor: pointer;
}

.pkhb-tk-tab.is-active {
	color: var(--pkhb-tk-text);
}

.pkhb-tk-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--pkhb-tk-accent);
}

.pkhb-tk-search {
	position: relative;
	min-width: 260px;
}

.pkhb-tk-search-input {
	width: 100%;
	padding: 10px 40px 10px 16px;
	border: 1px solid var(--pkhb-tk-line);
	border-radius: 999px;
	font-size: 14px;
	color: var(--pkhb-tk-text);
	background: #fff;
}

.pkhb-tk-search-input:focus {
	outline: none;
	border-color: var(--pkhb-tk-accent);
}

.pkhb-tk-search svg {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: var(--pkhb-tk-muted);
	pointer-events: none;
}

.pkhb-tk-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 48px;
}

.pkhb-tk-head {
	display: flex;
	justify-content: space-between;
	padding: 0 8px 12px;
	border-bottom: 1px solid var(--pkhb-tk-line);
	font-size: 14px;
	color: var(--pkhb-tk-muted);
}

.pkhb-tk-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pkhb-tk-row {
	display: grid;
	grid-template-columns: 28px 40px 1fr auto 32px;
	align-items: center;
	gap: 12px;
	padding: 14px 8px;
	border-bottom: 1px solid var(--pkhb-tk-line);
}

.pkhb-tk-row[hidden] {
	display: none;
}

.pkhb-tk-rank {
	font-size: 15px;
	font-weight: 700;
	font-style: italic;
	color: var(--pkhb-tk-rank);
	text-align: center;
}

.pkhb-tk-thumb {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pkhb-tk-thumb img,
.pkhb-tk-thumb .pkhb-tk-icon {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
}

.pkhb-tk-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pkhb-tk-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--pkhb-tk-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pkhb-tk-meta {
	font-size: 13px;
	color: var(--pkhb-tk-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pkhb-tk-rate {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: var(--pkhb-tk-text);
	white-space: nowrap;
}

.pkhb-tk-star {
	color: var(--pkhb-tk-star);
}

.pkhb-tk-count {
	color: var(--pkhb-tk-muted);
}

.pkhb-tk-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--pkhb-tk-line);
	border-radius: 8px;
	color: var(--pkhb-tk-muted);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.pkhb-tk-link:hover {
	color: var(--pkhb-tk-text);
	border-color: var(--pkhb-tk-accent);
}

.pkhb-tk-empty {
	padding: 24px 8px;
	color: var(--pkhb-tk-muted);
	text-align: center;
}

@media (max-width: 900px) {
	.pkhb-tk-columns {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (max-width: 480px) {
	.pkhb-tk-bar {
		gap: 14px;
	}
	.pkhb-tk-search {
		min-width: 100%;
		order: 2;
	}
	.pkhb-tk-row {
		grid-template-columns: 24px 36px 1fr auto;
	}
	.pkhb-tk-link {
		display: none;
	}
}
