/* ==========================================================================
   Yireh Radio Player — estilos
   Variables principales (también controladas desde Elementor):
   --yrp-primary / --yrp-secondary / --yrp-accent / --yrp-bg / --yrp-bg2
   --yrp-text / --yrp-live / --yrp-btn-bg / --yrp-btn-fg / --yrp-card
   ========================================================================== */

.yrp {
	--yrp-primary: #0b5ed7;
	--yrp-secondary: #3cc8ea;
	--yrp-accent: #c391f7;
	--yrp-live: #e8203f;
	--yrp-cover: 340px;
	--yrp-radius: 28px;
	--yrp-player-radius: 999px;
	--yrp-btn-size: 56px;
	--yrp-speed: 1;
	--yrp-shape-opacity: 1;

	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: clamp(40px, 7vw, 90px) 20px;
	color: var(--yrp-text);
	-webkit-tap-highlight-color: transparent;
}
.yrp *, .yrp *::before, .yrp *::after { box-sizing: border-box; }

/* Ancho completo de pantalla */
.yrp--fullbleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
html.yrp-has-fullbleed,
html.yrp-has-fullbleed body { overflow-x: clip; }

/* ---------- Estilos base por diseño ---------- */
.yrp--aurora {
	--yrp-bg: #faf9f6;
	--yrp-bg2: #eaf0fb;
	--yrp-text: #0b1f4d;
	--yrp-card: rgba(255, 255, 255, .8);
	--yrp-card-line: rgba(11, 31, 77, .08);
	--yrp-btn-bg: var(--yrp-primary);
	--yrp-btn-fg: #fff;
	--yrp-eq: var(--yrp-primary);
	--yrp-range: var(--yrp-primary);
	background:
		radial-gradient(900px 520px at 50% 18%, var(--yrp-bg2), transparent 72%),
		var(--yrp-bg);
}

.yrp--spotlight {
	--yrp-bg: #06173a;
	--yrp-bg2: #0b3a8f;
	--yrp-text: #ffffff;
	--yrp-card: rgba(255, 255, 255, .09);
	--yrp-card-line: rgba(255, 255, 255, .18);
	--yrp-btn-bg: #ffffff;
	--yrp-btn-fg: #0b3a8f;
	--yrp-eq: var(--yrp-secondary);
	--yrp-range: #ffffff;
	background: linear-gradient(150deg, var(--yrp-bg) 0%, var(--yrp-bg2) 100%);
}

.yrp--app {
	--yrp-bg: #0a4cc0;
	--yrp-bg2: #041a52;
	--yrp-text: #ffffff;
	--yrp-card: rgba(255, 255, 255, .13);
	--yrp-card-line: rgba(255, 255, 255, .22);
	--yrp-btn-bg: #ffffff;
	--yrp-btn-fg: #0a4cc0;
	--yrp-eq: #ffffff;
	--yrp-range: #ffffff;
	background:
		radial-gradient(900px 520px at 50% -5%, rgba(60, 200, 234, .5), transparent 62%),
		linear-gradient(180deg, var(--yrp-bg) 0%, var(--yrp-bg2) 100%);
}

/* ---------- Estructura ---------- */
.yrp__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2.4rem;
}

.yrp__stage {
	position: relative;
	flex: none;
	width: min(var(--yrp-cover), 100%);
	aspect-ratio: 1 / 1;
	margin-bottom: 1.2rem;
}

