/* Bedienleiste der Motion-Demos (player.js) — im Stil von paulmill.com. */
@font-face {
	font-family: "Manrope";
	src: url("/fonts/manrope/manrope-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
/* Die 1080-px-Bühne ist skaliert, ihr Layout-Kasten aber nicht: absolut
   positioniert verbreitert er auf dem Handy den Layout-Viewport. Fixiert zählt
   er nicht mit. */
#stage { position: fixed; }

.mp-bar {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(720px, calc(100vw - 32px));
	box-sizing: border-box;
	padding: 6px;
	border-radius: 999px;
	background: rgb(14 17 23 / 0.86);
	border: 1px solid rgb(255 255 255 / 0.1);
	box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6);
	color: #fff;
	font: 600 12px/1 "Manrope", system-ui, sans-serif;
	transform: translateX(-50%);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (backdrop-filter: blur(1px)) {
	@media (min-width: 768px) {
		.mp-bar { background: rgb(14 17 23 / 0.72); backdrop-filter: blur(14px) saturate(1.2); }
	}
}
.mp-bar.is-idle { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
.mp-bar svg { width: 16px; height: 16px; flex: 0 0 auto; }
.mp-bar a { color: inherit; text-decoration: none; }
.mp-back, .mp-prompt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	white-space: nowrap;
	color: rgb(255 255 255 / 0.78);
}
.mp-back:hover, .mp-prompt:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.mp-prompt { background: #18318a; color: #fff; }
.mp-prompt:hover { background: #2342b0; }
.mp-prompt svg { width: 14px; height: 14px; }
.mp-play {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #0e1117;
	cursor: pointer;
}
.mp-play svg { width: 14px; height: 14px; }
.mp-seek {
	--p: 0%;
	flex: 1 1 auto;
	min-width: 60px;
	height: 36px;
	margin: 0;
	background: transparent;
	appearance: none;
	cursor: pointer;
}
.mp-seek::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(to right, #7b95ee var(--p), rgb(255 255 255 / 0.18) var(--p));
}
.mp-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.18); }
.mp-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: #7b95ee; }
.mp-seek::-webkit-slider-thumb {
	appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border-radius: 50%;
	background: #fff;
	border: 0;
}
.mp-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.mp-time {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	color: rgb(255 255 255 / 0.6);
	padding-right: 4px;
}
.mp-time b { color: #fff; font-weight: 600; }
.mp-bar :focus-visible { outline: 2px solid #7b95ee; outline-offset: 2px; }
@media (max-width: 560px) {
	.mp-back span, .mp-time { display: none; }
	.mp-back { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.mp-bar { transition: none; }
}
/* Ton-Knopf (nur bei Demos mit MOTION.audio) */
.mp-sound {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.08);
	color: rgb(255 255 255 / 0.8);
	cursor: pointer;
}
.mp-sound:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
.mp-sound[aria-pressed="true"] { background: #18318a; color: #fff; }
.mp-sound svg { width: 18px; height: 18px; }
