/* AFAW Listen — visitor player.
   Uses currentColor and see-through greys so it stays readable
   in every Display scheme (light, dark, high contrast). */

.afaw-listen {
	margin: 0 0 1.75em;
	padding: 1em 1.1em;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 10px;
	background: rgba(127, 127, 127, 0.07);
	font-size: 1rem;
	line-height: 1.4;
}

.afaw-listen__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4em;
	margin-bottom: 0.6em;
}
.afaw-listen__icon { font-size: 1.25em; }
.afaw-listen__title { font-size: 1.1em; }
.afaw-listen__note { opacity: 0.75; font-size: 0.9em; }

.afaw-listen__item + .afaw-listen__item {
	margin-top: 0.9em;
	padding-top: 0.9em;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.afaw-listen__label { font-weight: 600; margin-bottom: 0.35em; }
.afaw-listen__len { font-weight: 400; opacity: 0.75; }

/* Full-width player with a comfortable height for older hands. */
.afaw-listen__audio {
	display: block;
	width: 100%;
	min-height: 44px;
}

.afaw-listen__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6em;
	margin-top: 0.5em;
}

.afaw-listen__speed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3em; }
.afaw-listen__speed-label { opacity: 0.8; margin-right: 0.2em; }

/* Big, easy-to-hit buttons (at least 44px tall). */
.afaw-listen__rate {
	min-width: 3.2em;
	min-height: 44px;
	padding: 0.3em 0.6em;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	opacity: 0.8;
}
.afaw-listen__rate[aria-pressed="true"] {
	opacity: 1;
	font-weight: 700;
	background: rgba(127, 127, 127, 0.22);
}
.afaw-listen__rate:focus-visible,
.afaw-listen__dl:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.afaw-listen__dl {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.3em 0.8em;
	border: 1px solid currentColor;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}
.afaw-listen__dl:hover { background: rgba(127, 127, 127, 0.15); }
.afaw-listen__size { font-weight: 400; opacity: 0.75; margin-left: 0.25em; }

@media print { .afaw-listen { display: none; } }
