.page-rating-section {
  background: var(--bg);
  padding: 0 0 1.8rem;
}

.page-rating-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--c1) 50%, transparent);
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--bg3) 90%, var(--bg)),
    color-mix(in srgb, var(--bg2) 95%, var(--bg))
  );
  position: relative;
  overflow: hidden;
}

.page-rating-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c1) 8%, transparent);
  pointer-events: none;
}

/* ── СЧЁТ ── */
.page-rating-score {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid color-mix(in srgb, var(--c1) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 75%, var(--bg3));
}

.page-rating-score-value {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--txt);
}

/* ── ЦЕНТР ── */
.page-rating-main {
  flex: 1;
  min-width: 0;
}

.page-rating-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: .3rem;
}

.page-rating-title i {
  color: var(--c1);
  font-size: .8rem;
}

.page-rating-stars {
  position: relative;
  display: inline-flex;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .1rem;
  color: color-mix(in srgb, var(--txt) 14%, transparent);
  margin-bottom: .3rem;
}

.page-rating-stars-base,
.page-rating-stars-fill {
  display: flex;
  gap: .08rem;
}

.page-rating-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  width: 0%;
  color: #f6d64a;
  pointer-events: none;
}

.page-rating-meta {
  color: var(--mut);
  font-size: .78rem;
}

.page-rating-meta strong {
  color: var(--txt);
  font-weight: 700;
}

/* ── КНОПКИ ── */
.page-rating-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.rating-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: transform .2s, opacity .2s;
  white-space: nowrap;
}

.rating-vote-btn i {
  font-size: .85rem;
}

.rating-vote-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.rating-vote-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rating-vote-like {
  background: color-mix(in srgb, var(--c1) 82%, #3ddc84);
}

.rating-vote-dislike {
  background: linear-gradient(135deg, #ff6b6b, #ef4444);
}

.rating-vote-btn.active {
  outline: 2px solid color-mix(in srgb, #fff 22%, transparent);
  outline-offset: 2px;
}

/* ── СТАТУС ── */
.page-rating-status {
  font-size: .76rem;
  color: var(--mut);
  margin-top: .2rem;
  min-height: 1rem;
}

.page-rating-status.error   { color: #ff7b7b; }
.page-rating-status.success { color: #6dd38a; }

/* ── АДАПТИВ ── */
@media (max-width: 600px) {
  .page-rating-card {
    flex-wrap: wrap;
    gap: .75rem;
    padding: .85rem 1rem;
  }

  .page-rating-score {
    width: 54px;
    height: 54px;
  }

  .page-rating-score-value {
    font-size: 1.15rem;
  }

  .page-rating-main {
    flex: 1;
    min-width: 0;
  }

  .page-rating-actions {
    width: 100%;
    gap: .5rem;
  }

  .rating-vote-btn {
    flex: 1;
    justify-content: center;
    padding: .55rem .7rem;
    font-size: .8rem;
  }
}
