.rating-dist {
  background: #0F2B5B;
  border: 1px solid rgba(180, 240, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Title ──────────────────────────────────────────────── */
.rating-dist__title {
  font-size: 1rem;
  font-weight: 700;
  color: #F4F6F8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Overall rating ─────────────────────────────────────── */
.rating-dist__overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.rating-dist__avg-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #F4F6F8;
}

.rating-dist__avg-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.rating-dist__avg-stars .rating-dist__star {
  width: 22px;
  height: 22px;
}

.rating-dist__based-on {
  font-size: 0.875rem;
  color: #a0aec0;
}

/* ── Half-star ─────────────────────────────────────────── */
.rating-dist__star-half {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.rating-dist__star-half-base,
.rating-dist__star-half-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
}

.rating-dist__star-half-base {
  fill: #fc0;
  stroke: #fc0;
  opacity: 0.35;
}

.rating-dist__star-half-fill {
  fill: #fc0;
  stroke: none;
}

/* ── Distribution bars ─────────────────────────────────── */
.rating-dist__bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-dist__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-dist__interval {
  flex-shrink: 0;
  width: 60px;
  font-size: 0.8rem;
  color: #a0aec0;
  text-align: right;
  white-space: nowrap;
}

.rating-dist__star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rating-dist__star--full {
  fill: #fc0;
  stroke: #fc0;
}

.rating-dist__star--empty {
  fill: #fc0;
  stroke: #fc0;
  opacity: 0.35;
}

.rating-dist__bar-wrap {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.rating-dist__bar {
  height: 100%;
  background: #fbbf24;
  border-radius: var(--border-radius-full);
  transition: width 0.3s ease;
}

.rating-dist__count {
  flex-shrink: 0;
  width: 28px;
  text-align: right;
  font-size: 0.875rem;
  color: #a0aec0;
}
