/* ====== Sonda Za i Przeciw — style ====== */

/* ---------- Karta głosowania ---------- */
.sz-vote-card {
	max-width: 460px; margin: 0 auto; padding: 26px;
	border-radius: 18px; background: #0b1220; color: #e6edf6; text-align: center;
	box-shadow: 0 18px 50px rgba(8, 16, 32, .35);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sz-vote-q { margin: 0 0 20px; font-size: 21px; font-weight: 700; line-height: 1.35; color: #fff; }
.sz-vote { display: flex; gap: 12px; flex-wrap: wrap; }
.sz-btn {
	flex: 1 1 0; min-width: 130px; padding: 18px 14px; font-size: 18px; font-weight: 800;
	letter-spacing: .03em; color: #fff; border: none; border-radius: 14px; cursor: pointer;
	transition: transform .08s, filter .15s, opacity .2s;
}
.sz-btn-za       { background: linear-gradient(180deg, #22c55e, #16a34a); }
.sz-btn-przeciw  { background: linear-gradient(180deg, #f43f5e, #dc2626); }
.sz-btn:hover    { filter: brightness(1.06); }
.sz-btn:active   { transform: translateY(1px); }
.sz-btn:disabled { opacity: .5; cursor: default; }
.sz-message { flex-basis: 100%; min-height: 20px; margin: 14px 0 0; font-size: 14px; }
.sz-message--error { color: #fb7185; }
.sz-message--info { color: #9fb0c5; }
.sz-message--success { color: #4ade80; }

/* ---------- Pasek TV ---------- */
.sz-bar-wrap {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	max-width: 1100px; margin: 0 auto; padding: 0 8px; box-sizing: border-box;
}
/* W OBS przyklejony do dołu ekranu */
.sz-obs.sz-bar-wrap { position: fixed; left: 0; right: 0; bottom: 30px; max-width: none; padding: 0 48px; }
.sz-obs-body { background: transparent; }

.sz-question {
	display: table; margin: 0 auto 10px; padding: 9px 22px;
	font-size: 21px; font-weight: 800; color: #fff; text-align: center;
	background: rgba(10, 14, 24, .9); border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .4); text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.sz-bar {
	display: flex; height: 58px; border-radius: 12px; overflow: hidden;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .45); background: #1f2937;
}
.sz-seg {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 20px; min-width: 0; color: #fff; overflow: hidden; white-space: nowrap;
	transition: width .8s cubic-bezier(.22, .61, .36, 1), background-color .4s;
}
.sz-za      { background: linear-gradient(180deg, #22c55e, #15a34a); }
.sz-przeciw { background: linear-gradient(180deg, #f43f5e, #dc2626); box-shadow: inset 2px 0 0 rgba(255, 255, 255, .35); }
.sz-empty .sz-za      { background: #4b5563; }
.sz-empty .sz-przeciw { background: #374151; }

.sz-seg-label { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .95; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.sz-seg-pct { font-size: 28px; font-weight: 900; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

.sz-counts { margin-top: 8px; text-align: center; font-size: 13px; font-weight: 600; color: #e5e7eb; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* Pasek na zwykłej stronie (nie OBS) – delikatne tło, by był czytelny */
.sz-bar-wrap:not(.sz-obs) { padding-top: 8px; }

@media (max-width: 600px) {
	.sz-seg-pct { font-size: 22px; }
	.sz-seg-label { font-size: 13px; }
	.sz-question { font-size: 17px; }
}
