/* Fusión Portada: reproductor del directo (cabecera). Colores del logo:
   verde azulado #5cabac y naranja #e77721. */

.frp-hdr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 14px 0;
}
.frp-hdr > .tdb_header_logo {
	flex: none;
	width: auto !important;
	margin: 0 !important;
}

.frp-player {
	--frp-deep: #1d4f50;
	--frp-teal: #5cabac;
	--frp-orange: #e77721;
	--frp-live: #c4580f;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	background: var(--frp-deep);
	color: #fff;
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.2;
	text-align: left;
}
.frp-player *,
.frp-player *::before,
.frp-player *::after { box-sizing: border-box; }

.frp-player--desk {
	flex: 1 1 auto;
	max-width: 740px;
	height: 88px;
	padding: 0 22px 0 14px;
	border-radius: 20px;
}

.frp-hdr-mob { padding: 0 12px 12px; }
.frp-player--mob {
	width: 100%;
	height: 68px;
	padding: 0 16px 0 8px;
	gap: 12px;
	border-radius: 18px;
}

.frp-play {
	position: relative;
	flex: none;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--frp-orange);
	color: var(--frp-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}
.frp-play:hover { transform: scale(1.05); }
.frp-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.frp-player--mob .frp-play { width: 52px; height: 52px; }
.frp-play .frp-i-pause,
.frp-play .frp-spin { display: none; }
.frp-player[data-state="playing"] .frp-i-play,
.frp-player[data-state="loading"] .frp-i-play { display: none; }
.frp-player[data-state="playing"] .frp-i-pause { display: block; }
.frp-player[data-state="loading"] .frp-spin {
	display: block;
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	animation: frp-spin 0.9s linear infinite;
}
.frp-player[data-state="loading"] .frp-play::after {
	content: '';
	width: 16px;
	height: 16px;
	border-radius: 3px;
	background: currentColor;
}

.frp-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.frp-line {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	white-space: nowrap;
}
.frp-live {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 9px;
	border-radius: 11px;
	background: var(--frp-live);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6px;
}
.frp-live i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
}
.frp-player[data-state="playing"] .frp-live i { animation: frp-blink 1.4s ease-in-out infinite; }
.frp-fm {
	font-size: 13px;
	font-weight: 600;
	color: #d3e8e8;
}
.frp-status {
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.frp-player--mob .frp-live { height: 20px; font-size: 10px; padding: 0 8px; }
.frp-player--mob .frp-status { font-size: 15px; }

.frp-eq {
	flex: none;
	height: 28px;
	display: flex;
	align-items: flex-end;
	gap: 3px;
}
.frp-eq i {
	display: block;
	width: 4px;
	height: 100%;
	border-radius: 2px;
	background: var(--frp-teal);
	transform-origin: bottom;
	transform: scaleY(.3);
}
.frp-player[data-state="playing"] .frp-eq i { animation: frp-eq .9s ease-in-out infinite; }
.frp-player[data-state="playing"] .frp-eq i:nth-child(2) { animation-delay: .15s; }
.frp-player[data-state="playing"] .frp-eq i:nth-child(3) { animation-delay: .3s; }
.frp-player[data-state="playing"] .frp-eq i:nth-child(4) { animation-delay: .45s; }
.frp-player[data-state="playing"] .frp-eq i:nth-child(5) { animation-delay: .6s; }
.frp-player--mob .frp-eq { height: 24px; }
.frp-player--mob .frp-eq i:nth-child(5) { display: none; }

.frp-vol {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #d3e8e8;
	cursor: pointer;
}
.frp-vol input[type="range"] {
	width: 90px;
	margin: 0;
	accent-color: var(--frp-orange);
	cursor: pointer;
}
.frp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.frp-pods,
.frp-pods:visited {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 18px;
	border: 1px solid #4a7f80;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.frp-pods:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (max-width: 1018px) {
	.frp-hdr { padding: 12px 20px; gap: 20px; }
	.frp-vol { display: none; }
}

/* Botón flotante mientras suena y la cabecera no se ve. */
.frp-mini {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 18px 0 14px;
	border: 0;
	border-radius: 24px;
	background: #1d4f50;
	color: #fff;
	font: 700 13px/1 'Open Sans', system-ui, sans-serif;
	letter-spacing: .5px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.frp-mini[hidden] { display: none; }
.frp-mini svg { color: #e77721; }
.frp-mini:focus-visible { outline: 3px solid #e77721; outline-offset: 3px; }

@keyframes frp-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes frp-spin { to { transform: rotate(360deg); } }
@keyframes frp-blink { 50% { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
	.frp-player[data-state="playing"] .frp-eq i,
	.frp-player[data-state="playing"] .frp-live i,
	.frp-player[data-state="loading"] .frp-spin { animation: none; }
	.frp-player[data-state="playing"] .frp-eq i { transform: scaleY(.7); }
}
