s/* Main story audio player (demo-aligned) */
.zgr-audio {
	position: relative;
	margin: 1rem 0 1.5rem;
	width: 100%;
}

.zgr-audio audio.zgr-audio-el {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.zgr-audio-card {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	font-size: 10px;
	width: 100%;
    margin-bottom: 3em;
}

.zgr-audio-header {
	background: #fff;
	padding: 0 0.625rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #e5e7eb;
}

.zgr-audio-header-inner {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.zgr-audio-header-icon {
	width: 0.875rem;
	height: 0.875rem;
	color: #122b50;
}

.zgr-audio-header-inner span {
	font-size: 0.95rem;
	color: #222222;
}

.zgr-audio-controls {
	padding: 0.375rem 0.625rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.zgr-audio-play-btn {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 9999px;
	border: 0;
	background: #122b50;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	transition: all 0.15s ease;
}

.zgr-audio-play-btn:hover {
	background: #0d1f38;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.zgr-audio-play-btn .zgr-audio-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.zgr-audio-play-btn .zgr-audio-icon--play {
	margin-left: 1px;
	fill: #fff;
}

.zgr-audio-progress-wrap {
	flex: 1;
	position: relative;
}

.zgr-audio-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(to right, #122b50 var(--zgr-progress, 0%), #e5e7eb var(--zgr-progress, 0%));
	outline: none;
	cursor: pointer;
	margin: 0.125rem 0;
}

.zgr-audio-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid #122b50;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zgr-audio-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid #122b50;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zgr-audio-slider::-moz-range-track {
	height: 8px;
	border-radius: 999px;
	background: #e5e7eb;
}

.zgr-audio-time-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.125rem;
}

.zgr-audio-time-row span {
	font-size: 9px;
	color: #4b5563;
}

.zgr-audio-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}

.zgr-audio-chapters-btn,
.zgr-audio-speed-btn {
	height: 1.5rem;
	border-radius: 0.375rem;
	border: 1px solid #122b50;
	background: #fff;
	color: #122b50;
	font-size: .8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0 0.5rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.zgr-audio-chapters-btn:hover,
.zgr-audio-speed-btn:hover {
	background: #122b50;
	color: #fff;
}

.zgr-audio-chapters-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.zgr-audio-btn-icon {
	width: 0.75rem;
	height: 0.75rem;
}

.zgr-audio-download-btn {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 9999px;
	background: #fff;
	color: #122b50;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.15s ease;
    text-align: center;
}

.zgr-audio-download-btn:hover {
	background: #122b50;
	color: #fff;
}

.zgr-audio-download-btn .zgr-audio-btn-icon {
	width: 0.875rem;
	height: 0.875rem;
}

/* Chapters modal */
.zgr-audio-chapters-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.zgr-audio-chapters-overlay[hidden] {
	display: none;
}

.zgr-audio-chapters-modal {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: min(95vw, 42rem);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.zgr-audio-chapters-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1.5rem 1rem;
}

.zgr-audio-chapters-logo-wrap--bottom {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
	padding-bottom: 0;
}

.zgr-audio-chapters-logo {
	width: 8rem;
	height: auto;
	object-fit: contain;
}

.zgr-audio-chapters-head {
	padding: 0 1.5rem 1rem;
}

.zgr-audio-chapters-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #111827;
}

.zgr-audio-chapters-title .zgr-audio-btn-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.zgr-audio-chapters-desc {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.zgr-audio-chapters-body {
	overflow-y: auto;
	padding: 1rem 1.5rem 1.5rem;
}

.zgr-audio-chapters-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.zgr-audio-chapter-item {
	border: 2px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 1rem;
	transition: all 0.15s ease;
}

.zgr-audio-chapter-item:hover {
	border-color: rgba(18, 43, 80, 0.5);
	background: #f9fafb;
}

.zgr-audio-chapter-item.is-current {
	border-color: #122b50;
	background: rgba(18, 43, 80, 0.05);
}

.zgr-audio-chapter-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.zgr-audio-chapter-left {
	flex: 1;
}

.zgr-audio-chapter-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.zgr-audio-chapter-time {
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
}

.zgr-audio-chapter-current-badge {
	font-size: 0.75rem;
	font-weight: 600;
	color: #122b50;
	background: rgba(18, 43, 80, 0.1);
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
}

.zgr-audio-chapter-title {
	margin: 0;
	font-size: 1rem;
	color: #222222;
	line-height: 1.4;
}

.zgr-audio-chapter-item.is-current .zgr-audio-chapter-title {
	color: #122b50;
	font-weight: 600;
}

.zgr-audio-chapter-play-btn {
	height: 2rem;
	border: 0;
	border-radius: 0.375rem;
	background: #6b7280;
	color: #fff;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0 0.75rem;
	flex-shrink: 0;
	cursor: pointer;
	transition: all 0.15s ease;
}

.zgr-audio-chapter-item.is-current .zgr-audio-chapter-play-btn {
	background: #122b50;
}

.zgr-audio-chapter-play-btn:hover {
	background: #0d1f38;
}

.zgr-audio-chapter-play-btn .zgr-audio-icon {
	width: 0.875rem;
	height: 0.875rem;
	fill: #fff;
}

.zgr-audio-chapters-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 0;
	background: transparent;
	color: #6b7280;
	border-radius: 9999px;
	padding: 0.5rem;
	cursor: pointer;
	line-height: 0;
	transition: all 0.15s ease;
}

.zgr-audio-chapters-close:hover {
	background: #122b50;
	color: #fff;
}

.zgr-audio-close-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Linked paragraph highlighting when quote audio plays */
.zgr-paragraph--linked-active {
	background: linear-gradient(90deg, rgba(11, 42, 74, 0.08) 0%, rgba(11, 42, 74, 0.12) 100%);
	border-left: 3px solid var(--zgr-primary-color, #0b2a4a);
	padding-left: 12px;
	margin-left: -15px;
	transition: background 0.3s ease, border-left 0.3s ease;
}
