/**
 * Lite Video Embed Professional Styles
 */

.lite-video-embed-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem auto; /* Centered by default */
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.15);
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
	cursor: pointer;
}

/* Vertical Video Optimization (Reels/TikTok style) */
.lite-video-embed-container.lve-vertical {
	max-width: 400px; /* Standard vertical video width on desktop */
}

/* Instagram Specific: Flexible Height for Card Elements (Profile/Caption) */
.lve-platform-instagram.lite-video-embed-container {
	background: #000;
	min-height: 600px; /* Minimum space for standard Instagram Post Cards */
}

/* Ensure Instagram iframe spans fully without scrolling */
.lve-platform-instagram iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.lite-video-embed-container:hover {
	transform: scale(1.02);
	box-shadow: 0 30px 70px rgba(0,0,0,0.2);
}

.lite-video-embed-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Placeholder for Lazy Loading */
.lve-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: opacity 0.3s ease;
}

/* Branded Backgrounds for Facebook and Instagram */
.lite-video-embed-container[data-platform="facebook"] .lve-placeholder {
	background: linear-gradient(135deg, #1877f2 0%, #0c3d9a 100%);
}

.lite-video-embed-container[data-platform="instagram"] .lve-placeholder {
	background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.lve-placeholder::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	transition: background 0.3s ease;
}

.lite-video-embed-container:hover .lve-placeholder::after {
	background: rgba(0, 0, 0, 0.2);
}

/* Professional Play Button */
.lve-play-button {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	position: relative;
	z-index: 2;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.lve-play-button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 15px 0 15px 25px;
	border-color: transparent transparent transparent #fff;
	transition: all 0.3s ease;
}

.lite-video-embed-container:hover .lve-play-button {
	transform: scale(1.15);
	background: rgba(255, 255, 255, 0.4);
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Pulse animation */
@keyframes lve-pulse {
	0% { transform: scale(1); opacity: 0.8; }
	50% { transform: scale(1.1); opacity: 1; }
	100% { transform: scale(1); opacity: 0.8; }
}

.lite-video-embed-container:hover .lve-play-button {
	animation: lve-pulse 1.5s infinite ease-in-out;
}

/* Platform Icons within Placeholder */
.lve-platform-icon {
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	opacity: 0.8;
}

.lve-platform-icon .dashicons {
	font-size: 60px;
	width: 60px;
	height: 60px;
	color: #fff;
	text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.lve-platform-label {
	position: absolute;
	bottom: 30px; /* Slightly higher for balanced icons */
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	padding: 8px 20px;
	border-radius: 20px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	opacity: 0.8;
	transition: all 0.3s ease;
}

.lite-video-embed-container:hover .lve-platform-label {
	opacity: 1;
	background: rgba(0, 0, 0, 0.8);
	transform: translateX(-50%) scale(1.05);
}

/* Aspect ratio is handled via inline styles on the container */

/* Admin Placeholder */
.lite-video-placeholder {
	padding: 60px 40px;
	background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
	border-radius: 12px;
	text-align: center;
	color: #e2e8f0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.lite-video-placeholder::before {
	content: "\f223";
	font-family: dashicons;
	font-size: 50px;
	color: #63b3ed;
	opacity: 0.8;
}

.lite-video-placeholder span {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
	.lve-play-button {
		width: 60px;
		height: 60px;
	}
	.lve-play-button::before {
		border-width: 10px 0 10px 18px;
	}
}
