.fbap-player {
	--fbap-wave: #c9ccd1;
	--fbap-progress: #222;
	--fbap-cursor: #e2462c;
	--fbap-height: 48px;
	--fbap-bar-width: 2;
	--fbap-bar-gap: 1;
	--fbap-btn-size: 28px;

	width: 100%;
	box-sizing: border-box;
}

.fbap-title {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fbap-no-title .fbap-title { display: none; }

/* Ligne : ▶  0:00  ~~~waveform~~~  1:05  — tout centré verticalement */
.fbap-player .fbap-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 16px;
	width: 100%;
}

/* Bouton : juste un triangle / deux barres, sans fond */
.fbap-btn,
.fbap-btn:hover,
.fbap-btn:focus,
.fbap-btn:active {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	color: #1d1d1d;
}
.fbap-btn {
	flex: 0 0 auto;
	width: var(--fbap-btn-size);
	height: var(--fbap-btn-size);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: opacity .15s ease;
}
.fbap-btn:hover { opacity: .7; }
.fbap-btn:focus-visible { outline: 2px solid var(--fbap-cursor); outline-offset: 3px; }
.fbap-btn svg { width: 85%; height: 100%; fill: currentColor; }
.fbap-btn .fbap-icon-pause { display: none; }
.fbap-player.is-playing .fbap-icon-play { display: none; }
.fbap-player.is-playing .fbap-icon-pause { display: block; }

.fbap-time {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	min-width: 2.6em;
}
.fbap-current { text-align: right; }
.fbap-duration { text-align: left; }

.fbap-player .fbap-wave {
	flex: 1 1 auto !important;
	width: auto;
	min-width: 0;
	position: relative;
	height: var(--fbap-height);
	cursor: pointer;
	outline: none;
}
.fbap-wave:focus-visible { box-shadow: 0 0 0 2px var(--fbap-cursor); }
.fbap-wave canvas { display: block; width: 100%; height: 100%; }

.fbap-hover {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 0;
	background: rgba(0, 0, 0, .06);
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s;
}
.fbap-wave:hover .fbap-hover { opacity: 1; }

.fbap-loading {
	position: absolute;
	left: 0; right: 0; top: 50%;
	height: 1px;
	background: var(--fbap-wave);
	pointer-events: none;
	display: none;
}
.fbap-player.is-loading .fbap-loading { display: block; animation: fbap-pulse 1s ease-in-out infinite alternate; }
@keyframes fbap-pulse { from { opacity: .3; } to { opacity: 1; } }

.fbap-empty {
	padding: 20px;
	border: 1px dashed #bbb;
	text-align: center;
	font-size: 13px;
	color: #777;
}
