Code/MediaSpeaker.razor.scss
$accent: #4d90fc;
$accent-blue: #6891e0;
$accent-hover: #91b4ff;
$accent-selected: #2d5da1;
$surface-btn: rgba( 33, 39, 41, 0.85 );
$border: #384042;
$text-primary: #f1f5f2;
$text-secondary: #dbe1df;
$text-muted: #acb6b2;
$danger: #e05555;

.mediaspeaker
{
	width: 100%;
	height: 100%;
	flex-direction: column;
	padding: 24px 36px;
	border-radius: 16px;
	border: 2px solid $border;
	background: linear-gradient( to bottom, #212729, #15191b );
	font-family: "Inter";
	color: $text-primary;
	position: relative;
	overflow: hidden;
	pointer-events: all;

	i
	{
		font-family: "Material Symbols Outlined";
		font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24;
	}

	.header
	{
		flex-direction: row;
		align-items: center;
		gap: 16px;

		i
		{
			font-size: 56px;
			color: $accent-blue;
		}

		.title
		{
			flex-grow: 1;
			flex-basis: 0;
			font-size: 40px;
			font-weight: 700;
			color: $text-primary;
		}

		.hint
		{
			flex-direction: row;
			align-items: center;
			gap: 10px;
			font-size: 28px;
			font-weight: 600;
			color: $text-secondary;
			white-space: nowrap;

			span
			{
				flex-shrink: 0;
			}
		}
	}

	.spectrumbars
	{
		flex-grow: 1;
		min-height: 40px;
		margin: 14px 0;
	}

	.controls
	{
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin-bottom: 10px;
		flex-shrink: 0;

		.divider
		{
			width: 1px;
			height: 28px;
			margin: 0 4px;
			background-color: $border;
		}

		.btn
		{
			width: 44px;
			height: 44px;
			border-radius: 8px;
			align-items: center;
			justify-content: center;
			background-color: $surface-btn;
			border: 1px solid rgba( 255, 255, 255, 0.12 );
			color: $text-primary;
			cursor: pointer;
			transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;

			i
			{
				font-size: 26px;
			}

			&:hover
			{
				background-color: $accent;
				border-color: $accent-hover;
				sound-in: ui.hover;
			}

			&:active
			{
				background-color: $accent-selected;
				sound-in: ui.select;
			}

			&.toggle.active
			{
				background-color: $accent-selected;
				border-color: $accent-hover;
				color: #a1e2ff;

				&:hover
				{
					background-color: $accent;
					border-color: $accent-hover;
					color: $text-primary;
				}
			}

			&.aimed, &.toggle.active.aimed
			{
				background-color: $accent;
				border-color: $accent-hover;
				color: $text-primary;
				transform: scale( 1.08 );
			}
		}
	}

	.footer
	{
		flex-direction: row;
		font-size: 28px;
		color: $text-muted;

		.time
		{
			flex-grow: 1;
			// every digit the same width, so it doesn't jiggle as it counts
			font-variant-numeric: tabular-nums;
		}

		.queue
		{
			align-items: center;
			gap: 6px;
		}
	}

	.notice
	{
		position: absolute;
		left: 20px;
		right: 20px;
		bottom: 20px;
		padding: 12px 20px;
		border-radius: 10px;
		background-color: $danger;
		border: 1px solid rgba( 255, 255, 255, 0.16 );
		color: $text-primary;
		font-size: 26px;
		font-weight: 600;
	}

	&.idle .spectrumbars
	{
		opacity: 0.3;
	}

	.press-dot
	{
		position: absolute;
		display: none;
		left: 0;
		top: 0;
		margin-left: -14px;
		margin-top: -14px;
		font-size: 22px;
		pointer-events: none;
		z-index: 100;
	}
}

.spectrumbars
{
	flex-direction: row;
	align-items: flex-end;
	gap: 6px;

	.bar
	{
		flex-grow: 1;
		height: 3%;
		border-radius: 4px 4px 0 0;
		background: linear-gradient( to top, #2d5da1, #6891e0, #91b4ff );
	}
}