/* Beitrag vorlesen – Styles
   Die Farb-Regeln verwenden :is(#bv-boost, html). Damit erhalten sie die Spezifität
   einer ID (das Element #bv-boost muss dafür nicht existieren) und setzen sich
   zusammen mit !important gegen Theme-Button-Stile durch, auch gegen #id button:hover.
   Der Button behält immer die Textfarbe der Umgebung (inherit), deshalb ist
   currentColor = Randfarbe. Nur Beschriftung und Icon werden beim Rollover weiß. */

.bv-player {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0 0 1.5em;
	font-size: .9em;
	line-height: 1.2;
}
.bv-player[hidden] { display: none !important; }

:is(#bv-boost, html) body .bv-player button {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: .45em .9em;
	border: 1px solid currentColor !important;
	border-radius: 999px;
	background: transparent !important;
	color: inherit !important;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	text-decoration: none !important;
	letter-spacing: normal;
	box-shadow: none !important;
	opacity: 1 !important;
	filter: none !important;
	transform: none !important;
	transition: background-color .15s ease;
}
/* Theme-Effekte über Pseudo-Elemente (Overlays) ausschalten */
:is(#bv-boost, html) body .bv-player button::before,
:is(#bv-boost, html) body .bv-player button::after {
	content: none !important;
	display: none !important;
}
:is(#bv-boost, html) body .bv-player button .bv-label {
	color: inherit !important;
}
:is(#bv-boost, html) body .bv-player button svg path {
	fill: currentColor !important;
}

/* Rollover / Fokus / Klick: Hintergrund = Randfarbe, Schrift und Icon weiß */
:is(#bv-boost, html) body .bv-player button:is(:hover, :focus-visible, :active) {
	color: inherit !important;
	background: currentColor !important;
	border-color: currentColor !important;
}
:is(#bv-boost, html) body .bv-player button:is(:hover, :focus-visible, :active) .bv-label {
	color: #fff !important;
}
:is(#bv-boost, html) body .bv-player button:is(:hover, :focus-visible, :active) svg path {
	fill: #fff !important;
}

:is(#bv-boost, html) body .bv-player button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
:is(#bv-boost, html) body .bv-player button[hidden] { display: none !important; }
:is(#bv-boost, html) body .bv-player .bv-stop { padding: .45em; }

.bv-icon { flex: none; }
.bv-icon-pause, .bv-player.is-playing .bv-icon-play { display: none; }
.bv-player.is-playing .bv-icon-pause { display: inline; }

.bv-status { opacity: .7; font-size: .9em; }

/* ---------- Info-Symbol ---------- */
:is(#bv-boost, html) body .bv-player .bv-info-wrap {
	position: relative;
	display: inline-flex;
	margin: 0;
	padding: 0;
	color: inherit !important;
}
:is(#bv-boost, html) body .bv-player button.bv-info {
	justify-content: center;
	width: 2em;
	height: 2em;
	min-width: 0;
	padding: 0;
	border-radius: 50%;
}
:is(#bv-boost, html) body .bv-player button.bv-info svg {
	width: 1.15em;
	height: 1.15em;
}

/* ---------- Info-Popup ---------- */
:is(#bv-boost, html) body .bv-popover {
	position: absolute;
	z-index: 999999;
	top: 0;
	left: 0;
	display: block;
	margin: 0;
	font-family: inherit;
	box-sizing: border-box;
	width: 22em;
	max-width: calc(100vw - 24px);
	padding: 1em 2.4em 1em 1.1em;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 8px;
	background: #fff !important;
	color: #222 !important;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	visibility: visible !important;
	opacity: 1 !important;
}
:is(#bv-boost, html) body .bv-popover[hidden] { display: none !important; }
/* kleiner Pfeil zum i-Symbol */
:is(#bv-boost, html) body .bv-popover::before {
	content: "";
	position: absolute;
	top: -7px;
	left: var(--bv-arrow, 12px);
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid rgba(0, 0, 0, .15);
	border-top: 1px solid rgba(0, 0, 0, .15);
	transform: rotate(45deg);
}
:is(#bv-boost, html) body .bv-popover :is(.bv-popover-title, .bv-popover-p) {
	display: block;
	margin: 0 0 .6em;
	padding: 0;
	color: inherit !important;
	font-size: 1em;
	font-style: normal;
	line-height: 1.5;
}
:is(#bv-boost, html) body .bv-popover .bv-popover-title { margin-bottom: .5em; font-weight: 700; }
:is(#bv-boost, html) body .bv-popover .bv-popover-p:last-child { margin-bottom: 0; }

:is(#bv-boost, html) body .bv-popover button.bv-popover-close,
:is(#bv-boost, html) body .bv-popover button.bv-popover-close:is(:hover, :focus-visible, :active) {
	position: absolute;
	top: .35em;
	right: .35em;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	box-shadow: none !important;
	text-shadow: none;
	font-family: inherit;
	font-weight: 400;
	text-transform: none;
	cursor: pointer;
	width: 1.8em;
	height: 1.8em;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: transparent !important;
	color: #222 !important;
	font-size: 1.1em;
	line-height: 1;
}
:is(#bv-boost, html) body .bv-popover button.bv-popover-close:is(:hover, :focus-visible) {
	background: rgba(0, 0, 0, .08) !important;
}
