.star-rating-wrap {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.star-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.star-rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    background: none;
    border: none;
    padding: 1px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.1s, color 0.1s;
    color: #4b5563;
}

[data-theme="light"] .star {
    color: #d1d5db;
}

.star.star-filled {
    color: #f59e0b;
}

.star.star-hover {
    color: #fbbf24;
    transform: scale(1.15);
}

.star-rating-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
}

.star-rating-avg {
    font-weight: 700;
    color: #f59e0b;
}

.star-rating-sep {
    opacity: 0.35;
}

.star-rating-count {
    opacity: 0.65;
    font-size: 0.83rem;
}

.star-rating-empty {
    opacity: 0.45;
    font-size: 0.83rem;
    font-style: italic;
}

.star-rating-hint {
    display: none;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #5d9400;
    background: rgba(93, 148, 0, 0.1);
    border: 1px solid rgba(93, 148, 0, 0.3);
    border-radius: 6px;
    padding: 4px 10px;
}

.star-rating-hint:not([hidden]) {
    display: inline-block;
}
