/* KhabarTez24 Audio News — frontend styles.
   Palette follows the site theme: navy #002866 / #001538, red #d71920, white. */

/* ---------- Global listen bar (below header, above breaking ticker) ---------- */
.kt-audio-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 12px;
	background: linear-gradient(180deg, #001538, #002866);
}
.kt-audio-bar-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 0;
	cursor: pointer;
	color: #fff;
	font: inherit;
	text-align: left;
	padding: 9px 18px 9px 14px;
	border-radius: 999px;
	background: linear-gradient(180deg, #f2262e, #d71920 55%, #b30f16);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 6px 22px rgba(215, 25, 32, .55);
	transition: transform .15s ease, box-shadow .15s ease;
	max-width: 560px;
}
.kt-audio-bar-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px #fff, 0 10px 28px rgba(215, 25, 32, .7); }
.kt-audio-bar-ico { font-size: 26px; line-height: 1; }
.kt-audio-bar-text { display: flex; flex-direction: column; line-height: 1.2; }
.kt-audio-bar-text strong { font-size: 17px; font-weight: 800; letter-spacing: .2px; }
.kt-audio-bar-text small { font-size: 11.5px; opacity: .92; }
.kt-audio-bar-play {
	flex: 0 0 auto;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: #fff;
	color: #d71920;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px;
	box-shadow: inset 0 0 0 2px rgba(215, 25, 32, .25);
}
.kt-audio-bar-close {
	border: 0; background: transparent; color: #fff;
	font-size: 15px; cursor: pointer; opacity: .8; padding: 6px;
}
.kt-audio-bar-close:hover { opacity: 1; }
.kt-audio-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.kt-audio-wave i {
	display: block; width: 4px; border-radius: 2px;
	background: #4da3ff; height: 8px;
}
.kt-audio-bar-playing .kt-audio-wave i { animation: kt-audio-eq 0.9s ease-in-out infinite; }
.kt-audio-wave i:nth-child(2) { height: 14px; animation-delay: .12s; }
.kt-audio-wave i:nth-child(3) { height: 20px; animation-delay: .24s; }
.kt-audio-wave i:nth-child(4) { height: 13px; animation-delay: .36s; }
.kt-audio-wave i:nth-child(5) { height: 9px; animation-delay: .48s; }
@keyframes kt-audio-eq {
	0%, 100% { transform: scaleY(0.5); }
	50% { transform: scaleY(1.25); }
}
@media (max-width: 560px) {
	.kt-audio-bar-text strong { font-size: 15px; }
	.kt-audio-wave { display: none; }
	.kt-audio-wave:first-child { display: flex; }
}