.yrp__panel {
	position: relative;
	z-index: 3;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ---------- Portada 1:1 ---------- */
.yrp__cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: var(--yrp-radius);
	overflow: hidden;
	background: var(--yrp-primary);
	box-shadow:
		0 34px 60px -24px rgba(8, 50, 150, .55),
		0 10px 22px -10px rgba(8, 50, 150, .35);
	transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.yrp__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.yrp.is-playing .yrp__cover { transform: scale(1.025); }

/* ---------- Indicador EN VIVO ---------- */
.yrp__live {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 4;
	transform: translate(-50%, 50%);
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: .55em 1.15em .55em 1em;
	border-radius: 999px;
	background: #fff;
	color: var(--yrp-live);
	font-size: .85rem;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 12px 26px -10px rgba(5, 30, 90, .5);
}
.yrp__dot {
	position: relative;
	width: .62em;
	height: .62em;
	border-radius: 50%;
	background: currentColor;
}
.yrp__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: currentColor;
	animation: yrp-live-ring calc(2.8s * var(--yrp-speed)) ease-out infinite;
}
.yrp.is-playing .yrp__dot::after { animation-duration: calc(1.5s * var(--yrp-speed)); }

/* ---------- Textos ---------- */
.yrp__title {
	margin: 0;
	color: var(--yrp-text);
	font-size: clamp(1.9rem, 4.2vw, 2.9rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
}
.yrp__tagline {
	margin: .55rem 0 0;
	font-size: 1.05rem;
	line-height: 1.4;
	opacity: .72;
}
.yrp__now {
	margin: 1rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: inherit;
	gap: .15rem .6rem;
	font-size: .98rem;
	font-weight: 600;
	line-height: 1.35;
}
.yrp__now[hidden] { display: none; }
.yrp__now-label { font-weight: 500; opacity: .6; }

/* ---------- Reproductor ---------- */
.yrp__player {
	width: min(460px, 100%);
	margin-top: 1.7rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .6rem 1rem .6rem .6rem;
	border-radius: var(--yrp-player-radius);
	background: var(--yrp-card);
	border: 1px solid var(--yrp-card-line);
	box-shadow: 0 22px 44px -22px rgba(8, 40, 120, .4);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
}

.yrp__btn {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: var(--yrp-btn-size);
	height: var(--yrp-btn-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--yrp-btn-bg);
	color: var(--yrp-btn-fg);
	cursor: pointer;
	box-shadow: 0 12px 24px -10px rgba(5, 30, 100, .6);
	transition: transform .2s ease, box-shadow .2s ease;
}
.yrp__btn:hover { transform: scale(1.07); }
.yrp__btn:active { transform: scale(.95); }
.yrp__btn:focus-visible,
.yrp__mute:focus-visible,
.yrp__range:focus-visible { outline: 3px solid var(--yrp-secondary); outline-offset: 3px; }
.yrp__btn svg { width: 42%; height: 42%; fill: currentColor; }
.yrp__btn .yrp__icon-play { display: block; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.yrp__btn .yrp__icon-pause,
.yrp__btn .yrp__spin { display: none; }
.yrp.is-playing .yrp__btn .yrp__icon-play { display: none; }
.yrp.is-playing .yrp__btn .yrp__icon-pause { display: block; }
.yrp.is-loading .yrp__btn .yrp__icon-play,
.yrp.is-loading .yrp__btn .yrp__icon-pause { display: none; }
.yrp.is-loading .yrp__btn .yrp__spin { display: block; }
.yrp__spin {
	width: 40%;
	height: 40%;
	border: 3px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: yrp-spin .8s linear infinite;
}

.yrp__info {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: .8rem;
}
.yrp__status {
	font-size: .92rem;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.yrp.is-error .yrp__status { color: var(--yrp-live); }
.yrp--spotlight.is-error .yrp__status,
.yrp--app.is-error .yrp__status { color: #ffd2da; }

/* Ecualizador */
.yrp__eq {
	flex: none;
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 20px;
}
.yrp__eq i {
	display: block;
	width: 3px;
	height: 100%;
	border-radius: 2px;
	background: var(--yrp-eq);
	transform-origin: bottom;
	transform: scaleY(.2);
	transition: transform .3s ease;
}
.yrp.is-playing .yrp__eq i { animation: yrp-eq calc(1s * var(--yrp-speed)) ease-in-out infinite; }
.yrp.is-playing .yrp__eq i:nth-child(1) { animation-duration: calc(.9s * var(--yrp-speed)); }
.yrp.is-playing .yrp__eq i:nth-child(2) { animation-duration: calc(.7s * var(--yrp-speed)); animation-delay: -.2s; }
.yrp.is-playing .yrp__eq i:nth-child(3) { animation-duration: calc(1.1s * var(--yrp-speed)); animation-delay: -.5s; }
.yrp.is-playing .yrp__eq i:nth-child(4) { animation-duration: calc(.8s * var(--yrp-speed)); animation-delay: -.3s; }
.yrp.is-playing .yrp__eq i:nth-child(5) { animation-duration: calc(1s * var(--yrp-speed)); animation-delay: -.7s; }

/* Volumen */
.yrp__vol {
	position: relative;
	flex: none;
	display: flex;
	flex-direction: row-reverse; /* el icono queda fijo y la barra sale hacia la izquierda */
	align-items: center;
}
.yrp__range-wrap {
	display: flex;
	align-items: center;
	width: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateX(8px);
	transition:
		width .38s cubic-bezier(.2, .8, .2, 1),
		padding .38s cubic-bezier(.2, .8, .2, 1),
		opacity .25s ease,
		transform .38s cubic-bezier(.2, .8, .2, 1);
}
.yrp__vol:hover .yrp__range-wrap,
.yrp__vol.is-open .yrp__range-wrap {
	width: 118px;
	padding: 0 8px;
	opacity: 1;
	transform: none;
}
/* En pantallas táctiles no hay "pasar el mouse": solo queda el icono (silenciar) */
@media (hover: none) {
	.yrp__range-wrap { display: none; }
}
.yrp__mute {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--yrp-text);
	cursor: pointer;
	transition: background .2s ease;
}
.yrp__mute:hover { background: rgba(127, 127, 127, .18); }
.yrp__mute svg { width: 22px; height: 22px; fill: currentColor; }
.yrp__icon-muted { display: none; }
.yrp.is-muted .yrp__icon-vol { display: none; }
.yrp.is-muted .yrp__icon-muted { display: block; }

.yrp__range {
	--yrp-fill: 80%;
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	margin: 0;
	border-radius: 99px;
	outline: 0;
	cursor: pointer;
	background: linear-gradient(to right, var(--yrp-range) var(--yrp-fill), rgba(127, 127, 127, .35) var(--yrp-fill));
}
.yrp__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 0;
	background: var(--yrp-range);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.yrp__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 0;
	background: var(--yrp-range);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* iOS no permite controlar el volumen por software */
.yrp--novol .yrp__vol { display: none; }

/* ==========================================================================
   FIGURAS ANIMADAS (ondas, triángulos, círculos, puntos)
   ========================================================================== */
.yrp__bg,
.yrp__deco { position: absolute; pointer-events: none; }
.yrp__bg { inset: 0; z-index: 0; overflow: hidden; }
.yrp__deco { inset: 0; z-index: 1; }

.yrp__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: calc(.3 * var(--yrp-shape-opacity));
}
.yrp__blob--1 {
	width: 46vmax; height: 46vmax; left: -16vmax; top: -20vmax;
	background: var(--yrp-secondary);
	animation: yrp-drift calc(28s * var(--yrp-speed)) ease-in-out infinite alternate;
}
.yrp__blob--2 {
	width: 42vmax; height: 42vmax; right: -16vmax; bottom: -22vmax;
	background: var(--yrp-accent);
	animation: yrp-drift calc(34s * var(--yrp-speed)) ease-in-out infinite alternate-reverse;
}
.yrp--aurora .yrp__blob { opacity: calc(.2 * var(--yrp-shape-opacity)); }

.yrp__bigring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid var(--yrp-secondary);
	opacity: calc(.28 * var(--yrp-shape-opacity));
	animation: yrp-breathe calc(12s * var(--yrp-speed)) ease-in-out infinite;
}
.yrp__bigring::after {
	content: "";
	position: absolute;
	inset: 11%;
	border-radius: 50%;
	border: 1px solid var(--yrp-accent);
}
.yrp__bigring--1 { width: 70vmin; height: 70vmin; left: -24vmin; bottom: -28vmin; }
.yrp__bigring--2 { width: 92vmin; height: 92vmin; right: -36vmin; top: -42vmin; animation-delay: -5s; }

/* Puntos */
.yrp__dots {
	position: absolute;
	width: 200px;
	height: 200px;
	background-image: radial-gradient(circle, var(--yrp-secondary) 1.6px, transparent 2.3px);
	background-size: 15px 15px;
	-webkit-mask-image: linear-gradient(225deg, #000 10%, transparent 80%);
	mask-image: linear-gradient(225deg, #000 10%, transparent 80%);
	opacity: calc(.7 * var(--yrp-shape-opacity));
	animation: yrp-dots calc(14s * var(--yrp-speed)) ease-in-out infinite alternate;
}
.yrp__dots--a { left: 4%; top: 10%; scale: -1 1; }
.yrp__dots--b { right: 5%; bottom: 8%; scale: 1 -1; animation-delay: -6s; }

/* Triángulos */
.yrp__tri { position: absolute; transform: rotate(var(--r, 0deg)); }
.yrp__tri--line { color: var(--yrp-accent); overflow: visible; }
.yrp__tri--line polygon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}
.yrp__tri--fill {
	aspect-ratio: 1;
	background: linear-gradient(135deg, var(--yrp-accent), var(--yrp-secondary));
	-webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.yrp__bg .yrp__tri { opacity: calc(.55 * var(--yrp-shape-opacity)); animation: yrp-float calc(11s * var(--yrp-speed)) ease-in-out infinite; }
.yrp__tri--bg1 { width: 44px; left: 12%; bottom: 18%; --r: 160deg; }
.yrp__tri--bg2 { width: 52px; right: 12%; top: 14%; --r: -20deg; animation-delay: -4s; }

/* Círculos */
.yrp__orb { position: absolute; border-radius: 50%; }

/* --- Figuras alrededor de la portada --- */
.yrp__shape { opacity: var(--yrp-shape-opacity); }
.yrp__tri--a { left: -15%; top: -8%; width: 15%; --r: -22deg; animation: yrp-float calc(9s * var(--yrp-speed)) ease-in-out infinite; z-index: 1; }
.yrp__tri--b { right: -17%; top: 24%; width: 22%; --r: 8deg; opacity: calc(.85 * var(--yrp-shape-opacity)); animation: yrp-float calc(12s * var(--yrp-speed)) ease-in-out infinite; animation-delay: -3s; z-index: 1; }
.yrp__orb--a {
	left: -10%; bottom: 12%; width: 19%; aspect-ratio: 1; z-index: 3;
	background: linear-gradient(150deg, var(--yrp-secondary), var(--yrp-accent));
	box-shadow: 0 14px 30px -10px rgba(60, 200, 234, .6);
	animation: yrp-float calc(10s * var(--yrp-speed)) ease-in-out infinite;
	animation-delay: -2s;
}
.yrp__orb--b {
	left: -9%; top: 30%; width: 7%; aspect-ratio: 1; z-index: 1;
	border: 2px solid var(--yrp-secondary);
	animation: yrp-float calc(8s * var(--yrp-speed)) ease-in-out infinite;
	animation-delay: -5s;
}
.yrp__dots--c { right: -9%; top: -14%; width: 34%; height: 34%; z-index: 1; background-size: 14px 14px; }

/* Ondas: viven en su propio contenedor, que se desvanece justo antes del texto/reproductor */
.yrp__waves {
	position: absolute;
	left: -70%;
	top: -70%;
	width: 240%;
	height: 240%;
	z-index: 1;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 75%);
	mask-image: linear-gradient(to bottom, #000 68%, transparent 75%);
}
.yrp__ring {
	position: absolute;
	left: 50%; top: 50%;
	border-radius: 50%;
	border: 1px solid var(--yrp-secondary);
	transform: translate(-50%, -50%);
	opacity: calc(.4 * var(--yrp-shape-opacity));
	animation: yrp-breathe calc(10s * var(--yrp-speed)) ease-in-out infinite;
}
.yrp__ring--1 { width: 53.3%; height: 53.3%; }
.yrp__ring--2 { width: 61.7%; height: 61.7%; border-color: var(--yrp-accent); animation-delay: -4s; opacity: calc(.3 * var(--yrp-shape-opacity)); }

.yrp__ripple {
	position: absolute;
	left: 50%; top: 50%;
	width: 46.7%; height: 46.7%;
	border-radius: 50%;
	border: 1.5px solid var(--yrp-secondary);
	transform: translate(-50%, -50%);
	opacity: 0;
	animation: yrp-ripple calc(8s * var(--yrp-speed)) ease-out infinite;
}
.yrp__ripple--2 { animation-delay: calc(-2.7s * var(--yrp-speed)); }
.yrp__ripple--3 { animation-delay: calc(-5.4s * var(--yrp-speed)); }
.yrp.is-playing .yrp__ripple { animation-duration: calc(3.9s * var(--yrp-speed)); border-width: 2px; }
.yrp.is-playing .yrp__ripple--2 { animation-delay: calc(-1.3s * var(--yrp-speed)); }
.yrp.is-playing .yrp__ripple--3 { animation-delay: calc(-2.6s * var(--yrp-speed)); }

/* Sin animación */
.yrp--still .yrp__bg *,
.yrp--still .yrp__deco *,
.yrp--still .yrp__waves *,
.yrp--still .yrp__btn,
.yrp--still .yrp__dot::after { animation: none !important; }
.yrp--still .yrp__ripple { opacity: .25; transform: translate(-50%, -50%) scale(1.3); }

/* ==========================================================================
   ESTILO 2 · SPOTLIGHT (oscuro, dos columnas)
   ========================================================================== */
.yrp--spotlight .yrp__inner {
	flex-direction: row;
	justify-content: center;
	gap: clamp(2.5rem, 8vw, 7rem);
	text-align: left;
}
.yrp--spotlight .yrp__stage { margin-bottom: 0; }
.yrp--spotlight .yrp__panel { flex: 1; max-width: 520px; align-items: flex-start; }
.yrp--spotlight .yrp__title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; }
.yrp--spotlight .yrp__tagline { color: var(--yrp-secondary); opacity: 1; font-weight: 600; }
.yrp--spotlight .yrp__now { justify-content: flex-start; }
.yrp--spotlight .yrp__player { width: 100%; margin-top: 2rem; padding: .85rem 1.1rem .85rem .85rem; border-radius: 24px; }
.yrp--spotlight .yrp__waves {
	-webkit-mask-image: linear-gradient(to right, #000 68%, transparent 75%);
	mask-image: linear-gradient(to right, #000 68%, transparent 75%);
}
.yrp--spotlight .yrp__bigring { opacity: calc(.35 * var(--yrp-shape-opacity)); }
.yrp--spotlight .yrp__blob { opacity: calc(.38 * var(--yrp-shape-opacity)); }

@media (max-width: 900px) {
	.yrp--spotlight .yrp__inner { flex-direction: column; text-align: center; gap: 2.8rem; }
	.yrp--spotlight .yrp__panel { align-items: center; }
	.yrp--spotlight .yrp__now { justify-content: center; }
	.yrp--spotlight .yrp__waves {
		-webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 75%);
		mask-image: linear-gradient(to bottom, #000 68%, transparent 75%);
	}
}

/* ==========================================================================
   ESTILO 3 · APP (aspecto de aplicación móvil)
   ========================================================================== */
.yrp--app { padding-bottom: max(28px, env(safe-area-inset-bottom)); padding-top: max(40px, env(safe-area-inset-top)); }
.yrp--app .yrp__inner { max-width: 460px; align-self: stretch; justify-content: space-between; gap: 1.6rem; }
.yrp--app .yrp__stage { margin-block: auto; }
.yrp--app .yrp__panel {
	padding: 1.5rem 1.25rem 1.25rem;
	border-radius: 34px;
	background: var(--yrp-card);
	border: 1px solid var(--yrp-card-line);
	box-shadow: 0 30px 60px -30px rgba(0, 10, 60, .7);
	-webkit-backdrop-filter: blur(22px) saturate(1.3);
	backdrop-filter: blur(22px) saturate(1.3);
}
.yrp--app .yrp__title { font-size: clamp(1.6rem, 6vw, 2rem); }
.yrp--app .yrp__tagline { font-size: .98rem; }
.yrp--app .yrp__player {
	flex-direction: column;
	gap: 1.1rem;
	margin-top: 1.3rem;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.yrp--app .yrp__btn { --yrp-btn-size: 78px; }
.yrp--app .yrp__info { flex: none; justify-content: center; }
.yrp--app .yrp__vol { align-self: center; }
.yrp--app .yrp__bg .yrp__tri { opacity: calc(.4 * var(--yrp-shape-opacity)); }

/* ==========================================================================
   ESTILO 4 · APP MINIMAL (sin tarjeta, controles flotando sobre el fondo)
   ========================================================================== */
.yrp--appmin {
	--yrp-bg: #0b56d0;
	--yrp-bg2: #03163f;
	--yrp-text: #ffffff;
	--yrp-card: rgba(255, 255, 255, .14);
	--yrp-card-line: rgba(255, 255, 255, .22);
	--yrp-btn-bg: #ffffff;
	--yrp-btn-fg: #0b56d0;
	--yrp-eq: #ffffff;
	--yrp-range: #ffffff;
	padding-top: max(40px, env(safe-area-inset-top));
	padding-bottom: max(34px, env(safe-area-inset-bottom));
	background:
		radial-gradient(720px 480px at 50% 32%, rgba(60, 200, 234, .42), transparent 66%),
		linear-gradient(180deg, var(--yrp-bg) 0%, var(--yrp-bg2) 100%);
}
.yrp--appmin .yrp__inner { max-width: 440px; align-self: stretch; justify-content: space-between; gap: 1.4rem; }
.yrp--appmin .yrp__stage { margin-block: auto; }
.yrp--appmin .yrp__title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }
.yrp--appmin .yrp__tagline { font-size: .98rem; }
.yrp--appmin .yrp__bg .yrp__tri { opacity: calc(.4 * var(--yrp-shape-opacity)); }

/* Controles en una sola fila: volumen · play grande · ecualizador */
.yrp--appmin .yrp__player {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "vol btn eq" "status status status";
	align-items: center;
	justify-items: center;
	gap: 1.1rem 0;
	width: 100%;
	margin-top: 1.6rem;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.yrp--appmin .yrp__info { display: contents; }
.yrp--appmin .yrp__btn { grid-area: btn; --yrp-btn-size: 88px; }
.yrp--appmin.is-playing .yrp__btn { animation: yrp-glow calc(2.4s * var(--yrp-speed)) ease-out infinite; }
.yrp--appmin .yrp__eq { grid-area: eq; height: 26px; gap: 4px; }
.yrp--appmin .yrp__eq i { width: 4px; }
.yrp--appmin .yrp__status { grid-area: status; text-align: center; font-size: .9rem; opacity: .85; }
.yrp--appmin .yrp__vol { grid-area: vol; }
.yrp--appmin .yrp__mute {
	width: 46px;
	height: 46px;
	background: var(--yrp-card);
	border: 1px solid var(--yrp-card-line);
}

/* La barra de volumen sale hacia arriba del icono (solo con mouse) */
.yrp--appmin .yrp__range-wrap {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	width: 140px;
	padding: 14px 16px;
	overflow: visible;
	border-radius: 999px;
	background: var(--yrp-card);
	border: 1px solid var(--yrp-card-line);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 8px) scale(.92);
	transform-origin: bottom center;
}
.yrp--appmin .yrp__range-wrap::after { /* puente para que el mouse no pierda el hover */
	content: "";
	position: absolute;
	left: 0; right: 0; top: 100%;
	height: 14px;
}
.yrp--appmin .yrp__vol:hover .yrp__range-wrap,
.yrp--appmin .yrp__vol.is-open .yrp__range-wrap {
	width: 140px;
	padding: 14px 16px;
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0) scale(1);
}

/* ==========================================================================
   DISTANCIA PERSONALIZADA ENTRE PORTADA Y REPRODUCTOR (--yrp-gap)
   Solo se activa cuando se define el control en Elementor (clase yrp--custom-gap)
   ========================================================================== */
.yrp--custom-gap .yrp__inner { gap: 0; }
.yrp--custom-gap .yrp__stage { margin-bottom: var(--yrp-gap); }
/* En los estilos tipo app el grupo se centra y la distancia es exacta */
.yrp--app.yrp--custom-gap .yrp__inner,
.yrp--appmin.yrp--custom-gap .yrp__inner { justify-content: center; }
.yrp--app.yrp--custom-gap .yrp__stage,
.yrp--appmin.yrp--custom-gap .yrp__stage { margin-block: 0 var(--yrp-gap); }
/* Spotlight en escritorio: la distancia es horizontal */
.yrp--spotlight.yrp--custom-gap .yrp__inner { gap: var(--yrp-gap); }
.yrp--spotlight.yrp--custom-gap .yrp__stage { margin-bottom: 0; }
@media (max-width: 900px) {
	.yrp--spotlight.yrp--custom-gap .yrp__inner { gap: 0; }
	.yrp--spotlight.yrp--custom-gap .yrp__stage { margin-bottom: var(--yrp-gap); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
	.yrp { padding-left: 16px; padding-right: 16px; }
	.yrp__inner { gap: 2rem; }
	.yrp__dots { width: 140px; height: 140px; }
	.yrp__live { font-size: .78rem; }
	.yrp--app { padding-left: 14px; padding-right: 14px; }
	.yrp--app .yrp__panel { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom) * .3); }
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes yrp-float {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
	50% { transform: translate3d(0, -14px, 0) rotate(calc(var(--r, 0deg) + 7deg)); }
}
@keyframes yrp-drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(5vmax, 4vmax, 0) scale(1.12); }
}
@keyframes yrp-dots {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(10px, -8px, 0); }
}
@keyframes yrp-breathe {
	0%, 100% { scale: 1; }
	50% { scale: 1.05; }
}
@keyframes yrp-ripple {
	0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
	14% { opacity: .55; }
	100% { transform: translate(-50%, -50%) scale(1.85); opacity: 0; }
}
@keyframes yrp-live-ring {
	0% { transform: scale(1); opacity: .55; }
	100% { transform: scale(2.7); opacity: 0; }
}
@keyframes yrp-eq {
	0%, 100% { transform: scaleY(.22); }
	50% { transform: scaleY(1); }
}
@keyframes yrp-glow {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5), 0 14px 30px -10px rgba(0, 10, 60, .6); }
	100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0), 0 14px 30px -10px rgba(0, 10, 60, .6); }
}
@keyframes yrp-spin { to { transform: rotate(1turn); } }

/* Menos movimiento: se detiene lo decorativo */
@media (prefers-reduced-motion: reduce) {
	.yrp__bg *,
	.yrp__deco *,
	.yrp__waves *,
	.yrp__btn,
	.yrp__dot::after { animation: none !important; }
	.yrp__cover { transition: none; }
	.yrp__ripple { opacity: .25; transform: translate(-50%, -50%) scale(1.3); }
}
