/* Рейтинг статьи (score) */
.post-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  margin-bottom: 16px;
}

.post-rating-score__star {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.post-rating-score__rating {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.post-rating-score__votes {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.2;
}

/* Рейтинг статьи в конце (footer) */
.post-rating-footer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  padding: 24px 0 0;
  margin-top: 32px;
  border-top: 1px solid #f4f4f4;
}

.post-rating-footer__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
  margin-bottom: -4px;
}

.post-rating-footer__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.post-rating-footer__star {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-rating-footer__star:hover {
  transform: scale(1.1);
}

.post-rating-footer__star svg {
  width: 34px;
  height: 34px;
}

.post-rating-footer__star svg path {
  fill: #d7d7d7;
  transition: fill 0.2s ease;
}

.post-rating-footer__star.active svg path {
  fill: #ffd700;
}

.post-rating-footer__stars[data-readonly="true"] {
  cursor: default;
}

.post-rating-footer__stars[data-readonly="true"] .post-rating-footer__star {
  cursor: default;
  pointer-events: none;
}

.post-rating-footer__stars[data-readonly="true"]
  .post-rating-footer__star:hover {
  transform: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .post-rating-footer {
    margin-top: 24px;
    padding-top: 20px;
    align-items: center;
  }

  .post-rating-footer__title {
    font-size: 18px;
    margin-bottom: 0;
  }

  .post-rating-footer__star svg {
    width: 28px;
    height: 28px;
  }

  .post-rating-score {
    gap: 6px;
    padding: 5px 10px;
    margin-bottom: 12px;
  }

  .post-rating-score__star {
    width: 18px;
    height: 18px;
  }

  .post-rating-score__rating {
    font-size: 14px;
  }

  .post-rating-score__votes {
    font-size: 12px;
  }
}
