/* ==========================================================================
   UPMKG Reviews — front-end styles
   Everything is scoped under .upr. Colors are custom properties so themes
   can override them, e.g. .upr { --upr-card: #fafafa; }
   ========================================================================== */

.upr {
	--upr-accent: #1F5FD6;
	--upr-accent-text: #FFFFFF;
	--upr-star: #F5B301;
	--upr-star-off: #D9D9D3;
	--upr-text: #1A1A18;
	--upr-muted: #5F5F58;
	--upr-card: #FFFFFF;
	--upr-surface: #F4F4F0;
	--upr-border: #E4E4DE;
	--upr-radius: 16px;
	--upr-gap: 16px;
	--upr-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .06);
	--upr-tint-1: #FFF6DF;
	--upr-tint-2: #EAF1FF;
	--upr-tint-3: #E9F6EF;
	--upr-tint-4: #FCEEF2;
	color: var(--upr-text);
	font-family: inherit;
	line-height: 1.5;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.upr--theme-dark {
	--upr-text: #F2F2EE;
	--upr-muted: #A9A9A2;
	--upr-card: #1E1E1C;
	--upr-surface: #262624;
	--upr-border: #363632;
	--upr-star-off: #4A4A45;
	--upr-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
	--upr-tint-1: #2D2717;
	--upr-tint-2: #1C2435;
	--upr-tint-3: #1A2B22;
	--upr-tint-4: #2F1F26;
}

@media (prefers-color-scheme: dark) {
	.upr--theme-auto {
		--upr-text: #F2F2EE;
		--upr-muted: #A9A9A2;
		--upr-card: #1E1E1C;
		--upr-surface: #262624;
		--upr-border: #363632;
		--upr-star-off: #4A4A45;
		--upr-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
		--upr-tint-1: #2D2717;
		--upr-tint-2: #1C2435;
		--upr-tint-3: #1A2B22;
		--upr-tint-4: #2F1F26;
	}
}

.upr *,
.upr *::before,
.upr *::after {
	box-sizing: border-box;
}

.upr [hidden] {
	display: none !important;
}

.upr .is-filtered,
.upr .is-paged {
	display: none !important;
}

/* Theme-proof resets for interactive elements. */
.upr button {
	margin: 0;
	font: inherit;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	min-height: 0;
	width: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.upr button[disabled] {
	cursor: default;
}

.upr :focus-visible {
	outline: 2px solid var(--upr-accent);
	outline-offset: 2px;
}

.upr p,
.upr figure,
.upr ul {
	margin: 0;
	padding: 0;
}

.upr ul {
	list-style: none;
}

.upr svg {
	display: block;
}

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */

/* Explicit width so flex/grid parents can never stretch or shrink the row
   (the partial fill is a percentage of this width). */
.upr-stars {
	position: relative;
	display: inline-flex;
	flex: none;
	width: calc(var(--upr-star-size, 16px) * 5 + 8px);
	min-width: calc(var(--upr-star-size, 16px) * 5 + 8px);
	height: var(--upr-star-size, 16px);
	vertical-align: middle;
	line-height: 0;
}

.upr-stars__row {
	display: inline-flex;
	gap: 2px;
	width: calc(var(--upr-star-size, 16px) * 5 + 8px);
}

.upr-stars__row svg {
	width: var(--upr-star-size, 16px);
	height: var(--upr-star-size, 16px);
	max-width: none;
	flex: none;
}

.upr-stars__base svg {
	fill: var(--upr-star-off);
}

.upr-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	overflow: hidden;
	white-space: nowrap;
}

.upr-stars__fill svg {
	fill: var(--upr-star);
}

.upr-star-icon {
	width: 13px;
	height: 13px;
	fill: var(--upr-star);
	flex: none;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.upr-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--upr-av, 40px);
	height: var(--upr-av, 40px);
	border-radius: 50%;
	overflow: hidden;
	background: var(--upr-av-bg, #3B6FD4);
	color: #FFFFFF;
	font-size: calc(var(--upr-av, 40px) * .36);
	font-weight: 700;
	line-height: 1;
}

.upr-avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.upr .upr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--upr-accent);
	color: var(--upr-accent-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: filter .15s ease;
}

.upr .upr-btn:hover,
.upr .upr-btn:focus {
	background: var(--upr-accent);
	color: var(--upr-accent-text);
	filter: brightness(1.08);
	text-decoration: none;
}

