.top-rated {
  width: 100%;
  max-width: 600px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.top-rated__header {
  margin-bottom: 12px;
}

.top-rated__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-rated__list {
  display: grid;
  gap: 8px;
}

.top-rated__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.top-rated__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.top-rated__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.top-rated__stars {
  color: rgba(255, 124, 171, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.top-rated__label {
  min-width: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-rated__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-rated__action,
.top-rated__remove {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

.top-rated__action {
  color: rgba(255, 124, 171, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top-rated__action:hover,
.top-rated__action:focus-visible {
  color: rgba(255, 124, 171, 0.98);
  outline: none;
}

.top-rated__remove {
  color: rgba(255, 255, 255, 0.36);
  font-size: 16px;
  line-height: 1;
}

.top-rated__remove:hover,
.top-rated__remove:focus-visible {
  color: rgba(255, 255, 255, 0.72);
  outline: none;
}

@media (max-width: 640px) {
  .top-rated {
    margin-top: 16px;
    padding: 16px;
  }

  .top-rated__item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .top-rated__actions {
    gap: 14px;
  }
}
