/**
 * Default player skin — intentionally minimal. Customers override freely;
 * everything here is low-specificity and uses Media Chrome CSS variables.
 */

.acf-video {
	display: block;
	width: 100%;
	max-width: 100%;
}

.acf-video__controller {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

/* Title sits first in the control bar. */
.acf-video__title {
	display: inline-flex;
	align-items: center;
	padding: 0 0.75em;
	color: #fff;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 40%;
}

.acf-video__title:empty {
	display: none;
}

/* Theater preset hides the title entirely. */
.acf-video--theater .acf-video__title {
	display: none;
}

/* Bundled default control icons slotted into Media Chrome buttons. */
.acf-video__prev svg,
.acf-video__next svg,
.acf-video__fullpage svg {
	width: 1.25em;
	height: 1.25em;
	fill: currentColor;
	vertical-align: middle;
}

/* Full-page button swaps fit-page ↔ close-fit-page on toggle. */
.acf-video__fullpage svg:nth-of-type(2) {
	display: none;
}

.acf-video__fullpage.is-fullpage svg:nth-of-type(1) {
	display: none;
}

.acf-video__fullpage.is-fullpage svg:nth-of-type(2) {
	display: inline-block;
}

/* Custom buttons (prev/next, full-page) styled to sit with Media Chrome. */
.acf-video__prev,
.acf-video__next,
.acf-video__fullpage {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5em;
	padding: 0 0.5em;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
}

.acf-video__prev:hover,
.acf-video__next:hover,
.acf-video__fullpage:hover {
	background: rgba( 255, 255, 255, 0.1 );
}

/* Control bar clusters related controls into content-named groups. */
.acf-video__group {
	display: inline-flex;
	align-items: center;
}

/* Engagement overlay layer injected into the time range (stage 4). */
.acf-video__engagement {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

