/**
 * استطلاعات جنوب — hub + race cards + AI panel
 */
.janoob-south-polls {
	--jsp-primary: #e3000f;
	--jsp-primary-hsl: hsl(var(--primary, 343 82% 40%));
	--jsp-gold: #d4af37;
}

.janoob-poll-race-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	border-radius: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: linear-gradient(135deg, #fff 0%, rgba(227, 0, 15, 0.03) 100%);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 640px) {
	.janoob-poll-race-card {
		flex-direction: row;
		align-items: stretch;
		padding: 1.35rem 1.5rem;
		gap: 1.5rem;
	}
	.janoob-poll-race-card__head {
		flex: 0 0 38%;
		max-width: 38%;
	}
	.janoob-poll-race-card__chart {
		flex: 1;
		min-width: 0;
	}
}

.janoob-poll-race-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(227, 0, 15, 0.12);
	border-color: rgba(227, 0, 15, 0.25);
}

.janoob-poll-race-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.janoob-poll-race-card__badge {
	font-size: 10px;
	font-weight: 800;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(227, 0, 15, 0.1);
	color: var(--jsp-primary);
}

.janoob-poll-race-card__type {
	font-size: 10px;
	font-weight: 700;
	color: #64748b;
}

.janoob-poll-race-card__status {
	font-size: 10px;
	font-weight: 800;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
}

.janoob-poll-race-card__status.is-open {
	background: rgba(21, 128, 61, 0.12);
	color: #15803d;
}

.janoob-poll-race-card__status.is-not-started {
	background: rgba(37, 99, 235, 0.12);
	color: #2563eb;
}

.janoob-poll-race-card__status.is-ended,
.janoob-poll-race-card__status.is-closed {
	background: rgba(100, 116, 139, 0.15);
	color: #475569;
}

.janoob-poll-race-card__status.is-manual-closed {
	background: rgba(185, 28, 28, 0.12);
	color: #b91c1c;
}

.janoob-poll-race-card__status.is-silence {
	background: rgba(180, 83, 9, 0.12);
	color: #b45309;
}

.janoob-poll-race-card__title {
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.45;
	margin: 0;
	color: #0f172a;
}

@media (min-width: 640px) {
	.janoob-poll-race-card__title {
		font-size: 1.15rem;
	}
}

.janoob-poll-race-card__total {
	margin: 0.35rem 0 0;
	font-size: 11px;
	font-weight: 800;
	color: #64748b;
}

.janoob-poll-race-row {
	margin-bottom: 0.55rem;
}

.janoob-poll-race-row--lead .janoob-poll-race-row__name {
	color: var(--jsp-primary);
}

.janoob-poll-race-row--lead .janoob-poll-race-row__fill {
	background: linear-gradient(90deg, var(--jsp-primary), #ff4d5a);
	box-shadow: 0 0 12px rgba(227, 0, 15, 0.35);
	min-width: 4%;
}

.janoob-poll-race-row__label {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.2rem;
	font-size: 12px;
	font-weight: 800;
}

.janoob-poll-race-row__pct {
	color: #64748b;
	font-variant-numeric: tabular-nums;
}

.janoob-poll-race-row__track {
	height: 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.janoob-poll-race-row__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #475569, #64748b);
	transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	min-width: 2%;
}

.janoob-poll-race-card__empty {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	margin: 0;
	text-align: center;
	padding: 1rem 0;
}

.janoob-poll-race-card__cta {
	display: block;
	margin-top: 0.25rem;
	font-size: 11px;
	font-weight: 900;
	color: var(--jsp-primary);
	opacity: 0.85;
}

.janoob-poll-race-card--expanded {
	flex-direction: column;
	cursor: default;
}

.janoob-poll-race-card--expanded:hover {
	transform: none;
}

.janoob-poll-race-card--expanded .janoob-poll-race-card__head {
	max-width: none;
	flex: none;
}

.janoob-poll-race-card--expanded .janoob-poll-race-row__track {
	height: 14px;
}

.janoob-poll-ai-panel {
	margin-top: 0.5rem;
}

.janoob-poll-ai-block + .janoob-poll-ai-block {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.janoob-poll-ai-block__title {
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--jsp-primary);
	margin: 0 0 0.5rem;
}

.janoob-poll-ai-block__body {
	font-size: 0.92rem;
	line-height: 1.85;
	color: #334155;
	font-weight: 600;
}

.janoob-poll-ai-block__body p {
	margin: 0 0 0.65rem;
}

.janoob-poll-ai-panel--intro {
	border-color: rgba(227, 0, 15, 0.12);
}

.janoob-poll-ai-panel--results {
	border-color: rgba(100, 116, 139, 0.2);
}

.janoob-south-polls--single .janoob-poll__option {
	gap: 0.85rem;
}

.janoob-south-polls__footer-note {
	max-width: 42rem;
	margin-inline: auto;
}

/* ——— Single poll: BBC-style mobile-first ——— */
.jsp-single {
	--jsp-ink: #0f172a;
	--jsp-muted: #64748b;
}

.jsp-single__hero {
	position: relative;
	margin: 0 auto 1.25rem;
	max-width: 42rem;
	border-radius: 0.85rem;
	overflow: hidden;
	background: linear-gradient(145deg, #0f172a 0%, #1e293b 45%, rgba(227, 0, 15, 0.35) 100%);
	min-height: 11rem;
}

@media (min-width: 640px) {
	.jsp-single__hero {
		border-radius: 1rem;
		min-height: 14rem;
	}
}

.jsp-single__hero--has-image {
	min-height: 0;
	aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
	.jsp-single__hero--has-image {
		aspect-ratio: 1200 / 630;
		max-height: 22rem;
	}
}

.jsp-single__hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jsp-single__hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.15) 100%);
	pointer-events: none;
}

