/* AM Video Player */
.am-vp-outer {
	width: 100%;
}

.am-vp-wrap {
	position: relative;
	width: 100%;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	/* aspect-ratio é injetado inline via PHP */
}

/* Poster / thumbnail */
.am-vp-poster {
	position: absolute;
	inset: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

.am-vp-poster img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.am-vp-poster::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.3s;
}

.am-vp-poster:hover::after {
	background: rgba(0, 0, 0, 0.1);
}

/* Botão play */
.am-vp-play-btn {
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, 0.55);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform 0.2s ease, background 0.2s ease;
	backdrop-filter: blur(4px);
}

.am-vp-play-btn svg {
	width: 45%;
	height: 45%;
	margin-left: 6%;
}

.am-vp-play-btn:hover {
	transform: scale(1.1);
	background: rgba(0, 0, 0, 0.75);
}

/* Estilos do botão */
.am-vp-style-circle  { border-radius: 50%; }
.am-vp-style-rounded { border-radius: 16px; }
.am-vp-style-square  { border-radius: 4px; }

/* Área do player activo */
.am-vp-player {
	position: absolute;
	inset: 0;
}

.am-vp-player iframe,
.am-vp-player video {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Cor dos controlos do player HTML5 */
.am-vp-player video {
	accent-color: var(--am-ctrl-color, #3b82f6);
}

/* Fade out poster ao reproduzir */
.am-vp-wrap.is-playing .am-vp-poster {
	opacity: 0;
	pointer-events: none;
}
