/* Umfragen 1:1 nach App (poll_playlist_screen.dart, poll_card.dart). px = pt der App. */

.fi-pollpage .fi-footer { display: none; }
.fi-pollpage .fi-main { background: #fff; }
.fi-po { --po-pink: #e6197a; --po-text: #121212; --po-muted: #666b78; --po-line: #e3e6e8; display: flex; flex-direction: column; max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding-top: env(safe-area-inset-top); color: var(--po-text); }
.fi-po button { font-family: inherit; color: inherit; }
.fi-po a { color: inherit; text-decoration: none; }

.po-head { display: flex; align-items: center; padding: 8px 16px; }
.po-back { display: grid; place-items: center; padding: 6px 14px 6px 0; }
.po-titles { flex: 1; min-width: 0; }
.po-titles h1 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: 1.4px; line-height: 1.25; text-transform: uppercase; }
.po-titles p { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--po-pink); }
.po-titles p:empty { display: none; }
.po-logo { height: 18px; width: auto; }
.po-progress { display: flex; gap: 4px; padding: 0 12px 10px 16px; }
.po-progress:empty { display: none; }
.po-progress span { flex: 1; height: 4px; background: var(--po-line); }
.po-progress span.is-on { background: var(--po-pink); }

.po-body { flex: 1; padding: 10px 16px 24px; }
.po-loading { padding: 60px 0; text-align: center; color: var(--po-muted); }

