/* Biblia y Noticias: tapa de cuero, letras doradas y señalador rojo. */
:root {
	--cuero: #3b0f1c;
	--sombra: #1c060d;
	--oro: #f2c14e;
	--pagina: #fdf6e6;
	--cinta: #c8323c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1rem;
	font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--pagina);
	background: var(--sombra);
	text-align: center;
}

.tapa {
	position: relative;
	width: min(100%, 30rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	padding: 3rem 1.5rem 2rem;
	background: radial-gradient(circle at 50% 35%, #5a1a2c, var(--cuero) 70%);
	border-radius: 0.4rem 1.25rem 1.25rem 0.4rem;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
}

/* Marco dorado de la tapa. */
.tapa::before {
	content: "";
	position: absolute;
	inset: 0.75rem;
	border: 3px double var(--oro);
	border-radius: 0.2rem 0.75rem 0.75rem 0.2rem;
	pointer-events: none;
}

/* Señalador. */
.tapa::after {
	content: "";
	position: absolute;
	top: 0;
	right: 2.25rem;
	width: 1.5rem;
	height: 5rem;
	background: var(--cinta);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
	pointer-events: none;
}

h1 {
	max-width: 5em;
	font-family: "Gentium Book Plus", Georgia, serif;
	font-size: clamp(2.4rem, 11vw, 3.5rem);
	line-height: 1.1;
	color: var(--oro);
}

.play {
	position: relative;
	margin: 1rem 0;
	width: min(11rem, 55vw);
	aspect-ratio: 1;
	border: 0;
	border-radius: 50%;
	background: var(--oro);
	color: var(--sombra);
	cursor: pointer;
}
.play svg { width: 55%; height: 55%; fill: currentColor; vertical-align: middle; }
.play:hover { background: #ffd873; }

:focus-visible { outline: 4px solid var(--pagina); outline-offset: 6px; }

.icono-stop { display: none; }
.activo .icono-stop { display: inline; }
.activo .icono-play { display: none; }

/* Onda de sonido alrededor del botón. */
.play::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid var(--oro);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}
.sonando-ahora .play::before { animation: onda 2.4s ease-out infinite; }
.conectando .play::before { opacity: 1; inset: -0.75rem; border-top-color: transparent; animation: girar 1s linear infinite; }

@keyframes onda { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.3); } }
@keyframes girar { to { transform: rotate(360deg); } }

.estado { font-size: 1.35rem; font-weight: 700; }
.cancion { overflow-wrap: anywhere; max-width: 100%; }

.volumen { display: flex; align-items: center; gap: 0.75rem; width: min(100%, 20rem); min-height: 3rem; }
.volumen input { flex: 1; min-width: 0; height: 2.5rem; accent-color: var(--oro); cursor: pointer; }

.versiculo {
	font-family: "Gentium Book Plus", Georgia, serif;
	font-style: italic;
	font-size: 1.25rem;
	max-width: 20rem;
}
.versiculo footer { font-style: normal; font-size: 1rem; color: var(--oro); margin-top: 0.25rem; }

.atajos { font-size: 0.95rem; max-width: 22rem; }

.pie { font-size: 0.95rem; }
a { display: inline-block; padding: 0.5rem 0.25rem; color: var(--pagina); }

.solo-lector {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (hover: none) and (pointer: coarse) {
	.atajos { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.play::before { animation: none !important; }
}

@media (prefers-contrast: more) {
	body, .tapa { background: #000; }
}

@media (forced-colors: active) {
	.play { border: 3px solid ButtonText; }
}
