/**
 * UXDivi Video Dinámico — frontend styles.
 * Brand: #014DFD (electric blue) + #62E5FF (cyan).
 */

.uxdivi-vd-embed {
	position: relative;
	width: 100%;
	padding-bottom: var(--uxdivi-vd-pb, 56.25%);
	height: 0;
	overflow: hidden;
	background: #040814;
	border-radius: 12px;
}
.uxdivi-vd-embed > iframe,
.uxdivi-vd-embed > object,
.uxdivi-vd-embed > embed,
.uxdivi-vd-embed > video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* Preview card (thumbnail + play) */
.uxdivi-vd-preview {
	position: relative;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 40px -8px rgba(1, 77, 253, 0.35);
	cursor: pointer;
}
.uxdivi-vd-preview[data-has-video="0"] {
	cursor: default;
	box-shadow: none;
}
.uxdivi-vd-preview[data-has-video="0"] .uxdivi-vd-preview__thumb::after {
	display: none;
}
.uxdivi-vd-preview__thumb {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	background-size: cover;
	background-position: center;
	background-color: #040814;
}
.uxdivi-vd-preview__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 8, 20, 0.1) 0%, rgba(4, 8, 20, 0.55) 100%);
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.uxdivi-vd-preview:hover .uxdivi-vd-preview__thumb::after {
	opacity: 0.75;
}
.uxdivi-vd-preview__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: 0;
	background: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
	box-shadow: 0 10px 40px -8px rgba(1, 77, 253, 0.55), 0 0 0 0 rgba(98, 229, 255, 0.5);
	padding: 0;
}
.uxdivi-vd-preview:hover .uxdivi-vd-preview__play {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 14px 44px -8px rgba(1, 77, 253, 0.7), 0 0 0 8px rgba(98, 229, 255, 0.2);
}
.uxdivi-vd-preview__play-icon {
	display: block;
	width: 28px;
	height: 28px;
	margin-left: 3px;
}
.uxdivi-vd-preview__label {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	z-index: 2;
	text-align: center;
	color: #F5F8FF;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
	text-shadow: 0 2px 8px rgba(4, 8, 20, 0.75);
}

/* Modal lightbox */
.uxdivi-vd-modal {
	position: fixed;
	inset: 0;
	z-index: 999999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.uxdivi-vd-modal[hidden] {
	display: none;
}
.uxdivi-vd-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 8, 20, 0.88);
	cursor: pointer;
	animation: uxdivi-vd-fade 0.2s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.uxdivi-vd-modal__content {
	position: relative;
	width: 100%;
	max-width: 960px;
	z-index: 2;
	animation: uxdivi-vd-zoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.uxdivi-vd-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	background: transparent;
	border: 0;
	color: #F5F8FF;
	font-size: 34px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 10px;
	transition: color 0.2s;
}
.uxdivi-vd-modal__close:hover {
	color: #62E5FF;
}
.uxdivi-vd-modal__body {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #040814;
	box-shadow: 0 20px 80px -10px rgba(1, 77, 253, 0.35);
}
.uxdivi-vd-modal__body > iframe,
.uxdivi-vd-modal__body > video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

@keyframes uxdivi-vd-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes uxdivi-vd-zoom {
	from { opacity: 0; transform: scale(0.94); }
	to   { opacity: 1; transform: scale(1); }
}
