.pvr-vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0;
}

.pvr-actions {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f2f2f2;
  overflow: hidden;
}

.pvr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transform-origin: center;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.pvr-btn,
.pvr-btn .dashicons,
.pvr-btn-label,
.pvr-btn-count {
  color: #0f172a !important;
}

.pvr-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.pvr-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px #9ca3af, 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.pvr-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pvr-btn.is-active {
  background: #cfd4db;
  box-shadow: inset 0 0 0 1px #c2c8d2;
  font-weight: 600;
}

.pvr-btn.is-pop {
  animation: pvr-pop 0.28s ease;
}

.pvr-divider {
  width: 1px;
  align-self: stretch;
  background: #d1d5db;
}

.pvr-icon.dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  flex-shrink: 0;
  opacity: 0.95;
}

.pvr-btn-label {
  white-space: nowrap !important;
}

.pvr-btn-count {
  margin-left: 0.1rem;
  min-width: 1.25rem;
  text-align: right;
  font-weight: 700;
}

.pvr-total-reactions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.8rem;
  border-radius: 999px;
  background: #f2f2f2;
  transform-origin: center;
}

.pvr-total-reactions.is-pulse {
  animation: pvr-pulse 0.32s ease;
}

.pvr-total-label {
  color: #4b5563;
  font-size: 0.9rem;
}

.pvr-interactions-count {
  font-weight: 700;
  color: #0f172a;
}

.pvr-total-value {
  margin-left: 0.05rem;
}

.pvr-feedback {
  display: none;
  flex: 1 1 100%;
  margin: 0;
  min-height: 0;
  font-size: 0.87rem;
  color: #475569;
}

.pvr-feedback:not(:empty) {
  display: block;
  margin-top: 0.1rem;
}

.pvr-feedback--error {
  color: #b42318;
}

.pvr-vote.is-loading .pvr-btn {
  opacity: 0.8;
}

@keyframes pvr-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pvr-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.pvr-ranking {
  border: 1px solid #d7dce2;
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem 1rem 0.8rem;
}

.pvr-ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pvr-ranking-item + .pvr-ranking-item {
  margin-top: 0.75rem;
}

.pvr-ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.7rem 0.75rem;
}

.pvr-ranking-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
}

.pvr-ranking-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pvr-ranking-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #334155;
  text-transform: uppercase;
}

.pvr-ranking-body {
  min-width: 0;
}

.pvr-ranking-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  line-height: 1.35;
}

.pvr-ranking-link:hover {
  text-decoration: underline;
}

.pvr-ranking-excerpt {
  margin: 0.34rem 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pvr-ranking-interactions {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
  margin-top: 0.42rem;
  font-weight: 600;
}

.pvr-ranking-stats {
  display: block;
  color: #334155;
  font-size: 0.84rem;
  margin-top: 0.16rem;
}

@media (max-width: 640px) {
  .pvr-vote {
    align-items: stretch;
  }

  .pvr-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pvr-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .pvr-total-reactions {
    width: 100%;
    justify-content: center;
  }

  .pvr-ranking-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pvr-ranking-thumb {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pvr-btn,
  .pvr-total-reactions {
    transition: none;
  }

  .pvr-btn.is-pop,
  .pvr-total-reactions.is-pulse {
    animation: none;
  }
}
