:root {
  --bg: #0a0612;
  --bg2: #140b24;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f0ff;
  --muted: #b9add0;
  --accent: #ff2fd6;
  --accent2: #22d3ee;
  --beat: 0;
  --r: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, #2a0f45 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 96px;
}
a { color: var(--accent2); }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; max-width: 1120px; margin: 0 auto;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 6, 18, 0.6); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; }
.logo img {
  border-radius: 10px;
  transform: scale(calc(1 + var(--beat) * 0.14));
  box-shadow: 0 0 calc(8px + var(--beat) * 34px) rgba(255, 47, 214, calc(0.35 + var(--beat) * 0.5));
  transition: transform 60ms linear;
}
.logo b { color: var(--accent); }
.logo span, .btn, .lang summary { white-space: nowrap; }
.top-r { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 14px; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); display: grid;
}
.lang nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.lang nav a:hover, .lang nav a.on { background: rgba(255, 47, 214, 0.15); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  color: #fff; text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  box-shadow: 0 8px calc(20px + var(--beat) * 30px) rgba(255, 47, 214, calc(0.3 + var(--beat) * 0.4));
  transition: transform 0.15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 14px; min-height: 38px; }
.btn.play { background: linear-gradient(135deg, #ff2fd6, #ff7a59); }

/* layout */
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { margin: 56px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: clamp(24px, 4vw, 34px); }

.hero { text-align: center; padding: 72px 0 24px; margin-top: 0; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent2); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
}
.hero h1 {
  font-size: clamp(34px, 7vw, 64px); margin: 18px auto 16px; max-width: 900px; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #ffb3f2 50%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(var(--beat) * 18px) rgba(255, 47, 214, 0.6));
}
.sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 720px; margin: 0 auto 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* radio panel */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: 0 0 calc(var(--beat) * 60px) rgba(255, 47, 214, 0.18);
  scroll-margin-top: 80px;
}
#viz { width: 100%; height: 70px; display: block; margin: 4px 0 16px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.tab {
  flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
}
.tab.on { color: #fff; background: rgba(255, 47, 214, 0.2); border-color: var(--accent); }
#search {
  width: 100%; padding: 14px 16px; border-radius: 14px; font-size: 16px; color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); outline: none;
}
#search:focus { border-color: var(--accent2); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer;
  color: var(--text); background: var(--card); border: 1px solid var(--line); text-transform: capitalize;
}
.chip.on { background: var(--accent2); color: #001018; border-color: var(--accent2); font-weight: 700; }
.status { color: var(--muted); min-height: 1.5em; margin: 10px 0; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.card {
  display: flex; align-items: center; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); transition: border-color 0.15s, background 0.15s;
}
.card:hover { border-color: rgba(255, 47, 214, 0.5); }
.card.active { border-color: var(--accent); background: rgba(255, 47, 214, 0.12); }
.card-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px;
  background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.art {
  flex: 0 0 auto; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b1366, #13324a); font-weight: 800; font-size: 15px; color: #fff;
}
.art img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.card-info { min-width: 0; display: grid; }
.card-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.fav { background: none; border: 0; color: var(--muted); font-size: 22px; padding: 10px 14px; cursor: pointer; }
.fav.on { color: var(--accent); }

/* features */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.feat { padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.feat-ico { font-size: 30px; margin-bottom: 10px; }
.feat h3 { font-size: 19px; }
.feat p { color: var(--muted); margin: 0; }

/* app CTA */
.app-cta {
  display: flex; gap: 22px; align-items: center; padding: 28px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 47, 214, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(255, 47, 214, 0.35);
}
.app-cta img { border-radius: 20px; flex: 0 0 auto; }
.app-cta p { color: var(--muted); }
.app-cta .cta { justify-content: flex-start; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; }
.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* ads */
.ad { margin: 32px 0; text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
/* Spazi pubblicità: restano chiusi (altezza 0) finché AdSense non serve un annuncio.
   Non usare display:none, altrimenti AdSense non misura la larghezza e non carica. */
.ad-card { grid-column: 1 / -1; padding: 10px; display: block; }
.ad-card ins { width: 100%; }
.ad:not(:has(ins[data-ad-status="filled"])), .ad-card:not(:has(ins[data-ad-status="filled"])) {
  height: 0; min-height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; background: none;
}

/* footer */
.foot { text-align: center; color: var(--muted); padding: 32px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px; }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-langs a.on { color: var(--text); font-weight: 700; }

/* player bar */
.bar {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(760px, calc(100% - 24px)); z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 20px; background: rgba(20, 11, 36, 0.88); border: 1px solid rgba(255, 47, 214, 0.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 calc(var(--beat) * 40px) rgba(255, 47, 214, 0.45);
}
.bar[hidden] { display: none; }
.bar > img { border-radius: 10px; object-fit: cover; background: #fff; flex: 0 0 auto; }
.bar-info { flex: 1; min-width: 0; display: grid; }
.bar-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-info span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar[data-state="playing"] .bar-info span { color: var(--accent2); }
.bar[data-state="error"] .bar-info span { color: #ff8a8a; }
.ibtn { background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; padding: 8px; }
.ibtn.on { color: var(--accent); }
#btnMini.on { color: var(--accent2); }
.pbtn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #8b5cf6); flex: 0 0 auto;
  transform: scale(calc(1 + var(--beat) * 0.08));
}
#vol { width: 90px; accent-color: var(--accent); }


/* account */
.acct {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.acct[hidden] { display: none; }
.acct-ico {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #8b5cf6); font-weight: 800; font-size: 14px;
}
.acct-ico img { width: 100%; height: 100%; object-fit: cover; }
.acct.in { border-color: rgba(255, 47, 214, 0.5); }

.dlg {
  width: min(420px, calc(100% - 32px)); padding: 28px 24px 22px; border-radius: 24px; color: var(--text);
  background: var(--bg2); border: 1px solid rgba(255, 47, 214, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 calc(20px + var(--beat) * 40px) rgba(255, 47, 214, 0.25);
}
.dlg::backdrop { background: rgba(5, 2, 10, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg h2 { font-size: 24px; padding-right: 28px; }
.dlg-p { color: var(--muted); margin: 0 0 18px; }
.dlg-x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 8px; }
.dlg-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.dlg .btn { width: 100%; }
.gbtn { background: #fff; color: #1f1f1f; box-shadow: none; }
.email-form { display: grid; gap: 10px; margin-top: 12px; }
.email-form input {
  width: 100%; padding: 14px 16px; border-radius: 14px; font-size: 16px; color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); outline: none;
}
.acc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-right: 28px; }
.acc-head img { border-radius: 50%; object-fit: cover; background: var(--card); }
.acc-head div { display: grid; min-width: 0; }
.acc-head small { color: var(--muted); }
.acc-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ok { color: var(--accent2); font-weight: 600; margin: 0 0 18px; }
.linkbtn { display: block; margin: 14px auto 0; background: none; border: 0; color: #ff8a8a; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }

/* condivisione WhatsApp */
.btn.wa { background: #25d366; color: #062b14; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25); }
.cta-share { margin-top: 12px; }

/* pagine legali */
body.doc { padding-bottom: 0; }
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal h2 { font-size: 21px; margin-top: 28px; }
.legal p { color: var(--muted); }
.muted { color: var(--muted); }


/* esplora generi / paesi */
.explore h2 { font-size: clamp(20px, 3vw, 26px); margin-top: 28px; }
.xlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.xlink {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text); text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
}
.xlink:hover { border-color: rgba(255, 47, 214, 0.5); }
.xlink.on { background: rgba(255, 47, 214, 0.2); border-color: var(--accent); font-weight: 700; }
.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.hero-sm { padding: 28px 0 8px; }
.hero-sm h1 { font-size: clamp(32px, 6vw, 54px); }

/* invito installazione */
.isheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  width: min(560px, calc(100% - 24px)); z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 20px; background: var(--bg2); border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 calc(10px + var(--beat) * 30px) rgba(34, 211, 238, 0.25);
}
.isheet[hidden] { display: none; }
.isheet > img { border-radius: 14px; flex: 0 0 auto; }
.isheet-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.isheet-txt span { color: var(--muted); font-size: 14px; }
.isheet-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.isheet .btn.small { width: auto; }


/* pagina singola radio */
.st-hero { text-align: center; }
.st-logo { width: 120px; height: 120px; margin: 8px auto 18px; border-radius: 28px; font-size: 34px;
  box-shadow: 0 0 calc(16px + var(--beat) * 40px) rgba(255, 47, 214, calc(0.3 + var(--beat) * 0.4)); }
.st-meta { color: var(--accent2); font-weight: 600; margin: -4px 0 18px; text-transform: capitalize; }
.st-play { font-size: 18px; padding: 16px 30px; }
.st-hero .sub { margin-top: 22px; }
.st-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 0; }
.st-info div { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.st-info dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.st-info dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.st-app { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; margin: 24px 0;
  background: linear-gradient(135deg, rgba(255, 47, 214, 0.14), rgba(34, 211, 238, 0.1)); border: 1px solid rgba(255, 47, 214, 0.3); }
.st-app p { margin: 0; flex: 1; }
.st-links .xlink { font-size: 13px; }


/* striscia di fiducia + chi siamo */
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: '✓'; color: var(--accent2); font-weight: 800; }
.about { text-align: left; }
.about-logo { display: block; border-radius: 22px; margin: 0 0 18px; box-shadow: 0 0 calc(12px + var(--beat) * 30px) rgba(255, 47, 214, 0.4); }
.about .lead { font-size: 19px; color: var(--text); }
.about .trust { justify-content: flex-start; margin-bottom: 8px; }
.about-cta { justify-content: flex-start; margin-top: 30px; }


/* podcast */
.bar { flex-wrap: wrap; }
.seek { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 2px 4px 0; }
.seek input { flex: 1; accent-color: var(--accent2); min-width: 0; }
.seek span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.seek .ibtn { font-size: 13px; font-weight: 700; padding: 6px; }
.pod-head .chip { text-transform: none; }
body:has(#seekWrap:not([hidden])) { padding-bottom: 150px; }
.pod-go { padding: 0 16px; font-size: 26px; color: var(--muted); }
.card.pod .art { border-radius: 14px; }
.mix-player { margin: 0 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.mix-player iframe { display: block; width: 100%; height: 120px; border: 0; }
.mix-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 13px; }
.mix-row a { color: var(--accent2); }
.mix-mobile { position: relative; padding: 14px; }
.mix-m-head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.mix-m-head small { display: block; color: var(--muted); }
.mix-m-note { color: var(--muted); font-size: 14px; margin: 10px 0; }
.mix-m-btns { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.mix-m-x { position: absolute; top: 8px; right: 10px; }
.pod-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pod-head strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-about p { color: var(--muted); max-width: 820px; margin: 0 auto; text-align: center; }
.pod-eps ol { margin: 0; padding-left: 22px; color: var(--muted); display: grid; gap: 8px; }
.pod-eps li strong { color: var(--text); display: block; font-weight: 600; }
.pod-eps li span { font-size: 13px; }

@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .panel { padding: 16px; border-radius: 20px; }
  .app-cta { flex-direction: column; text-align: center; padding: 22px; }
  .app-cta .cta { justify-content: center; }
  #vol { display: none; }
  .btn { width: 100%; }
  .top .btn.small { width: auto; padding: 8px 10px; font-size: 13px; }
  .acct-txt { display: none; }
  .acct { padding: 4px; }
  .top-r { gap: 6px; }
  .lang summary { padding: 8px 10px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 30px; height: 30px; }
  .list { grid-template-columns: 1fr; }
  .isheet { flex-wrap: wrap; }
  .st-app { flex-direction: column; text-align: center; }
  .isheet-btns { width: 100%; justify-content: flex-end; }
}
@media (max-width: 370px) {
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo img, .pbtn { transform: none; }
}

/* contatore live in home: piccolo, tecnico, dati reali */
.live-pulse { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 14px auto 0; padding: 7px 14px; max-width: 640px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); font: 500 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.live-pulse[hidden] { display: none; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,0.6); animation: lpPulse 1.6s infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.lp-tag { color: #3ddc84; font-weight: 700; letter-spacing: 0.08em; }
.lp-count b { color: var(--text, #fff); font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-now { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-now:hover #lpNowTxt { color: var(--accent2); }
.lp-now-l { opacity: 0.75; }
#lpNowTxt { color: #e9e4ff; display: inline-block; }
#lpNowTxt.in { animation: lpIn 0.45s ease-out; }
@keyframes lpIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-dot, #lpNowTxt.in { animation: none; } }

/* aggiungi una radio */
.search-row { display: flex; gap: 8px; align-items: stretch; }
.search-row #search { flex: 1; min-width: 0; }
.add-st { flex: 0 0 auto; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(34,211,238,0.08); color: var(--accent2); font-weight: 700; cursor: pointer; white-space: nowrap; }
.add-st:hover { border-color: var(--accent2); }
@media (max-width: 560px) { .add-st span { display: none; } .add-st { font-size: 20px; padding: 0 16px; } }
.add-form { display: grid; gap: 10px; }
.add-form input, .add-form select { width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 15px; color: var(--text); background: rgba(0,0,0,0.35); border: 1px solid var(--line); outline: none; }
.add-form input:focus, .add-form select:focus { border-color: var(--accent2); }
.add-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-msg { min-height: 1.2em; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.add-msg.ok { color: #3ddc84; }
.add-msg.bad { color: #ff7a90; }
.add-empty { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }

/* Annunci piccoli ed eleganti: altezza FISSA (AdSense riempie lo spazio dato, mai più grande) */
.ad { max-width: 760px; margin: 28px auto; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
ins.ad-list { width: 100%; height: 100px; max-height: 100px; overflow: hidden; }
ins.ad-box { width: 100%; height: 250px; max-height: 250px; overflow: hidden; }
@media (min-width: 760px) { ins.ad-box { height: 120px; max-height: 120px; } }
.ad-card { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.ad-card .ad-label, .ad .ad-label { font-size: 10px; opacity: 0.7; margin-bottom: 4px; text-align: left; }

/* banner animato "Scarica l'app" (sempre presente, elegante) */
.promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 28px auto 10px; padding: 12px 16px; border-radius: 18px; text-decoration: none; color: var(--text, #fff);
  background: linear-gradient(110deg, rgba(255,47,214,0.16), rgba(140,60,255,0.14) 45%, rgba(34,211,238,0.14)); border: 1px solid rgba(255,47,214,0.35);
  box-shadow: 0 0 calc(10px + var(--beat, 0) * 26px) rgba(255,47,214,0.22); }
.promo:hover { border-color: var(--accent2); }
.promo-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%); transform: translateX(-100%); animation: promoShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes promoShine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.promo-logo { flex: 0 0 auto; width: 44px; height: 44px; animation: promoPulse 2.4s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(34,211,238,0.6)); }
@keyframes promoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.promo-txt small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #3ddc84; font-weight: 700; }
.promo-txt strong { font-size: 18px; }
.promo-txt strong b { color: var(--accent2); }
.promo-txt em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-btn { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; }
.promo-eq { position: absolute; right: 150px; bottom: 6px; display: flex; gap: 3px; align-items: flex-end; height: 22px; opacity: 0.35; pointer-events: none; }
.promo-eq i { width: 4px; background: linear-gradient(#22d3ee, #ff2fd6); border-radius: 2px; animation: promoEq 1s ease-in-out infinite; }
.promo-eq i:nth-child(2) { animation-delay: 0.15s; } .promo-eq i:nth-child(3) { animation-delay: 0.3s; } .promo-eq i:nth-child(4) { animation-delay: 0.45s; } .promo-eq i:nth-child(5) { animation-delay: 0.6s; }
@keyframes promoEq { 0%, 100% { height: 5px; } 50% { height: 22px; } }
@media (max-width: 560px) { .promo { gap: 10px; padding: 10px 12px; } .promo-txt strong { font-size: 16px; } .promo-btn { padding: 8px 12px; font-size: 13px; } .promo-eq { display: none; } }
@media (prefers-reduced-motion: reduce) { .promo-shine, .promo-logo, .promo-eq i { animation: none; } }

/* annuncio verticale laterale: fisso a destra, fuori dal contenuto, solo schermi ≥ 1500px */
.ad-side { position: fixed; top: 110px; right: max(16px, calc((100vw - 1120px) / 2 - 196px)); width: 176px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); z-index: 5; }
.ad-side:not(:has(ins[data-ad-status="filled"])) { visibility: hidden; }
@media (max-width: 1499px) { .ad-side { display: none; } }