.upr .upr-btn--outline,
.upr .upr-btn--outline:hover,
.upr .upr-btn--outline:focus {
	background: transparent;
	color: var(--upr-text);
	border: 1.5px solid currentColor;
	filter: none;
}

.upr .upr-btn--outline:hover {
	background: var(--upr-surface);
}

.upr .upr-btn--block {
	display: flex;
	width: 100%;
	border-radius: 12px;
}

.upr .upr-link {
	align-self: flex-start;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--upr-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
}

.upr .upr-link:hover {
	background: none;
	color: var(--upr-accent);
}

.upr .upr-more {
	align-self: flex-start;
	min-height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--upr-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
}

.upr .upr-more:hover {
	background: none;
	color: var(--upr-accent);
}

.upr-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.upr-text--empty {
	color: var(--upr-muted);
	font-style: italic;
}

.upr-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--upr-clamp, 6);
	overflow: hidden;
}

.upr-clamp.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.upr-reply {
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--upr-surface);
	font-size: 13.5px;
	line-height: 1.5;
}

.upr-reply__title {
	margin-bottom: 4px;
	font-weight: 700;
}

.upr-reply__text {
	color: var(--upr-muted);
}

.upr-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--upr-muted);
}

.upr-big {
	font-size: 60px;
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.03em;
}

.upr-muted {
	color: var(--upr-muted);
	font-size: 13px;
}

.upr-empty {
	padding: 32px 16px;
	border: 1px dashed var(--upr-border);
	border-radius: var(--upr-radius);
	color: var(--upr-muted);
	font-size: 15px;
	text-align: center;
}

.upr-attrib {
	margin-top: 14px;
	color: var(--upr-muted);
	font-size: 12px;
}

.upr-center {
	display: flex;
	justify-content: center;
}

.upr .upr-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--upr-border);
	border-radius: 50%;
	background: var(--upr-card);
	color: var(--upr-text);
	transition: border-color .15s, opacity .15s;
}

.upr .upr-arrow:hover {
	border-color: var(--upr-muted);
	background: var(--upr-card);
	color: var(--upr-text);
}

.upr .upr-arrow[disabled] {
	opacity: .35;
}

.upr-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Filter
   -------------------------------------------------------------------------- */

.upr-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.upr .upr-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--upr-border);
	border-radius: 999px;
	background: var(--upr-card);
	color: var(--upr-text);
	font-size: 14px;
	font-weight: 600;
	transition: border-color .15s, background .15s;
}

.upr .upr-pill:hover {
	border-color: var(--upr-muted);
	background: var(--upr-card);
	color: var(--upr-text);
}

.upr .upr-pill[aria-pressed="true"] {
	border-color: var(--upr-accent);
	background: var(--upr-accent);
	color: var(--upr-accent-text);
}

.upr-pill[aria-pressed="true"] .upr-star-icon {
	fill: currentColor;
}

.upr-pill__count {
	font-weight: 500;
	opacity: .75;
}

.upr-filter--segmented {
	display: inline-flex;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: var(--upr-surface);
}

.upr .upr-filter--segmented .upr-pill {
	height: 38px;
	border: 0;
	background: transparent;
	font-weight: 700;
}

.upr .upr-filter--segmented .upr-pill:hover {
	background: var(--upr-card);
}

