.eyp-player-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	line-height: 0;
}

.eyp-ratio-16-9 { aspect-ratio: 16 / 9; }
.eyp-ratio-4-3  { aspect-ratio: 4 / 3; }
.eyp-ratio-1-1  { aspect-ratio: 1 / 1; }
.eyp-ratio-9-16 { aspect-ratio: 9 / 16; }

.eyp-yt-target,
.eyp-yt-target iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	/* Oversize slightly and center-crop so YouTube's own UI chrome
	   (which can peek in at edges on some states) stays out of view. */
	transform: translate(-50%, -50%) scale(1.02);
	pointer-events: none; /* block direct interaction with the YouTube iframe */
}

/* Invisible click-catcher over the whole video for play/pause tap-to-toggle */
.eyp-player-wrapper::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.eyp-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	pointer-events: auto;
	transition: opacity 0.25s ease;
}

/* Hover-to-reveal mode (default) */
.eyp-player-wrapper[data-bar-mode="hover"] .eyp-controls {
	opacity: 0;
}
.eyp-player-wrapper[data-bar-mode="hover"]:hover .eyp-controls,
.eyp-player-wrapper[data-bar-mode="hover"].eyp-bar-active .eyp-controls {
	opacity: 1;
}

/* Always-visible mode */
.eyp-player-wrapper[data-bar-mode="always"] .eyp-controls {
	opacity: 1;
}

.eyp-btn {
	background: transparent;
	border: none;
	padding: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.eyp-btn svg {
	fill: currentColor;
}

.eyp-progress {
	position: relative;
	flex: 1 1 auto;
	height: 5px;
	border-radius: 3px;
	background-color: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	overflow: hidden;
}

.eyp-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background-color: #ff0000;
	border-radius: 3px;
	pointer-events: none;
}

.eyp-volume {
	width: 70px;
	accent-color: currentColor;
	cursor: pointer;
	flex-shrink: 0;
}

.eyp-editor-notice {
	padding: 40px 20px;
	text-align: center;
	background: #f4f4f4;
	color: #555;
	border: 1px dashed #ccc;
	font-size: 14px;
}

@media (max-width: 480px) {
	.eyp-volume {
		width: 40px;
	}
	.eyp-controls {
		gap: 6px;
		padding: 6px 8px;
	}
}
