Code/MediaScreen.razor.scss
$accent: #4d90fc;
$accent-blue: #6891e0;
$accent-hover: #91b4ff;
$accent-soft: rgba( 145, 180, 255, 0.16 );
$accent-selected: #2d5da1;
$bg: #000;
$surface: rgba( 25, 30, 32, 0.90 );
$surface-btn: rgba( 33, 39, 41, 0.85 );
$border: #384042;
$text-primary: #f1f5f2;
$text-secondary: #dbe1df;
$text-muted: #acb6b2;
$warning: #f0b95b;
$danger: #e05555;

.mediascreen
{
	width: 100%;
	height: 100%;
	background-color: $bg;
	font-family: "Inter";
	color: $text-primary;
	position: relative;
	overflow: hidden;
	pointer-events: all;

	.video
	{
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
	}

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

	.splash, .audio
	{
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: linear-gradient( to bottom, #191e20, #0e1214 );

		> i
		{
			font-size: 200px;
			color: $accent-blue;
			opacity: 0.9;
		}

		.title
		{
			font-size: 72px;
			font-weight: 700;
			color: $text-primary;
			margin-top: 20px;
			text-align: center;
			max-width: 85%;
		}

		.hint, .status
		{
			font-size: 36px;
			color: $text-muted;
			margin-top: 16px;
			text-align: center;
			max-width: 85%;
		}

		.hint
		{
			flex-direction: row;
			align-items: center;
			gap: 12px;
			white-space: nowrap;
		}

		.status
		{
			color: $warning;
		}
	}

	.audio
	{
		> i
		{
			font-size: 120px;
		}

		.title
		{
			font-size: 56px;
			max-width: 85%;
			justify-content: center;

			// a title too long to fit scrolls from its start
			&.overflowing
			{
				justify-content: flex-start;
			}
		}

		.spectrumbars
		{
			width: 80%;
			height: 35%;
			margin-top: 40px;
		}

		// where the track is, for the Audio view of a video (the real progress bar is in the controls)
		.audio-progress
		{
			width: 80%;
			height: 8px;
			margin-top: 24px;
			border-radius: 4px;
			background-color: rgba( 255, 255, 255, 0.14 );

			.fill
			{
				height: 100%;
				width: 0%;
				border-radius: 4px;
				background-color: $accent;
			}
		}

		.audio-time
		{
			margin-top: 12px;
			font-size: 32px;
			color: $text-secondary;
			font-variant-numeric: tabular-nums;
		}
	}

	.loading
	{
		position: absolute;
		left: 40px;
		top: 40px;
		padding: 12px 24px;
		border-radius: 10px;
		background-color: $surface;
		border: 1px solid $border;
		color: $text-primary;
		font-size: 32px;
		align-items: center;
		gap: 12px;

		i
		{
			color: $accent-blue;
		}
	}

	// captions: centred near the bottom, above the controls while they're showing
	.subs
	{
		position: absolute;
		left: 10%;
		right: 10%;
		bottom: 90px;
		flex-direction: column;
		align-items: center;
		pointer-events: none;
		transition: bottom 0.2s ease;

		.subs-line
		{
			margin-top: 6px;
			padding: 6px 18px;
			border-radius: 10px;
			background-color: rgba( 25, 30, 32, 0.88 );
			border: 1px solid rgba( 56, 64, 66, 0.7 );
			font-size: 44px;
			line-height: 1.2;
			text-align: center;
			color: $text-primary;
		}
	}

	&.controls-visible .subs
	{
		bottom: 260px;
	}

	.notice
	{
		position: absolute;
		top: 40px;
		right: 40px;
		max-width: 60%;
		padding: 16px 28px;
		border-radius: 10px;
		background-color: rgba( 224, 85, 85, 0.92 );
		border: 1px solid rgba( 255, 255, 255, 0.16 );
		color: $text-primary;
		font-size: 32px;
		font-weight: 600;
	}

	.osd
	{
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		padding: 40px 48px 32px 48px;
		background: linear-gradient( to top, rgba( 14, 18, 20, 0.94 ), rgba( 14, 18, 20, 0 ) );
		opacity: 0;
		transition: opacity 0.3s ease;

		.meta
		{
			flex-direction: row;
			align-items: flex-end;
			margin-bottom: 16px;

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

			.time
			{
				font-size: 36px;
				color: $text-secondary;
				margin-left: 24px;
				white-space: nowrap;
				flex-shrink: 0;
				// every digit the same width, so it doesn't jiggle as it counts
				font-variant-numeric: tabular-nums;
			}
		}

		.progress
		{
			height: 12px;
			border-radius: 6px;
			background-color: rgba( 255, 255, 255, 0.16 );
			cursor: pointer;

			.fill
			{
				height: 100%;
				width: 0%;
				border-radius: 6px;
				background-color: $accent;
			}

			&:hover
			{
				height: 20px;
				background-color: rgba( 255, 255, 255, 0.24 );
				sound-in: ui.hover;
			}

			&:active
			{
				sound-in: ui.select;
			}
		}

		.live
		{
			align-self: flex-start;
			padding: 6px 18px;
			border-radius: 10px;
			background-color: $danger;
			color: $text-primary;
			font-size: 26px;
			font-weight: 700;
			align-items: center;
			gap: 8px;
		}

		.controls
		{
			flex-direction: row;
			align-items: center;
			margin-top: 20px;
			gap: 12px;

			.btn
			{
				width: 88px;
				height: 88px;
				border-radius: 12px;
				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: 52px;
				}

				&: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;
					}
				}
			}

			.spacer
			{
				flex-grow: 1;
			}

			.queue-count, .by
			{
				font-size: 30px;
				color: $text-muted;
				align-items: center;
				gap: 8px;
				margin-left: 24px;
			}
		}
	}

	// Controls show when you start looking at the screen, and hide after MediaScreen.HideControlsAfter.
	// Hidden controls don't take clicks - look away and back to bring them up.
	.osd
	{
		pointer-events: none;
	}

	&.controls-visible .osd
	{
		opacity: 1;
		pointer-events: all;
	}

	// AlwaysShowInfo: title + progress stay up, the buttons still hide
	&.always-info .osd
	{
		opacity: 1;

		.controls
		{
			opacity: 0;
			transition: opacity 0.3s ease;
		}
	}

	&.always-info.controls-visible .osd .controls
	{
		opacity: 1;
	}

	// The button under the crosshair - what USE will press
	.btn.aimed, .osd .controls .btn.toggle.active.aimed
	{
		background-color: $accent;
		border-color: $accent-hover;
		color: $text-primary;
		transform: scale( 1.08 );
	}

	.progress.aimed
	{
		height: 20px;
		background-color: $accent-soft;
	}

	// "Press E" dot. A direct child of the root, moved onto the aimed control from code
	// (MediaScreen.UpdatePressDot sets left/top/display); centered on that point by the negative margins.
	// the USE button's glyph (a key cap, or the pad's button), centred on the aimed control's corner
	.press-dot
	{
		position: absolute;
		display: none;
		left: 0;
		top: 0;
		margin-left: -28px;
		margin-top: -28px;
		font-size: 44px;
		pointer-events: none;
		z-index: 100;
	}

	.flash
	{
		position: absolute;
		left: 50%;
		top: 50%;
		width: 220px;
		height: 220px;
		margin-left: -110px;
		margin-top: -110px;
		border-radius: 20px;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: rgba( 25, 30, 32, 0.88 );
		border: 1px solid $border;
		color: $text-primary;
		pointer-events: none;

		i
		{
			font-size: 112px;
		}

		.flash-text
		{
			font-size: 30px;
			font-weight: 700;
			color: $text-secondary;
			margin-top: -4px;
		}
	}

	&.idle .osd
	{
		display: none;
	}
}

.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 );
	}
}