.jsp-single__hero--brand .jsp-single__hero-shade {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.15) 0%, rgba(227, 0, 15, 0.25) 100%);
}

.jsp-single__hero-inner {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 1.15rem 1rem 1.25rem;
	color: #fff;
	z-index: 1;
	text-align: center;
}

@media (min-width: 640px) {
	.jsp-single__hero-inner {
		padding: 1.5rem 1.35rem 1.65rem;
	}
}

.jsp-single__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0 0 0.55rem;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.jsp-single__kicker-dot {
	opacity: 0.55;
}

.jsp-single__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.35;
	text-wrap: balance;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
	.jsp-single__title {
		font-size: 1.75rem;
		line-height: 1.3;
	}
}

.jsp-single__status {
	display: inline-flex;
	margin-top: 0.65rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
}

.jsp-single__stage {
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 1rem;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	padding: 1rem 1rem 1.15rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
	.jsp-single__stage {
		padding: 1.25rem 1.35rem 1.35rem;
	}
}

.jsp-single__vote {
	margin-bottom: 0.35rem;
}

.jsp-single__results-wrap {
	margin-top: 0.85rem;
	padding-top: 0.95rem;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.jsp-single__results-wrap .janoob-poll-tv {
	margin: 0;
}

.jsp-single__context-frame {
	position: relative;
	margin-bottom: 1.25rem;
	padding: 1rem 1rem 1.1rem;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 0.85rem;
	background: #fff;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.jsp-single__context-frame--editing {
	border-color: rgba(227, 0, 15, 0.35);
	box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.08);
}

.jsp-single__context-heart {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(227, 0, 15, 0.2);
	border-radius: 999px;
	background: rgba(227, 0, 15, 0.06);
	color: var(--jsp-primary);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.jsp-single__context-heart:hover,
.jsp-single__context-heart.is-active {
	background: var(--jsp-primary);
	color: #fff;
	transform: scale(1.05);
}

.jsp-single__context-actions {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 0.75rem;
}

.jsp-single__context-actions.hidden {
	display: none;
}

.jsp-single__context-save,
.jsp-single__context-cancel {
	font-family: Cairo, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 800;
	padding: 0.45rem 0.9rem;
	border-radius: 0.5rem;
	cursor: pointer;
}

.jsp-single__context-save {
	background: var(--jsp-primary);
	color: #fff;
	border: 0;
}

.jsp-single__context-cancel {
	background: transparent;
	border: 1px solid rgba(15, 23, 42, 0.15);
	color: #475569;
}

.jsp-single__prose--editing {
	outline: none;
	min-height: 4rem;
	border-radius: 0.5rem;
	padding: 0.35rem;
	background: rgba(227, 0, 15, 0.03);
}

.jsp-single__prose--empty p {
	color: #94a3b8;
	font-style: italic;
}

/* ——— TV broadcast results board ——— */
.janoob-poll-tv {
	border-radius: 0.85rem;
	overflow: hidden;
	background: linear-gradient(165deg, #0b1220 0%, #111827 42%, #1f2937 100%);
	color: #fff;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.janoob-poll-tv__chrome {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.75rem;
	padding: 0.65rem 0.85rem;
	background: linear-gradient(90deg, rgba(227, 0, 15, 0.95), rgba(180, 0, 12, 0.88));
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.janoob-poll-tv__live {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.janoob-poll-tv__live-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: #fff;
	animation: jsp-tv-live-pulse 1.2s ease-in-out infinite;
}

@keyframes jsp-tv-live-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.85); }
}

