/* SmartBee AI səsləndirmə — pleyer və siyahı ikonu (bizim.media, 2026-10-29) */

/* ---------- Səsli xəbər ikonu (başlığın əvvəlində kiçik qulaqlıq) ---------- */
.has-voice::before {
	content: "";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-right: 0.3em;
	vertical-align: -0.08em;
	flex: 0 0 auto;
	background-color: #e44332;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h2a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H5v-1a7 7 0 0 1 14 0v1h-3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a3 3 0 0 0 3-3v-6a9 9 0 0 0-9-9z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h2a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H5v-1a7 7 0 0 1 14 0v1h-3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a3 3 0 0 0 3-3v-6a9 9 0 0 0-9-9z'/></svg>") center / contain no-repeat;
}
/* şəkil üstündəki ağ başlıqlar: ikon mətn rəngində */
.main-post-info .has-voice::before,
.main-slider-info .has-voice::before,
.top-news-title.has-voice::before,
.main-post-title.has-voice::before,
.main-slider-title.has-voice::before,
.thumb-text-a.has-voice::before {
	background-color: currentColor;
}

/* ---------- Pleyer ---------- */
.bm-voice {
	--bmv-bg: #e44332;
	--bmv-fg: #fff;
	--bmv-track: rgba(255, 255, 255, 0.35);
	--bmv-fill: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 8px 0 4px;
	margin: 12px 0 18px;
	border-radius: 22px;
	background: var(--bmv-bg);
	color: var(--bmv-fg);
	font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
	max-width: 100%;
	user-select: none;
	-webkit-user-select: none;
}
.bm-voice audio { display: none; }
.bm-voice button {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	line-height: 1;
}
.bm-voice button:focus { outline: none; }
.bm-voice button:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.bmv-play {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.18) !important;
}
.bmv-play svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.bmv-play .bmv-ico-pause { display: none; }
.bm-voice.is-playing .bmv-play .bmv-ico-play { display: none; }
.bm-voice.is-playing .bmv-play .bmv-ico-pause { display: block; }
.bm-voice.is-loading .bmv-play { opacity: 0.6; }

.bmv-time {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	letter-spacing: 0.2px;
	min-width: 76px;
	text-align: center;
}

.bmv-seek { flex: 1 1 auto; min-width: 60px; display: flex; align-items: center; height: 44px; }
.bm-voice input[type="range"] {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 4px;
	margin: 0;
	border-radius: 2px;
	background: linear-gradient(to right, var(--bmv-fill) 0 var(--bmv-p, 0%), var(--bmv-track) var(--bmv-p, 0%) 100%);
	cursor: pointer;
	outline: none;
}
.bm-voice input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; border-radius: 2px; }
.bm-voice input[type="range"]::-moz-range-track { height: 4px; background: transparent; border-radius: 2px; }
.bm-voice input[type="range"]::-moz-range-progress { height: 4px; background: var(--bmv-fill); border-radius: 2px; }
.bm-voice input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border-radius: 50%;
	background: var(--bmv-fill);
	border: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.bm-voice input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bmv-fill);
	border: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.bm-voice input[type="range"]:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }

/* səs */
.bmv-vol { position: relative; flex: 0 0 32px; width: 32px; height: 44px; display: flex; align-items: center; justify-content: center; }
.bmv-mute { width: 32px; height: 32px; }
.bmv-mute svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.bmv-mute .bmv-ico-muted { display: none; }
.bm-voice.is-muted .bmv-mute .bmv-ico-vol { display: none; }
.bm-voice.is-muted .bmv-mute .bmv-ico-muted { display: block; }
.bmv-vol-pop {
	position: absolute;
	left: 50%;
	bottom: 40px;
	transform: translateX(-50%);
	width: 32px;
	height: 110px;
	padding: 10px 0;
	border-radius: 16px;
	background: var(--bmv-bg);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 20;
}
.bmv-vol-pop::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; }
.bmv-vol:hover .bmv-vol-pop,
.bmv-vol:focus-within .bmv-vol-pop,
.bmv-vol.is-open .bmv-vol-pop { display: flex; }
.bmv-vol-pop input[type="range"] {
	width: 90px;
	transform: rotate(-90deg);
	flex: 0 0 auto;
}

/* sürət */
.bmv-rate {
	flex: 0 0 auto;
	min-width: 44px;
	height: 28px;
	padding: 0 10px !important;
	border-radius: 14px !important;
	background: rgba(255, 255, 255, 0.18) !important;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.bmv-rate:hover, .bmv-play:hover, .bmv-mute:hover { background: rgba(255, 255, 255, 0.28) !important; }

/* mobil (≤ 390px): vaxt qısa, boşluqlar sıx */
@media (max-width: 480px) {
	.bm-voice { gap: 6px; padding: 0 6px 0 4px; margin: 10px 0 14px; }
	.bmv-time { min-width: 68px; font-size: 12px; }
	.bmv-vol { flex-basis: 28px; width: 28px; }
	.bmv-rate { min-width: 40px; padding: 0 8px !important; }
}
@media (max-width: 360px) {
	.bmv-vol { display: none; }
}

/* tünd rejim: fon brend rəngində qalır, kənar kölgə yumşaldılır */
@media (prefers-color-scheme: dark) {
	.bm-voice { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
	.bmv-vol-pop { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6); }
}
@media (prefers-reduced-motion: no-preference) {
	.bm-voice.is-playing .bmv-play { transition: background 0.15s; }
}

/* ---------- Yüklə düyməsi ---------- */
.bmv-dl { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: inherit; text-decoration: none !important; background: rgba(255, 255, 255, 0.18); }
.bmv-dl:hover { background: rgba(255, 255, 255, 0.28); color: inherit; }
.bmv-dl:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.bmv-dl svg { width: 18px; height: 18px; fill: currentColor; display: block; }
@media (max-width: 480px) { .bmv-dl { flex-basis: 28px; width: 28px; } }
