/*!
 * QuranApp (PHP) — hoja de estilos
 *
 * Traducción 1:1 del tema Jetpack Compose de la app Android:
 *   QuranDarkGreen #154734 · QuranGold #C5A059 · QuranLightGreen #E8F5E9
 *   QuranBackground #FDFDFB · Card #FFFFFF
 * Los tamaños en px equivalen a los dp/sp de los Composables, y la tipografía
 * reproduce la escala de Material 3 (headlineMedium 28, titleLarge 22,
 * titleMedium 16, bodyLarge 16, bodyMedium 14, labelLarge 14, labelMedium 12,
 * labelSmall 11).
 */

html, body {
	margin: 0;
	padding: 0;
}

/* ---------- Barra superior del sitio (developersh.cl · QuranApp) ---------- */

.dev-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid rgba(21, 71, 52, 0.12);
	box-shadow: 0 6px 20px rgba(21, 71, 52, 0.06);
}

.dev-header__inner {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.dev-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #154734;
	font-weight: 700;
	font-size: 0.95rem;
}

.dev-brand__icon {
	height: 26px;
	width: auto;
	display: block;
}

.dev-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dev-nav a {
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #154734;
}

.dev-nav a:hover {
	background: rgba(21, 71, 52, 0.08);
}

.dev-nav a.is-cta {
	background: #E8F5E9;
	border: 1px solid #C5A059;
	color: #154734;
}

.qa-app {
	--qa-primary: #154734;
	--qa-gold: #C5A059;
	--qa-light: #E8F5E9;
	--qa-bg: #FDFDFB;
	--qa-card: #ffffff;
	--qa-max: 480px;
	--qa-gray: #808080;
	--qa-dark-gray: #444444;
	--qa-light-10: color-mix(in srgb, var(--qa-light) 10%, transparent);
	--qa-light-30: color-mix(in srgb, var(--qa-light) 30%, transparent);
	--qa-light-40: color-mix(in srgb, var(--qa-light) 40%, transparent);
	--qa-light-50: color-mix(in srgb, var(--qa-light) 50%, transparent);
	--qa-light-70: color-mix(in srgb, var(--qa-light) 70%, transparent);
	--qa-nav-bg: color-mix(in srgb, var(--qa-light) 50%, #ffffff);
	--qa-nav-pill: #C8E6C9;

	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--qa-primary);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.qa-app *,
.qa-app *::before,
.qa-app *::after {
	box-sizing: border-box;
}

:where(.qa-app) button {
	font-family: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
	color: inherit;
}

:where(.qa-app) a {
	text-decoration: none;
	color: inherit;
}

.qa-icon {
	display: block;
	flex: 0 0 auto;
}

.qa-canvas {
	width: 100%;
	max-width: var(--qa-max);
	margin: 0 auto;
	background: var(--qa-bg);
}

/* ---------- Estados: cargando / error ---------- */

.qa-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px 16px;
	text-align: center;
}

.qa-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--qa-light-50);
	border-top-color: var(--qa-primary);
	border-radius: 50%;
	animation: qa-spin 1s linear infinite;
}

@keyframes qa-spin {
	to { transform: rotate(360deg); }
}

.qa-state__message {
	color: #d32f2f;
	font-size: 14px;
	line-height: 20px;
	margin: 0;
}

.qa-btn-retry {
	background: var(--qa-primary);
	color: #fff;
	border-radius: 20px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .1px;
}

/* ---------- Barra superior (HomeScreen / RandomReadingScreen) ---------- */

.qa-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	gap: 12px;
}

.qa-topbar__title {
	font-size: 28px;
	line-height: 36px;
	font-weight: 700;
	color: var(--qa-primary);
	margin: 0;
	padding: 0;
}

.qa-topbar__icon {
	color: var(--qa-primary);
}

/* ---------- Buscador ---------- */

