/*------  RANKINGS -----*/
/* CONTENEDOR */
.dps-ranking{max-width:760px;margin:0 auto;margin-top:30px; max-height: 450px;   overflow: auto; padding-top: 20px; padding-bottom:5px;}
.dps-ranking ol{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;}
/* BASE TARJETAS */
.dps-ranking li{width:85%;text-align:center;padding:14px 18px;border-radius:14px;background:#ffffff;border:1px solid rgba(0,0,0,.08);box-shadow:0 6px 18px rgba(0,0,0,.06);position:relative;transition:all .25s ease;}
/* Ocultar votos */
.dps-ranking .votos-ranking{display:none;}
/* Nombre + estrellas en línea */
.dps-ranking .nombre-ranking{font-weight:700;margin-right:8px;}
.dps-ranking .estrellas-ranking{letter-spacing:2px;}
/* Medallas */
.dps-ranking li::before{position:absolute;top:-12px;left:18px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:.75rem;font-weight:700;color:#fff;}
/* PRIMERO */
.dps-ranking li:nth-child(1){width:95%;padding:18px 20px;border:2px solid #D4AF37;box-shadow:0 10px 22px rgba(212,175,55,.18);}
.dps-ranking li:nth-child(1)::before{content:"1r";background:#D4AF37;}
.dps-ranking li:nth-child(1) .nombre-ranking{font-size:1.25rem;}
/* SEGUNDO */
.dps-ranking li:nth-child(2){width:90%;border:2px solid #C0C0C0;box-shadow:0 8px 18px rgba(192,192,192,.18);}
.dps-ranking li:nth-child(2)::before{content:"2n";background:#C0C0C0;}
.dps-ranking li:nth-child(2) .nombre-ranking{font-size:1.15rem;}
/* TERCERO */
.dps-ranking li:nth-child(3){width:88%;border:2px solid #CD7F32;box-shadow:0 6px 16px rgba(205,127,50,.18);}
.dps-ranking li:nth-child(3)::before{content:"3r";background:#CD7F32;}
.dps-ranking li:nth-child(3) .nombre-ranking{font-size:1.08rem;}
/* RESTO */
.dps-ranking li:nth-child(n+4){width:85%;}
.dps-ranking li:nth-child(n+4) .nombre-ranking{font-size:1rem;}
/*----- FIN  RANKING ----*/
/*----  VOTACIONES -----*/
/* CARD CONTENEDOR */
.dps-vote{margin:0 auto !important;width:min(560px, 100%);padding:24px 22px 20px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.06);}
/* TÍTULO */
.dps-vote > div[style*="font-weight:700"]{text-align:center;font-size:18px;margin:8px 0 16px !important;letter-spacing:.3px;}
/* MENSAJE */
.dps-message{border-radius:14px !important;box-shadow:0 6px 16px rgba(0,0,0,.06);margin-bottom:10px; text-align:center; font-weight:500;}
/* FORMULARIO */
.dps-form{display:grid;gap:16px !important;}
/* ESTRELLAS + RESET */
.dps-stars{width:100%;display:flex !important;justify-content:center;align-items:center;gap:10px;margin:12px 0 18px;padding:14px 18px;border-radius:12px;background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.06);position:relative;}
/* Radios ocultos pero accesibles */
.dps-stars input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;}
/* Estrellas */
.dps-stars label{cursor:pointer;font-size:32px;line-height:1;color:#d6d6d6;transition:all .15s ease;user-select:none;}
/* Hover */
.dps-stars label:hover,.dps-stars label:hover ~ label{color:#db314e;transform:translateY(-2px) scale(1.08);filter:drop-shadow(0 4px 8px rgba(219,49,78,.25));}
/* Seleccionadas */
.dps-stars input:checked ~ label{color:#db314e;filter:drop-shadow(0 3px 6px rgba(219,49,78,.2));}
/* Focus accesible */
.dps-stars:focus-within{outline:none !important;box-shadow:none !important;}
.dps-stars label.dps-star-reset{font-size:20px !important;}
/* Error seleccionar */
.dps-stars input[type="radio"]{position:absolute;left:50%;transform:translateX(-50%);bottom:0;}
/* INPUTS */
.dps-form input[type="text"],.dps-form input[type="email"]{width:100%;padding:14px 16px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.03);transition:box-shadow .15s ease, border-color .15s ease;}
.dps-form input[type="text"]:focus,.dps-form input[type="email"]:focus{outline:none;border-color:rgba(219,49,78,.55);box-shadow:0 0 0 4px rgba(219,49,78,.15), 0 6px 18px rgba(0,0,0,.06);}
/* PRIVACIDAD */
.dps-form label{display:flex;gap:10px;align-items:center !important;font-size:14px;line-height:1.3;color:rgba(0,0,0,.8);}
.dps-form label span{display:flex;align-items:center;}
.dps-form input[type="checkbox"]{margin:0;width:18px;height:18px;accent-color:#db314e;}
.dps-form label a{line-height:1.3;transition:color .15s ease;}
.dps-form label a:hover{color:#db314e !important;}
/* BOTÓN */
.dps-form button,.dps-form button[type="submit"]{width:100%;padding:14px 18px !important;border-radius:16px !important;font-weight:700;letter-spacing:.3px;box-shadow:0 10px 22px rgba(0,0,0,.18);transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;background:#db314e !important;color:#fff !important;border:none;}
.dps-form button:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(0,0,0,.22);}
.dps-form button:active{transform:translateY(0);opacity:.95;}
/* RESPONSIVE */
@media (max-width:767px){.votacions-container{margin-top:0px !important;}}
@media (max-width:480px){.dps-vote{padding:20px 16px;border-radius:16px;} .dps-stars label{font-size:28px;}}
/*---- Fin Votaciones ---*/

.dps-stars{display:inline-flex;gap:10px;align-items:center;position:relative;}
.dps-stars-wrap{display:inline-flex;gap:6px;direction:rtl;unicode-bidi:bidi-override;align-items:center;}
.dps-stars input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;}
.dps-stars-wrap label{cursor:pointer;font-size:26px;line-height:1;color:#cfcfcf;user-select:none;}
.dps-stars-wrap label:hover,
.dps-stars-wrap label:hover ~ label{color:#f5b301;}
.dps-stars-wrap input:checked ~ label{color:#f5b301;}
.dps-stars:focus-within{outline:2px solid rgba(0,0,0,.25);outline-offset:4px;border-radius:12px;}

/* Proxy anchored inside the stars block so the native tooltip appears there */
.dps-rating-proxy{
  position:absolute;
  left:8px;
  top:8px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
/*LOADER*/
.dps-submit-btn{position:relative;display:inline-flex;justify-content:center;align-items:center;gap:10px;}
.dps-submit-btn.is-loading{opacity:.9;cursor:not-allowed;}
.dps-spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:dpsspin .8s linear infinite;}
@keyframes dpsspin{to{transform:rotate(360deg);}}