.upr .upr-filter--segmented .upr-pill[aria-pressed="true"] {
	background: var(--upr-card);
	color: var(--upr-text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.upr-filter--segmented .upr-pill[aria-pressed="true"] .upr-star-icon {
	fill: var(--upr-star);
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.upr-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--upr-border);
	border-radius: var(--upr-radius);
	background: var(--upr-card);
	color: var(--upr-text);
}

.upr-card__head,
.upr-card__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.upr-card__byline {
	gap: 10px;
}

.upr-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.upr-card__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.upr-card__name {
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.upr-card__name a {
	color: inherit;
	text-decoration: none;
}

.upr-card__name a:hover {
	text-decoration: underline;
}

.upr-card__date {
	color: var(--upr-muted);
	font-size: 13px;
}

.upr-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 2px;
}

.upr-card__source {
	color: var(--upr-muted);
	font-size: 12px;
	font-weight: 600;
}

.upr-card--grid .upr-card__name {
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Header (carousel)
   -------------------------------------------------------------------------- */

.upr-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 20px;
}

.upr-head__score {
	display: flex;
	align-items: center;
	gap: 16px;
}

.upr-head__avg {
	font-size: 46px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
}

.upr-head__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.upr-head__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.upr-head__label {
	font-size: 18px;
	font-weight: 700;
}

.upr-head__meta {
	color: var(--upr-muted);
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Layout: carousel
   -------------------------------------------------------------------------- */

/* Cards per view follow the widget's own width (container queries), so a
   carousel in a narrow content column or sidebar still gets readable cards. */
.upr--carousel {
	container-type: inline-size;
	container-name: upr-carousel;
}

.upr-carousel {
	--upr-pv: var(--upr-per-view, 4);
	display: flex;
	align-items: center;
	gap: 12px;
}

@container upr-carousel (max-width: 1099px) {
	.upr-carousel { --upr-pv: min(var(--upr-per-view, 4), 3); }
}

@container upr-carousel (max-width: 819px) {
	.upr-carousel { --upr-pv: min(var(--upr-per-view, 4), 2); }
}

@container upr-carousel (max-width: 539px) {
	.upr-carousel { --upr-pv: 1; }
	.upr-carousel .upr-arrow { display: none; }
}

.upr-carousel__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.upr-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.upr-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--upr-pv) - 1) * var(--upr-gap)) / var(--upr-pv));
	gap: var(--upr-gap);
}

.upr-carousel__track > .upr-card {
	scroll-snap-align: start;
}

.upr-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	margin-top: 14px;
}

.upr .upr-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 4px;
	border: 0;
	background: transparent;
}

.upr .upr-dot:hover {
	background: transparent;
}

.upr-dot span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--upr-border);
	transition: width .2s ease, background .2s ease;
}

.upr-dot[aria-current="true"] span {
	width: 24px;
	background: var(--upr-accent);
}

@media (prefers-reduced-motion: reduce) {
	.upr-carousel__viewport { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Layout: grid
   -------------------------------------------------------------------------- */

.upr--grid {
	container-type: inline-size;
	container-name: upr-grid;
}

/* Narrow: summary stacks above the cards. */
.upr-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.upr-grid__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 18px;
	background: var(--upr-surface);
}

/* Wide: sticky summary sidebar beside the cards. */
@container upr-grid (min-width: 820px) {
	.upr-grid {
		flex-direction: row;
		align-items: flex-start;
		gap: 32px;
	}
	.upr-grid__side {
		position: sticky;
		top: 24px;
		flex: 0 0 300px;
	}
}

.upr-grid__score {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.upr-grid__scoremeta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 4px;
}

.upr-grid__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	container-type: inline-size;
	container-name: upr-grid-main;
}

.upr-grid__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.upr .upr-grid__title {
	margin: 0;
	color: var(--upr-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.upr-grid__cards {
	display: grid;
	grid-template-columns: repeat(var(--upr-cols, 3), minmax(0, 1fr));
	gap: var(--upr-gap);
	align-items: start;
}

@container upr-grid-main (max-width: 759px) {
	.upr-grid__cards { grid-template-columns: repeat(min(var(--upr-cols, 3), 2), minmax(0, 1fr)); }
}

@container upr-grid-main (max-width: 479px) {
	.upr-grid__cards { grid-template-columns: minmax(0, 1fr); }
}

.upr-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--upr-muted);
	font-size: 13px;
	font-weight: 600;
}

.upr .upr-select {
	height: 40px;
	min-width: 0;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--upr-border);
	border-radius: 10px;
	background-color: var(--upr-card);
	color: var(--upr-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
}

/* Histogram (grid filter + summary badge) */
.upr-hist {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.upr .upr-hist__row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--upr-text);
	font-size: 13px;
	text-align: left;
}

.upr .upr-hist__row:hover:not([disabled]) {
	background: var(--upr-card);
	color: var(--upr-text);
}

.upr .upr-hist__row[aria-pressed="true"] {
	background: var(--upr-card);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.upr .upr-hist__row[disabled] {
	opacity: .45;
}

.upr-hist__label {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	width: 26px;
	font-weight: 700;
}

.upr-hist__label .upr-star-icon {
	width: 11px;
	height: 11px;
}

.upr-hist__track {
	display: block;
	flex: 1;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--upr-border);
}

.upr-hist__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--upr-star);
	transition: background .2s;
}

.upr-hist.has-selection .upr-hist__row:not([aria-pressed="true"]) .upr-hist__fill {
	background: var(--upr-star-off);
}

.upr-hist__count {
	width: 26px;
	color: var(--upr-muted);
	text-align: right;
}

