/* Players page: search field and live result list. */

.pc-player-search-field {
	max-width: 26rem;
}

.pc-player-results {
	list-style: none;
	margin: 0 0 var(--pc-space-md);
	padding: 0;
	border: 1px solid var(--pc-light-border);
	border-radius: var(--pc-radius);
	overflow: hidden;
}

/* The favorite-toggle button (favorite-player.js/players-search.js) sits
   as a SIBLING of the <a>, not inside it (a <button> nested inside an
   <a> is invalid markup) -- so the <li> itself is what needs to lay the
   two out side by side, and what carries the row divider now, not the
   <a> alone (which no longer spans the row's full width). */
.pc-player-result {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--pc-light-border);
}

.pc-player-result:last-child {
	border-bottom: none;
}

.pc-player-result a {
	display: flex;
	align-items: center;
	gap: var(--pc-space-sm);
	flex: 1 1 auto;
	min-width: 0;
	padding: var(--pc-space-sm) var(--pc-space-md);
	text-decoration: none;
	color: var(--pc-light-text);
}

.pc-player-result a:hover {
	background: var(--pc-light-bg);
}

.pc-player-result .pca-favorite-toggle--compact {
	flex: 0 0 auto;
	margin-right: var(--pc-space-sm);
}

.pc-player-result-flag {
	font-size: 1.25rem;
	line-height: 1;
}

.pc-player-result-name {
	font-weight: 600;
	margin-right: auto;
}

.pc-player-panel {
	margin-top: var(--pc-space-lg);
}
