/**
 * FB Élő doboz — megjelenés.
 * Szándékosan visszafogott, hogy a Divi téma színei átüssenek rajta.
 * Felülírható CSS változókkal:  .fble-wrap { --fble-accent: #e4002b; }
 */

.fble-wrap {
	--fble-accent: #e41e3f;
	--fble-bg: rgba( 0, 0, 0, 0.04 );
	--fble-fg: inherit;
	--fble-radius: 6px;
	width: 100%;
	box-sizing: border-box;
}

.fble-wrap * {
	box-sizing: border-box;
}

.fble-live,
.fble-offline {
	width: 100%;
}

/* Néhány téma felülírja a böngésző alap [hidden] szabályát — itt nem hagyjuk. */
.fble-wrap [hidden] {
	display: none !important;
}

/* A halasztott lejátszó helye, amíg a JS létre nem hozza az iframe-et. */
.fble-player.fble-defer {
	background: #000;
}

/* --- Státuszsáv --- */

.fble-bar {
	display: flex;
	align-items: center;
	gap: 0.55em;
	flex-wrap: wrap;
	padding: 0.6em 0.9em;
	font-size: 0.95em;
	line-height: 1.35;
	background: var( --fble-bg );
	color: var( --fble-fg );
	border-radius: var( --fble-radius ) var( --fble-radius ) 0 0;
}

.fble-bar--offline {
	opacity: 0.85;
}

/* A státuszüzenet HTML-t is tartalmazhat — a sávból ilyenkor blokk lesz. */
.fble-bar--rich {
	display: block;
	padding: 1em 1.1em;
	opacity: 1;
	line-height: 1.55;
}

.fble-bar--rich > :first-child {
	margin-top: 0;
}

.fble-bar--rich > :last-child {
	margin-bottom: 0;
}

.fble-bar--rich ul,
.fble-bar--rich ol {
	margin: 0.5em 0 0.5em 1.4em;
	padding: 0;
}

.fble-bar--rich a {
	color: inherit;
	text-decoration: underline;
}

.fble-bar--error {
	background: #fff3cd;
	color: #664d03;
	border-radius: var( --fble-radius );
	margin-bottom: 0.5em;
}

.fble-badge {
	display: inline-block;
	padding: 0.15em 0.55em;
	border-radius: 3px;
	background: var( --fble-accent );
	color: #fff;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.6;
}

.fble-dot {
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var( --fble-accent );
	flex: 0 0 auto;
	animation: fble-pulse 2s ease-in-out infinite;
}

@keyframes fble-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale( 1 );
	}
	50% {
		opacity: 0.35;
		transform: scale( 0.8 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.fble-dot {
		animation: none;
	}
}

.fble-title {
	font-weight: 600;
}

.fble-latest-title {
	margin: 0.6em 0 0.4em;
	font-size: 0.9em;
	opacity: 0.85;
}

/* --- Lejátszó --- */

.fble-player {
	position: relative;
	width: 100%;
	height: 0;
	overflow: hidden;
	background: #000;
	border-radius: 0 0 var( --fble-radius ) var( --fble-radius );
}

.fble-player iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* --- Consent kapu --- */

.fble-consent-inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1em;
	padding: 1.25em;
	text-align: center;
	background: #1c1e21;
	color: #e4e6eb;
}

.fble-consent-text {
	margin: 0;
	max-width: 42ch;
	font-size: 0.9em;
	line-height: 1.5;
}

.fble-consent-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 0.65em 1.4em;
	border-radius: 4px;
	background: #1877f2;
	color: #fff;
	font: inherit;
	font-weight: 600;
}

.fble-consent-btn:hover,
.fble-consent-btn:focus-visible {
	background: #166fe5;
}

/* --- Divi 5 apróságok --- */

.et_pb_module .fble-wrap,
.et_pb_code_inner .fble-wrap {
	margin: 0;
}
