.fm-video {
	--fm-video-ratio: 16 / 9;
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #0b0f17;
	line-height: 0;
}

/* Yükseklik, videonun gerçek en/boy oranına göre JS ile ayarlanır. */
.fm-video__stage {
	position: relative;
	width: 100%;
	aspect-ratio: var(--fm-video-ratio, 16 / 9);
	max-height: 82vh;
	max-height: 82svh;
}

.fm-video__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease;
}

.fm-video__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.fm-video__el {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-video__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* Mobil: video indirilmez; kapak + oynat butonu gösterilir */
.fm-video__play {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: rgba(11, 15, 23, 0.32);
	color: #0b0f17;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.fm-video__play svg {
	width: 58px;
	height: 58px;
	padding: 15px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

.fm-video__play:hover svg {
	transform: scale(1.05);
}

@media (max-width: 767.98px) {
	.fm-video:not(.is-playing) .fm-video__play {
		display: flex;
	}
}

.fm-video__sound {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.6);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(3px);
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease;
}

.fm-video__sound:hover {
	background: rgba(15, 23, 42, 0.85);
}

.fm-video__sound .fm-video__sound-on {
	display: none;
}

.fm-video__sound.is-on .fm-video__sound-on {
	display: block;
}

.fm-video__sound.is-on .fm-video__sound-off {
	display: none;
}

.fm-video__dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 3;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.fm-video__dot {
	position: relative;
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, width 0.15s ease;
}

.fm-video__dot.is-active {
	width: 22px;
	background: #fff;
}

/* Tablet */
@media (max-width: 991.98px) {
	.fm-video {
		border-radius: 14px;
	}

	.fm-video__stage {
		max-height: 70svh;
	}
}

/* Telefon */
@media (max-width: 767.98px) {
	.fm-video {
		border-radius: 12px;
	}

	.fm-video__stage {
		max-height: 74svh;
	}

	/* Dokunma hedeflerini büyüt, kenarlara yaklaştır. */
	.fm-video__sound {
		width: 46px;
		height: 46px;
		right: 10px;
		bottom: 10px;
	}

	.fm-video__dots {
		bottom: 18px;
		gap: 10px;
	}

	.fm-video__dot {
		width: 8px;
		height: 8px;
	}

	.fm-video__dot.is-active {
		width: 20px;
	}
}

/* Yatay telefon: yükseklik fazla kalmasın. */
@media (max-width: 767.98px) and (orientation: landscape) {
	.fm-video__stage {
		max-height: 88svh;
	}
}

/* Hareket azaltma tercihi olan kullanıcılarda geçiş efekti yok. */
@media (prefers-reduced-motion: reduce) {
	.fm-video__slide,
	.fm-video__sound,
	.fm-video__dot {
		transition: none;
	}
}
