/* QSE — Social Embed */

.qse-embed {
	max-width: var(--qse-max, 600px);
	margin: 1.75em auto;
	padding: 0;
	clear: both;
}

.qse-embed.qse-align-left { margin-left: 0; margin-right: auto; }
.qse-embed.qse-align-right { margin-left: auto; margin-right: 0; }

.qse-embed.qse-vertical { max-width: 420px; }

@supports (width: min(100px, 100%)) {
	.qse-embed.qse-vertical { max-width: min(var(--qse-max, 600px), 420px); }
}

.qse-embed > blockquote,
.qse-embed .qse-fb-wrap,
.qse-embed .qse-tt-wrap {
	margin: 0 auto;
}

/* --- Арақатынас (YouTube) --- */
.qse-ratio {
	position: relative;
	width: 100%;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: var(--qse-ratio, 16 / 9);
}

@supports not (aspect-ratio: 16 / 9) {
	.qse-ratio { height: 0; padding-top: 56.25%; }
	.qse-embed.qse-vertical .qse-ratio { padding-top: 177.78%; }
}

.qse-ratio > iframe,
.qse-ratio > .qse-yt-facade {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- YouTube жеңіл режимі --- */
.qse-yt-facade {
	display: block;
	padding: 0;
	margin: 0;
	background: #000;
	border: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.qse-yt-facade img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .2s ease;
}

.qse-yt-facade:hover img,
.qse-yt-facade:focus-visible img { opacity: .82; }

.qse-yt-btn {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	border-radius: 12px;
	background: rgba(18, 18, 18, .72);
	transition: background .18s ease;
}

.qse-yt-btn::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-38%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}

.qse-yt-facade:hover .qse-yt-btn,
.qse-yt-facade:focus-visible .qse-yt-btn { background: #f00; }

/* --- Instagram --- */
.qse-instagram .instagram-media {
	margin: 0 auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	border-radius: 10px;
}

/* --- X (Twitter) --- */
.qse-x .twitter-tweet { margin: 0 auto !important; }
.qse-x iframe { max-width: 100% !important; }

/* --- Facebook --- */
.qse-fb-wrap { width: 100%; }
.qse-fb-wrap .fb-post,
.qse-fb-wrap .fb-video,
.qse-fb-wrap .fb-post > span,
.qse-fb-wrap .fb-video > span,
.qse-fb-wrap iframe {
	max-width: 100% !important;
	width: 100% !important;
}
.qse-fb-wrap blockquote { margin: 0; padding: 0; border: 0; }

/* --- Threads --- */
.qse-threads .text-post-media { margin: 0 auto !important; max-width: 100% !important; }
.qse-threads iframe { max-width: 100% !important; }

/* --- TikTok --- */
.qse-tiktok .tiktok-embed { margin: 0 auto !important; max-width: 100% !important; }
.qse-tiktok iframe { max-width: 100% !important; }

/* --- Telegram --- */
.qse-tg { width: 100%; min-height: 60px; }
.qse-telegram iframe {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 auto !important;
	border-radius: 10px;
}

/* --- Жазба / қосалқы --- */
.qse-caption {
	margin-top: .6em;
	font-size: .875em;
	line-height: 1.45;
	color: #6b6b6b;
	text-align: center;
}

.qse-fallback { margin: 1.25em 0; word-break: break-all; }

.qse-embed blockquote > a {
	display: inline-block;
	padding: 10px 0;
	font-size: .9375em;
}
