/**
 * YouTube Playlist Engine V2 Stylesheet
 *
 * Dedicated styling for the PageSpeed-optimized YouTube lazy player,
 * custom scrollbars, REST-loading spinner, and popup playlist modal.
 */

/* =======================================================================
   1. Base Player Components
   ======================================================================= */

.edu-yt-lazy-player {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--edu-radius, 8px);
}

.edu-yt-lazy-player__placeholder {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.edu-yt-lazy-player__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.edu-yt-lazy-player__placeholder:hover .edu-yt-lazy-player__thumb {
	transform: scale(1.02);
	filter: brightness(0.85);
}

/* Play Button */
.edu-yt-lazy-player__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	background-color: #ff0000;
	border: none !important;
	border-radius: 12% !important;
	color: #ffffff !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0;
	z-index: 2;
}

.edu-yt-lazy-player__placeholder:hover .edu-yt-lazy-player__play-btn {
	background-color: var(--edu-primary);
	transform: translate(-50%, -50%) scale(1.1);
}

.edu-yt-lazy-player__play-icon {
	width: 30px;
	height: 30px;
}

/* Video Iframe Container */
.edu-yt-lazy-player__video-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
}

.edu-yt-lazy-player__video-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Fallback Player Graphic */
.edu-yt-lazy-player__fallback-bg {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-primary-dark) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
}

.edu-yt-lazy-player__fallback-title {
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.4;
	opacity: 0.95;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}