.qa-search {
	position: relative;
	margin: 0 16px;
	display: flex;
	align-items: center;
	background: var(--qa-light-30);
	border-radius: 24px;
	height: 56px;
	padding: 0 16px;
	gap: 12px;
}

.qa-search__icon {
	color: var(--qa-primary);
	opacity: .8;
}

.qa-search__input {
	flex: 1 1 auto;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
	line-height: 24px;
	color: var(--qa-primary);
	font-family: inherit;
	min-width: 0;
	height: 100%;
	box-shadow: none;
	padding: 0;
}

.qa-search__input::placeholder {
	color: var(--qa-gray);
	opacity: 1;
}

.qa-search__input:focus {
	outline: 0;
	box-shadow: none;
}

/* ---------- Lista del índice ---------- */

.qa-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 16px 96px;
}

.qa-group {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--qa-primary);
	border-radius: 12px;
	padding: 12px;
	text-align: left;
	color: #fff;
}

.qa-group__numeral {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--qa-gold);
	color: var(--qa-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1px;
	flex: 0 0 auto;
}

.qa-group__text {
	flex: 1 1 auto;
	min-width: 0;
}

.qa-group__row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.qa-group__title {
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	color: #fff;
}

.qa-group__arabic {
	font-size: 16px;
	line-height: 24px;
	color: var(--qa-gold);
	direction: rtl;
}

.qa-group__subtitle {
	display: block;
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: .5px;
	color: var(--qa-light);
	margin-top: 2px;
}

.qa-group__chevron {
	color: #fff;
	flex: 0 0 auto;
}

/* ---------- Tarjeta de sura ---------- */

.qa-sura {
	position: relative;
	display: block;
	width: 100%;
	background: var(--qa-card);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .10);
	text-align: left;
	overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease;
}

.qa-sura:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, .16), 0 8px 16px rgba(0, 0, 0, .12);
}

.qa-sura:active {
	transform: scale(.995);
}

.qa-sura__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
}

.qa-sura__main {
	flex: 1 1 auto;
	min-width: 0;
}

.qa-sura__name {
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: var(--qa-primary);
	display: block;
}

.qa-sura__meta {
	font-size: 14px;
	line-height: 20px;
	letter-spacing: .25px;
	color: var(--qa-gray);
	display: block;
}

.qa-sura__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex: 0 0 auto;
}

.qa-sura__arabic {
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: var(--qa-primary);
	direction: rtl;
}

.qa-sura__listen {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--qa-primary);
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: .5px;
}

.qa-sura__badge {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	background: var(--qa-gold);
	color: #fff;
	border-radius: 0 12px 0 10px;
	padding: 4px 8px;
	font-size: 11px;
	line-height: 16px;
	font-weight: 700;
}

/* ---------- Botón "Continuar Lectura" ---------- */

.qa-continue {
	position: fixed;
	right: 16px;
	right: max(16px, calc(50vw - var(--qa-max) / 2 + 16px));
	bottom: 96px;
	z-index: 55;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--qa-primary);
	color: #fff;
	border-radius: 12px;
	padding: 10px 24px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	letter-spacing: .1px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.qa-continue[hidden] {
	display: none;
}

/* ---------- Pantalla de lectura: barra superior ---------- */

.qa-screen--reading .qa-canvas {
	background: var(--qa-light-10);
	min-height: 60vh;
}

.qa-appbar {
	display: flex;
	align-items: center;
	gap: 4px;
	background: var(--qa-primary);
	color: #fff;
	padding: 8px 4px;
	min-height: 64px;
	position: sticky;
	top: 0;
	z-index: 40;
}

.qa-appbar__nav,
.qa-appbar__action {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	border-radius: 50%;
	flex: 0 0 auto;
}

.qa-appbar__nav:hover,
.qa-appbar__action:hover {
	background: rgba(255, 255, 255, .12);
}