.upr-hist--static .upr-hist__row {
	height: 22px;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Layout: bubbles
   -------------------------------------------------------------------------- */

.upr-bubbles__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 32px;
	text-align: center;
}

.upr .upr-bubbles__title {
	margin: 0;
	color: var(--upr-text);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.upr-bubbles__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--upr-muted);
	font-size: 15px;
}

.upr-bubbles__meta strong {
	color: var(--upr-text);
}

.upr-bubbles__head .upr-filter {
	margin-bottom: 0;
}

.upr--bubbles {
	container-type: inline-size;
	container-name: upr-bubbles;
}

.upr-bubbles__wall {
	column-count: var(--upr-cols, 3);
	column-gap: 28px;
}

@container upr-bubbles (max-width: 899px) {
	.upr-bubbles__wall { column-count: min(var(--upr-cols, 3), 2); }
}

@container upr-bubbles (max-width: 539px) {
	.upr-bubbles__wall { column-count: 1; }
}

.upr-bubble {
	display: flex;
	flex-direction: column;
	margin: 0 0 30px;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

.upr-tint-0 { --upr-tint: var(--upr-card); }
.upr-tint-1 { --upr-tint: var(--upr-tint-1); }
.upr-tint-2 { --upr-tint: var(--upr-tint-2); }
.upr-tint-3 { --upr-tint: var(--upr-tint-3); }
.upr-tint-4 { --upr-tint: var(--upr-tint-4); }

.upr-bubble__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px;
	border-radius: 20px;
	background: var(--upr-tint, var(--upr-card));
	box-shadow: var(--upr-shadow);
	color: var(--upr-text);
}

.upr-bubble__body::after {
	content: "";
	position: absolute;
	left: 30px;
	bottom: -9px;
	width: 18px;
	height: 18px;
	border-radius: 0 0 4px 0;
	background: inherit;
	transform: rotate(45deg);
}

.upr-bubble__text {
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.upr-bubble__body .upr-reply {
	background: rgba(127, 127, 127, .1);
}

.upr-bubble__who {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-left: 14px;
}

.upr-bubble__who .upr-card__name {
	font-size: 14px;
}

.upr-bubble__who .upr-card__date {
	font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Layout: ticker
   -------------------------------------------------------------------------- */

.upr-ticker {
	--upr-star-off: rgba(127, 127, 127, .45);
	overflow: hidden;
	padding: 16px 0;
	border-radius: var(--upr-ticker-radius, 0);
	background: var(--upr-text);
	color: var(--upr-card);
}

.upr-ticker__track {
	display: flex;
	width: max-content;
	animation: upr-ticker var(--upr-speed, 40s) linear infinite;
}

.upr-ticker:hover .upr-ticker__track,
.upr-ticker:focus-within .upr-ticker__track {
	animation-play-state: paused;
}

.upr .upr-ticker__group {
	display: flex;
	flex: none;
	gap: 48px;
	padding-right: 48px;
}

.upr-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	white-space: nowrap;
}

.upr-ticker__name {
	font-weight: 600;
	opacity: .7;
}

@keyframes upr-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.upr-ticker { overflow-x: auto; }
	.upr-ticker__track { animation: none; }
	.upr-ticker__group[aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   Layout: spotlight
   -------------------------------------------------------------------------- */

.upr-spot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: clamp(28px, 5vw, 56px) clamp(20px, 8vw, 120px);
	border: 1px solid var(--upr-border);
	border-radius: 24px;
	background: var(--upr-card);
	text-align: center;
}

.upr--spotlight > .upr-filter {
	justify-content: center;
	display: flex;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 20px;
}

.upr-spot__mark {
	width: 44px;
	height: 34px;
	fill: var(--upr-accent);
}

.upr-spot__slides {
	width: 100%;
}

.upr-spot__slide {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.upr-spot__slide.is-active {
	display: flex;
	animation: upr-fade .4s ease;
}

@keyframes upr-fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

.upr-spot__slide .upr-more {
	align-self: center;
}

.upr-spot__quote {
	max-width: 860px;
	font-family: var(--upr-quote-font, inherit);
	font-size: clamp(20px, 2.6vw, 30px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -.01em;
	overflow-wrap: anywhere;
}

.upr-spot__who {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}

.upr-spot__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--upr-muted);
	font-size: 13px;
}

.upr-spot__nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.upr-spot__count {
	min-width: 48px;
	color: var(--upr-muted);
	font-size: 13px;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.upr-spot__slide.is-active { animation: none; }
}

/* --------------------------------------------------------------------------
   Layout: badges
   -------------------------------------------------------------------------- */

.upr--badge {
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
}

.upr--badge-summary,
.upr--badge-bar,
.upr--badge-bar-dark {
	display: block;
}

.upr .upr-badge {
	display: inline-flex;
	align-items: center;
	color: var(--upr-text);
	text-decoration: none;
}

.upr a.upr-badge:hover {
	color: var(--upr-text);
	text-decoration: none;
}

/* Card / floating */
.upr .upr-badge--card {
	gap: 14px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--upr-card);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .12);
	transition: transform .15s ease, box-shadow .15s ease;
}

