.ssr-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ssr-rating .ssr-star {
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ssr-rating .ssr-star.full {
    color: #f7b731;
}

/* Fraction stars overlay */
.ssr-rating .ssr-star.quarter::before,
.ssr-rating .ssr-star.half::before,
.ssr-rating .ssr-star.three-quarter::before {
    content: '\2605';
    color: #f7b731;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Width controls the fraction fill */
.ssr-rating .ssr-star.quarter::before {
    width: 25%;
    height: 100%;
}

.ssr-rating .ssr-star.half::before {
    width: 50%;
    height: 100%;
}

.ssr-rating .ssr-star.three-quarter::before {
    width: 75%;
    height: 100%;
}

/* Hover effect */
.ssr-rating .ssr-star.hovered,
.ssr-rating .ssr-star.hovered::before {
    color: #ff7675 !important;
}

.ssr-rating.animate {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ssr-average {
    margin-left: 2px;
    color: #333;
}