.qa-appbar__titles {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.qa-appbar__title {
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qa-appbar__subtitle {
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: .5px;
	color: var(--qa-light);
	direction: rtl;
	text-align: left;
}

.qa-appbar__actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

/* Alterna icono relleno / contorno según haya marcadores */
.qa-appbar__action .qa-ic-on { display: none; }
.qa-appbar__action.is-on .qa-ic-on { display: block; }
.qa-appbar__action.is-on .qa-ic-off { display: none; }

/* ---------- Tarjetas de versículo ---------- */

.qa-verses {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 16px 140px;
}

.qa-verse {
	position: relative;
	background: var(--qa-card);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .08);
	overflow: hidden;
	scroll-margin-top: 80px;
}

.qa-verse__tag {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--qa-light-30);
	color: var(--qa-primary);
	border-radius: 0 0 12px 0;
	padding: 4px 8px;
	font-size: 11px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: .5px;
}

.qa-verse__bookmark {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--qa-light-30);
	color: var(--qa-primary);
	border-radius: 0 0 0 12px;
	padding: 8px;
	line-height: 0;
	display: flex;
}

.qa-verse__bookmark.is-on {
	background: var(--qa-gold);
	color: #fff;
}

.qa-verse__bookmark .qa-ic-on { display: none; }
.qa-verse__bookmark.is-on .qa-ic-on { display: block; }
.qa-verse__bookmark.is-on .qa-ic-off { display: none; }

.qa-verse__body {
	padding: 28px 16px 44px;
}

.qa-verse__arabic {
	font-size: 28px;
	line-height: 45px;
	text-align: right;
	direction: rtl;
	color: var(--qa-primary);
	font-family: "Traditional Arabic", "Scheherazade New", "Amiri", "Noto Naskh Arabic", serif;
	margin: 0;
}

.qa-verse__divider {
	height: 1px;
	background: var(--qa-light-50);
	margin: 12px 0;
	border: 0;
}

.qa-verse__translation {
	font-size: 16px;
	line-height: 24px;
	letter-spacing: .5px;
	color: var(--qa-dark-gray);
	margin: 0;
}

.qa-verse__listen {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--qa-primary) 90%, transparent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qa-verse__listen .qa-icon {
	width: 20px;
	height: 20px;
}

.qa-verse.is-playing .qa-verse__listen {
	background: var(--qa-gold);
}

.qa-verse__listen .qa-ic-on { display: none; }
.qa-verse.is-playing .qa-verse__listen .qa-ic-on { display: flex; }
.qa-verse.is-playing .qa-verse__listen .qa-ic-off { display: none; }

/* ---------- Reproductor (AudioPlayerBar) ---------- */

.qa-player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	padding: 16px;
	pointer-events: none;
}

.qa-player[hidden] {
	display: none;
}

.qa-player__inner {
	max-width: calc(var(--qa-max) - 32px);
	margin: 0 auto;
	background: var(--qa-primary);
	border-radius: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .32);
	padding: 20px 0;
	pointer-events: auto;
	animation: qa-slide-up .25s ease;
}

@keyframes qa-slide-up {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.qa-player__head {
	display: flex;
	align-items: center;
	padding: 0 12px;
	gap: 8px;
}

.qa-player__spacer {
	width: 44px;
	flex: 0 0 auto;
}

.qa-player__title {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	color: #fff;
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qa-player__more {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	width: 44px;
}

.qa-player__more-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.qa-player__more-label {
	color: var(--qa-light);
	font-size: 10px;
	line-height: 14px;
	font-weight: 500;
	letter-spacing: .5px;
}

.qa-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
	min-width: 180px;
	padding: 8px 0;
	z-index: 5;
}

.qa-menu[hidden] {
	display: none;
}

.qa-menu button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 12px 16px;
	font-size: 16px;
	line-height: 24px;
	color: #1c1b1f;
	white-space: nowrap;
}

.qa-menu button:hover {
	background: rgba(0, 0, 0, .06);
}

