/**
 * Ford Video Popup Widget Styles
 *
 * Container width strictly matches explore vehicle and spec widgets (1480px).
 * Pure thumbnail view with centered play button.
 */

.ford-video-popup-section {
	position: relative;
	width: 100%;
	padding: 24px 0 40px 0;
	background-color: #ffffff;
	box-sizing: border-box;
}

.ford-video-popup-section *,
.ford-video-popup-section *::before,
.ford-video-popup-section *::after {
	box-sizing: border-box;
	font-family: 'FordF1TC', sans-serif !important;
}

/* Inner Container strictly 1480px */
.fvp-inner-container,
.ford-video-popup-section .fvp-inner-container {
	width: 100% !important;
	max-width: 1480px !important;
	margin: 0 auto !important;
	padding: 0 40px !important;
	box-sizing: border-box !important;
}

@media (max-width: 991px) and (min-width: 769px) {
	.fvp-inner-container,
	.ford-video-popup-section .fvp-inner-container {
		padding: 0 16px !important;
	}
	.fvp-main-title {
		font-size: 2rem !important;
	}
}

/* Main Title matching .fme-model-name (Ranger Raptor 3.0L V6) */
.fvp-main-title {
	color: #00095b !important;
	font-family: 'FordF1TC', sans-serif !important;
	font-size: 2.8rem !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.5px !important;
	margin: 0 0 1.65rem 0 !important;
	text-align: left !important;
}

/* Mobile View (<= 768px): Full Width Edge-to-Edge Thumbnail */
@media (max-width: 768px) {
	.ford-video-popup-section {
		padding: 24px 0 32px 0 !important;
	}

	.fvp-inner-container,
	.ford-video-popup-section .fvp-inner-container {
		max-width: 100% !important;
		padding: 0 !important;
		width: 100% !important;
	}

	.fvp-main-title {
		font-size: 1.45rem !important;
		margin: 0 0 1rem 0 !important;
		padding: 0 1rem !important;
	}

	.fvp-thumbnail-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		margin: 0 !important;
	}

	.fvp-image-holder,
	.fvp-image-holder img {
		border-radius: 0 !important;
	}
}

/* Thumbnail Holder (16:9 Aspect Ratio) */
.fvp-thumbnail-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background-color: #0b1a30;
	box-shadow: 0 6px 24px rgba(11, 26, 48, 0.08);
	transition: box-shadow 0.25s ease;
}

.fvp-thumbnail-wrapper:hover {
	box-shadow: 0 12px 36px rgba(11, 26, 48, 0.16);
}

.fvp-image-holder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.fvp-image-holder img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.fvp-thumbnail-wrapper:hover .fvp-image-holder img {
	transform: scale(1.02);
}

/* Play Button Overlay (Centered) */
.fvp-play-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.12);
	transition: background 0.25s ease;
}

.fvp-thumbnail-wrapper:hover .fvp-play-overlay {
	background: rgba(0, 0, 0, 0.22);
}

.fvp-play-btn-circle {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	border: 3px solid #ffffff;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	cursor: pointer;
	outline: none;
	padding: 0;
	transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fvp-play-btn-circle svg {
	margin-left: 4px; /* Optical center alignment for play triangle */
	width: 28px;
	height: 28px;
	fill: #ffffff;
}

.fvp-thumbnail-wrapper:hover .fvp-play-btn-circle {
	transform: scale(1.1);
	background-color: #006bf5;
	border-color: #006bf5;
	box-shadow: 0 8px 25px rgba(0, 107, 245, 0.5);
}

/* Lightbox Modal */
.fvp-lightbox-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.fvp-lightbox-modal.is-active {
	display: flex;
	opacity: 1;
}

.fvp-lightbox-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(11, 26, 48, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.fvp-lightbox-container {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 1100px;
}

.fvp-lightbox-close {
	position: absolute;
	top: -46px;
	right: 0;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #ffffff;
	font-size: 2rem;
	line-height: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	padding: 0;
}

.fvp-lightbox-close:hover {
	background: #ffffff;
	color: #0b1a30;
	transform: rotate(90deg);
}

.fvp-lightbox-player-box {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.fvp-video-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.fvp-video-wrapper iframe,
.fvp-video-wrapper video {
	width: 100%;
	height: 100%;
	border: none;
}

@media (max-width: 767px) {
	.fvp-play-btn-circle {
		width: 52px;
		height: 52px;
		border-width: 2px;
	}
	.fvp-play-btn-circle svg {
		width: 22px;
		height: 22px;
		margin-left: 3px;
	}
	.fvp-lightbox-close {
		top: -40px;
		width: 34px;
		height: 34px;
		font-size: 1.5rem;
	}
}
