/* Onda Tagoror – Reproductor en directo */
:root{
  --otp-bg: rgba(8, 30, 34, .94);
  --otp-bg-solid: #081e22;
  --otp-accent: #108299;
  --otp-accent-2: #1fc0d6;
  --otp-live: #ff3b4a;
  --otp-text: #ffffff;
  --otp-muted: rgba(255,255,255,.66);
  --otp-line: rgba(255,255,255,.10);
  --otp-h: 76px;
}
#otp-bar, #otp-bar *{box-sizing:border-box;margin:0;padding:0;font-family:"Arimo","Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;line-height:1.2;letter-spacing:normal;text-transform:none}
#otp-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:2147483000;height:var(--otp-h);
  display:flex;align-items:center;gap:16px;padding:0 20px;
  background:var(--otp-bg);color:var(--otp-text);
  -webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
  border-top:1px solid var(--otp-line);
  box-shadow:0 -8px 30px rgba(0,0,0,.25);
  transform:translateY(0);transition:transform .35s ease;
}
#otp-bar::before{content:"";position:absolute;left:0;right:0;top:-1px;height:2px;
  background:linear-gradient(90deg,transparent,var(--otp-accent-2),var(--otp-accent),transparent);opacity:.0;transition:opacity .4s}
#otp-bar.is-playing::before{opacity:1}
#otp-bar.is-collapsed{transform:translateY(calc(var(--otp-h) - 6px))}

.otp-art{position:relative;flex:0 0 52px;width:52px;height:52px;border-radius:50%;overflow:visible}
.otp-art img{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#0f3d44;display:block;border:2px solid rgba(255,255,255,.15)}
.otp-art::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--otp-accent-2);opacity:0}
#otp-bar.is-playing .otp-art::after{animation:otp-pulse 2s ease-out infinite}
@keyframes otp-pulse{0%{transform:scale(.92);opacity:.8}100%{transform:scale(1.25);opacity:0}}

.otp-play{flex:0 0 52px;width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,var(--otp-accent-2),var(--otp-accent));
  box-shadow:0 6px 18px rgba(16,130,153,.45);transition:transform .15s ease, box-shadow .2s}
.otp-play:hover{transform:scale(1.06);box-shadow:0 8px 24px rgba(31,192,214,.55)}
.otp-play:active{transform:scale(.96)}
.otp-play:focus-visible,.otp-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.otp-play svg{width:24px;height:24px;fill:currentColor}
.otp-play .i-pause,.otp-play .i-load{display:none}
#otp-bar.is-playing .otp-play .i-play{display:none}
#otp-bar.is-playing .otp-play .i-pause{display:block}
#otp-bar.is-loading .otp-play .i-play,#otp-bar.is-loading .otp-play .i-pause{display:none}
#otp-bar.is-loading .otp-play .i-load{display:block;animation:otp-spin 1s linear infinite}
@keyframes otp-spin{to{transform:rotate(360deg)}}