.qa-slider {
	display: block;
	width: calc(100% - 48px);
	margin: 16px 24px 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	height: 20px;
	cursor: pointer;
}

.qa-slider::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--qa-gold) var(--qa-progress, 0%), var(--qa-light-30) var(--qa-progress, 0%));
}

.qa-slider::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: var(--qa-light-30);
}

.qa-slider::-moz-range-progress {
	height: 4px;
	border-radius: 2px;
	background: var(--qa-gold);
}

.qa-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--qa-gold);
	margin-top: -6px;
	border: 0;
}

.qa-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--qa-gold);
	border: 0;
}

.qa-player__times {
	display: flex;
	justify-content: space-between;
	padding: 0 24px;
	color: var(--qa-light);
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: .5px;
}

.qa-player__controls {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	padding: 12px 8px 0;
}

.qa-pbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--qa-gold);
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.qa-pbtn:disabled {
	opacity: .4;
	cursor: default;
}

.qa-pbtn--small {
	color: color-mix(in srgb, var(--qa-light) 50%, transparent);
}

.qa-pbtn--small.is-on {
	color: var(--qa-gold);
}

.qa-pbtn--play {
	width: 56px;
	height: 56px;
	border: 2px solid var(--qa-gold);
}

.qa-pbtn .qa-ic-on { display: none; }
.qa-pbtn.is-playing .qa-ic-on { display: flex; }
.qa-pbtn.is-playing .qa-ic-off { display: none; }
.qa-pbtn--small.is-muted .qa-ic-on { display: flex; }
.qa-pbtn--small.is-muted .qa-ic-off { display: none; }

/* ---------- Hoja inferior de marcadores ---------- */

.qa-sheet {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.qa-sheet[hidden] {
	display: none;
}

.qa-sheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .32);
}

.qa-sheet__panel {
	position: relative;
	width: 100%;
	max-width: var(--qa-max);
	background: #fff;
	border-radius: 28px 28px 0 0;
	padding-bottom: 24px;
	max-height: 80vh;
	overflow: hidden auto;
	animation: qa-slide-up .25s ease;
}

.qa-sheet__handle {
	display: block;
	width: 32px;
	height: 4px;
	border-radius: 2px;
	background: rgba(0, 0, 0, .4);
	margin: 12px auto 0;
}

.qa-sheet__title {
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: var(--qa-primary);
	margin: 0;
	padding: 8px 20px;
}

.qa-sheet__empty {
	font-size: 14px;
	line-height: 20px;
	letter-spacing: .25px;
	color: var(--qa-dark-gray);
	padding: 16px 20px;
	margin: 0;
}

.qa-sheet__list {
	padding: 4px 12px;
}

.qa-sheet__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 8px;
	text-align: left;
	border-bottom: 1px solid var(--qa-light-30);
}

.qa-sheet__item:hover {
	background: var(--qa-light-30);
}

.qa-sheet__icon {
	color: var(--qa-gold);
	flex: 0 0 auto;
}

.qa-sheet__ref {
	display: block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: .5px;
	color: var(--qa-primary);
}

.qa-sheet__text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: .4px;
	color: var(--qa-dark-gray);
}

/* ---------- Lectura aleatoria ---------- */

.qa-random {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	min-height: 50vh;
}

.qa-rcard {
	position: relative;
	width: 100%;
	background: var(--qa-card);
	border: 2px solid var(--qa-gold);
	border-radius: 24px;
	padding: 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.qa-rcard__badge {
	background: var(--qa-light-40);
	border: 1px solid var(--qa-gold);
	border-radius: 999px;
	padding: 8px 20px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: .5px;
	color: var(--qa-primary);
}

.qa-rcard__name {
	margin-top: 20px;
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: var(--qa-primary);
}

.qa-rcard__arabic {
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	color: var(--qa-primary);
	direction: rtl;
}

.qa-rcard__verses {
	margin-top: 16px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--qa-primary);
}

