/* =============================================================
   RI_VOTOS_V1 — Like / dislike de la audiencia (Radio Impulsa)
   -------------------------------------------------------------
   Referencia visual: sobre la portada, a la derecha, un botón
   oscuro con el corazón azul y, debajo, el círculo rojo con el
   pulgar abajo. Los contadores van pegados a cada botón.
   ============================================================= */

.ri-vote{
  position:absolute;
  right:.55rem;
  top:.55rem;
  z-index:30;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.45rem;
  font-family:inherit;
  line-height:1;
  -webkit-tap-highlight-color:transparent;
}
.ri-vote-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.55rem;
}
.ri-vote-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.65rem;
  height:2.65rem;
  padding:0;
  border:1px solid rgba(255,255,255,.22);
  cursor:pointer;
  color:#fff;
  transition:transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  -webkit-appearance:none;
  appearance:none;
  background-clip:padding-box;
}
.ri-vote-btn svg{
  width:1.32rem;
  height:1.32rem;
  display:block;
  fill:currentColor;
  pointer-events:none;
}
.ri-vote-btn:hover{transform:translateY(-1px)}
.ri-vote-btn:focus-visible{outline:2px solid #7c5cff;outline-offset:2px}
.ri-vote-btn.is-busy{opacity:.55;pointer-events:none}

/* Corazón: cuadrado oscuro translúcido con el corazón azul (como la imagen) */
.ri-vote-like{
  border-radius:.8rem;
  background:rgba(6,26,54,.74);
  color:#4d9cff;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
.ri-vote-like svg{filter:drop-shadow(0 0 7px rgba(77,156,255,.6))}
.ri-vote-like:hover{background:rgba(9,40,82,.86)}
.ri-vote-like.is-on{
  background:linear-gradient(160deg,#2f8bff,#1657c9);
  color:#fff;
  border-color:rgba(255,255,255,.5);
  box-shadow:0 8px 20px rgba(38,124,255,.5);
}
.ri-vote-like.is-on svg{filter:none}

/* Pulgar abajo: círculo rojo (como la imagen) */
.ri-vote-dislike{
  border-radius:50%;
  background:linear-gradient(180deg,#ef3b4d,#c0122a);
  color:#fff;
  border-color:rgba(255,255,255,.38);
  box-shadow:0 7px 16px rgba(192,18,42,.45);
}
.ri-vote-dislike:hover{filter:brightness(1.08)}
.ri-vote-dislike.is-on{
  background:linear-gradient(180deg,#ff5a6b,#e0122f);
  box-shadow:0 0 0 3px rgba(255,90,107,.3),0 8px 20px rgba(224,18,47,.55);
}

/* Contador pegado al botón */
.ri-vote-n{
  position:absolute;
  bottom:-.42rem;
  right:-.45rem;
  min-width:1.15rem;
  height:1.15rem;
  padding:0 .28rem;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#081428;
  border:1px solid rgba(255,255,255,.28);
  color:#e8f1ff;
  font-size:.6rem;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 2px 6px rgba(0,0,0,.45);
  pointer-events:none;
}
.ri-vote-like.is-on .ri-vote-n{background:#0a2a58;border-color:rgba(255,255,255,.55)}
.ri-vote-dislike.is-on .ri-vote-n{background:#7d0518;border-color:rgba(255,255,255,.55)}

.ri-vote-cap{
  font-size:.56rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#dbe9ff;
  background:rgba(6,26,54,.72);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:.2rem .4rem;
  max-width:6.4rem;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Ocultar el bloque de canción cuando no hay canción identificada */
.ri-vote.is-empty .ri-vote-song{display:none}

/* Aviso flotante */
.ri-vote-toast{
  position:fixed;
  left:50%;
  bottom:1.4rem;
  transform:translate(-50%,1.2rem);
  z-index:210;
  max-width:min(92vw,420px);
  padding:.62rem .95rem;
  border-radius:12px;
  background:rgba(8,20,40,.96);
  border:1px solid rgba(120,180,255,.4);
  color:#eaf4ff;
  font-size:.8rem;
  font-weight:600;
  text-align:center;
  line-height:1.35;
  box-shadow:0 14px 34px rgba(0,0,0,.5);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.ri-vote-toast.is-on{opacity:1;transform:translate(-50%,0)}
.ri-vote-toast.is-error{border-color:rgba(255,110,130,.6);color:#ffd9df}

/* ------------------- Voto del programa EN VIVO ------------------- */
/* Se inserta dentro de la tarjeta «¿Te gusta Radio Impulsa?» */
.ri-vote-live{
  margin-top:.55rem;
  padding-top:.55rem;
  border-top:1px solid rgba(255,255,255,.16);
  text-align:center;
}
.ri-vote-live-title{
  margin:0;
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:.82;
}
.ri-vote-live-show{
  margin:.18rem 0 .4rem;
  font-size:.7rem;
  font-weight:800;
  color:#9ecbff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ri-vote-live-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
}
.ri-vote-live .ri-vote-btn{width:2.15rem;height:2.15rem}
.ri-vote-live .ri-vote-btn svg{width:1.05rem;height:1.05rem}
.ri-vote-live .ri-vote-n{font-size:.55rem;bottom:-.35rem;right:-.35rem;min-width:1rem;height:1rem}

/* ------------------- Modal de inicio de sesión ------------------- */
.ri-vote-modal{
  position:fixed;
  inset:0;
  z-index:220;
  display:none;
  place-items:center;
  padding:1rem;
  background:rgba(3,10,22,.74);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
}
.ri-vote-modal.is-open{display:grid}
.ri-vote-modal-card{
  position:relative;
  width:min(92vw,360px);
  background:linear-gradient(160deg,#0a1f3d 0%,#07162c 100%);
  border:1px solid rgba(120,180,255,.32);
  border-radius:16px;
  padding:1.4rem 1.15rem 1.2rem;
  text-align:center;
  color:#eaf4ff;
  box-shadow:0 26px 60px rgba(0,0,0,.6);
}
.ri-vote-modal-card h3{margin:0 0 .35rem;font-size:1.02rem}
.ri-vote-modal-card p{margin:0 0 .9rem;font-size:.8rem;opacity:.85;line-height:1.45}
.ri-vote-modal-close{
  position:absolute;
  top:.5rem;
  right:.5rem;
  width:2rem;
  height:2rem;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:1rem;
  cursor:pointer;
}
#ri-vote-google{display:flex;justify-content:center;min-height:44px}
.ri-vote-modal small{display:block;margin-top:.7rem;font-size:.66rem;opacity:.62}

@media (max-width:991px){
  .ri-vote{right:.45rem;top:.45rem;gap:.35rem}
  .ri-vote-btn{width:2.35rem;height:2.35rem}
  .ri-vote-btn svg{width:1.15rem;height:1.15rem}
  .ri-vote-cap{font-size:.5rem;max-width:5.4rem;padding:.16rem .3rem}
  .ri-vote-n{font-size:.55rem;min-width:1.05rem;height:1.05rem}
}
@media (max-width:420px){
  .ri-vote-btn{width:2.1rem;height:2.1rem}
  .ri-vote-btn svg{width:1.02rem;height:1.02rem}
  .ri-vote-cap{display:none}
}

/* Estructura de los pares de botones */
.ri-vote-pair{display:flex;align-items:center;justify-content:center;gap:.55rem}
#ri-vote .ri-vote-pair{flex-direction:column}
.ri-vote-live .ri-vote-pair{flex-direction:row}

/* =============================================================
   RI_VOTOS_ABAJO_V2 — Voto de la CANCIÓN reubicado
   -------------------------------------------------------------
   Antes: esquina superior derecha, encima de la portada.
   Ahora: centrado en la parte baja de la miniatura, justo ENCIMA
   del cuadro azul «On Air / Radio Impulsa | Online».
   La altura del cuadro azul es variable (nombre + descripción que
   edita el Panel Admin), por eso votos.js mide .player-program y
   publica la variable --ri-vote-bottom.
   ============================================================= */
#ri-vote{
  position:absolute !important;
  top:auto !important;
  right:auto !important;
  left:50% !important;
  bottom:var(--ri-vote-bottom, 5.5rem) !important;
  transform:translateX(-50%) !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.45rem !important;
  width:max-content !important;
  max-width:calc(100% - 1rem) !important;
  z-index:20 !important;
}
#ri-vote .ri-vote-song,
#ri-vote .ri-vote-stack{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:.45rem !important;
}
#ri-vote .ri-vote-pair{flex-direction:row !important;gap:.45rem !important}
#ri-vote .ri-vote-btn{width:2.3rem !important;height:2.3rem !important}
#ri-vote .ri-vote-btn svg{width:1.15rem !important;height:1.15rem !important}
#ri-vote .ri-vote-n{font-size:.55rem !important;min-width:1.05rem !important;height:1.05rem !important;bottom:-.35rem !important;right:-.35rem !important}
#ri-vote .ri-vote-cap{
  max-width:none !important;
  white-space:nowrap !important;
  font-size:.52rem !important;
  padding:.18rem .45rem !important;
}
@media (max-width:991px){
  #ri-vote{bottom:var(--ri-vote-bottom, 4.9rem) !important;gap:.35rem !important}
  #ri-vote .ri-vote-btn{width:2.15rem !important;height:2.15rem !important}
  #ri-vote .ri-vote-btn svg{width:1.05rem !important;height:1.05rem !important}
  #ri-vote .ri-vote-cap{display:none !important}
}
