/* La Hilandería · Radio Latina en vivo */
.hrl-barra, .hrl-tarjeta, .hrl-zocalo, .hrl-mini, .hrl-tv, .hrl-modal { --hrl-naranja: #FA6000; --hrl-rojo: #D90429; --hrl-f: var(--hrl-fondo, #0A1F3C); font-family: var(--lb-sans, var(--sans, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif)); box-sizing: border-box; }
.hrl-barra *, .hrl-tarjeta *, .hrl-zocalo *, .hrl-mini *, .hrl-tv *, .hrl-modal * { box-sizing: border-box; }
.hrl-barra button, .hrl-tarjeta button, .hrl-zocalo button, .hrl-mini button, .hrl-tv button, .hrl-modal button { font-family: inherit; cursor: pointer; }

.hrl-vivo { display: inline-flex; align-items: center; gap: 6px; background: var(--hrl-rojo); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.hrl-vivo--chico { background: none; padding: 0; font-size: 11px; }
.hrl-punto { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; animation: hrl-late 1.6s ease-in-out infinite; }
.hrl-vivo--chico .hrl-punto, .hrl-ahora .hrl-punto { background: #FF3B4E; }
@keyframes hrl-late { 50% { opacity: .35; } }

.hrl-play { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: 0; background: var(--hrl-naranja); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .15s; }
.hrl-play:hover { transform: scale(1.06); }
.hrl-play:focus-visible, .hrl-tvbtn:focus-visible, .hrl-mini__tv:focus-visible, .hrl-tv__play:focus-visible, .hrl-modal__cerrar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hrl-i-pause { display: none; }
.hrl-sonando .hrl-play .hrl-i-play { display: none; }
.hrl-sonando .hrl-play .hrl-i-pause { display: block; }

/* Franja (compu) */
.hrl-barra { display: none; background: var(--hrl-f); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.hrl-on .hrl-barra { display: block; }
.hrl-barra__in { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 18px; }
.hrl-logo { display: block; flex: 0 0 auto; line-height: 0; }
.hrl-logo img { height: 40px; width: auto; display: block; }
.hrl-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.hrl-txt strong { font-size: 16px; font-weight: 700; color: #fff; }
.hrl-sub { font-size: 13px; color: #D6DCE4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrl-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.hrl-eq i { width: 4px; height: 8px; border-radius: 2px; background: var(--hrl-naranja); opacity: .55; }
.hrl-sonando .hrl-eq i { opacity: 1; animation: hrl-eq .9s ease-in-out infinite alternate; }
.hrl-eq i:nth-child(2) { animation-delay: -.3s; } .hrl-eq i:nth-child(3) { animation-delay: -.6s; } .hrl-eq i:nth-child(4) { animation-delay: -.15s; } .hrl-eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes hrl-eq { from { height: 6px; } to { height: 22px; } }
.hrl-tvbtn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; font-size: 14px; font-weight: 700; padding: 12px 16px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; white-space: nowrap; }
.hrl-tvbtn:hover { background: rgba(255,255,255,.1); }

/* Reproductor fijo (celular) */
.hrl-mini { display: none; }
@media (max-width: 720px) {
	html body > div#hrl-barra#hrl-barra { display: none !important; }
	html body.hrl-on > div#hrl-mini#hrl-mini#hrl-mini { display: flex !important; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 9995; align-items: center; gap: 10px; padding: 8px 10px; background: var(--hrl-f); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
	body.hrl-on { padding-bottom: 84px; }
	.hrl-mini img { height: 28px; width: auto; display: block; flex: 0 0 auto; }
	.hrl-mini__txt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; color: #fff; }
	.hrl-mini__txt .hrl-sub { font-size: 12px; }
	.hrl-mini__txt .hrl-vivo--chico { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
	.hrl-mini__txt .hrl-vivo--chico .hrl-punto { margin-right: 6px; vertical-align: 1px; }
	.hrl-mini__tv { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
	.hrl-modal-abierto #hrl-mini { visibility: hidden; }
}

/* Latina TV */
.hrl-tv__cab { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hrl-tv__cab img { height: 26px; width: auto; display: block; }
.hrl-tv__cab strong { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: #fff; }
.hrl-ahora { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; }
.hrl-tv__pantalla { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #14141A; border-radius: 10px; overflow: hidden; }
.hrl-tv__pantalla video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.hrl-tv__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; }
.hrl-tv__circ { width: 76px; height: 76px; border-radius: 50%; background: var(--hrl-naranja); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.hrl-tv__play:hover .hrl-tv__circ { transform: scale(1.06); }
.hrl-tv__error { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #D6DCE4; font-size: 14px; }
.hrl-tv__error[hidden], .hrl-tv [hidden] { display: none !important; }
.hrl-tv__nota { margin: 10px 0 0; font-size: 12px; color: #C3CBD6; }

.hrl-tv--home { background: var(--hrl-f); color: #fff; border-radius: 18px; padding: 24px 28px; margin: 32px 0; }
.hrl-tv--home .hrl-tv__pantalla { max-width: 880px; margin: 0 auto; }
.hrl-tv--home .hrl-tv__cab, .hrl-tv--home .hrl-tv__nota { max-width: 880px; margin-left: auto; margin-right: auto; }
.hrl-tv--home .hrl-tv__nota { margin-top: 10px; }

/* Ventana */
.hrl-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hrl-modal[hidden] { display: none; }
.hrl-modal__fondo { position: absolute; inset: 0; background: rgba(5, 12, 24, .78); }
.hrl-modal__caja { position: relative; width: min(920px, 100%); background: var(--hrl-f); border-radius: 16px; padding: 20px; color: #fff; }
.hrl-modal__cerrar { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2; }
.hrl-modal .hrl-tv__cab { padding-right: 48px; }
body.hrl-modal-abierto { overflow: hidden; }

@media (max-width: 1023px) { .hrl-eq { display: none; } }
@media (max-width: 880px) { .hrl-sub { display: none; } .hrl-mini .hrl-sub { display: block; } }
@media (prefers-reduced-motion: reduce) { .hrl-punto, .hrl-sonando .hrl-eq i { animation: none; } }

/* Tarjeta (medios sin cabecera, como leído) */
.hrl-tarjeta { display: flex; flex-direction: column; gap: 6px; background: var(--hrl-f); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px; }
.hrl-tarjeta__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hrl-tarjeta__top .hrl-logo img { height: 24px; }
.hrl-tarjeta .hrl-vivo { font-size: 10px; padding: 4px 8px; }
.hrl-tarjeta__nom { font-size: 17px; font-weight: 800; color: #fff; margin-top: 4px; }
.hrl-tarjeta .hrl-sub { white-space: normal; }
.hrl-tarjeta__btns { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hrl-tarjeta .hrl-play { width: 44px; height: 44px; flex-basis: 44px; }
.hrl-tarjeta .hrl-tvbtn { padding: 10px 12px; font-size: 13px; }
.hrl-sonando .hrl-extra { color: var(--hrl-naranja, #FA6000) !important; }

/* Zócalo de la radio del medio (compu, al bajar por la página) */
.hrl-zocalo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9994; display: flex; justify-content: center; padding: 0 12px 12px; pointer-events: none; }
.hrl-zocalo[hidden] { display: none; }
.hrl-zocalo__in { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; background: var(--hrl-f); color: #fff; border-radius: 999px; box-shadow: 0 6px 22px rgba(0,0,0,.28); font-size: 13px; animation: hrl-sube .35s ease-out; }
@keyframes hrl-sube { from { transform: translateY(16px); opacity: 0; } }
.hrl-zocalo__ondas { color: var(--hrl-naranja); display: inline-flex; }
.hrl-zocalo__nom { font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.hrl-zocalo__sep { width: 1px; height: 18px; background: rgba(255,255,255,.25); }
.hrl-zocalo__con { color: #D6DCE4; white-space: nowrap; }
.hrl-zocalo img { height: 20px; width: auto; display: block; }
.hrl-zocalo__frec { font-weight: 700; color: #fff; }
.hrl-zocalo__play { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: var(--hrl-naranja); color: #fff; font-size: 13px; font-weight: 700; margin-left: 4px; }
.hrl-zocalo__play svg { width: 14px; height: 14px; }
.hrl-zocalo__txt-pausa, .hrl-sonando .hrl-zocalo__txt-play { display: none; }
.hrl-sonando .hrl-zocalo__txt-pausa { display: inline; }
.hrl-zocalo__cerrar { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #C3CBD6; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.hrl-zocalo__cerrar:hover { background: rgba(255,255,255,.1); color: #fff; }
.hrl-zocalo__play:focus-visible, .hrl-zocalo__cerrar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 720px) { html body > div#hrl-zocalo#hrl-zocalo { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hrl-zocalo__in { animation: none; } }
