/* Farbenfroh Audio – Player */
.ff-wave {
	--c: #D0078D;
	display: flex !important;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	line-height: 0;
}
.ff-wave *,
.ff-wave *::before {
	box-sizing: border-box;
}

/* Play-Button – gegen Theme-Button-Styles abgesichert */
.ff-wave .ff-wave-play {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: block !important;
	position: relative !important;
	flex: 0 0 auto !important;
	width: 60px !important;
	height: 60px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--c) !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: 0 !important;
	cursor: pointer;
	transition: transform .2s ease;
}
.ff-wave .ff-wave-play:hover { transform: scale(1.06); }
.ff-wave .ff-wave-play:focus { outline: none; }
.ff-wave .ff-wave-play:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }

/* Play-Dreieck */
.ff-wave .ff-wave-play::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	transform: translate(-35%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
	background: none;
}
/* Pause-Zeichen */
.ff-wave.is-playing .ff-wave-play::before {
	width: 16px;
	height: 20px;
	border: 0;
	transform: translate(-50%, -50%);
	background: linear-gradient(to right, #fff 0 6px, transparent 6px 10px, #fff 10px 16px);
}

/* Waveform */
.ff-wave .ff-wave-bars {
	display: block;
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	cursor: pointer;
	overflow: hidden;
}
.ff-wave .ff-wave-bars canvas {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	max-width: none !important;
	margin: 0 !important;
}
.ff-wave .ff-wave-progress {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Sehr schmale Spalten */
.ff-wave.ff-narrow { flex-wrap: wrap; justify-content: center; }
.ff-wave.ff-narrow .ff-wave-bars { flex: 1 1 100%; }

/* Vorschau im Editor */
.ff-wave.ff-wave-preview .ff-wave-play { cursor: default; }
.ff-wave.ff-wave-preview .ff-wave-play:hover { transform: none; }
.ff-wave.ff-wave-preview .ff-wave-bars {
	cursor: default;
	background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 4px, transparent 4px 9px) center / 100% 55% no-repeat !important;
}

/* Handy */
@media (max-width: 600px) {
	.ff-wave { gap: 12px; }
	.ff-wave .ff-wave-play { width: 48px !important; height: 48px !important; }
	.ff-wave .ff-wave-play::before { border-width: 9px 0 9px 15px; }
	.ff-wave.is-playing .ff-wave-play::before { width: 14px; height: 17px; background: linear-gradient(to right, #fff 0 5px, transparent 5px 9px, #fff 9px 14px); }
	.ff-wave .ff-wave-bars { height: 44px; }
}

/* Galerie: Uncode-„Mehr laden“ ausblenden, sobald alles geladen ist (eigener Mehr/Weniger-Button übernimmt) */
.loadmore-button.ff-done{display:none!important}
.ff-less-nav{display:inline-block;margin:36px 0}
