.sophiakcruz-featured-video {
	width: 100%;
	margin: 0 0 1.618em;
}

/* Inside WooCommerce gallery: no extra gap; flexslider owns layout. */
.woocommerce-product-gallery__image.sophiakcruz-product-gallery__video .sophiakcruz-featured-video {
	margin: 0;
}

.woocommerce-product-gallery__image.sophiakcruz-product-gallery__video .sophiakcruz-featured-video--processing,
.woocommerce-product-gallery__image.sophiakcruz-product-gallery__video .sophiakcruz-featured-video--failed {
	margin: 0;
}

.flex-control-thumbs li.sophiakcruz-gallery-video-thumb {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	position: relative;
}

.flex-control-thumbs li.sophiakcruz-gallery-video-thumb::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 2rem;
	height: 2rem;
	margin-left: -1rem;
	margin-top: -1rem;
	border-radius: 50%;
	background: rgba(34, 4, 64, 0.82);
	pointer-events: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.flex-control-thumbs li.sophiakcruz-gallery-video-thumb::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 3;
	width: 0;
	height: 0;
	margin-left: -0.18rem;
	margin-top: -0.45rem;
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.75rem;
	border-color: transparent transparent transparent #fff;
	pointer-events: none;
}

.flex-control-thumbs li img.sophiakcruz-gallery-video-thumb-icon {
	object-fit: cover;
	background: #f3f0f7;
}

.sophiakcruz-featured-video__player {
	display: block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Portrait: full column width, natural height (no side letterboxing). */
.sophiakcruz-featured-video--portrait .sophiakcruz-featured-video__player {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.sophiakcruz-featured-video--landscape .sophiakcruz-featured-video__player,
.sophiakcruz-featured-video:not(.sophiakcruz-featured-video--portrait):not(.sophiakcruz-featured-video--landscape)
	.sophiakcruz-featured-video__player {
	width: 100%;
}

.sophiakcruz-featured-video--admin.sophiakcruz-featured-video--landscape .sophiakcruz-featured-video__player,
.sophiakcruz-featured-video--admin:not(.sophiakcruz-featured-video--portrait):not(.sophiakcruz-featured-video--landscape)
	.sophiakcruz-featured-video__player {
	max-height: 240px;
	width: 100%;
}

.sophiakcruz-featured-video__url {
	display: block;
	margin-top: 6px;
	word-break: break-all;
	font-size: 11px;
	width: 100%;
}

.sophiakcruz-featured-video--processing {
	margin: 0 0 8px;
}

.sophiakcruz-featured-video__processing {
	display: block;
	min-height: 120px;
	padding: 16px;
	border: 1px solid #c3c4c7;
	border-radius: 5px;
	background: #f6f7f7;
}

.sophiakcruz-featured-video__pipeline {
	width: 100%;
}

.sophiakcruz-featured-video__pipeline-track {
	height: 8px;
	border-radius: 4px;
	background: #dcdcde;
	overflow: hidden;
}

.sophiakcruz-featured-video__pipeline-bar {
	height: 100%;
	width: 0;
	border-radius: 4px;
	background: #2271b1;
	transition: width 0.35s ease;
}

.sophiakcruz-featured-video__pipeline-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #1d2327;
}

.sophiakcruz-featured-video__pipeline-percent {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	flex-shrink: 0;
}

.sophiakcruz-featured-video__pipeline-label {
	margin: 0;
	text-align: right;
}

.sophiakcruz-featured-video--admin .sophiakcruz-featured-video__processing {
	min-height: 100px;
}

.sophiakcruz-featured-video__processing-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #1d2327;
}

.sophiakcruz-featured-video__spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #c3c4c7;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: sophiakcruz-featured-video-spin 0.8s linear infinite;
	flex-shrink: 0;
}

@keyframes sophiakcruz-featured-video-spin {
	to {
		transform: rotate(360deg);
	}
}

.sophiakcruz-featured-video--failed {
	margin: 0 0 8px;
}

.sophiakcruz-featured-video__failed {
	min-height: 120px;
	padding: 16px;
	border: 1px solid #d63638;
	border-radius: 5px;
	background: #fcf0f1;
}

.sophiakcruz-featured-video__failed-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #8a2424;
}

/* Catalog loop video previews (SKC-38) — shop/category cards only */
.sophiakcruz-catalog-video-preview--has-video {
	position: relative;
	display: block;
	line-height: 0;
}

.sophiakcruz-catalog-video-preview__player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center center;
	border-radius: 5px;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.2s ease;
}

.sophiakcruz-catalog-video-preview.is-playing .sophiakcruz-catalog-video-preview__player {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.sophiakcruz-catalog-video-preview__player {
		display: none !important;
	}
}