.janoob-poll-tv__brand {
	flex: 1;
	font-size: 0.82rem;
	font-weight: 900;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.janoob-poll-tv__total {
	font-size: 10px;
	font-weight: 800;
	opacity: 0.92;
	margin-inline-start: auto;
}

.janoob-poll-tv__stage {
	padding: 0.85rem 0.85rem 1rem;
}

.janoob-poll-tv__empty {
	margin: 0;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.55);
	padding: 0.75rem 0;
}

.janoob-poll-tv__row {
	margin-bottom: 0.75rem;
	opacity: 0;
	transform: translateY(8px);
	animation: jsp-tv-row-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: var(--jsp-tv-delay, 0ms);
}

.janoob-poll-tv__row:last-child {
	margin-bottom: 0;
}

@keyframes jsp-tv-row-in {
	to { opacity: 1; transform: translateY(0); }
}

.janoob-poll-tv__row-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.janoob-poll-tv__name {
	font-size: 0.88rem;
	font-weight: 900;
	line-height: 1.35;
}

.janoob-poll-tv__pct {
	font-size: 1.35rem;
	font-weight: 900;
	color: #f8fafc;
	text-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
	min-width: 3.5rem;
	text-align: left;
}

.janoob-poll-tv__row--lead .janoob-poll-tv__name {
	color: #fecaca;
}

.janoob-poll-tv__row--lead .janoob-poll-tv__pct {
	color: #fff;
	text-shadow: 0 0 22px rgba(227, 0, 15, 0.55);
}

.janoob-poll-tv__track {
	height: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.janoob-poll-tv__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #64748b, #94a3b8);
	transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
	min-width: 0;
}

.janoob-poll-tv__row--lead .janoob-poll-tv__fill {
	background: linear-gradient(90deg, var(--jsp-primary), #ff4d5a);
	box-shadow: 0 0 16px rgba(227, 0, 15, 0.55);
	min-width: 4%;
}

.janoob-poll-tv__votes {
	display: block;
	margin-top: 0.2rem;
	font-size: 10px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 640px) {
	.janoob-poll-tv__pct {
		font-size: 1.55rem;
	}
	.janoob-poll-tv__track {
		height: 14px;
	}
}

.jsp-single__results-placeholder {
	text-align: center;
	padding: 0.75rem 0.5rem 0.35rem;
}

.jsp-single__results-placeholder p {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--jsp-muted);
	line-height: 1.6;
}

