/* ListenRadios Explorer — browse layer (inherits the site's light/dark look;
   neutral tokens below work on both) */
:root {
	--lrb-border: rgba(128, 134, 160, 0.28);
	--lrb-bg: rgba(128, 134, 160, 0.07);
	--lrb-accent: #ff4757;
	--lrb-radius: 12px;
}

/* ---------- Live search dropdown ---------- */
.lre-ls-results {
	position: absolute;
	z-index: 99999;
	background: #101a2b;
	color: #f5f8ff;
	border: 1px solid var(--lrb-border);
	border-radius: var(--lrb-radius);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	max-height: 420px;
	overflow-y: auto;
}
/* Matches the ListenRadios dark design. */
.lre-ls-results { border-color: #3a5276; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-family: "DM Sans", system-ui, sans-serif; }
.lre-ls-item { border-bottom-color: #243149; }
.lre-ls-item:hover, .lre-ls-item.is-active { background: #18263d; }
.lre-ls-item img { background: #f3f6fb; object-fit: contain; padding: 2px; box-sizing: border-box; }
.lre-ls-sub { color: #9baac2; opacity: 1; }
.lre-ls-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--lrb-border);
}
.lre-ls-item:last-child { border-bottom: none; }
.lre-ls-item:hover, .lre-ls-item.is-active { background: var(--lrb-bg); }
.lre-ls-item img, .lre-ls-ph {
	width: 36px; height: 36px;
	border-radius: 8px;
	object-fit: cover;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--lrb-bg);
	font-size: 18px;
}
.lre-ls-meta { min-width: 0; display: flex; flex-direction: column; }
.lre-ls-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lre-ls-sub { font-size: 12px; opacity: 0.65; }
.lre-ls-empty { padding: 14px; font-size: 13px; opacity: 0.7; }

/* ---------- Browse grid ---------- */
.lre-browse { margin: 10px 0 30px; }
.lre-browse-title { margin: 0 0 14px; }
.lre-browse-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.lre-browse-q, .lre-browse-country {
	border: 1px solid var(--lrb-border);
	background: transparent;
	color: inherit;
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 14px;
	outline: none;
}
.lre-browse-q { flex: 1 1 220px; min-width: 0; }
.lre-browse-q:focus, .lre-browse-country:focus { border-color: var(--lrb-accent); }
.lre-browse-country { max-width: 240px; }
.lre-browse-country option { color: #1c2030; }

.lre-browse-genres { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.lre-chip {
	border: 1px solid var(--lrb-border);
	background: transparent;
	color: inherit;
	opacity: 0.85;
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 12.5px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.lre-chip:hover { opacity: 1; border-color: currentColor; }
.lre-chip.is-active { background: var(--lrb-accent); border-color: var(--lrb-accent); color: #fff; opacity: 1; }

.lre-browse-count { font-size: 13px; opacity: 0.65; margin: 6px 0 12px; min-height: 18px; }

.lre-browse-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
	transition: opacity 0.15s ease;
}
.lre-browse-grid.is-loading { opacity: 0.45; }
.lre-browse-empty { grid-column: 1 / -1; padding: 30px 0; opacity: 0.7; }

.lre-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--lrb-border);
	border-radius: var(--lrb-radius);
	background: var(--lrb-bg);
	text-decoration: none;
	color: inherit;
	transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.lre-card:hover {
	transform: translateY(-3px);
	border-color: var(--lrb-accent);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.lre-card-img {
	width: 64px; height: 64px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--lrb-bg);
}
.lre-card-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.lre-card-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.lre-card-sub { font-size: 12px; opacity: 0.65; }

.lre-browse-foot { text-align: center; margin-top: 18px; }
.lre-browse-more {
	border: 1px solid var(--lrb-border);
	background: transparent;
	color: inherit;
	border-radius: 999px;
	padding: 10px 26px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.lre-browse-more:hover { border-color: var(--lrb-accent); color: var(--lrb-accent); }
.lre-browse-more:disabled { opacity: 0.5; cursor: wait; }

/* ---------- Genre / country index pages ---------- */
.lre-index { margin: 10px 0 30px; }
.lre-index-featured {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}
.lre-index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}
.lre-index-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid var(--lrb-border);
	border-radius: var(--lrb-radius);
	background: var(--lrb-bg);
	text-decoration: none;
	color: inherit;
	transition: transform 0.14s ease, border-color 0.14s ease;
}
.lre-index-card:hover { transform: translateY(-2px); border-color: var(--lrb-accent); }
.lre-index-card--big {
	flex-direction: column;
	align-items: flex-start;
	padding: 20px;
	background: linear-gradient(135deg, rgba(255, 71, 87, 0.14), rgba(255, 165, 2, 0.1));
	border-color: rgba(255, 71, 87, 0.4);
}
.lre-index-card--big .lre-index-name { font-size: 18px; font-weight: 800; }
.lre-index-name { font-weight: 600; font-size: 14px; }
.lre-index-count { font-size: 12px; opacity: 0.6; white-space: nowrap; }
