/* ---------------------------------------------------------------- слайд */

.woocommerce-product-gallery .wcpv-slide {
	position: relative;
	background: #000;
	line-height: 0;
}

.wcpv-slide .wcpv-video {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------- центральная кнопка play */

.wcpv-slide .wcpv-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: opacity .2s, transform .2s;
	z-index: 3;
}
.wcpv-slide .wcpv-play:hover { transform: scale(1.06); }
.wcpv-slide .wcpv-play svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.wcpv-slide .wcpv-play circle { fill: rgba( 0, 0, 0, .55 ); }
.wcpv-slide .wcpv-play path { fill: #fff; }
.wcpv-slide.wcpv-playing .wcpv-play { opacity: 0; pointer-events: none; }

/* --------------------------------------------------- нижняя панель плеера */

.wcpv-slide .wcpv-bar {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 4;
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 24px 14px 12px !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
	background: linear-gradient( to top, rgba( 0, 0, 0, .75 ) 0%, rgba( 0, 0, 0, .3 ) 60%, transparent 100% );
	opacity: 0;
	transition: opacity .25s ease;
}
.wcpv-slide:hover .wcpv-bar,
.wcpv-slide:focus-within .wcpv-bar,
.wcpv-slide.wcpv-playing .wcpv-bar { opacity: 1; }

@media ( hover: none ) {
	.wcpv-slide .wcpv-bar { opacity: 1; }
}

/* Кнопка Play / Pause слева в баре */
.wcpv-slide .wcpv-toggle {
	flex: 0 0 24px !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	max-width: 24px !important;
	margin: 0 4px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	outline: none;
}

/* Иконка ПАУЗА (две ровные вертикальные полоски) */
.wcpv-slide .wcpv-toggle::before {
	content: "";
	display: block;
	box-sizing: border-box;
	width: 12px;
	height: 14px;
	border-left: 4px solid #fff;
	border-right: 4px solid #fff;
	background: transparent;
	clip-path: none;
	transition: transform .1s ease;
}

/* Иконка PLAY (аккуратный треугольник) */
.wcpv-slide .wcpv-toggle.is-paused::before {
	box-sizing: border-box;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 13px;
	border-color: transparent transparent transparent #fff;
	background: transparent;
	margin-left: 2px;
	clip-path: none;
}

/* Индикатор прогресса (таймлайн) - высота 30px для удобного нажатия пальцем */
.wcpv-slide .wcpv-track {
	flex: 1 1 auto !important;
	height: 30px !important;
	display: flex !important;
	align-items: center !important;
	position: relative !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	touch-action: none !important;
	-webkit-tap-highlight-color: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Серая фоновая полоска подложки */
.wcpv-slide .wcpv-track::before {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	height: 4px !important;
	border-radius: 2px !important;
	background: rgba( 255, 255, 255, .35 ) !important;
	pointer-events: none !important;
}

/* Белая заполняющая полоска */
.wcpv-slide .wcpv-fill {
	position: absolute !important;
	left: 0 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	height: 4px !important;
	width: 0;
	background: #fff !important;
	border-radius: 2px !important;
	pointer-events: none !important;
	transition: width .1s linear;
}

/* Таймер */
.wcpv-slide .wcpv-time {
	flex: 0 0 auto !important;
	color: #fff !important;
	font-size: 12px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-variant-numeric: tabular-nums !important;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, .8 ) !important;
	white-space: nowrap !important;
	margin: 0 !important;
}

/* Кнопка звука прямо в панели управления */
.wcpv-slide .wcpv-sound {
	flex: 0 0 28px !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	margin: 0 0 0 2px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba( 255, 255, 255, .15 ) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 14px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease;
}
.wcpv-slide .wcpv-sound:hover {
	background: rgba( 255, 255, 255, .3 ) !important;
	transform: scale(1.08);
}
.wcpv-slide .wcpv-sound span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wcpv-slide .wcpv-play:focus-visible,
.wcpv-slide .wcpv-sound:focus-visible,
.wcpv-slide .wcpv-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------ значок play на превьюшке */

.flex-control-thumbs li.wcpv-thumb-video,
.woocommerce-product-gallery .flex-control-thumbs li.wcpv-thumb-video,
ol.flex-control-thumbs li.wcpv-thumb-video {
	position: relative !important;
}

.flex-control-thumbs li.wcpv-thumb-video::after,
.woocommerce-product-gallery .flex-control-thumbs li.wcpv-thumb-video::after,
ol.flex-control-thumbs li.wcpv-thumb-video::after {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	background: rgba( 0, 0, 0, .65 ) url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>' ) no-repeat 56% 50% !important;
	background-size: 13px !important;
	box-shadow: 0 2px 6px rgba(0,0,0,.45) !important;
	pointer-events: none !important;
	z-index: 9 !important;
	opacity: 1 !important;
	display: block !important;
}