.stars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.stars__legend {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stars__option {
  display: flex;
}

.stars__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stars__label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.stars__label:hover {
  border-color: var(--crimson);
}

.stars__icon {
  font-size: 18px;
  color: var(--text-muted);
}

.stars__number {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stars__radio:checked + .stars__label {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-2));
  border-color: var(--crimson);
  color: #fff;
}

.stars__radio:checked + .stars__label .stars__icon,
.stars__radio:checked + .stars__label .stars__number {
  color: #fff;
}

.stars__radio:focus-visible + .stars__label {
  outline: 3px solid rgba(155, 35, 53, 0.25);
  outline-offset: 2px;
}

.rating-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ratings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ratings-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border-inner);
  border-radius: 11px;
}

.ratings-list__stars {
  font-size: 14px;
  color: var(--crimson);
  letter-spacing: 0.08em;
}

.ratings-list__by {
  font-size: 11px;
  color: var(--text-muted);
}