.otp-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px}
.otp-top{display:flex;align-items:center;gap:10px;min-width:0}
.otp-live{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
  font-size:10.5px;font-weight:700;letter-spacing:.08em;padding:3px 8px;border-radius:999px;
  background:rgba(255,59,74,.14);color:#ff6b77;border:1px solid rgba(255,59,74,.35)}
.otp-live i{width:7px;height:7px;border-radius:50%;background:var(--otp-live);display:block}
#otp-bar.is-playing .otp-live i{animation:otp-blink 1.2s ease-in-out infinite}
@keyframes otp-blink{50%{opacity:.25}}
.otp-station{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#otp-bar .otp-station small{font-weight:400;color:var(--otp-muted);font-size:13px;margin-left:8px}
.otp-song{position:relative;overflow:hidden;white-space:nowrap;font-size:13px;color:var(--otp-muted);
  -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.otp-song span{display:inline-block;padding-right:40px}
.otp-song.is-marquee span{animation:otp-marquee var(--otp-dur,14s) linear infinite}
@keyframes otp-marquee{0%,12%{transform:translateX(0)}100%{transform:translateX(var(--otp-shift,-50%))}}
.otp-song b{color:#fff;font-weight:600}

.otp-eq{display:flex;align-items:flex-end;gap:3px;height:22px;flex:0 0 auto}
.otp-eq i{display:block;width:4px;height:4px;border-radius:2px;background:var(--otp-accent-2);opacity:.5}
#otp-bar.is-playing .otp-eq i{opacity:1;animation:otp-eq 1s ease-in-out infinite}
.otp-eq i:nth-child(2){animation-delay:-.3s!important}
.otp-eq i:nth-child(3){animation-delay:-.6s!important}
.otp-eq i:nth-child(4){animation-delay:-.15s!important}
.otp-eq i:nth-child(5){animation-delay:-.45s!important}
@keyframes otp-eq{0%,100%{height:4px}50%{height:22px}}

.otp-side{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.otp-btn{width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;background:transparent;color:#fff;
  display:grid;place-items:center;opacity:.85;transition:background .2s,opacity .2s}
.otp-btn:hover{background:rgba(255,255,255,.1);opacity:1}
.otp-btn svg{width:20px;height:20px;fill:currentColor}
.otp-vol{display:flex;align-items:center;gap:4px}
.otp-vol input[type=range]{-webkit-appearance:none;appearance:none;width:100px;height:4px;border-radius:4px;cursor:pointer;
  background:linear-gradient(90deg,var(--otp-accent-2) var(--otp-v,80%),rgba(255,255,255,.2) var(--otp-v,80%));border:0;outline:none}
.otp-vol input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:0;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.otp-vol input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:0}
.otp-btn .i-muted{display:none}
#otp-bar.is-muted .otp-btn .i-vol{display:none}
#otp-bar.is-muted .otp-btn .i-muted{display:block}
.otp-listeners{font-size:12px;color:var(--otp-muted);white-space:nowrap;display:flex;align-items:center;gap:5px}
.otp-listeners svg{width:15px;height:15px;fill:currentColor}
.otp-toggle{position:absolute;right:14px;top:-22px;height:22px;width:44px;border:0;border-radius:10px 10px 0 0;cursor:pointer;
  background:var(--otp-bg-solid);color:#fff;display:grid;place-items:center;border:1px solid var(--otp-line);border-bottom:0}
.otp-toggle svg{width:16px;height:16px;fill:currentColor;transition:transform .3s}
#otp-bar.is-collapsed .otp-toggle svg{transform:rotate(180deg)}
.otp-msg{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);background:#fff;color:#0b2a30;
  font-size:13px;padding:8px 14px;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.25);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .3s}
.otp-msg.show{opacity:1}

#otp-bar a.otp-app{width:auto;border-radius:999px;padding:0 12px 0 9px;gap:5px;display:inline-flex;align-items:center;text-decoration:none;color:#fff;
  font-size:13px;font-weight:700;border:1px solid rgba(255,255,255,.22);height:34px}
#otp-bar a.otp-app svg{width:17px;height:17px}
body.otp-popup a.otp-app{display:none!important}

/* Espacio para que la barra no tape el pie de la web */
body.otp-has-bar{padding-bottom:var(--otp-h)!important}

/* Modo continuo: la web se muestra dentro del marco y la barra queda fuera */
html.otp-shell, html.otp-shell body{height:100%;overflow:hidden!important;margin:0!important;padding:0!important}
html.otp-shell body > *:not(#otp-bar):not(#otp-frame){display:none!important}
#otp-frame{position:fixed;top:0;left:0;width:100%;height:calc(100% - var(--otp-h));border:0;z-index:2147482000;background:#fff;display:block}
html.otp-shell #otp-bar.is-collapsed ~ #otp-frame, html.otp-shell.otp-collapsed #otp-frame{height:calc(100% - 6px)}

/* Botón que sustituye al reproductor antiguo */
.otp-inline{display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:999px;border:0;cursor:pointer;
  background:linear-gradient(145deg,#1fc0d6,#108299);color:#fff!important;font:700 14px/1 "Arimo",system-ui,sans-serif;
  box-shadow:0 6px 18px rgba(16,130,153,.35);text-decoration:none!important}
.otp-inline .dot{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center}
.otp-inline svg{width:16px;height:16px;fill:#fff}
.otp-inline .i-pause{display:none}
.otp-inline.is-playing .i-play{display:none}
.otp-inline.is-playing .i-pause{display:block}

/* Móvil */
@media (max-width: 760px){
  :root{--otp-h:68px}
  #otp-bar{gap:10px;padding:0 10px}
  .otp-art,.otp-vol input,.otp-listeners,.otp-eq{display:none}
  .otp-play{flex-basis:46px;width:46px;height:46px}
  .otp-station{font-size:14px}
  #otp-bar .otp-station small{display:none}
  .otp-live{font-size:9.5px;padding:2px 6px}
}
@media (prefers-reduced-motion: reduce){
  #otp-bar *{animation:none!important}
}

/* Ventana emergente */
body.otp-popup{margin:0;min-height:100vh;display:grid;place-items:center;
  background:radial-gradient(circle at 30% 20%,#108299 0%,#0b3c44 45%,#061417 100%);color:#fff;font-family:"Arimo",system-ui,sans-serif}
.otp-pop{width:100%;max-width:380px;padding:28px 24px;text-align:center}
.otp-pop .logo{width:70%;max-width:240px;height:auto;margin:0 auto 18px;display:block}
body.otp-popup #otp-bar{position:relative;height:auto;flex-direction:column;gap:18px;padding:26px 20px 22px;border-radius:22px;border:1px solid var(--otp-line);bottom:auto}
body.otp-popup .otp-toggle,body.otp-popup [data-otp=popup]{display:none}
body.otp-popup .otp-art{display:none}
body.otp-popup .otp-play{width:78px;height:78px;flex-basis:78px}
body.otp-popup .otp-play svg{width:34px;height:34px}
body.otp-popup .otp-info{align-items:center;width:100%}
body.otp-popup .otp-top{justify-content:center}
body.otp-popup .otp-song{text-align:center;width:100%;-webkit-mask-image:none;mask-image:none}
body.otp-popup .otp-vol input{display:block}
body.otp-popup .otp-eq{display:flex}

/* Recuadro «Descarga la app» en la portada */
.otp-home-app{display:flex;align-items:center;gap:18px;margin:14px 0 18px;padding:16px 20px;border-radius:16px;color:#fff;
  background:linear-gradient(120deg,#0b3c44 0%,#108299 70%,#1fc0d6 100%);box-shadow:0 10px 28px rgba(11,60,68,.25);font-family:"Arimo",system-ui,sans-serif;clear:both}
.otp-home-app .otp-ha-icon{width:64px;height:64px;border-radius:16px;flex:0 0 auto;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.2);object-fit:cover}
.otp-home-app .otp-ha-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;line-height:1.3}
.otp-home-app .otp-ha-txt strong{font-size:20px;font-weight:700;color:#fff}
.otp-home-app .otp-ha-txt span{font-size:14.5px;color:rgba(255,255,255,.85)}
.otp-home-app .otp-ha-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border-radius:999px;background:#fff;color:#0b3c44!important;
  font-weight:700;font-size:15px;text-decoration:none!important;box-shadow:0 6px 16px rgba(0,0,0,.2);transition:transform .15s}
.otp-home-app .otp-ha-btn:hover{transform:translateY(-2px)}
.otp-home-app .otp-ha-btn svg{width:18px;height:18px;fill:#108299}
@media (max-width:640px){
  .otp-home-app{flex-wrap:wrap;gap:12px;padding:14px 16px;margin:10px 0 14px}
  .otp-home-app .otp-ha-icon{width:52px;height:52px;border-radius:13px}
  .otp-home-app .otp-ha-txt strong{font-size:17px}
  .otp-home-app .otp-ha-txt span{font-size:13.5px}
  .otp-home-app .otp-ha-btn{width:100%;justify-content:center}
}
