.ghit-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}

.ghit-rating__prompt {
    font-size: 15px;
    font-weight: 600;
    color: #1e1b4b;
}

/* ── Stars ───────────────────────────────────────────────────────────────── */

.ghit-rating__stars {
    display: flex;
    gap: 6px;
}

.ghit-rating__star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    flex-shrink: 0;
    transition: transform .1s;
}

.ghit-rating__star-empty,
.ghit-rating__star-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1;
}

.ghit-rating__star-empty {
    color: #e2e8f0;
}

.ghit-rating__star-fill {
    color: #f59e0b;
    clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
    transition: clip-path .15s;
}

/* hover: tô toàn sao (override clip) */
.ghit-rating__star.is-hover .ghit-rating__star-fill {
    clip-path: inset(0 0% 0 0);
}

.ghit-rating__star.is-hover {
    transform: scale(1.15);
}

.ghit-rating__star:disabled {
    cursor: default;
    transform: none !important;
}

/* ── Meta info ───────────────────────────────────────────────────────────── */

.ghit-rating__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 20px;
}

.ghit-rating__avg {
    font-size: 16px;
    font-weight: 700;
    color: #1e1b4b;
}

.ghit-rating__sep {
    color: #9ca3af;
}

.ghit-rating__count {
    color: #9ca3af;
}

.ghit-rating__msg {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
    min-height: 1em;
}
