/* The compact radio player (#1230), built by public/modules/radioMiniPlayer.js: restart and
   play/pause as two small round tonal buttons, and a thin progress line the host places along
   its top edge. The page links this file (spot panel); the map islands bundle it (ui/styles.css)
   for tag mode's pill, so both draw from one set of rules. The brand colour is the islands'
   --cs-primary inside a shadow root and the page's --purple outside it. */

.radio-mini-player {
	--radio-mini-color: var(--cs-primary, var(--purple, #7858b8));
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 4px;
}

.radio-mini-player-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: color-mix(in srgb, var(--radio-mini-color) 15%, transparent);
	color: var(--radio-mini-color);
	cursor: pointer;
}

/* Restart is the quieter of the two. */
.radio-mini-player-restart {
	width: 28px;
	height: 28px;
	background: transparent;
}

.radio-mini-player-button:hover {
	background: color-mix(in srgb, var(--radio-mini-color) 22%, transparent);
}

.radio-mini-player-button:focus-visible {
	outline: 2px solid var(--radio-mini-color);
	outline-offset: 2px;
}

.radio-mini-player-button svg {
	flex-shrink: 0;
	pointer-events: none;
}

/* Along the host's top edge: the host is position: relative with overflow: hidden. */
.radio-mini-player-progress {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 2px;
	transform-origin: left;
	background: var(--cs-primary, var(--purple, #7858b8));
	pointer-events: none;
}

.radio-mini-player-progress[hidden] {
	display: none;
}
