/* Front-end Video Player & Container Block Styling */
.vls-player-container-block {
	max-width: 720px;
	margin: 30px auto;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	width: 100%;
}

/* Ad Placements: Centered for 250x300 / 300x250 or responsive Google Video/Display Ads */
.vls-ad-banner-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 18px 0;
	width: 100%;
	text-align: center;
}

.vls-top-ad {
	margin-bottom: 20px;
}

.vls-bottom-ad {
	margin-top: 22px;
}

.vls-ad-slot-box {
	display: inline-block;
	max-width: 100%;
	min-height: 50px;
	overflow: hidden;
}

/* External Video Title (Outside Frame) */
.vls-external-title-box {
	margin: 12px 0 14px 0;
}

.vls-main-video-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: #0f172a !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 10px;
}

.vls-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4f46e5;
	background: #eef2ff;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	flex-shrink: 0;
}

/* Video Player Dynamic Ratio Frame (Default: 4 : 2.9) */
.vls-player-card {
	width: 100%;
	background: #000000;
	border-radius: 14px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transition: transform 0.3s ease;
}

.vls-player-card:hover {
	transform: translateY(-2px);
}

.vls-aspect-4-3-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 2.9; /* Default 4:2.9 can be overridden dynamically by inline style */
	background: #000000;
	overflow: hidden;
}

.vls-aspect-4-3-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 4 / 2.9) {
	.vls-aspect-4-3-wrapper {
		padding-top: var(--vls-padding-top, 72.5%);
		height: 0;
	}
}

/* Compact Navigation Buttons: Previous Part & Next Part */
.vls-part-navigation-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	width: 100%;
	box-sizing: border-box;
}

.vls-nav-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px; /* Compact padding */
	font-size: 13px; /* Clean compact size */
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 8px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	white-space: nowrap !important; /* Forces text to stay in a single line */
	overflow: hidden;
}

.vls-btn-text {
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
}

.vls-btn-prev {
	background: #1e293b;
	color: #ffffff !important;
}

.vls-btn-prev:hover {
	background: #0f172a;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px -2px rgba(15, 23, 42, 0.25);
}

.vls-btn-next {
	background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
	color: #ffffff !important;
}

.vls-btn-next:hover {
	background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px -2px rgba(79, 70, 229, 0.35);
}

.vls-btn-arrow {
	font-size: 11px;
	flex-shrink: 0;
}

/* Mobile Screen Responsive Adaptations */
@media (max-width: 480px) {
	.vls-part-navigation-bar {
		gap: 8px;
		margin-top: 10px;
	}
	.vls-nav-btn {
		padding: 8px 10px;
		font-size: 12px;
		gap: 4px;
	}
	.vls-main-video-title {
		font-size: 16px !important;
	}
}

/* Interactive Modal / Toast for Fallback Messages */
.vls-toast-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.vls-toast-box {
	background: #ffffff;
	border-radius: 14px;
	padding: 24px 20px;
	max-width: 380px;
	width: 100%;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: vlsPopIn 0.25s ease-out;
}

@keyframes vlsPopIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.vls-toast-icon {
	color: #4f46e5;
	margin-bottom: 12px;
	display: inline-flex;
}

.vls-toast-message {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.5;
	margin-bottom: 20px;
}

.vls-toast-btn {
	background: #4f46e5;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 22px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.vls-toast-btn:hover {
	background: #4338ca;
}
