/* Episoden-Leser [asv_book_reader] */
.asv-reader {
	--asv-accent: #a5311f;
	--asv-reserve: 132px; /* Platz unter/über der Seite: Navigation und Abstand (px, weil Bricks die Root-Schrift auf 10 px setzt) */
	--asv-page-w: min(700px, calc(100vw - 32px), calc((100svh - var(--asv-reserve)) * 700 / 1082));
	width: var(--asv-page-w);
	max-width: 100%;
	margin-inline: auto;
	position: relative;
}

.asv-reader__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	outline: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 6px 24px rgba(0, 0, 0, .08);
	background: #fff;
}
.asv-reader__track::-webkit-scrollbar { display: none; }
.asv-reader__track:focus-visible { outline: 2px solid var(--asv-accent); outline-offset: 3px; }

.asv-reader__page {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	aspect-ratio: 700 / 1082;
	background: #fff;
}

.asv-reader__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
	.asv-reader.is-ready .asv-reader__page { cursor: pointer; }
}

.asv-reader__progress {
	height: 3px;
	background: rgba(165, 49, 31, .15);
	margin-top: 10px;
}
.asv-reader__progress span {
	display: block;
	height: 100%;
	background: var(--asv-accent);
	transition: width .25s ease;
}

.asv-reader__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}

.asv-reader__count {
	font-variant-numeric: tabular-nums;
	font-size: 16px;
	color: #444;
}

.asv-reader__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--asv-accent);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease;
}
.asv-reader__btn:hover:not(:disabled) { background: #7f2516; }
.asv-reader__btn:focus-visible { outline: 2px solid var(--asv-accent); outline-offset: 3px; }
.asv-reader__btn:disabled { opacity: .3; cursor: default; }

@media (prefers-reduced-motion: reduce) {
	.asv-reader__progress span { transition: none; }
}