/* Karte */
.po-hero { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #e6197a; }
.po-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.po-hero-fallback { position: absolute; inset: 0; background: linear-gradient(to bottom right, #e6197a, #680b37); }
.po-hero-shade { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .85)); }
.po-hero-text { position: absolute; left: 16px; right: 16px; bottom: 8px; color: #fff; }
.po-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; }
.po-kbar { width: 4px; height: 13px; background: var(--po-pink); }
.po-badge { padding: 3px 7px; background: var(--po-pink); font-size: 9.5px; letter-spacing: 1.1px; }
.po-hero-text h2 { margin: 7px 0 0; font-size: 16.5px; font-weight: 800; line-height: 1.18; letter-spacing: -.3px; color: #fff; }
.po-opts { display: grid; gap: 8px; margin-top: 14px; }
.po-opt { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid var(--po-line); background: #fff; text-align: left; cursor: pointer; }
.po-opt i { flex: none; width: 22px; height: 22px; border: 1.6px solid var(--po-line); }
.po-opt span { font-size: 15px; font-weight: 600; line-height: 1.25; }
.po-opt:active, .po-opt:hover { border-color: var(--po-pink); }
.po-res { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; overflow: hidden; border: 1px solid var(--po-line); background: #fff; }
.po-res.is-own { border: 1.4px solid var(--po-pink); }
.po-res-bar { position: absolute; inset: 0 auto 0 0; background: rgba(230, 25, 122, .08); transition: width .35s ease-out; }
.po-res.is-own .po-res-bar { background: rgba(230, 25, 122, .2); }
.po-check { position: relative; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 3px; background: var(--po-pink); }
.po-res-text { position: relative; flex: 1; font-size: 15px; font-weight: 600; line-height: 1.25; }
.po-res.is-own .po-res-text { font-weight: 700; }
.po-res-num { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.po-res-num b { font-size: 16px; font-weight: 800; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.po-res.is-own .po-res-num b { color: var(--po-pink); }
.po-res-num small { font-size: 11.5px; color: var(--po-muted); }
.po-meta { display: flex; align-items: center; margin: 4px 0 0; min-height: 34px; }
.po-meta span { flex: 1; font-size: 11.5px; color: var(--po-muted); }
.po-meta button { padding: 8px 0; border: 0; background: none; color: var(--po-pink) !important; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.po-source { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid var(--po-line); }
.po-source-img { display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden; background: var(--po-line); color: var(--po-muted); }
.po-source-img img { width: 100%; height: 100%; object-fit: cover; }
.po-source-text { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.po-source-text small { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--po-pink); }
.po-source-text small i, .po-kicker i, .po-cta-text small i { width: 4px; height: 12px; background: var(--po-pink); }
.po-source-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.25; }
.po-source > svg { flex: none; color: var(--po-muted); }

/* Weitere Umfragen */
.po-kicker { display: flex; align-items: center; gap: 9px; margin: 22px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--po-pink); }
.po-kicker i { height: 13px; }
.po-up { border: 1px solid var(--po-line); }
.po-up-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.po-up-row + .po-up-row { border-top: 1px solid var(--po-line); }
.po-up-row span { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.po-up-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -.2px; }
.po-up-row small { font-size: 11.5px; color: var(--po-muted); }
.po-up-row em { font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: 1.1px; color: var(--po-muted); }
.po-up-row em.is-new { color: var(--po-pink); }

/* Eigene Frage */
.po-cta { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 16px; border: 0; background: var(--po-text); color: #fff !important; text-align: left; cursor: pointer; }
.po-cta-emoji { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: rgba(255, 255, 255, .12); font-size: 22px; }
.po-cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.po-cta-text small { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--po-pink); }
.po-cta-text b { margin-top: 5px; font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; }
.po-cta-text em { margin-top: 2px; font-size: 11.5px; font-style: normal; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.po-cta > svg { flex: none; color: rgba(255, 255, 255, .72); }
.po-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 32px 32px; text-align: center; }
.po-msg span { font-size: 34px; }
.po-msg b { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.po-msg p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--po-muted); }

/* Leiste unten */
.po-bar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--po-line); background: #fff; }
.po-bar[hidden] { display: none; }
.po-bar-back { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border: 1px solid var(--po-line); }
.po-bar-next { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; height: 50px; border: 0; background: var(--po-text); color: #fff !important; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; cursor: pointer; }

/* Vorschlag-Blatt */
.po-sheet { position: fixed; inset: 0; z-index: 100000; }
.po-sheet[hidden] { display: none; }
.po-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.po-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; max-height: 90dvh; margin: 0 auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: #fff; }
.po-sheet-panel .po-kicker { margin: 0; }
.po-sheet-panel h2 { margin: 8px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.po-sub { margin: 4px 0 14px; font-size: 13.5px; line-height: 1.35; color: var(--po-muted); }
.po-field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; color: var(--po-muted); }
.po-field textarea, .po-field input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--po-line); font: inherit; font-size: 15px; font-weight: 400; color: var(--po-text); resize: vertical; }
.po-field textarea:focus, .po-field input:focus { border-color: var(--po-pink); outline: 0; }
.po-add { padding: 8px 0; border: 0; background: none; color: var(--po-pink) !important; font-size: 14px; font-weight: 700; cursor: pointer; }
.po-submit { display: block; width: 100%; height: 50px; margin-top: 8px; border: 0; background: var(--po-text); color: #fff !important; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; cursor: pointer; }

.po-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 100002; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #111; color: #fff; font-size: 14.5px; font-weight: 600; transform: translateX(-50%); }
.po-toast[hidden] { display: none; }

/* ======================= Computer (ab 1024 px): Umfrage über die volle Breite, darunter alle Umfragen als Kacheln ======================= */
.po-side, .po-opt kbd, .po-keys { display: none; }
@media (max-width: 1023px) { body.fi-pollpage .fi-apphead, body.fi-pollpage .fi-appsearch { display: none !important; } }
@media (min-width: 1024px) {
	.fi-pollpage .fi-footer { display: block; }
	.fi-pollpage .fi-main { background: #f6f6f8; }
	.fi-po { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "head prog" "body body" "side side"; align-items: end; max-width: var(--w-max); min-height: 0; margin: 0 auto; padding: 0 var(--w-pad) 72px; box-sizing: border-box; }
	/* Kopf */
	/* Kopf in einer Zeile: ‹ Fanzone · Umfragen · Umfrage x von y · Fortschritt */
	/* Kopf: „‹ Fanzone“ klein darüber, darunter in einer Zeile Titel · Zähler · Fortschritt */
	.po-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 0 24px; }
	.po-head .po-back { display: inline-flex; padding: 0; color: #e6197a; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
	.po-head .po-back svg { display: none; }
	.po-head .po-back::before { content: "‹ FANZONE"; }
	.po-titles { display: flex; align-items: center; gap: 22px; }
	.po-titles h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; line-height: 1; text-transform: none; }
	.po-titles p { margin: 0; padding-left: 22px; border-left: 1px solid var(--po-line); font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
	.po-logo { display: none; }
	.po-progress { grid-area: prog; padding: 0 0 38px 28px; }
	.po-progress span { height: 5px; }
	.po-body { grid-area: body; align-self: start; padding: 0; }

	/* Karte: Bild links, rechts ein Block aus Antworten, Stimmen, Quelle – senkrecht mittig (keine Leerfläche) */
	.po-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--po-line); }
	.po-card > .po-hero { aspect-ratio: auto; min-height: 480px; }
	.po-right { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 40px; }
	.po-right > .po-opts { margin-top: 0; }
	.po-hero-text { left: 40px; right: 40px; bottom: 36px; }
	.po-status { font-size: 12.5px; }
	.po-hero-text h2 { margin-top: 14px; font-size: 44px; line-height: 1.07; letter-spacing: -.03em; }
	.po-card .po-opts { gap: 12px; }
	.po-opt, .po-res { min-height: 72px; padding: 16px 20px; }
	.po-opt span, .po-res-text { flex: 1; font-size: 18.5px; }
	.po-opt i { width: 24px; height: 24px; }
	.po-opt { transition: border-color .12s, background .12s; }
	.po-opt:hover { background: #fdf2f7; }
	.po-opt kbd { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--po-line); color: var(--po-muted); font: 800 12px/1 inherit; }
	.po-opt:hover kbd { border-color: #e6197a; color: #e6197a; }
	.po-res-num b { font-size: 21px; }
	.po-card .po-meta { margin-top: 10px; }
	.po-meta span { font-size: 13px; }
	.po-meta button { font-size: 11.5px; }
	.po-right .po-source { margin-top: 16px; }

	/* Weiter-Zeile */
	/* Weiter-Zeile unten in der rechten Kartenspalte */
	.po-right .po-bar { position: static; align-items: center; margin-top: auto; padding: 24px 0 0; border: 0; background: none; }
	.po-right { justify-content: flex-start; }
	.po-right > .po-opts { margin-top: auto; }
	.po-right > .po-bar { margin-top: auto; }
	.po-keys { display: block; margin-right: auto; color: var(--po-muted); font-size: 12.5px; }
	.po-keys kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border: 1px solid var(--po-line); background: #fff; font: 800 11px/1 inherit; }
	.po-bar-back { display: none; }
	.po-bar-next { flex: none; height: 52px; padding: 0 28px; font-size: 13.5px; transition: background .15s; }
	.po-bar-next:hover { background: #e6197a; }

	/* Alle Umfragen als Kacheln */
	.po-side { grid-area: side; display: block; margin-top: 56px; }
	.po-all-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
	.po-all-head h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
	.po-all-head h2::before { content: ""; display: inline-block; width: 4px; height: 14px; margin-right: 10px; vertical-align: -1px; background: #e6197a; }
	.po-all-head > span:not(.po-all-prog) { margin-left: auto; color: var(--po-muted); font-size: 13px; font-weight: 700; }
	.po-all-prog { width: 180px; height: 5px; background: var(--po-line); }
	.po-all-prog i { display: block; height: 100%; background: #e6197a; }
	.po-tiles { display: grid; gap: 20px; }
	.po-tile { display: flex; flex-direction: column; padding: 0 0 16px; border: 1px solid var(--po-line); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
	.po-tile:hover { border-color: var(--po-text); transform: translateY(-2px); }
	.po-tile.is-on { border-color: #e6197a; box-shadow: inset 0 0 0 1px #e6197a; }
	.po-tile-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(to bottom right, #e6197a, #680b37); }
	.po-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
	.po-tile:hover .po-tile-img img { transform: scale(1.04); }
	.po-tile-img em { position: absolute; left: 10px; top: 10px; padding: 4px 8px; background: #fff; color: #e6197a; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
	.po-tile-img em.is-now { background: #e6197a; color: #fff; }
	.po-tile-img em.is-done { background: #16a34a; color: #fff; }
	.po-tile-img em.is-end { background: #121212; color: #fff; }
	.po-tile b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 14px 16px 0; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
	.po-tile small { margin: auto 16px 0; padding-top: 8px; overflow: hidden; color: var(--po-muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
	.po-tiles .po-cta { grid-column: span var(--cta-span, 1); min-height: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; margin: 0; padding: 22px; }
	.po-tiles .po-cta > svg { display: none; }
	.po-tiles .po-cta:hover { background: #e6197a; }
	.po-tiles .po-cta:hover .po-cta-text small { color: #fff; }
	.po-sheet-panel { top: 50%; bottom: auto; max-height: 86vh; transform: translateY(-50%); }
	.po-toast { bottom: 32px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.fi-po { padding-inline: 24px; }
	.po-hero-text h2 { font-size: 34px; }
	.po-right { padding: 28px; }
}