/* ---------- Per-article player ---------- */
.kt-audio-player {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	background: linear-gradient(180deg, #f4f8ff, #e8f1ff);
	border: 1px solid #c9dcff;
	border-radius: 16px;
	padding: 12px 14px;
	margin: 14px 0 18px;
	box-shadow: 0 4px 16px rgba(0, 40, 102, .10);
}
.kt-audio-play {
	flex: 0 0 auto;
	width: 58px; height: 58px;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: linear-gradient(180deg, #2f7bff, #0b5ce6);
	color: #fff;
	font-size: 22px;
	box-shadow: 0 6px 16px rgba(11, 92, 230, .45);
}
.kt-audio-play:hover { filter: brightness(1.08); }
.kt-audio-main { flex: 1 1 220px; min-width: 200px; }
.kt-audio-title { font-weight: 800; color: #001538; font-size: 16px; margin-bottom: 6px; }
.kt-audio-sub { font-weight: 600; color: #33507e; font-size: 12.5px; }
.kt-audio-progress-wrap { display: flex; align-items: center; gap: 10px; }
.kt-audio-seek { flex: 1; accent-color: #0b5ce6; height: 4px; }
.kt-audio-times { font-size: 12px; color: #33507e; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kt-audio-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kt-audio-btn {
	border: 1px solid #c9dcff;
	background: #fff;
	color: #002866;
	border-radius: 9px;
	padding: 6px 9px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
}
.kt-audio-btn:hover { background: #eef4ff; }
.kt-audio-vol-wrap { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.kt-audio-vol { width: 64px; accent-color: #0b5ce6; }
.kt-audio-speed {
	border: 1px solid #c9dcff; border-radius: 9px; background: #fff;
	color: #002866; padding: 5px 6px; font-size: 13px;
}

/* Paragraph currently being spoken */
.kt-content p.kt-audio-active-para {
	background: rgba(215, 25, 32, .07);
	border-left: 4px solid #d71920;
	padding-left: 10px;
	border-radius: 0 8px 8px 0;
	transition: background .3s ease;
}

/* ---------- Playlist panel ---------- */
.kt-audio-panel {
	position: fixed;
	top: 0; right: 0;
	width: min(430px, 100vw);
	height: 100dvh;
	background: #fff;
	z-index: 99998;
	box-shadow: -12px 0 40px rgba(0, 21, 56, .35);
	display: flex;
	flex-direction: column;
}
.kt-audio-panel[hidden] { display: none; }
.kt-audio-panel-head {
	display: flex; align-items: center; gap: 10px;
	background: linear-gradient(180deg, #002866, #001538);
	color: #fff; padding: 13px 14px;
}
.kt-audio-panel-head strong { font-size: 15.5px; }
.kt-audio-panel-pos { margin-left: auto; font-size: 12.5px; opacity: .9; }
.kt-audio-panel-tools {
	display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
	padding: 10px 12px; border-bottom: 1px solid #e4eaf4; background: #f6f9ff;
}
.kt-audio-chipbtn {
	border: 0; cursor: pointer; border-radius: 999px;
	background: #d71920; color: #fff; font-weight: 700;
	padding: 7px 13px; font-size: 13px;
}
.kt-audio-chipbtn:hover { filter: brightness(1.08); }
.kt-audio-set { font-size: 12.5px; color: #33507e; display: inline-flex; align-items: center; gap: 5px; }
.kt-audio-set select { border: 1px solid #c9dcff; border-radius: 7px; padding: 3px 5px; background: #fff; }
.kt-audio-now {
	display: flex; gap: 10px; align-items: center;
	padding: 10px 12px; background: #fff5f5; border-bottom: 1px solid #f3d7d8;
}
.kt-audio-now[hidden] { display: none; }
.kt-audio-now-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; }
.kt-audio-now-title { font-weight: 700; color: #001538; font-size: 14px; line-height: 1.35; }
.kt-audio-list {
	list-style: none; margin: 0; padding: 6px;
	overflow-y: auto; flex: 1;
}
.kt-audio-list-item {
	display: flex; align-items: center; gap: 10px;
	padding: 8px; border-radius: 11px; cursor: pointer;
}
.kt-audio-list-item:hover { background: #f0f5ff; }
.kt-audio-list-item.active { background: #ffe9ea; outline: 1px solid #f3b7ba; }
.kt-audio-list-item img, .kt-audio-list-noimg {
	width: 52px; height: 40px; object-fit: cover; border-radius: 7px; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center; background: #e8f1ff;
}
.kt-audio-list-title { flex: 1; font-size: 13.5px; font-weight: 600; color: #12294d; line-height: 1.35; }
.kt-audio-list-dur { font-size: 11.5px; color: #68809f; font-variant-numeric: tabular-nums; }

/* ---------- Floating mini player ---------- */
.kt-audio-mini {
	position: fixed;
	right: 16px; bottom: 16px;
	width: min(430px, calc(100vw - 24px));
	z-index: 99997;
	display: flex; align-items: center; gap: 9px;
	background: linear-gradient(180deg, #002866, #001538);
	color: #fff;
	border-radius: 14px;
	padding: 9px 11px;
	box-shadow: 0 12px 34px rgba(0, 21, 56, .45);
}
.kt-audio-mini[hidden] { display: none; }
.kt-audio-mini-play {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
	border: 0; cursor: pointer; background: #d71920; color: #fff; font-size: 16px;
}
.kt-audio-mini-main { flex: 1; min-width: 0; }
.kt-audio-mini-title {
	font-size: 13px; font-weight: 700; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kt-audio-mini-progress { height: 4px; background: rgba(255, 255, 255, .25); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.kt-audio-mini-fill { height: 100%; width: 0; background: #ff4750; border-radius: 3px; transition: width .3s linear; }
.kt-audio-mini .kt-audio-btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.kt-audio-mini .kt-audio-btn:hover { background: rgba(255, 255, 255, .22); }

/* On mobile the theme's bottom app bar owns the screen bottom — the mini
   player floats ABOVE it (same approach as the theme's back-to-top fix). */
@media (max-width: 900px) {
	.kt-audio-mini {
		left: 10px; right: 10px; width: auto;
		bottom: 76px;
	}
	.kt-audio-panel { width: 100vw; }
	.kt-audio-vol-wrap { display: none; } /* volume via hardware keys on phones */
}