.upr a.upr-badge--card:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 16px 36px rgba(0, 0, 0, .16);
}

.upr-badge__avg {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.upr-badge__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.upr-badge__count {
	color: var(--upr-muted);
	font-size: 12.5px;
	font-weight: 600;
}

.upr-floating {
	position: fixed;
	bottom: 20px;
	z-index: 9990;
}

.upr-floating--bottom-left { left: 20px; }
.upr-floating--bottom-right { right: 20px; }

.upr .upr-floating__close {
	position: absolute;
	top: -10px;
	right: -10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--upr-border);
	border-radius: 50%;
	background: var(--upr-card);
	color: var(--upr-muted);
	opacity: 0;
	transition: opacity .15s;
}

.upr-floating:hover .upr-floating__close,
.upr .upr-floating__close:focus-visible {
	opacity: 1;
}

@media (hover: none) {
	.upr .upr-floating__close { opacity: 1; }
}

.upr-floating__close svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}

@media (max-width: 600px) {
	.upr-floating--hide-mobile { display: none; }
	.upr-floating { bottom: 12px; }
	.upr-floating--bottom-left { left: 12px; }
	.upr-floating--bottom-right { right: 12px; }
}

/* Keep fixed badges inside previews (block editor, widget builder). */
.editor-styles-wrapper .upr-floating,
.upr-builder__preview .upr-floating {
	position: relative;
	inset: auto;
	display: inline-block;
}

/* Pills */
.upr .upr-badge--pill {
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--upr-surface);
	font-size: 14px;
}

.upr .upr-badge--pill .upr-star-icon {
	width: 18px;
	height: 18px;
}

.upr-badge__sub {
	color: var(--upr-muted);
}

.upr .upr-badge--pill-outline {
	gap: 10px;
	border: 1.5px solid currentColor;
	background: transparent;
	font-weight: 600;
}

.upr-chev {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.upr .upr-badge--pill-dark,
.upr a.upr-badge--pill-dark:hover {
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	background: #1A1A18;
	color: #FFFFFF;
}

.upr--theme-dark .upr-badge--pill-dark,
.upr--theme-dark a.upr-badge--pill-dark:hover {
	background: #F2F2EE;
	color: #1A1A18;
}

.upr .upr-badge--pill-dark .upr-badge__sub {
	color: inherit;
	opacity: .72;
}

/* Summary card */
.upr .upr-badge--summary {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 560px;
	padding: 22px 26px;
	border: 1px solid var(--upr-border);
	border-radius: var(--upr-radius);
	background: var(--upr-card);
}

.upr-badge__summaryscore {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.upr-badge--summary .upr-big {
	font-size: 52px;
}

.upr-badge--summary .upr-hist {
	flex: 1;
	gap: 8px;
}

@media (max-width: 480px) {
	.upr .upr-badge--summary { flex-direction: column; align-items: stretch; }
}

/* Bars */
.upr .upr-badge--bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 16px 22px;
	border: 1px solid var(--upr-border);
	border-radius: 14px;
	background: var(--upr-card);
	font-size: 15px;
}

.upr-badge__barinfo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.upr .upr-badge__barlink {
	color: var(--upr-text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
}

.upr .upr-badge--bar-dark,
.upr a.upr-badge--bar-dark:hover {
	justify-content: center;
	border-color: transparent;
	background: #1A1A18;
	color: #FFFFFF;
	--upr-star-off: #55554F;
}

.upr--theme-dark .upr-badge--bar-dark,
.upr--theme-dark a.upr-badge--bar-dark:hover {
	background: #F2F2EE;
	color: #1A1A18;
	--upr-star-off: #C9C9C2;
}
