.sapp-popvideo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid #0f766e;
	border-radius: 6px;
	background: #0f766e;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.sapp-popvideo-button:hover,
.sapp-popvideo-button:focus {
	background: #115e59;
	color: #fff;
}

.sapp-popvideo-admin-note {
	padding: 10px 12px;
	border-left: 4px solid #b45309;
	background: #fffbeb;
	color: #713f12;
}

body.sapp-popvideo-modal-open {
	overflow: hidden;
}

.sapp-popvideo-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.78);
}

.sapp-popvideo-modal.is-open {
	display: flex;
}

.sapp-popvideo-dialog {
	width: min(1180px, 92vw);
	background: #020617;
	color: #fff;
	border-radius: 0;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.sapp-popvideo-modal.is-maximized {
	padding: 0;
}

.sapp-popvideo-modal.is-maximized .sapp-popvideo-dialog {
	width: 100vw;
	height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

.sapp-popvideo-modal.is-minimized {
	inset: auto 16px 16px auto;
	width: min(420px, calc(100vw - 32px));
	height: auto;
	padding: 0;
	background: transparent;
	align-items: flex-end;
	justify-content: flex-end;
}

.sapp-popvideo-modal.is-minimized .sapp-popvideo-dialog {
	width: 100%;
}

.sapp-popvideo-modal.is-minimized .sapp-popvideo-stage,
.sapp-popvideo-modal.is-minimized .sapp-popvideo-controls {
	display: none;
}

.sapp-popvideo-header,
.sapp-popvideo-controls {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	background: #020617;
}

.sapp-popvideo-header h3 {
	margin: 0;
	color: #fff;
	font-size: 16px;
	letter-spacing: 0;
}

.sapp-popvideo-window-actions,
.sapp-popvideo-controls {
	flex-wrap: wrap;
}

.sapp-popvideo-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	-webkit-user-select: none;
	user-select: none;
}

.sapp-popvideo-modal.is-maximized .sapp-popvideo-stage {
	aspect-ratio: auto;
	min-height: 0;
}

.sapp-popvideo-media {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.sapp-popvideo-loading {
	color: #fff;
	font-weight: 700;
}

.sapp-popvideo-control {
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid #334155;
	border-radius: 4px;
	background: #111827;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sapp-popvideo-control:hover,
.sapp-popvideo-control:focus {
	background: #1f2937;
}

.sapp-popvideo-control:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.sapp-popvideo-modal {
		padding: 0;
	}

	.sapp-popvideo-dialog {
		width: 100vw;
	}
}
