.score-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    position: relative;
    display: inline-block;
    font-size: 0;  /* Remove space between inline-block elements */
}

.stars-active {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
}

.stars-inactive {
    position: relative;
    white-space: nowrap;
}

.stars .bi {
    font-size: 1.25rem; /* Increased from 1rem */
    margin-right: 2px; /* Increased from 1px */
    display: inline-block;
    vertical-align: top;
    line-height: 1;
}

.stars .bi.text-warning {
    color: #ffc000 !important; /* More vibrant gold color */
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); /* Add slight depth */
}

.stars .bi.text-secondary {
    color: #e9ecef !important; /* Lighter gray */
}

.stars .bi:last-child {
    margin-right: 0;
}

.rating-text {
    margin-left: 0.5rem;
    color: #6c757d;
    font-size: 14px;
    line-height: 1;
}

/* Fix for stars alignment */
.stars-active,
.stars-inactive {
    height: 1.25rem; /* Match the new font size */
    line-height: 1;
}

/* Rating Display Styles - Used in source and review details */
.rating-display {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.rating-display .text-warning {
    color: #ffc000 !important;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6c757d;
}

/* Mobile responsive rating display */
@media (max-width: 575.98px) {
    .rating-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rating-number {
        font-size: 1.5rem;
    }
}
