/* =========================================================
   BASE
   ========================================================= */
.rp-player{
  --rp-bar:#0d0d0d;
  --rp-btn:#f36c21;
  --rp-accent:#f36c21;
  --rp-text:#ffffff;
  --rp-ink:#111111;
  --rp-icon:#ffffff;
  --rp-track:rgba(255,255,255,.30);
  --rp-line:rgba(255,255,255,.18);
  box-sizing:border-box;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.rp-player *{box-sizing:border-box;}
.rp-player .rp-logo{display:block;object-fit:cover;}

.rp-player .rp-icon{width:22px;height:22px;fill:currentColor;display:block;flex:0 0 auto;}
.rp-player .rp-icon--pause{display:none;}
.rp-player .rp-icon--zero{display:none;}
.rp-player.is-playing .rp-icon--play{display:none;}
.rp-player.is-playing .rp-icon--pause{display:block;}
.rp-player.is-zero .rp-icon--mute{display:none;}
.rp-player.is-zero .rp-icon--zero{display:block;}

.rp-player .rp-btn{
  border:0;background:transparent;padding:0;margin:0;
  cursor:pointer;color:inherit;font:inherit;
  display:inline-flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent;
}
.rp-player .rp-btn:focus-visible{outline:2px solid var(--rp-accent);outline-offset:2px;}

/* =========================================================
   BARRA FIXA E VERSÃO INLINE
   ========================================================= */
.rp-bar{
  position:fixed;left:0;right:0;bottom:0;
  z-index:999999;
}
body.rp-has-bar{padding-bottom:var(--rp-bar-h,68px);}

.rp-player.rp-player--bar,
.rp-player.rp-player--inline{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-height:66px;
  padding-left:18px;
  padding-right:0;
  background:var(--rp-bar,#0d0d0d);
  color:var(--rp-text,#fff);
  border-top:1px solid var(--rp-line,rgba(255,255,255,.18));
}
.rp-player.rp-player--bar{
  padding-bottom:env(safe-area-inset-bottom,0px);
  box-shadow:0 -8px 28px rgba(0,0,0,.28);
}
.rp-player.rp-player--inline{
  border-radius:14px;
  border:1px solid var(--rp-line,rgba(255,255,255,.18));
  box-shadow:0 6px 22px rgba(0,0,0,.14);
}
.rp-player.rp-player--inline .rp-playblock{border-radius:0 13px 13px 0;}

/* ---- marca ---- */
.rp-player .rp-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0;}
.rp-player .rp-brand .rp-logo{width:34px;height:34px;border-radius:8px;}
.rp-player .rp-brand-name{
  font-size:17px;font-weight:800;letter-spacing:.10em;text-transform:uppercase;
  white-space:nowrap;
}
.rp-player .rp-logo--placeholder{
  width:34px;height:34px;border-radius:8px;
  background:var(--rp-btn,#f36c21);opacity:.35;
}

/* ---- divisor ---- */
.rp-player .rp-divider{
  flex:0 0 auto;width:1px;height:26px;
  background:var(--rp-line,rgba(255,255,255,.18));
}

/* ---- programa e horário ---- */
.rp-player .rp-air{
  display:flex;align-items:baseline;gap:10px;
  flex:1 1 auto;min-width:0;
  overflow:hidden;
}
.rp-player .rp-prog{
  font-size:14px;font-weight:600;line-height:1.2;
  flex:0 1 auto;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:280px;
}
.rp-player .rp-slot{
  font-size:12.5px;font-weight:600;line-height:1.2;
  flex:0 0 auto;
  color:var(--rp-accent,#f36c21);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.rp-player .rp-grow{flex:0 1 auto;min-width:6px;}

/* =========================================================
   VOLUME NA BARRA: BOTÃO + POPOVER VERTICAL
   ========================================================= */
.rp-player .rp-volume--pop{position:relative;flex:0 0 auto;display:flex;}

.rp-player .rp-volume--pop .rp-btn--mute{
  width:32px;height:32px;border-radius:8px;
  color:var(--rp-icon,#fff);
  opacity:.85;
  transition:opacity .15s ease,background .15s ease;
}
.rp-player .rp-volume--pop .rp-btn--mute:hover{opacity:1;background:var(--rp-line,rgba(255,255,255,.18));}
.rp-player.vol-open .rp-volume--pop .rp-btn--mute{
  opacity:1;background:var(--rp-line,rgba(255,255,255,.18));
}
.rp-player .rp-volume--pop .rp-btn--mute .rp-icon{width:20px;height:20px;}

.rp-player .rp-vol-pop{
  position:absolute;
  right:-6px;
  bottom:calc(100% + 10px);
  width:54px;
  padding:10px 0 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:var(--rp-bar,#0d0d0d);
  border:1px solid var(--rp-line,rgba(255,255,255,.18));
  border-radius:14px;
  box-shadow:0 14px 36px rgba(0,0,0,.42);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px) scale(.96);
  transform-origin:bottom right;
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
  z-index:5;
}
.rp-player.vol-open .rp-vol-pop{opacity:1;visibility:visible;transform:none;}

.rp-player .rp-vol-val{
  font-size:10.5px;font-weight:700;line-height:1;
  color:var(--rp-accent,#f36c21);
  font-variant-numeric:tabular-nums;
  user-select:none;
}

/* ---- slider vertical ---- */
.rp-player .rp-vslider{
  position:relative;
  width:26px;
  height:104px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rp-player .rp-vslider input{
  position:absolute;
  width:104px;
  height:26px;
  margin:0;padding:0;
  -webkit-appearance:none;appearance:none;
  background:transparent;
  transform:rotate(-90deg);
  cursor:pointer;
  touch-action:none;
}
.rp-player .rp-vslider input::-webkit-slider-runnable-track{
  height:4px;border-radius:4px;
  background:linear-gradient(
    to right,
    var(--rp-text,#fff) 0%,
    var(--rp-text,#fff) var(--rp-fill,70%),
    var(--rp-track,rgba(255,255,255,.30)) var(--rp-fill,70%),
    var(--rp-track,rgba(255,255,255,.30)) 100%
  );
}
.rp-player .rp-vslider input::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:15px;height:15px;border-radius:50%;
  background:var(--rp-text,#fff);
  border:0;cursor:pointer;
  margin-top:-5.5px;
  box-shadow:0 0 0 1px rgba(0,0,0,.18);
}
.rp-player .rp-vslider input::-moz-range-track{
  height:4px;border-radius:4px;
  background:var(--rp-track,rgba(255,255,255,.30));
}
.rp-player .rp-vslider input::-moz-range-progress{
  height:4px;border-radius:4px;
  background:var(--rp-text,#fff);
}
.rp-player .rp-vslider input::-moz-range-thumb{
  width:15px;height:15px;border-radius:50%;
  background:var(--rp-text,#fff);
  border:0;cursor:pointer;
}
.rp-player .rp-vslider input:focus-visible{outline:2px solid var(--rp-accent);outline-offset:6px;}

/* =========================================================
   VOLUME NO CARTÃO DO POPUP
   ========================================================= */
.rp-player .rp-volume--inline{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;}
.rp-player .rp-volume--inline .rp-btn--mute{
  width:26px;height:26px;flex:0 0 auto;
  color:var(--rp-icon,#fff);
  opacity:.85;
}
.rp-player .rp-volume--inline .rp-btn--mute:hover{opacity:1;}
.rp-player .rp-volume--inline .rp-btn--mute .rp-icon{width:20px;height:20px;}

.rp-player .rp-range{
  -webkit-appearance:none;appearance:none;
  flex:1 1 auto;min-width:60px;width:100%;height:20px;
  background:transparent;
  cursor:pointer;margin:0;
  touch-action:none;
}
.rp-player .rp-range::-webkit-slider-runnable-track{
  height:3px;border-radius:3px;
  background:var(--rp-track,rgba(255,255,255,.30));
}
.rp-player .rp-range::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:13px;height:13px;border-radius:50%;
  background:var(--rp-text,#fff);
  border:0;cursor:pointer;
  margin-top:-5px;
  box-shadow:0 0 0 1px rgba(0,0,0,.18);
}
.rp-player .rp-range::-moz-range-track{
  height:3px;border-radius:3px;
  background:var(--rp-track,rgba(255,255,255,.30));
}
.rp-player .rp-range::-moz-range-thumb{
  width:13px;height:13px;border-radius:50%;
  background:var(--rp-text,#fff);
  border:0;cursor:pointer;
}
.rp-player .rp-range:focus-visible{outline:2px solid var(--rp-accent);outline-offset:4px;}

/* ---- botão principal (play e pause) ---- */
.rp-player .rp-playblock{
  flex:0 0 auto;
  align-self:stretch;
  width:84px;
  min-height:66px;
  background-color:var(--rp-btn,#f36c21);
  color:var(--rp-ink,#111);
  border-radius:0;
  transition:filter .16s ease,transform .12s ease;
}
.rp-player .rp-playblock:hover{filter:brightness(1.08);}
.rp-player .rp-playblock:active{transform:scale(.97);}
.rp-player .rp-playblock:focus-visible{outline:2px solid var(--rp-text,#fff);outline-offset:-4px;}
.rp-player .rp-playblock .rp-icon{width:24px;height:24px;fill:currentColor;}

.rp-player .rp-status{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;
}

/* =========================================================
   POPUP FLUTUANTE
   ========================================================= */
.rp-player.rp-player--popup{
  position:fixed;
  z-index:999999;
  bottom:calc(20px + env(safe-area-inset-bottom,0px));
  right:20px;
  width:62px;height:62px;
  display:block;
}
.rp-player--popup.rp-pop--bl{right:auto;left:20px;}
.rp-player--popup audio{display:none;}

.rp-player .rp-card{
  position:absolute;
  bottom:calc(100% + 12px);
  right:0;
  width:320px;
  max-width:calc(100vw - 40px);
  padding:14px;
  border-radius:16px;
  background:var(--rp-bar,#0d0d0d);
  color:var(--rp-text,#fff);
  border:1px solid var(--rp-line,rgba(255,255,255,.18));
  box-shadow:0 16px 44px rgba(0,0,0,.32);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px) scale(.94);
  transform-origin:bottom right;
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
.rp-pop--bl .rp-card{right:auto;left:0;transform-origin:bottom left;}
.rp-player--popup.is-open .rp-card{opacity:1;visibility:visible;transform:none;}

.rp-player .rp-card-top{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.rp-player .rp-card-top .rp-logo{width:44px;height:44px;border-radius:10px;}
.rp-player .rp-card-top .rp-logo--placeholder{width:44px;height:44px;}

.rp-player .rp-card-info{display:flex;flex-direction:column;gap:3px;flex:1 1 auto;min-width:0;}
.rp-player .rp-card-info .rp-name{
  font-size:14px;font-weight:700;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rp-player .rp-card-info .rp-air{gap:6px;flex:0 0 auto;}
.rp-player .rp-card-info .rp-prog{
  font-size:12px;font-weight:500;opacity:.85;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;
}
.rp-player .rp-card-info .rp-slot{font-size:11.5px;}

.rp-player .rp-btn--collapse{width:28px;height:28px;border-radius:8px;opacity:.5;flex:0 0 auto;color:var(--rp-icon,#fff);}
.rp-player .rp-btn--collapse:hover{opacity:1;background:var(--rp-line,rgba(255,255,255,.18));}

.rp-player .rp-card-bottom{display:flex;align-items:center;gap:14px;}
.rp-player .rp-card-bottom .rp-btn--toggle{margin-left:auto;}

.rp-player .rp-btn--toggle{
  width:46px;height:46px;flex:0 0 auto;
  border-radius:50%;
  background-color:var(--rp-btn,#f36c21);
  color:var(--rp-ink,#111);
  transition:filter .16s ease,transform .12s ease;
}
.rp-player .rp-btn--toggle:hover{filter:brightness(1.08);}
.rp-player .rp-btn--toggle:active{transform:scale(.95);}
.rp-player .rp-btn--toggle .rp-icon{fill:currentColor;}

/* ---- bolha ---- */
.rp-player .rp-bubble{
  position:relative;
  width:62px;height:62px;
  border:0;padding:0;border-radius:50%;
  cursor:pointer;overflow:visible;
  display:flex;align-items:center;justify-content:center;
  background-color:var(--rp-btn,#f36c21);
  color:var(--rp-ink,#111);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  transition:transform .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.rp-player .rp-bubble:hover{transform:scale(1.05);}
.rp-player .rp-bubble:active{transform:scale(.95);}
.rp-player .rp-bubble:focus-visible{outline:2px solid var(--rp-text,#fff);outline-offset:3px;}
.rp-player .rp-bubble .rp-logo{width:100%;height:100%;border-radius:50%;object-fit:cover;}

.rp-player .rp-bubble-letter{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:26px;font-weight:800;line-height:1;
  color:var(--rp-ink,#111);text-transform:uppercase;user-select:none;
}

.rp-player--popup.is-playing .rp-bubble::after{
  content:"";
  position:absolute;inset:-5px;
  border-radius:50%;
  border:2px solid var(--rp-btn,#f36c21);
  animation:rp-pulse 1.8s ease-out infinite;
  pointer-events:none;
}
@keyframes rp-pulse{
  0%{transform:scale(.85);opacity:.85}
  70%{transform:scale(1.35);opacity:0}
  100%{transform:scale(1.35);opacity:0}
}

/* =========================================================
   INDICADOR DE CARREGAMENTO DO PJAX
   ========================================================= */
html.rp-loading::before{
  content:"";
  position:fixed;top:0;left:0;height:3px;width:100%;
  background:var(--rp-accent,#f36c21);
  z-index:1000000;
  animation:rp-progress 1.2s ease-in-out infinite;
  transform-origin:0 50%;
}
@keyframes rp-progress{
  0%{transform:scaleX(0);opacity:1}
  50%{transform:scaleX(.7);opacity:1}
  100%{transform:scaleX(1);opacity:0}
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width:820px){
  .rp-player.rp-player--bar,
  .rp-player.rp-player--inline{gap:10px;padding-left:12px;min-height:62px;}
  .rp-player .rp-brand{gap:8px;}
  .rp-player .rp-brand-name{font-size:14px;letter-spacing:.06em;}
  .rp-player .rp-brand .rp-logo,
  .rp-player .rp-logo--placeholder{width:30px;height:30px;}
  .rp-player .rp-prog{font-size:13px;max-width:40vw;}
  .rp-player .rp-slot{font-size:12px;}
  .rp-player .rp-playblock{width:70px;min-height:62px;}
  .rp-player .rp-playblock .rp-icon{width:22px;height:22px;}
  body.rp-has-bar{padding-bottom:var(--rp-bar-h,64px);}
}

@media (max-width:620px){
  .rp-player.rp-player--bar,
  .rp-player.rp-player--inline{gap:8px;padding-left:10px;min-height:58px;}

  .rp-player .rp-divider{display:none;}

  .rp-player.rp-player--bar .rp-brand-name,
  .rp-player.rp-player--inline .rp-brand-name{display:none;}

  .rp-player.rp-player--bar .rp-brand--text,
  .rp-player.rp-player--inline .rp-brand--text{display:none;}

  .rp-player .rp-brand{gap:0;}
  .rp-player .rp-brand .rp-logo,
  .rp-player .rp-logo--placeholder{width:28px;height:28px;border-radius:7px;}

  .rp-player .rp-air{gap:6px;}
  .rp-player .rp-prog{font-size:12px;max-width:none;}
  .rp-player .rp-slot{font-size:11px;}
  .rp-player .rp-grow{min-width:4px;}

  .rp-player .rp-volume--pop .rp-btn--mute{width:34px;height:34px;}
  .rp-player .rp-volume--pop .rp-btn--mute .rp-icon{width:21px;height:21px;}

  .rp-player .rp-playblock{width:58px;min-height:58px;}
  .rp-player .rp-playblock .rp-icon{width:20px;height:20px;}

  body.rp-has-bar{padding-bottom:var(--rp-bar-h,60px);}

  .rp-player.rp-player--popup{bottom:calc(16px + env(safe-area-inset-bottom,0px));right:16px;}
  .rp-player--popup.rp-pop--bl{right:auto;left:16px;}
  .rp-player .rp-card{
    width:calc(100vw - 32px);
    max-width:320px;
    padding:12px;
    bottom:calc(100% + 10px);
  }
  .rp-player .rp-card-bottom{gap:10px;}
  .rp-player .rp-btn--toggle{width:42px;height:42px;}
}

@media (max-width:420px){
  .rp-player.rp-player--bar,
  .rp-player.rp-player--inline{gap:6px;padding-left:8px;}
  .rp-player .rp-brand .rp-logo,
  .rp-player .rp-logo--placeholder{width:24px;height:24px;border-radius:6px;}
  .rp-player .rp-prog{font-size:11.5px;}
  .rp-player .rp-slot{font-size:10.5px;}
  .rp-player .rp-playblock{width:52px;}
  .rp-player .rp-playblock .rp-icon{width:18px;height:18px;}

  .rp-player .rp-bubble{width:56px;height:56px;}
  .rp-player .rp-bubble-letter{font-size:22px;}
}

@media (max-width:360px) and (orientation:portrait){
  .rp-player.rp-player--bar,
  .rp-player.rp-player--inline{min-height:56px;}
  .rp-player .rp-playblock{width:48px;min-height:56px;}
  .rp-player .rp-air{gap:4px;}
}