/* UAT World — music bar */
.uat-player { position: absolute; z-index: 40; box-sizing: border-box; }
.uat-player[hidden] { display: none !important; }
.uat-player__frame { width: 100%; border-radius: 12px; overflow: hidden; background: #f0fbe8; }
.uat-player__frame iframe { display: block; width: 100% !important; height: 100% !important; border: 0; border-radius: 12px; }
.uat-player__close { display: none; }

/* Parked: kept loaded off-screen on pages without the playlist section */
.uat-player.is-parked { position: fixed; left: -10000px; top: 0; width: 320px; visibility: hidden; }

/* The bar */
.uat-player.is-bar {
	position: fixed;
	top: auto;
	left: 0; right: 0;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	width: auto;
	max-width: 760px;
	margin: 0 auto;
	padding: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
	background: #1d1d1f;
	border-radius: 18px;
	box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.45);
	z-index: 60;
	animation: uat-bar-in 0.35s ease-out;
}
.uat-player.is-bar .uat-player__frame { flex: 1 1 auto; min-width: 0; background: #282828; }
.uat-player.is-bar .uat-player__close {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none; width: 44px; height: 44px; margin-right: 4px;
	border: 0; border-radius: 9999px; background: #ffffff; color: #1d1d1f; cursor: pointer;
}
.uat-player.is-bar .uat-player__close:hover { background: #BCF09D; }
.uat-player.is-bar .uat-player__close:focus-visible { outline: 2px solid #BCF09D; outline-offset: 2px; }
@media (max-width: 800px) {
	.uat-player.is-bar {
		left: max(8px, env(safe-area-inset-left, 0px));
		right: max(8px, env(safe-area-inset-right, 0px));
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	}
}
@keyframes uat-bar-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .uat-player.is-bar { animation: none; } }

/* Room at the bottom so the bar never covers the footer */
body.uat-has-player { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

/* Playlist section while the music is in the bar */
.uat-player-slot.is-in-bar { min-height: 0 !important; }
.uat-player-slot__note {
	margin: 0; padding: 28px; border-radius: 12px; background: #f0fbe8; text-align: center;
}

/* Subtle cue while a page is loading */
html.uat-loading body { cursor: progress; }
html.uat-loading .wp-site-blocks > *:not(:first-child) { opacity: 0.6; transition: opacity 0.2s 0.15s; }

.uat-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