.jsp-single__results-wrap .janoob-poll-race-card {
	border: 0;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

.jsp-single__results-wrap .janoob-poll-race-card--expanded:hover {
	transform: none;
}

.jsp-single__context {
	margin-bottom: 1.25rem;
	padding: 1rem 0.15rem 0;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.jsp-single__prose {
	font-size: 0.92rem;
	line-height: 1.85;
	color: #334155;
	font-weight: 600;
}

.jsp-single__prose p {
	margin: 0 0 0.75rem;
}

.jsp-single__prose p:last-child {
	margin-bottom: 0;
}

.jsp-single__disclaimer {
	margin: 0.45rem 0 0;
	padding: 0;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--jsp-primary, #e3000f);
	text-align: right;
}

.jsp-single__stage .jsp-single__disclaimer {
	margin-top: 0.55rem;
}

/* ——— Unified poll frame (سؤال + تصويت + نتائج) ——— */
.jsp-unified {
	margin-bottom: 1.5rem;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #0f172a;
}

.jsp-unified__hero {
	margin: 0 !important;
	border-radius: 0 !important;
}

.jsp-unified__shell {
	padding: 0.85rem 0.85rem 0.75rem;
	background: linear-gradient(180deg, #111827 0%, #0f172a 55%, #0b1220 100%);
}

@media (min-width: 640px) {
	.jsp-unified__shell {
		padding: 1rem 1.1rem 0.85rem;
	}
}

.jsp-unified__vote {
	margin-bottom: 0.65rem;
}

.jsp-unified__vote .janoob-poll--compact {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.jsp-unified__vote .janoob-poll__vote-label {
	margin: 0 0 0.55rem;
	font-size: 11px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.72);
	letter-spacing: 0.02em;
}

.jsp-unified__results {
	margin-top: 0.35rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jsp-unified__legal {
	margin: 0.65rem 0 0;
	padding: 0;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--jsp-primary, #e3000f);
	text-align: right;
}

/* Aligned vote rows (محور النتائج) */
.janoob-poll--aligned .janoob-poll__option--aligned {
	display: block;
	margin-bottom: 0.55rem;
	padding: 0.55rem 0.65rem 0.6rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.janoob-poll--aligned .janoob-poll__option--aligned:hover {
	border-color: rgba(227, 0, 15, 0.35);
	background: rgba(227, 0, 15, 0.06);
}

.janoob-poll--aligned .janoob-poll__option--aligned.is-selected {
	border-color: rgba(227, 0, 15, 0.55);
	background: rgba(227, 0, 15, 0.1);
	box-shadow: 0 0 0 1px rgba(227, 0, 15, 0.2);
}

.janoob-poll--aligned .janoob-poll__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.janoob-poll--aligned .janoob-poll__aligned-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}

.janoob-poll--aligned .janoob-poll-tv__name {
	color: #f8fafc;
	font-size: 0.92rem;
	font-weight: 800;
}

.janoob-poll--aligned .janoob-poll__aligned-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	transition: background 0.2s, border-color 0.2s;
}

.janoob-poll--aligned .janoob-poll__option--aligned.is-selected .janoob-poll__aligned-dot {
	background: var(--jsp-primary, #e3000f);
	border-color: var(--jsp-primary, #e3000f);
	box-shadow: 0 0 10px rgba(227, 0, 15, 0.55);
}

.janoob-poll--aligned .janoob-poll__aligned-track {
	margin: 0;
}

.janoob-poll--aligned .janoob-poll__aligned-fill {
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(227, 0, 15, 0.85), rgba(227, 0, 15, 0.45));
	transition: width 0.35s ease;
}

.janoob-poll--aligned .janoob-poll__option--aligned.is-selected .janoob-poll__aligned-fill {
	width: 100%;
}

.jsp-unified__vote .janoob-poll__submit--prominent {
	margin-top: 0.65rem;
	box-shadow: 0 8px 24px rgba(227, 0, 15, 0.35);
}

.jsp-unified__vote .janoob-poll__login-hint {
	color: rgba(255, 255, 255, 0.55) !important;
}

.jsp-unified__vote .janoob-poll__status {
	color: rgba(255, 255, 255, 0.85);
}

/* Dashboard: أفقي + عمودي + كعكة */
.janoob-poll-dashboard {
	border-radius: 0.75rem;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.janoob-poll-dashboard__chrome {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	padding: 0.55rem 0.75rem;
	background: var(--jsp-primary, #e3000f);
	color: #fff;
}

.janoob-poll-dashboard__brand {
	font-size: 12px;
	font-weight: 900;
	flex: 1;
}

.janoob-poll-dashboard__total {
	margin-right: auto;
	font-size: 11px;
	font-weight: 800;
	opacity: 0.92;
}

.janoob-poll-dashboard__empty {
	margin: 0;
	padding: 1.25rem 0.85rem;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.55);
}

.janoob-poll-dashboard__block {
	padding: 0.75rem 0.75rem 0.85rem;
}

.janoob-poll-dashboard__title {
	margin: 0 0 0.55rem;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.janoob-poll-tv__stage--inline {
	padding: 0;
	background: transparent;
}

.janoob-poll-dashboard__split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
	.janoob-poll-dashboard__split {
		grid-template-columns: 1fr 1fr;
	}
}

.janoob-poll-dashboard__block--half {
	border-top: 0;
}

.janoob-poll-dashboard__block--half + .janoob-poll-dashboard__block--half {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
	.janoob-poll-dashboard__block--half + .janoob-poll-dashboard__block--half {
		border-top: 0;
		border-right: 1px solid rgba(255, 255, 255, 0.06);
	}
}

.janoob-poll-vbars {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: 0.35rem;
	min-height: 9rem;
	padding-top: 0.35rem;
}

.janoob-poll-vbar {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.janoob-poll-vbar--lead .janoob-poll-vbar__pct {
	color: #fff;
}

.janoob-poll-vbar__pct {
	font-size: 11px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.75);
}

.janoob-poll-vbar__track {
	width: 100%;
	max-width: 2.75rem;
	height: 5.5rem;
	border-radius: 0.45rem 0.45rem 0.15rem 0.15rem;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.janoob-poll-vbar__fill {
	width: 100%;
	border-radius: inherit;
	transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.janoob-poll-vbar__label {
	font-size: 10px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	line-height: 1.25;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.janoob-poll-pie-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
}

.janoob-poll-pie {
	width: 7.5rem;
	height: 7.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	position: relative;
	transform: scale(0.72);
	opacity: 0;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.janoob-poll-pie--ready {
	transform: scale(1);
	opacity: 1;
	background: var(--jsp-pie-gradient);
	box-shadow: inset 0 0 0 4px rgba(15, 23, 42, 0.85), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.janoob-poll-pie__legend {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: grid;
	gap: 0.35rem;
}

.janoob-poll-pie__legend li {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 10px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.82);
}

.janoob-poll-pie__dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	flex-shrink: 0;
}

.janoob-poll-pie__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.janoob-poll-pie__pct {
	color: rgba(255, 255, 255, 0.55);
}

.jsp-single__results-placeholder {
	padding: 0.85rem 0.5rem;
	text-align: center;
}

.jsp-single__results-placeholder p {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.5);
}

/* Login modal */
.janoob-poll-login-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.janoob-poll-login-modal[hidden] {
	display: none !important;
}

.janoob-poll-login-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(4px);
}

.janoob-poll-login-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 22rem);
	padding: 1.35rem 1.25rem 1.15rem;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
	text-align: center;
}

.janoob-poll-login-modal__close {
	position: absolute;
	top: 0.45rem;
	left: 0.55rem;
	border: 0;
	background: transparent;
	font-size: 1.35rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
}

.janoob-poll-login-modal__kicker {
	margin: 0 0 0.35rem;
	font-size: 10px;
	font-weight: 900;
	color: var(--jsp-primary, #e3000f);
	letter-spacing: 0.04em;
}

.janoob-poll-login-modal__title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 900;
	color: #0f172a;
}

.janoob-poll-login-modal__lead {
	margin: 0 0 0.75rem;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.55;
	color: #64748b;
}

.janoob-poll-login-modal__pick {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.7rem;
	border-radius: 0.65rem;
	background: rgba(227, 0, 15, 0.07);
	border: 1px solid rgba(227, 0, 15, 0.18);
	text-align: right;
}

.janoob-poll-login-modal__pick.hidden {
	display: none;
}

.janoob-poll-login-modal__pick-box {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 0.2rem;
	border: 2px solid #e3000f;
	background: #e3000f;
	box-shadow: inset 0 0 0 2px #fff;
	position: relative;
}

.janoob-poll-login-modal__pick-box::after {
	content: '';
	position: absolute;
	top: 0.08rem;
	left: 0.28rem;
	width: 0.28rem;
	height: 0.52rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.janoob-poll-login-modal__pick-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	min-width: 0;
}

.janoob-poll-login-modal__pick-label {
	font-size: 10px;
	font-weight: 800;
	color: #64748b;
	line-height: 1.2;
}

.janoob-poll-login-modal__pick-value {
	font-size: 14px;
	font-weight: 900;
	color: #e3000f;
	line-height: 1.25;
}

.janoob-poll-login-modal__actions {
	display: grid;
	gap: 0.45rem;
}

.janoob-poll-login-modal__google {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	border-radius: 0.65rem;
	background-color: #e3000f !important;
	background-image: none !important;
	border: 1px solid #c4000d;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(227, 0, 15, 0.28);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.janoob-poll-login-modal__google:hover,
.janoob-poll-login-modal__google:focus,
.janoob-poll-login-modal__google:visited {
	background-color: #c4000d !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

.janoob-poll-login-modal__google-text {
	display: inline-block;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
}

.janoob-poll-login-modal__alt {
	display: block;
	padding: 0.45rem;
	font-size: 12px;
	font-weight: 800;
	color: #475569 !important;
	text-decoration: none !important;
}

.janoob-poll-login-modal__alt:hover,
.janoob-poll-login-modal__alt:focus,
.janoob-poll-login-modal__alt:visited {
	color: #334155 !important;
	text-decoration: underline !important;
}

html.janoob-poll-login-open {
	overflow: hidden;
}

.janoob-poll-race-card__total--solo {
	margin: 0 0 0.65rem;
	font-size: 11px;
	font-weight: 800;
	color: var(--jsp-muted);
}

.janoob-poll-race-card--minimal {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.jsp-other-divider {
	margin: 1.75rem auto 1.15rem;
}

.janoob-south-polls__other {
	margin-top: 0.5rem;
}

.janoob-south-polls__other-title {
	margin: 0 0 0.85rem;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 900;
	color: hsl(var(--foreground));
	letter-spacing: -0.01em;
}

.janoob-south-polls__other-rail {
	display: flex;
	gap: 0.65rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.15rem 0.1rem 0.65rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.janoob-south-polls__other-rail::-webkit-scrollbar {
	height: 4px;
}

.janoob-south-polls__other-rail::-webkit-scrollbar-thumb {
	background: rgba(227, 0, 15, 0.25);
	border-radius: 999px;
}

.janoob-poll-rail-card {
	flex: 0 0 min(78vw, 17.5rem);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.85rem 0.95rem;
	border-radius: 0.95rem;
	border: 1px solid rgba(0, 0, 0, 0.07);
	background: linear-gradient(145deg, #fff 0%, rgba(227, 0, 15, 0.035) 100%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	color: inherit;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.janoob-poll-rail-card:hover {
	transform: translateY(-2px);
	border-color: rgba(227, 0, 15, 0.22);
	box-shadow: 0 10px 24px rgba(227, 0, 15, 0.1);
}

.janoob-poll-rail-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
}

.janoob-poll-rail-card__badge {
	font-size: 10px;
	font-weight: 800;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: rgba(227, 0, 15, 0.1);
	color: var(--jsp-primary);
}

.janoob-poll-rail-card__status {
	font-size: 10px;
	font-weight: 800;
	padding: 0.08rem 0.4rem;
	border-radius: 4px;
}

.janoob-poll-rail-card__status.is-open {
	background: rgba(21, 128, 61, 0.12);
	color: #15803d;
}

.janoob-poll-rail-card__title {
	font-size: 0.86rem;
	font-weight: 900;
	line-height: 1.45;
	color: #0f172a;
	min-height: 2.5rem;
}

.janoob-poll-rail-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	margin-top: auto;
	font-size: 10px;
	font-weight: 800;
	color: #64748b;
}

.janoob-poll-rail-card__lead {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.janoob-poll-rail-card__cta {
	flex-shrink: 0;
	color: var(--jsp-primary);
}

.janoob-south-polls__quick-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 1.15rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.janoob-south-polls__quick-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	font-size: 11px;
	font-weight: 900;
	color: #334155;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.janoob-south-polls__quick-link:hover {
	border-color: rgba(227, 0, 15, 0.25);
	background: rgba(227, 0, 15, 0.05);
	color: var(--jsp-primary);
}

@media (min-width: 640px) {
	.janoob-poll-rail-card {
		flex-basis: 15.5rem;
	}

	.janoob-south-polls__other-rail {
		gap: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.janoob-south-polls__other-rail {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(14rem, 1fr);
		overflow-x: auto;
	}
}

/* Confirm vote modal */
.janoob-poll--confirm-modal .janoob-poll__submit {
	display: none;
}

.janoob-poll-confirm-modal,
.janoob-poll-chart-modal {
	position: fixed;
	inset: 0;
	z-index: 99991;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0.75rem;
}

@media (min-width: 640px) {
	.janoob-poll-confirm-modal,
	.janoob-poll-chart-modal {
		align-items: center;
		padding: 1rem;
	}
}

.janoob-poll-confirm-modal[hidden],
.janoob-poll-chart-modal[hidden] {
	display: none !important;
}

.janoob-poll-confirm-modal__backdrop,
.janoob-poll-chart-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(4px);
}

.janoob-poll-confirm-modal__panel,
.janoob-poll-chart-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 22rem);
	padding: 1.25rem 1.15rem 1.1rem;
	border-radius: 1rem 1rem 0 0;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
	text-align: center;
}

@media (min-width: 640px) {
	.janoob-poll-confirm-modal__panel,
	.janoob-poll-chart-modal__panel {
		border-radius: 1rem;
	}
}

.janoob-poll-chart-modal__panel {
	width: min(100%, 26rem);
	max-height: min(88vh, 36rem);
	overflow: auto;
	text-align: right;
}

.janoob-poll-confirm-modal__close,
.janoob-poll-chart-modal__close {
	position: absolute;
	top: 0.45rem;
	left: 0.55rem;
	border: 0;
	background: transparent;
	font-size: 1.35rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
}

.janoob-poll-confirm-modal__title,
.janoob-poll-chart-modal__title {
	margin: 0 0 0.55rem;
	font-size: 1.05rem;
	font-weight: 900;
	color: #0f172a;
}

.janoob-poll-confirm-modal__choice {
	margin: 0 0 1rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.65rem;
	background: rgba(227, 0, 15, 0.07);
	border: 1px solid rgba(227, 0, 15, 0.18);
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.45;
	color: #0f172a;
}

.janoob-poll-confirm-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.janoob-poll-confirm-modal__btn {
	min-height: 2.75rem;
	border-radius: 0.65rem;
	border: 0;
	font-size: 0.88rem;
	font-weight: 900;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.janoob-poll-confirm-modal__btn--yes {
	background: #15803d;
	color: #fff;
}

.janoob-poll-confirm-modal__btn--yes:hover {
	background: #166534;
}

.janoob-poll-confirm-modal__btn--no {
	background: #e3000f;
	color: #fff;
}

.janoob-poll-confirm-modal__btn--no:hover {
	background: #c4000d;
}

/* Dashboard analysis (display counts ×3) */
.janoob-poll-dashboard__analysis {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.janoob-poll-dashboard__analysis-total {
	margin: 0 0 0.65rem;
	font-size: 1.15rem;
	font-weight: 900;
	color: #f8fafc;
}

.janoob-poll-dashboard__analysis-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.janoob-poll-dashboard__analysis-row {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.45rem 0.55rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
}

.janoob-poll-dashboard__analysis-name {
	font-size: 0.82rem;
	font-weight: 900;
	color: #f1f5f9;
	line-height: 1.35;
}

.janoob-poll-dashboard__analysis-meta {
	font-size: 0.72rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.62);
}

.janoob-poll-dashboard__chart-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.janoob-poll-dashboard__chart-btn {
	min-height: 2.65rem;
	padding: 0.45rem 0.55rem;
	border-radius: 0.55rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #f8fafc;
	font-size: 0.78rem;
	font-weight: 900;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.janoob-poll-dashboard__chart-btn:hover {
	background: rgba(227, 0, 15, 0.22);
	border-color: rgba(227, 0, 15, 0.45);
}

.janoob-poll-vbars--modal {
	min-height: 10rem;
	overflow-x: auto;
	overflow-y: hidden;
	justify-content: flex-start;
	gap: 0.5rem;
	padding-bottom: 0.35rem;
	-webkit-overflow-scrolling: touch;
}

.janoob-poll-vbars--modal .janoob-poll-vbar {
	flex: 0 0 auto;
	min-width: 3.25rem;
	max-width: 4.5rem;
}

.janoob-poll-vbars--modal .janoob-poll-vbar__track {
	max-width: none;
	width: 2.5rem;
	height: 7rem;
}

.janoob-poll-vbars--modal .janoob-poll-vbar__label {
	white-space: normal;
	font-size: 9px;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
}

.janoob-poll-pie-wrap--modal .janoob-poll-pie {
	transform: scale(1);
	opacity: 1;
}

.janoob-poll-chart-modal__body {
	padding-top: 0.25rem;
}

html.janoob-poll-confirm-open,
html.janoob-poll-chart-open {
	overflow: hidden;
}
