.qve-widget {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
	text-align: center;
}

.qve-record-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.9em 1.6em;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	background: #0f6b52;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.qve-record-btn:hover {
	background: #0c5643;
}

.qve-record-btn:active {
	transform: scale( 0.98 );
}

.qve-record-btn.is-recording {
	background: #b8302f;
	animation: qve-pulse 1.4s infinite;
}

.qve-mic-icon {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

@keyframes qve-pulse {
	0% { box-shadow: 0 0 0 0 rgba( 184, 48, 47, 0.5 ); }
	70% { box-shadow: 0 0 0 12px rgba( 184, 48, 47, 0 ); }
	100% { box-shadow: 0 0 0 0 rgba( 184, 48, 47, 0 ); }
}

.qve-status {
	margin-top: 0.75em;
	font-size: 0.95rem;
	color: #555;
	min-height: 1.2em;
}

.qve-error {
	margin-top: 1em;
	padding: 0.75em 1em;
	border-radius: 8px;
	background: #fdecea;
	color: #a33a34;
	font-size: 0.95rem;
}

.qve-result {
	margin-top: 2em;
	text-align: left;
	border-top: 1px solid #e2e2e2;
	padding-top: 1.5em;
}

.qve-transcript-label {
	font-size: 0.9rem;
	color: #777;
	margin-bottom: 0.25em;
}

.qve-transcript {
	font-size: 1.3rem;
	margin-top: 0;
	margin-bottom: 1.2em;
}

.qve-surah-title {
	font-size: 1.4rem;
	margin-bottom: 0.15em;
}

.qve-surah-arabic {
	font-size: 1.3rem;
	color: #0f6b52;
	margin-top: 0;
	margin-bottom: 1.2em;
}

.qve-explanations {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.2em;
	margin-bottom: 1.5em;
}

.qve-lang-block {
	padding: 1em;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fafafa;
}

.qve-lang-block h4 {
	margin: 0 0 0.5em;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
}

.qve-lang-block audio {
	width: 100%;
	margin-top: 0.5em;
}

.qve-visual-story img {
	max-width: 100%;
	border-radius: 12px;
	display: block;
	margin-top: 0.75em;
}

@media ( min-width: 640px ) {
	.qve-explanations {
		grid-template-columns: repeat( 3, 1fr );
	}
}
