/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.card {
	--menu-edge: var(--voice-shadow-medium);
	--menu-shadow: var(--voice-shadow-soft);
	--menu-shadow-lg: var(--voice-shadow-soft);
	background-color: var(--background-primary);
	border: 1px solid var(--background-modifier-accent);
	border-radius: 4px;
	filter: drop-shadow(0 2px 0 var(--menu-edge)) drop-shadow(0 4px 8px var(--menu-shadow))
		drop-shadow(0 8px 16px var(--menu-shadow-lg));
	width: 220px;
	max-height: 320px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

:global(.theme-light) .card {
	--menu-edge: color-mix(in srgb, var(--voice-shadow-medium) 45%, transparent);
	--menu-shadow: color-mix(in srgb, var(--voice-shadow-soft) 55%, transparent);
	--menu-shadow-lg: color-mix(in srgb, var(--voice-shadow-soft) 50%, transparent);
}

.header {
	padding: 12px 12px 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.list {
	overflow-y: auto;
	padding: 0 4px 4px;
	flex: 1;
	min-height: 0;
}

.spectatorRow {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.1s;
}

.spectatorRow:hover {
	background-color: var(--background-modifier-hover);
}

.spectatorName {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.spectatorDevice {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--text-muted);
}
