.plyv-viewer {
	position: relative;
	width: 100%;
	height: var(--plyv-height, 600px);
	min-height: 180px;
	overflow: hidden;
	background: #111;
	color: #fff;
}

.plyv-viewer:fullscreen {
	width: 100vw;
	height: 100vh;
}

.plyv-stage,
.plyv-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.plyv-loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	gap: 12px;
	align-content: center;
	background: rgba(10, 12, 16, 0.74);
	z-index: 3;
	font: 500 15px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
	padding: 18px;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.plyv-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.plyv-spinner {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	animation: plyv-spin 900ms linear infinite;
}

.plyv-error {
	max-width: 28rem;
	color: #fff;
	background: rgba(165, 40, 40, 0.82);
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font: 600 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.plyv-toolbar {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	z-index: 2;
	max-width: calc(100% - 24px);
}

.plyv-button {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(12, 16, 22, 0.72);
	color: #f6fbff;
	backdrop-filter: blur(8px);
	cursor: pointer;
}

.plyv-button:hover,
.plyv-button:focus-visible,
.plyv-button[aria-pressed="true"] {
	background: rgba(41, 88, 115, 0.86);
	border-color: rgba(255, 255, 255, 0.46);
}

.plyv-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.plyv-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.plyv-stats {
	max-width: min(420px, 100%);
	padding: 8px 10px;
	background: rgba(12, 16, 22, 0.74);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #f6fbff;
	font: 500 12px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace;
	white-space: normal;
}

@keyframes plyv-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 600px) {
	.plyv-toolbar {
		right: 8px;
		bottom: 8px;
		gap: 6px;
	}

	.plyv-button {
		width: 34px;
		height: 34px;
	}
}
