.widget-iframe {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	isolation: isolate;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	pointer-events: auto;
}

.widget-iframe .iframe-embed {
	width: 100%;
	height: auto;
	min-height: 0;
	max-width: 100%;
	max-height: 100%;
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 1;
	pointer-events: auto;
}

.widget-iframe iframe {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	border: 0;
	display: block;
	position: relative;
	z-index: 2;
	pointer-events: auto !important;
	touch-action: auto;
}

.widget-iframe.fallback-aspect-ratio .iframe-embed {
	height: 0;
	padding-top: 56.25%;
}

.widget-iframe.fallback-aspect-ratio iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.embed-hover-toolbar {
	position: fixed;
	left: -9999px;
	top: -9999px;
	z-index: 2147483645;
	padding: 4px;
	border-radius: 10px;
	background: rgba(17, 24, 39, 0.88);
	backdrop-filter: blur(3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-3px);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.embed-hover-toolbar.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.embed-hover-toolbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
}

.embed-hover-toolbar-btn:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.45);
}

.embed-fs-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: none;
}

.embed-fs-overlay.is-open {
	display: block;
}

.embed-fs-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(10, 12, 18, 0.74);
	backdrop-filter: blur(2px);
	cursor: zoom-out;
}

.embed-fs-modal {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(80vw, 1500px);
	height: min(80vh, 950px);
	transform: translate(-50%, -50%);
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	box-shadow: 0 26px 65px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding-top: 42px;
}

.embed-fs-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.55);
	color: #ffffff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.embed-fs-close:hover {
	background: rgba(30, 41, 59, 0.82);
}

.embed-fs-content {
	flex: 1;
	min-height: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.embed-fs-content .iframe-embed {
	width: auto;
	height: auto;
	max-width: 100% !important;
	max-height: 100% !important;
	aspect-ratio: auto;
	overflow: hidden;
}

.embed-fs-content .iframe-embed iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
}

.widget-iframe.embed-fs-source-active {
	opacity: 0.96;
}

.embed-fs-placeholder {
	width: 100%;
	border-radius: 10px;
	background: rgba(100, 116, 139, 0.18);
	border: 1px dashed rgba(100, 116, 139, 0.42);
}

@media (max-width: 900px) {
	.embed-fs-modal {
		width: min(90vw, 1500px);
		height: min(86vh, 950px);
	}
}
