.ytv-yfs {
	--ytv-center-width: 50%;
	--ytv-gap: 22px;
	--ytv-side-scale: 62;
	--ytv-side-opacity: 55;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.ytv-yfs-stage {
	position: relative;
	height: 635px;
	overflow: hidden;
	touch-action: pan-y;
}

.ytv-yfs-slide {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--ytv-center-width);
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(.45);
	transition: transform .65s cubic-bezier(.22, .61, .36, 1), opacity .5s ease;
	will-change: transform, opacity;
	z-index: 0;
}

.ytv-yfs-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
	z-index: 3;
}

.ytv-yfs-slide.is-prev,
.ytv-yfs-slide.is-next {
	opacity: calc(var(--ytv-side-opacity) / 100);
	pointer-events: auto;
	z-index: 2;
	cursor: pointer;
}

.ytv-yfs-slide.is-prev {
	transform: translate(calc(-150% - var(--ytv-gap)), -50%) scale(calc(var(--ytv-side-scale) / 100));
}

.ytv-yfs-slide.is-next {
	transform: translate(calc(50% + var(--ytv-gap)), -50%) scale(calc(var(--ytv-side-scale) / 100));
}

.ytv-yfs-slide.is-far-prev {
	transform: translate(calc(-245% - var(--ytv-gap)), -50%) scale(.4);
}

.ytv-yfs-slide.is-far-next {
	transform: translate(calc(145% + var(--ytv-gap)), -50%) scale(.4);
}

.ytv-yfs-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	border-radius: 12px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.ytv-yfs-media img,
.ytv-yfs-media iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.ytv-yfs-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #ff0033;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.ytv-yfs-play:hover,
.ytv-yfs-play:focus-visible {
	background: #e6002e;
	transform: translate(-50%, -50%) scale(1.08);
}

.ytv-yfs-play span {
	display: block;
	width: 0;
	height: 0;
	margin: auto;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 17px solid #fff;
	transform: translateX(2px);
}

.ytv-yfs-title {
	margin: 14px 0 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.ytv-yfs-slide:not(.is-active) .ytv-yfs-title,
.ytv-yfs-slide:not(.is-active) .ytv-yfs-play {
	display: none;
}

.ytv-yfs-arrow {
	position: absolute;
	top: 50%;
	z-index: 8;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
	transform: translateY(-50%);
	cursor: pointer;
}

.ytv-yfs-prev { left: 24px; }
.ytv-yfs-next { right: 24px; }

.ytv-yfs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	min-height: 24px;
	margin-top: 12px;
}

.ytv-yfs-dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d2d2d2;
	cursor: pointer;
	transition: width .2s ease, height .2s ease, background-color .2s ease;
}

.ytv-yfs-dot.is-active {
	width: 10px;
	height: 10px;
	background: #000;
}

.ytv-yfs-empty {
	padding: 24px;
	border: 1px dashed #c9c9c9;
	text-align: center;
}

@media (max-width: 767px) {
	.ytv-yfs { --ytv-center-width: 86%; }
	.ytv-yfs-stage { height: 300px; }
	.ytv-yfs-slide.is-prev { transform: translate(calc(-145% - var(--ytv-gap)), -50%) scale(.54); }
	.ytv-yfs-slide.is-next { transform: translate(calc(45% + var(--ytv-gap)), -50%) scale(.54); }
	.ytv-yfs-play { width: 58px; height: 42px; border-radius: 11px; }
	.ytv-yfs-play span { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 14px; }
	.ytv-yfs-arrow { width: 38px; height: 38px; }
	.ytv-yfs-prev { left: 8px; }
	.ytv-yfs-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.ytv-yfs-slide,
	.ytv-yfs-play,
	.ytv-yfs-dot { transition: none; }
}

