/* Graphéine Audio player. Colours and sizes can be changed with the custom properties below. */
.ga-player {
	--ga-color: currentColor;
	--ga-bg: transparent;
	--ga-accent: currentColor;
	--ga-track: rgba(127, 127, 127, 0.35);
	--ga-radius: 999px;
	--ga-height: 64px;
	--ga-font-size: 0.875rem;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--ga-height);
	margin: 0 0 1.5em;
	padding: 8px 0;
	color: var(--ga-color);
	background: var(--ga-bg);
	font-size: var(--ga-font-size);
	line-height: 1.3;
}
.ga-player *,
.ga-player *::before,
.ga-player *::after { box-sizing: border-box; }
.ga-player__audio { display: none; }
.ga-player button {
	margin: 0;
	border: 0;
	font: inherit;
	color: inherit;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.ga-player button:focus-visible,
.ga-player__seek:focus-visible {
	outline: 2px solid var(--ga-accent);
	outline-offset: 2px;
}
.ga-player__play {
	flex: 0 0 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: var(--ga-radius);
	color: inherit !important;
	background: transparent !important;
}
/* A disc with the symbol cut out: it shows the page behind, so it works on any background. */
.ga-player__play .ga-player__icon { width: 100%; height: 100%; }
.ga-player__icon { width: 24px; height: 24px; fill: currentColor; }
.ga-player__icon--pause,
.ga-player.is-playing .ga-player__icon--play { display: none; }
.ga-player.is-playing .ga-player__icon--pause { display: block; }
.ga-player__main { flex: 1 1 auto; min-width: 0; }
.ga-player__title {
	margin: 0 0 4px;
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.ga-player__bar { display: flex; align-items: center; gap: 10px; }
.ga-player__seek {
	flex: 1 1 auto;
	min-width: 60px;
	height: 24px;
	margin: 0;
	background: transparent;
	accent-color: var(--ga-accent);
	cursor: pointer;
}
.ga-player__time {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ga-player__tools { flex: 0 0 auto; display: flex; gap: 2px; }
.ga-player__speed {
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	border-radius: 6px;
	font-variant-numeric: tabular-nums;
}
.ga-player__speed:hover { background: var(--ga-track) !important; }
.ga-player__error {
	flex-basis: 100%;
	margin: 4px 0 0;
	color: #b32d2e;
}
.ga-player-section .ga-player { margin: 0; }
/* Space above (under the hero image); the next text section already has its own top spacing, so none below. */
.ga-player-section { padding: var(--ga-section-top, 2.5rem) 0 0; margin: 0; }
/* 0.9.87: player placed by the theme template at the top of the text (news): the first section
   after it keeps the theme's first-section space (.single-news .section:first-child: 4.375rem),
   so the gap under the player matches the magazine articles (70px). */
.ga-player-section + .section { margin-top: 0; padding-top: var(--ga-section-after, round(4.375rem, 1px)); }
.ga-player .ga-player__title { margin: 0 0 4px; }
@media (max-width: 480px) {
	.ga-player:not(.ga-player--line) { flex-wrap: wrap; }
	.ga-player:not(.ga-player--line) .ga-player__main { flex-basis: calc(100% - 60px); }
	.ga-player:not(.ga-player--line) .ga-player__tools { margin-left: 60px; }
}
/* Thin flat progress bar, no outline: the played part uses the text colour. */
.ga-player .ga-player__seek {
	-webkit-appearance: none;
	appearance: none;
	height: 24px;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
}
.ga-player__seek::-webkit-slider-runnable-track {
	height: 2px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(currentColor, currentColor) 0 0 / var(--ga-progress, 0%) 100% no-repeat, color-mix(in srgb, currentColor 25%, transparent);
}
.ga-player__seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	margin-top: -4px;
	border: 0;
	border-radius: 50%;
	background: currentColor;
	box-shadow: none;
}
.ga-player__seek::-moz-range-track { height: 2px; border: 0; border-radius: 0; background: color-mix(in srgb, currentColor 25%, transparent); }
.ga-player__seek::-moz-range-progress { height: 2px; background: currentColor; }
.ga-player__seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: currentColor; }
.ga-player__seek:focus { outline: none; }
.ga-player__seek:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Article player (0.9.20): one line on a single horizontal axis.
   Play disc, elapsed time, progress, total time, speed pill; the seek dot is Graphéine red. */
.ga-player--line {
	--ga-dot: #e6142d;
	--ga-play-size: 40px;
	gap: 14px;
	min-height: 0;
	padding: 0;
	line-height: 1;
}
.ga-player--line .ga-player__play {
	flex: 0 0 var(--ga-play-size);
	width: var(--ga-play-size);
	height: var(--ga-play-size);
}
.ga-player--line .ga-player__now,
.ga-player--line .ga-player__total {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ga-player--line .ga-player__total { opacity: 0.55; }
.ga-player--line .ga-player__seek { flex: 1 1 0; width: auto; min-width: 40px; color: inherit; }
.ga-player--line .ga-player__seek::-webkit-slider-runnable-track {
	background: linear-gradient(currentColor, currentColor) 0 0 / var(--ga-progress, 0%) 100% no-repeat, color-mix(in srgb, currentColor 18%, transparent);
}
.ga-player--line .ga-player__seek::-moz-range-track { background: color-mix(in srgb, currentColor 18%, transparent); }
/* Red dot, hidden until the audio has started (or on hover / keyboard focus). */
.ga-player--line .ga-player__seek::-webkit-slider-thumb {
	background: var(--ga-dot);
	transform: scale(0);
	transition: transform 0.15s ease;
}
.ga-player--line .ga-player__seek::-moz-range-thumb {
	background: var(--ga-dot);
	transform: scale(0);
	transition: transform 0.15s ease;
}
.ga-player--line.is-started .ga-player__seek::-webkit-slider-thumb,
.ga-player--line .ga-player__seek:hover::-webkit-slider-thumb,
.ga-player--line .ga-player__seek:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.ga-player--line.is-started .ga-player__seek::-moz-range-thumb,
.ga-player--line .ga-player__seek:hover::-moz-range-thumb,
.ga-player--line .ga-player__seek:focus-visible::-moz-range-thumb { transform: scale(1); }
.ga-player--line .ga-player__speed {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem; /* holds 1,25× to 2× so the bar barely moves when the speed changes */
	height: 28px;
	padding: 0 8px;
	border: 1px solid currentColor !important;
	border-radius: 999px;
	font-size: 0.8125rem;
	line-height: 1;
}
/* Larger touch area around the pill without changing how it looks. */
.ga-player--line .ga-player__speed { position: relative; }
.ga-player--line .ga-player__speed::after { content: ""; position: absolute; inset: -8px -4px; }
.ga-player--line .ga-player__speed:hover { background: color-mix(in srgb, currentColor 8%, transparent) !important; }
.ga-player--line .ga-player__error { flex-basis: 100%; }
.ga-player--line:has(.ga-player__error:not([hidden])) { flex-wrap: wrap; }
@media (max-width: 480px) {
	.ga-player--line { gap: 10px; }
	.ga-player--line .ga-player__speed { min-width: 3rem; padding: 0 6px; }
}

/* 0.9.88: mini playlist under the player (several MP3 files for the article): one line per
   episode, thin rules like the podcast page, the episode in the player in the text colour. */
.ga-player__parts {
	margin: 16px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	counter-reset: none;
}
.ga-player__parts li { margin: 0 !important; padding: 0 !important; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.ga-player__parts li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.ga-player__parts li::before,
.ga-player__parts li::marker { content: none !important; }
.ga-player .ga-player__part,
.ga-player__parts .ga-player__part {
	display: flex;
	align-items: baseline;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 12px 0;
	border: 0;
	border-radius: 0;
	background: none !important;
	box-shadow: none;
	color: color-mix(in srgb, currentColor 55%, transparent);
	font: inherit;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}
.ga-player__parts .ga-player__part.is-current { color: inherit; }
.ga-player__parts .ga-player__part:hover,
.ga-player__parts .ga-player__part:focus-visible,
.ga-player__parts.is-playing .ga-player__part.is-current { color: var(--ga-hover, #e6142d); }
.ga-player__parts .ga-player__part:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ga-player__part-name { flex: 1 1 auto; min-width: 0; }
.ga-player__part-time { flex: none; font-variant-numeric: tabular-nums; opacity: 0.8; }
