/* YouppyProtest: le parti proprie (mappa dal vivo, post, playlist e lettore, YouppyBuy). Colori dai segni di app.css. */
:root { --rosso-p: #e5484d; --verde-p: #12a150; }

a.bottone { text-decoration: none; }

/* ---- mappa ---- */
.mappaBox { position: relative; height: clamp(300px, 52dvh, 560px); border-radius: 20px; overflow: hidden; box-shadow: var(--ombra); background: #dfe6ee; flex: none; }
[data-tema="scuro"] .mappaBox { background: #1b222c; }
.mappaBox .mappa { position: absolute; inset: 0; }
.mappaBox .maplibregl-ctrl-attrib { font-size: 10px; }
.mappaBox .maplibregl-ctrl-bottom-right { margin-bottom: 4px; }
.scegliAvviso { display: none; position: absolute; left: 10px; top: 12px; max-width: calc(100% - 66px); overflow: hidden; text-overflow: ellipsis; z-index: 4; background: var(--verde-p); color: #fff; font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--ombra); white-space: nowrap; pointer-events: none; }
.mappaBox.scegli .scegliAvviso { display: block; }
.mappaBox.scegli { outline: 3px solid var(--verde-p); }
/* pulsante dei temi della mappa (mappa-tema.js, come YouppyMaps) */
#tema { position: absolute; right: 10px; top: 10px; z-index: 3; --vetro: color-mix(in srgb, var(--carta) 88%, transparent); --pannello: color-mix(in srgb, var(--carta) 96%, transparent); --accent: var(--accento-forte); --accent-scuro: var(--accento-tenue); }
#tema .fab { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linea); background: var(--vetro); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; box-shadow: var(--ombra); }
#tema .fab svg { width: 21px; height: 21px; fill: none; stroke: var(--testo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#tema .fab.on { border-color: var(--accent); } #tema .fab.on svg { stroke: var(--accent); }
#temaMenu { position: absolute; right: 0; top: 50px; width: 200px; background: var(--pannello); backdrop-filter: blur(14px); border: 1px solid var(--linea); border-radius: 16px; padding: 6px; box-shadow: var(--ombra); max-height: calc(52dvh - 70px); overflow-y: auto; }
#temaMenu .tit { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px; color: var(--tenue); padding: 6px 8px 4px; }
#temaMenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px; text-align: left; font-size: 14.5px; color: var(--testo); }
#temaMenu button:hover { background: var(--campo); }
#temaMenu button.sel { background: var(--accent-scuro); color: var(--accent); font-weight: 600; }
#temaMenu .prev { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(127,127,127,.25); }
#temaMenu button.sel .prev { border: 2px solid var(--accent); }

.filtri { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.filtro { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--campo); color: var(--tenue); font-weight: 700; font-size: 12.5px; opacity: .55; }
.filtro.on { opacity: 1; color: var(--testo); background: var(--carta); box-shadow: var(--ombra); }
.agg { position: absolute; left: 10px; top: 10px; z-index: 3; max-width: calc(100% - 70px); background: color-mix(in srgb, var(--carta) 88%, transparent); backdrop-filter: blur(10px); color: var(--testo); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; box-shadow: var(--ombra); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mappaBox.scegli .agg { display: none; }
.pallino { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 2px #fff3; }
.pallino.grande { width: 13px; height: 13px; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, #fff); }
.titoletto { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.titoletto h3 { font-family: "Baloo 2", system-ui, sans-serif; font-size: 21px; font-weight: 800; }
.pillola svg { flex: none; }
.pillola.rossa { background: color-mix(in srgb, var(--rosso-p) 14%, transparent); color: var(--rosso-p); }
.elenco { display: flex; flex-direction: column; gap: 8px; }
.protesta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--carta); border-radius: 16px; padding: 12px 14px; box-shadow: var(--ombra); }
.protesta:active { transform: scale(.99); }
.protesta .cuore, .brano .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.protesta b, .brano b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.protesta small, .brano small { color: var(--tenue); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fonteInfo { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.fonteInfo .pallino { margin-top: 5px; }
.fonteInfo p { margin-top: 2px; }
.pilloleRiga { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.pilloleRiga .pillola { max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
dl.dati { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; font-size: 14.5px; }
dl.dati dt { color: var(--tenue); } dl.dati dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
a.fonte { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: var(--campo); color: var(--testo); text-decoration: none; font-size: 14.5px; }
a.fonte span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
a.fonte span b, a.fonte span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.fonte span small { color: var(--tenue); font-size: 12.5px; }
a.fonte svg { width: 18px; height: 18px; flex: none; color: var(--tenue); }
.dueBottoni { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dueBottoni .bottone { padding: 0 10px; font-size: 15.5px; min-width: 0; }
.dueCampi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.foglio .bottone.pericolo { margin-top: 6px; }

/* ---- post ---- */
.feed { display: flex; flex-direction: column; gap: 12px; }
.carta.post { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.postTesta { display: flex; align-items: center; gap: 10px; }
.postTesta .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.postTesta small { color: var(--tenue); font-size: 12.5px; }
.avatar.piccolo { width: 38px; height: 38px; font-size: 16px; }
.postTitolo { font-size: 17px; font-weight: 800; }
.testoPost { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; margin-top: 8px; }
.carta.post .testoPost { margin-top: 0; }
.media { width: 100%; max-height: 60dvh; object-fit: contain; border-radius: 14px; background: var(--campo); display: block; }
.anteprima:empty { display: none; } .anteprima { margin-bottom: 10px; }
.tondino { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--tenue); }
.tondino:active { background: var(--campo); }
.tondino:disabled { opacity: .3; }
.tondino svg { width: 19px; height: 19px; }
.tondino.on { color: var(--accento-forte); background: var(--accento-tenue); }
.filtroAttivo { display: flex; align-items: center; gap: 8px; background: var(--accento-tenue); color: var(--accento-forte); border-radius: 14px; padding: 6px 6px 6px 12px; font-weight: 700; font-size: 14px; }
.filtroAttivo span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filtroAttivo > svg { width: 18px; height: 18px; flex: none; }
.statbox { color: inherit; font: inherit; }

/* ---- playlist e lettore ---- */
.tondo.piccolo { width: 38px; height: 38px; } .tondo.piccolo svg { width: 18px; height: 18px; }
.mazzo .bollo svg { width: 24px; height: 24px; } .mazzo .bollo { background: var(--accento); color: var(--su-accento); }
.mazzo .tondo.pieno { box-shadow: none; }
.brano { display: flex; align-items: center; gap: 10px; background: var(--carta); border-radius: 14px; padding: 8px 8px 8px 10px; box-shadow: var(--ombra); }
.brano.on { outline: 2px solid var(--accento); }
.carta.avviso { border: 1px solid var(--accento); }
.carta.avviso h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 6px; } .carta.avviso h3 svg { width: 20px; height: 20px; color: var(--accento-forte); }
#lettore { background: var(--carta); border-top: 1px solid var(--linea); z-index: 2; padding: 6px 10px; display: flex; flex-direction: column; gap: 6px; }
#lettore[hidden] { display: none; }
.lt-testa { display: flex; align-items: center; gap: 2px; }
.lt-titolo { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; padding: 2px 4px; }
.lt-titolo b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-titolo small { font-size: 11.5px; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-corpo iframe { width: 100%; border: 0; border-radius: 12px; display: block; background: #000; }
.lt-corpo iframe.video { aspect-ratio: 16 / 9; height: auto; max-height: 34dvh; }
.lt-corpo audio { width: 100%; display: block; }
.lt-corpo video { width: 100%; max-height: 34dvh; border-radius: 12px; background: #000; display: block; }
/* lettore chiuso: il brano continua (l'elemento resta nella pagina), si vede solo la riga con i comandi */
#lettore.chiuso .lt-corpo { height: 0; overflow: hidden; }

/* ---- YouppyBuy ---- */
.carta.cantiere { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px 20px; border: 2px dashed color-mix(in srgb, var(--accento) 45%, transparent); }
.cantiereIco { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: #ffe7a3; color: #8a5a00; }
.cantiereIco svg { width: 40px; height: 40px; }
.carta.cantiere h2 { font-family: "Baloo 2", system-ui, sans-serif; font-size: 26px; font-weight: 800; }
.carta.cantiere p { color: var(--tenue); max-width: 420px; }
.carta.cantiere .bottone { margin-top: 6px; text-decoration: none; }

/* ---- profilo ---- */
.chiaveTesto { display: block; font: 600 13px/1.4 ui-monospace, Consolas, monospace; background: var(--campo); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; user-select: all; }
