:root {
	color-scheme: dark;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	background: #0a0a0a;
	color: #f5f0e8;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	background: #0a0a0a;
}

.viewer {
	position: relative;
	display: grid;
	min-height: 100vh;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgb(10 10 10 / 0.1), rgb(10 10 10 / 0.78)),
		#0a0a0a;
}

.player {
	width: 100vw;
	height: 100vh;
	background: #050505;
	object-fit: contain;
}

.bar {
	position: absolute;
	left: clamp(16px, 4vw, 42px);
	right: clamp(16px, 4vw, 42px);
	bottom: clamp(16px, 4vw, 42px);
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	padding: 16px;
	border: 1px solid rgb(245 240 232 / 0.16);
	border-radius: 8px;
	background: rgb(8 8 8 / 0.72);
	backdrop-filter: blur(16px);
	box-shadow: 0 20px 70px rgb(0 0 0 / 0.34);
}

.identity {
	min-width: 0;
}

h1 {
	margin: 0 0 6px;
	font-size: clamp(22px, 3vw, 42px);
	font-weight: 720;
	line-height: 1;
	letter-spacing: 0;
}

.identity p,
.status {
	margin: 0;
	color: #b8c7bd;
	font-size: 14px;
	line-height: 1.4;
}

.identity p {
	overflow-wrap: anywhere;
}

.actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

button,
.download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 108px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid rgb(245 240 232 / 0.2);
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	text-decoration: none;
	color: #f5f0e8;
	background: rgb(255 255 255 / 0.08);
	cursor: pointer;
	transition:
		background 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

button:hover,
.download:hover {
	border-color: rgb(174 255 112 / 0.72);
	background: rgb(174 255 112 / 0.16);
}

button:active,
.download:active {
	transform: translateY(1px);
}

button:focus-visible,
.download:focus-visible {
	outline: 3px solid #aeff70;
	outline-offset: 2px;
}

button:disabled,
.download[aria-disabled="true"] {
	pointer-events: none;
	opacity: 0.48;
}

.status {
	position: absolute;
	left: clamp(16px, 4vw, 42px);
	top: clamp(16px, 4vw, 42px);
	max-width: min(560px, calc(100vw - 32px));
	padding: 10px 12px;
	border-radius: 8px;
	background: rgb(8 8 8 / 0.66);
	backdrop-filter: blur(12px);
}

.status:empty {
	display: none;
}

@media (max-width: 680px) {
	.bar {
		align-items: stretch;
		flex-direction: column;
	}

	.actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	button,
	.download {
		min-width: 0;
	}
}
