.rv * { box-sizing: border-box; margin: 0; padding: 0; }
.rv {
	--star: #F5A623;
	--star-muted: #E5E7EB;
	--bar-bg: #E5E7EB;
	--bar-fill: #1F2937;
	--green: #16A34A;
	--green-hover: #15803D;
	--green-tint: #ECFDF5;
	--red: #DC2626;
	--red-tint: #FEF2F2;
	--border: #D1D5DB;
	--text: #111827;
	--muted: #6B7280;
	--btn-border: #E5E7EB;
	--input-bg: #F9FAFB;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	color: var(--text);
	line-height: 1.5;
	max-width: 1200px;
	margin: 48px auto 0;
}

/* ---------- SUMMARY ---------- */
.rv-summary {
	border: 1.5px dashed var(--border);
	border-radius: 14px;
	padding: 32px;
	display: flex;
	align-items: center;
	gap: 48px;
	margin-bottom: 36px;
}
.rv-summary-left { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.rv-circle { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.rv-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rv-circle .bg { fill: none; stroke: #F3F4F6; stroke-width: 5; }
.rv-circle .fg { fill: none; stroke: var(--star); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 226; }
.rv-circle .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.rv-stars { display: flex; gap: 4px; margin-bottom: 8px; }
.rv-star { width: 22px; height: 22px; color: var(--star); flex-shrink: 0; }
.rv-star.is-muted { color: var(--star-muted); }
.rv-meta { color: var(--muted); font-size: 15px; }

.rv-bars { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv-bar { display: flex; align-items: center; gap: 14px; }
.rv-bar-label { display: flex; align-items: center; gap: 6px; width: 48px; flex-shrink: 0; font-size: 15px; font-weight: 500; }
.rv-bar-label .rv-star { width: 16px; height: 16px; }
.rv-bar-track { flex: 1; height: 8px; background: var(--bar-bg); border-radius: 999px; overflow: hidden; min-width: 0; }
.rv-bar-fill { height: 100%; background: var(--bar-fill); border-radius: 999px; transition: width .3s ease; }
.rv-bar-count { width: 56px; text-align: right; font-size: 15px; flex-shrink: 0; }

/* ---------- LIST ---------- */
.rv-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.rv-list { margin-bottom: 36px; }
.rv-empty { color: var(--muted); padding: 22px 0; border-bottom: 1.5px dashed var(--border); }

.rv-item { border-bottom: 1.5px dashed var(--border); padding: 22px 0 24px; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end; }
.rv-item .rv-stars { margin-bottom: 14px; }
.rv-item-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.rv-date { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.rv-author { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #F3F4F6; flex-shrink: 0; }
.rv-avatar--initial { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); font-size: 15px; }
.rv-name { font-weight: 700; font-size: 16px; }

/* Like / Dislike action buttons */
.rv-actions { display: flex; gap: 10px; }
.rv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1.5px solid var(--btn-border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.rv-btn:hover { background: #F9FAFB; }
.rv-btn:active { transform: scale(0.96); }
.rv-btn:disabled { opacity: .6; cursor: not-allowed; }
.rv-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.rv-like.is-active {
	color: var(--green);
	border-color: var(--green);
	background: var(--green-tint);
}
.rv-dislike.is-active {
	color: var(--red);
	border-color: var(--red);
	background: var(--red-tint);
}

/* Tiny pop animation when count changes */
@keyframes rv-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.18); }
	100% { transform: scale(1); }
}
.rv-like-count.is-pop { animation: rv-pop .25s ease; display: inline-block; }

/* ---------- FORM ---------- */
.rv-form {
	border: 1.5px dashed var(--border);
	border-radius: 14px;
	padding: 32px;
	margin-bottom: 36px;
}
.rv-form-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.rv-form-sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.rv-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.rv-label { font-size: 14px; font-weight: 600; color: var(--text); }
.rv-req { color: var(--red); }
.rv-input, .rv-textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--btn-border);
	border-radius: 10px;
	background: var(--input-bg);
	font: inherit;
	font-size: 15px;
	color: var(--text);
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.rv-input:focus, .rv-textarea:focus {
	outline: none;
	border-color: var(--green);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.rv-textarea { min-height: 110px; resize: vertical; font-family: inherit; }

/* Star rating selector */
.rv-rating-input { display: flex; gap: 6px; }
.rv-rating-star {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--star-muted);
	transition: transform .12s ease, color .12s ease;
	line-height: 0;
}
.rv-rating-star svg { width: 32px; height: 32px; display: block; }
.rv-rating-star:hover { transform: scale(1.1); }
.rv-rating-star.is-on { color: var(--star); }

/* Status messages */
.rv-form-status { font-size: 14px; font-weight: 600; min-height: 20px; margin-bottom: 8px; }
.rv-form-status.is-success { color: var(--green); }
.rv-form-status.is-error   { color: var(--red); }

/* Submit button */
.rv-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.rv-submit {
	padding: 12px 28px;
	border: 1.5px solid var(--green);
	border-radius: 10px;
	background: var(--green);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: .15s;
}
.rv-submit:hover:not(:disabled) { background: var(--green-hover); border-color: var(--green-hover); }
.rv-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.rv-summary { flex-direction: column; align-items: stretch; gap: 28px; padding: 24px; }
}
@media (max-width: 640px) {
	.rv-summary, .rv-form { padding: 20px; }
	.rv-circle { width: 72px; height: 72px; }
	.rv-circle .num { font-size: 19px; }
	.rv-star { width: 18px; height: 18px; }
	.rv-bar-label { width: 48px; font-size: 14px; }
	.rv-bar-count { width: 48px; font-size: 14px; }
	.rv-title, .rv-form-title { font-size: 20px; }
	.rv-rating-star svg { width: 28px; height: 28px; }
	.rv-item { grid-template-columns: 1fr; row-gap: 14px; align-items: start; }
	.rv-actions { justify-content: flex-end; }
	.rv-form-actions { justify-content: stretch; }
	.rv-submit { width: 100%; }
}
@media (max-width: 380px) {
	.rv-actions { width: 100%; }
	.rv-btn { flex: 1; justify-content: center; }
}