.qa-rcard__meta {
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: .25px;
	color: var(--qa-gray);
}

.qa-rcard__divider {
	width: 100%;
	height: 1px;
	background: var(--qa-light-70);
	border: 0;
	margin: 20px 0 12px;
}

.qa-rcard__listen {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	color: var(--qa-primary);
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: .1px;
}

.qa-rcard__listen.is-speaking {
	color: var(--qa-gold);
}

.qa-rcard__listen:disabled {
	color: var(--qa-gray);
	cursor: default;
}

.qa-rcard__corner {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--qa-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qa-rcard__corner .qa-icon {
	width: 22px;
	height: 22px;
}

.qa-ractions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

.qa-btn {
	display: inline-flex;
	min-width: 0;
	flex: 0 1 auto;
	align-items: center;
	gap: 8px;
	border-radius: 12px;
	padding: 10px 24px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	letter-spacing: .1px;
}

.qa-btn--outlined {
	border: 1px solid var(--qa-primary);
	color: var(--qa-primary);
	background: transparent;
}

.qa-btn--outlined:hover {
	background: var(--qa-light-30);
}

.qa-btn--filled {
	background: var(--qa-primary);
	color: #fff;
}

.qa-btn--filled:hover {
	background: color-mix(in srgb, var(--qa-primary) 88%, #fff);
}

/* ---------- Barra de navegación inferior ---------- */

.qa-nav {
	display: block;
	width: 100%;
}

.qa-nav--fixed {
	height: 80px;
}

.qa-nav__inner {
	display: flex;
	align-items: center;
	height: 80px;
	background: var(--qa-nav-bg);
	padding-inline: max(0px, calc((100% - var(--qa-max)) / 2));
}

.qa-nav--fixed .qa-nav__inner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
}

.qa-nav__item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--qa-primary);
	padding: 12px 0;
	min-width: 0;
}

.qa-nav__pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 32px;
	border-radius: 16px;
	transition: background .15s ease;
}

.qa-nav__item.is-active .qa-nav__pill {
	background: var(--qa-nav-pill);
}

.qa-nav__label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: .5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.qa-canvas,
	.qa-player__inner,
	.qa-sheet__panel {
		max-width: 100%;
	}

	.qa-continue {
		right: 16px;
	}
}

@media (max-width: 400px) {
	.qa-topbar__title {
		font-size: 24px;
		line-height: 32px;
	}

	.qa-sura__name,
	.qa-sura__arabic {
		font-size: 20px;
		line-height: 26px;
	}

	.qa-verse__arabic {
		font-size: 24px;
		line-height: 40px;
	}

	.qa-player__title {
		font-size: 18px;
	}

}

@media (max-width: 340px) {
	.qa-ractions .qa-btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qa-app *,
	.qa-app *::before,
	.qa-app *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ---------- Ajustes finales ---------- */

.qa-sheet__text-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

/* Los pares de iconos alternan con .is-on / .is-playing (selectores de mayor
   especificidad definidos más arriba); por defecto solo se ve el estado "off". */
.qa-ic-off {
	display: flex;
	line-height: 0;
}

.qa-ic-on {
	display: none;
	line-height: 0;
}

.qa-sura__badge .qa-icon,
.qa-sura__listen .qa-icon,
.qa-rcard__listen .qa-icon,
.qa-btn .qa-icon,
.qa-continue .qa-icon {
	flex: 0 0 auto;
}

/* El navegador no soporta color-mix: se usan los colores base sin alfa. */
@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
	.qa-search,
	.qa-verse__tag,
	.qa-verse__bookmark {
		background: var(--qa-light);
	}

	.qa-screen--reading .qa-canvas {
		background: #fafdfa;
	}

	.qa-nav__inner {
		background: var(--qa-light);
	}

	.qa-pbtn--small {
		color: var(--qa-light);
	}
}
