/* Wrapper */
.ssr-rating {
    display: inline-block;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    
    /* Variables de color */
    --ssr-star-empty: #ccc;
    --ssr-star-filled: #f5d061; /* Dorado */
}

/* Average text */
.ssr-display-text {
    font-size: 16px; /* Un poco más grande ya que es lo único que se ve arriba */
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

/* Stars container general */
.ssr-stars {
    display: inline-block;
    user-select: none;
}

/* Base star style */
.ssr-star {
    font-size: 28px;
    color: var(--ssr-star-empty);
    transition: color 0.1s ease;
    display: inline-block;
    margin-right: 4px;
    line-height: 1;
}

/* ========================================= */
/* BOTTOM RATING STARS (INTERACTIVAS)        */
/* ========================================= */

/* Make hover work left→right using reversed flex */
.ssr-rate .ssr-stars {
    display: inline-flex;
    flex-direction: row-reverse;
}

/* Default empty state */
.ssr-rate .ssr-star {
    color: var(--ssr-bottom-star-color, #ccc) !important;
    cursor: pointer;
    pointer-events: auto !important;
}

/* JS-only persistent fill (if used) */
.ssr-rate .ssr-star.filled {
    color: var(--ssr-bottom-star-filled, #f5d061) !important;
}

/* Estrellas que representan el voto persistente del usuario */
.ssr-rate .ssr-star.selected {
    color: var(--ssr-bottom-star-filled, #f5d061) !important;
}

/* JS hover class */
.ssr-rate .ssr-star.hovered {
    color: #f5d061 !important;
}


/* ========================================= */
/* ESTADO VOTADO (BLOQUEADO)                 */
/* ========================================= */

.ssr-rating.ssr-voted .ssr-rate {
    pointer-events: none !important;
    opacity: 0.6; /* Un poco más transparente para indicar que ya no se puede usar */
}

.ssr-rating.ssr-voted .ssr-rate .ssr-star {
    pointer-events: none !important;
    cursor: default !important;
}

/* Mantener el color dorado SOLO en las seleccionadas al bloquear */
.ssr-rating.ssr-voted .ssr-rate .ssr-star.selected {
    color: var(--ssr-star-filled) !important;
}