/* ---------- Video player (djangocms-video, "Startica" template) ---------- */

.video-ph {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 16/9;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	margin: var(--s4) 0 0;
}

.video-ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(.72);
	transition: filter .25s ease;
}

.video-ph:hover img {
	filter: brightness(.6);
}

.video-ph .play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: var(--orange);
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-lg);
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.video-ph .play svg {
	margin-left: 4px;
	/* optical centering of the triangle */
}

.video-ph:hover .play {
	transform: scale(1.12);
}

/* video / iframe fill the placeholder once playing */
.video-ph video,
.video-ph iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
	border: 0;
	background: #000;
}

.video-ph.playing {
	cursor: default;
}

.video-ph.playing img,
.video-ph.playing .play {
	display: none;
}

.video-ph.playing video,
.video-ph.playing iframe {
	display: block;
}

/* plain fallback (no poster set) */
.video-frame {
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 16/9;
	box-shadow: var(--shadow-sm);
	margin: var(--s4) 0 0;
	background: #000;
}

.video-frame video,
.video-frame iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

/* caption under the player (plugin "label" field) */
.video-caption {
	font-size: .85rem !important;
	color: var(--color-text-muted) !important;
	margin: 10px 0 0 !important;
	text-align: center;
}
