/* FStudio — nero-viola da consolle. Font locali (OFL): Bricolage Grotesque + Hanken Grotesk */
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken"; src: url(/assets/fonts/hanken.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0d0912;
  --plum: #170f26;
  --plum2: #1f1535;
  --line: #2c2048;
  --line2: #3a2b5e;
  --milk: #efe9f8;
  --muted: #a094b8;
  --dim: #72678c;
  --uv: #7b4dff;
  --uv-h: #6a3af0;
  --uv-soft: #251a47;
  --lilac: #cdbdff;
  --amber: #ffb23e;
  --ok: #4ade9b;
  --err: #ff5c7c;
  --warn: #ffb23e;
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--milk); font: 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--lilac); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(460px, 100% - 40px); margin-inline: auto; }
.mid { width: min(780px, 100% - 40px); margin-inline: auto; }
main { flex: 1; padding: 40px 0 72px; }
.mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; } .mt4 { margin-top: 56px; }
.mb0 { margin-bottom: 0; } .mb2 { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.jc { justify-content: center; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.h-sm { font-size: 2rem; }

/* intestazione */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13, 9, 18, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--milk); font: 700 1.25rem var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
nav#nav { display: flex; gap: 2px; align-items: center; margin-left: auto; }
nav#nav a, nav#nav button.linklike { color: var(--muted); padding: 8px 13px; font: 600 .95rem var(--body); position: relative; border-radius: 6px; }
nav#nav a:hover, nav#nav button.linklike:hover { color: var(--milk); text-decoration: none; }
nav#nav a.active { color: var(--milk); }
nav#nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px; background: var(--uv); }
nav#nav a.btn { color: #fff; padding: 8px 16px; margin-left: 8px; }
nav#nav a.btn::after { display: none; }
.dot { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #20140a; font: 800 .7rem/18px var(--body); text-align: center; margin-left: 5px; vertical-align: 1px; }
#nav-toggle { display: none; margin-left: auto; }
button.linklike { background: none; border: 0; cursor: pointer; font-family: inherit; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 .95rem var(--body); padding: 11px 20px; border-radius: 8px; background: var(--uv); color: #fff; transition: background .15s, transform .05s; }
.btn:hover { background: var(--uv-h); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.soft { background: var(--uv-soft); color: var(--lilac); }
.btn.soft:hover { background: #30225a; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); color: var(--milk); }
.btn.ghost:hover { background: var(--plum2); }
.btn.danger { background: #36152a; color: var(--err); }
.btn.danger:hover { background: #4a1a36; }
.btn.big { padding: 15px 28px; font-size: 1.02rem; }
.btn.small { padding: 6px 12px; font-size: .82rem; border-radius: 7px; }
.btn.block { width: 100%; }

/* form e riquadri */
.card { background: var(--plum); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.3rem; }
label { display: block; font-weight: 600; font-size: .88rem; margin: 16px 0 6px; color: var(--lilac); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], textarea, select {
  width: 100%; background: var(--ink); color: var(--milk); border: 1px solid var(--line2); border-radius: 8px; padding: 12px 14px; font: 15px var(--body); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--uv); box-shadow: 0 0 0 3px rgba(123, 77, 255, .28); }
input[type=file] { width: 100%; color: var(--muted); font: 14px var(--body); }
input[type=file]::file-selector-button { background: var(--uv-soft); color: var(--lilac); border: 0; border-radius: 7px; padding: 9px 14px; margin-right: 12px; font: 700 .85rem var(--body); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: #30225a; }
input[type=checkbox] { accent-color: var(--uv); width: 17px; height: 17px; vertical-align: -3px; margin-right: 8px; }
.check { display: flex; gap: 6px; align-items: flex-start; font-weight: 500; color: var(--muted); margin-top: 18px; }
.check input { margin-top: 3px; flex: none; }
.hint { color: var(--dim); font-size: .82rem; margin-top: 5px; }
.codeinput { text-align: center; font: 700 1.6rem ui-monospace, Consolas, monospace; letter-spacing: .35em; padding: 14px; }
form .btn { margin-top: 22px; }
form.inline .btn, form.inline { margin-top: 0; display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small-select { width: auto; padding: 7px 10px; border-radius: 8px; font-size: .82rem; }

.alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; font-size: .93rem; }
.alert.ok { background: rgba(74, 222, 155, .08); border-color: rgba(74, 222, 155, .32); color: #b5f5d6; }
.alert.err { background: rgba(255, 92, 124, .08); border-color: rgba(255, 92, 124, .32); color: #ffb3c2; }
.alert.warn { background: rgba(255, 178, 62, .08); border-color: rgba(255, 178, 62, .32); color: #ffd699; }
.alert ul { margin: 0; padding-left: 18px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: .74rem; font-weight: 700; background: var(--line); color: var(--lilac); }
.badge.accent { background: var(--uv); color: #fff; }
.badge.ok { background: rgba(74, 222, 155, .14); color: var(--ok); }
.badge.err { background: rgba(255, 92, 124, .14); color: var(--err); }
.badge.warn { background: rgba(255, 178, 62, .14); color: var(--warn); }

/* ───────── home: il disco ───────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin-bottom: .35em; max-width: 13ch; text-wrap: balance; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; margin-bottom: 1.6em; }
.hero .fine { color: var(--dim); font-size: .88rem; margin-top: 18px; }

.deck { position: relative; width: min(100%, 440px); margin-inline: auto; }
.vinyl { position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #000 0 14%, transparent 14.2%),
    repeating-radial-gradient(circle at 50% 50%, #130c1f 0 2px, #0a0610 2px 4px);
  box-shadow: 0 0 0 6px #08050d, 0 0 0 7px var(--line2), 0 28px 60px rgba(0, 0, 0, .6);
  animation: spin 9s linear infinite; }
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(123, 77, 255, .22) 12%, transparent 18% 58%, rgba(205, 189, 255, .14) 64%, transparent 70%); }
.vinyl .label { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; background: var(--amber); display: grid; place-items: center; box-shadow: 0 0 0 3px #08050d; }
.vinyl .label img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vinyl .label span { font: 800 2.6rem var(--display); color: #20140a; }
.vinyl .hole { position: absolute; left: 50%; top: 50%; width: 3.2%; aspect-ratio: 1; margin: -1.6% 0 0 -1.6%; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #08050d; z-index: 2; }
.arm { position: absolute; right: 0; top: -3%; width: 38%; height: 70%; pointer-events: none; transform-origin: 82% 8%; transform: rotate(-4deg); }
.arm svg { width: 100%; height: 100%; overflow: visible; }
.deck.idle .vinyl { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.nowplaying { margin-top: 26px; min-height: 76px; }
.nowplaying .t { font: 700 1.2rem var(--display); letter-spacing: -.01em; line-height: 1.2; }
.nowplaying .a { color: var(--muted); }
.nowplaying .m { color: var(--dim); font-size: .85rem; margin-top: 6px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nowplaying .empty { color: var(--muted); max-width: 26em; }
.player { margin-top: 14px; }
.player iframe { width: 100%; border: 0; border-radius: 8px; background: #000; display: block; }
.player.sc iframe { height: 166px; }
.player.yt iframe { aspect-ratio: 16 / 9; }

/* scaletta */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tabs button { background: none; border: 0; color: var(--muted); font: 650 .95rem var(--body); padding: 10px 16px; cursor: pointer; position: relative; border-radius: 6px 6px 0 0; }
.tabs button:hover { color: var(--milk); }
.tabs button[aria-selected=true] { color: var(--milk); }
.tabs button[aria-selected=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--uv); }
.setlist { list-style: none; margin: 0; padding: 0; }
.setlist li { border-bottom: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 2.2rem 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 4px; }
.track.norank { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.track .rank { font: 700 1.05rem var(--display); color: var(--dim); text-align: right; }
.track .cov { width: 52px; height: 52px; border-radius: 4px; background: var(--plum2); overflow: hidden; display: grid; place-items: center; color: var(--dim); font-size: 1.3rem; }
.track .cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track .tt { min-width: 0; }
.track .tt b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .tt > span { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.track .meta { color: var(--dim); font-size: .85rem; white-space: nowrap; text-align: right; }
.track .meta em { font-style: normal; color: var(--lilac); font-weight: 650; }
.track .play { background: var(--uv-soft); color: var(--lilac); border: 0; border-radius: 6px; padding: 7px 13px; font: 700 .82rem var(--body); cursor: pointer; }
.track .play:hover { background: #30225a; }
.setlist .player { padding: 0 4px 14px 70px; margin: 0; }
.panel[hidden] { display: none; }
.src { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--line); color: var(--lilac); vertical-align: 1px; }
.empty-box { border: 1px dashed var(--line2); border-radius: 10px; padding: 26px; color: var(--muted); }

/* il programma */
.tour { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.window { border-radius: 10px; overflow: hidden; background: #0a0610; box-shadow: 0 0 0 1px var(--line2), 0 30px 70px rgba(0, 0, 0, .55); }
.window .bar { height: 30px; background: var(--plum2); display: flex; align-items: center; gap: 7px; padding: 0 12px; font: 600 .75rem var(--body); color: var(--dim); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); display: block; }
.window .bar span { margin-left: 8px; }
.window img { display: block; width: 100%; height: auto; }
.facts { margin: 0; }
.facts dt { font: 700 1.05rem var(--display); margin-top: 22px; letter-spacing: -.01em; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; color: var(--muted); }

.reviews { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.reviews h2 { margin: 0 0 4px; font-size: 1.5rem; }
.reviews p { margin: 0; color: var(--muted); }
.tp-star { color: #00b67a; font-weight: 800; }
.help { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--plum); border-radius: 12px; padding: 28px 32px; }
.help h2 { margin: 0 0 4px; font-size: 1.4rem; }
.help p { margin: 0; color: var(--muted); max-width: 36em; }

/* supporto e ticket */
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.faq-list summary { cursor: pointer; font: 650 1.02rem var(--display); letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::after { content: "+"; color: var(--lilac); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.thread { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.msg { max-width: 88%; padding: 13px 16px; border-radius: 10px; background: var(--plum); border: 1px solid var(--line); }
.msg.admin { align-self: flex-end; background: var(--uv-soft); border-color: #3b2a70; }
.msg .who { font-size: .78rem; color: var(--dim); margin-bottom: 4px; }
.msg.admin .who { color: var(--lilac); }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }
.linkbox { background: var(--ink); border: 1px dashed var(--amber); border-radius: 8px; padding: 12px; font: 600 .9rem ui-monospace, Consolas, monospace; word-break: break-all; color: var(--amber); }

/* 2FA */
.qrbox { width: 220px; height: 220px; background: #fff; border-radius: 10px; padding: 6px; margin: 8px auto 4px; display: grid; place-items: center; }
.qrbox svg { width: 100%; height: 100%; display: block; }
.secret { background: var(--ink); border: 1px dashed var(--line2); border-radius: 8px; padding: 12px; text-align: center; font: 600 1rem ui-monospace, Consolas, monospace; letter-spacing: .12em; word-break: break-all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.codes div { background: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 11px; text-align: center; font: 700 1.05rem ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.steps { counter-reset: s; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 27px; height: 27px; border-radius: 50%; background: var(--uv-soft); color: var(--lilac); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

/* tabelle e admin */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--plum); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--dim); font-size: .78rem; font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat { background: var(--plum); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat b { display: block; font: 750 1.9rem var(--display); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 9px 15px; color: var(--muted); font-weight: 600; font-size: .92rem; position: relative; }
.subnav a:hover { text-decoration: none; color: var(--milk); }
.subnav a.active { color: var(--milk); }
.subnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--uv); }
.keybox { background: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 14px; font: 700 1rem ui-monospace, Consolas, monospace; letter-spacing: .06em; line-height: 1.9; }
.lic { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-top: 12px; }
.lic .k { font: 700 1.05rem ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.dev { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* testo legale */
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h3 { margin-top: 1.2em; }
.prose p, .prose li { color: #cfc6e0; }
.prose ul { padding-left: 22px; }
.prose .box { background: var(--plum); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.container > h1, .mid > h1 { font-size: 2.1rem; margin-bottom: .6em; }

/* piè di pagina */
.site-footer { border-top: 1px solid var(--line); background: #090610; padding: 44px 0 26px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 10px; font: 700 .95rem var(--display); color: var(--milk); letter-spacing: 0; }
.foot a { display: block; color: var(--muted); padding: 3px 0; font-size: .93rem; }
.foot a:hover { color: var(--milk); text-decoration: none; }
.foot a.brand { display: flex; color: var(--milk); padding: 0; font-size: 1.25rem; }
.foot .tag { color: var(--muted); max-width: 26em; margin-top: 12px; font-size: .93rem; }
.copy { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; color: var(--dim); font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* chat */
.chat-box[hidden], .chat-pop[hidden], .badge-dot[hidden], .chat-head button[hidden] { display: none !important; }
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--uv); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.chat-fab:hover { background: var(--uv-h); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .badge-dot { position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--ink); }
.chat-pop { position: fixed; right: 88px; bottom: 30px; z-index: 40; max-width: 250px; background: var(--milk); color: #1a1030; padding: 11px 14px; border-radius: 12px 12px 4px 12px; font-size: .92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); cursor: pointer; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-box { position: fixed; right: 20px; bottom: 90px; z-index: 41; width: min(370px, 100vw - 24px); height: min(540px, 100vh - 120px); background: var(--plum); border: 1px solid var(--line2); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .65); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--plum2); border-bottom: 1px solid var(--line); }
.chat-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--uv); display: grid; place-items: center; font: 800 1rem var(--display); }
.chat-head b { display: block; font: 700 .98rem var(--display); }
.chat-head small { color: var(--ok); font-size: .76rem; }
.chat-head button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; padding: 6px; border-radius: 6px; }
.chat-head button + button { margin-left: 0; }
.chat-head button:hover { color: var(--milk); background: var(--line); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cm { max-width: 86%; padding: 9px 13px; border-radius: 12px; font-size: .93rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.cm.bot { background: var(--plum2); align-self: flex-start; border-bottom-left-radius: 3px; }
.cm.me { background: var(--uv); align-self: flex-end; border-bottom-right-radius: 3px; }
.cm a.btn { margin-top: 8px; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chips button { background: none; border: 1px solid var(--line2); color: var(--lilac); border-radius: 14px; padding: 5px 11px; font: 600 .8rem var(--body); cursor: pointer; text-align: left; }
.chips button:hover { background: var(--uv-soft); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--plum2); }
.chat-form input { flex: 1; border-radius: 20px; padding: 10px 14px; }
.chat-form .btn { margin: 0; border-radius: 20px; padding: 9px 16px; }
.typing { color: var(--dim); font-size: .85rem; align-self: flex-start; }

@media (max-width: 960px) {
  .hero, .tour { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: 15ch; }
  .deck { width: min(100%, 360px); }
  .grid3, .grid2, .stats { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  #nav-toggle { display: inline-flex; }
  nav#nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 10px 20px 18px; border-bottom: 1px solid var(--line); margin: 0; }
  nav#nav.open { display: flex; }
  nav#nav a.active::after { display: none; }
}
@media (max-width: 600px) {
  .grid3, .grid2, .stats, .foot { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .track { grid-template-columns: 2rem 44px minmax(0, 1fr) auto; gap: 10px; }
  .track.norank { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .track .cov { width: 44px; height: 44px; }
  .track .meta { display: none; }
  .setlist .player { padding-left: 4px; }
  .help { padding: 22px; }
  .tabs { overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .chat-box { right: 12px; bottom: 82px; }
  .chat-pop { right: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .vinyl { animation: none; }
  .chat-pop { animation: none; }
}

/* piccoli aiuti (niente stili inline: CSP) */
label.first { margin-top: 0; }
.w100 { width: 100px; }
.bt { margin-top: 22px; }
.plain { color: inherit; }
.row.nowrap { flex-wrap: nowrap; }
.mid.wide { width: min(820px, 100% - 40px); }

.src { margin-left: 4px; }
.hero > *, .tour > * { min-width: 0; }
.vinyl { width: 100%; }
main { overflow-x: clip; }

/* ── profilo, recensioni, statistiche ── */
.choices { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.choices legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { margin: 0; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); background: transparent; transition: border-color .15s, color .15s, background .15s; }
.pill input:checked + span { border-color: var(--uv); color: #fff; background: rgba(139, 92, 246, .22); }
.pill input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.js .hide-js { display: none; }
.stars-ro { color: #f5b942; letter-spacing: 1px; white-space: nowrap; }
.stars-ro .off { color: var(--line); }
.rv-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 28px; }
.rv-score { display: flex; gap: 14px; align-items: center; }
.rv-score .big { font-size: 3rem; font-weight: 800; line-height: 1; }
.grid-rv { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.rv { border: 1px solid var(--line); background: var(--plum); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.rv p { margin: 10px 0 8px; line-height: 1.55; overflow-wrap: anywhere; }
.rv-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.rv-strip .rv { margin: 0; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { margin: 0; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5b942; }
.star-input input:focus-visible + label { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrapcell { max-width: 420px; overflow-wrap: anywhere; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 140px 1fr 80px; gap: 10px; align-items: center; font-size: .9rem; }
.bars .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--uv); border-radius: 4px; }
.bars .num { text-align: right; color: var(--muted); }
@media (max-width: 860px) {
  .grid-rv { grid-template-columns: 1fr; }
  .rv-strip { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 100px 1fr 70px; }
}
.bars .bar i.w0 { width: 0%; }
.bars .bar i.w5 { width: 5%; }
.bars .bar i.w10 { width: 10%; }
.bars .bar i.w15 { width: 15%; }
.bars .bar i.w20 { width: 20%; }
.bars .bar i.w25 { width: 25%; }
.bars .bar i.w30 { width: 30%; }
.bars .bar i.w35 { width: 35%; }
.bars .bar i.w40 { width: 40%; }
.bars .bar i.w45 { width: 45%; }
.bars .bar i.w50 { width: 50%; }
.bars .bar i.w55 { width: 55%; }
.bars .bar i.w60 { width: 60%; }
.bars .bar i.w65 { width: 65%; }
.bars .bar i.w70 { width: 70%; }
.bars .bar i.w75 { width: 75%; }
.bars .bar i.w80 { width: 80%; }
.bars .bar i.w85 { width: 85%; }
.bars .bar i.w90 { width: 90%; }
.bars .bar i.w95 { width: 95%; }
.bars .bar i.w100 { width: 100%; }

.step { margin: 0 0 6px; color: var(--lilac); font-weight: 600; font-size: .9rem; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars + .hint, .top { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.top b { color: var(--text, #fff); }

/* campanellina notifiche */
.bell { position: relative; margin: 0 2px; }
nav#nav a.bell-btn { display: inline-flex; padding: 8px 10px; }
.bell-n { position: absolute; right: 2px; top: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--amber); color: #20140a; font: 800 .65rem/16px var(--body); text-align: center; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 32px); background: var(--ink2, #17101f); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 60; overflow: hidden; }
.bell-pop[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bell-head a { font-size: .85rem; padding: 0; }
.bell-empty { padding: 14px; margin: 0; }
nav#nav a.bell-item { display: block; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; color: var(--muted); }
nav#nav a.bell-item b { display: block; color: var(--milk); font-size: .9rem; }
nav#nav a.bell-item span { display: block; font-size: .82rem; font-weight: 400; margin-top: 2px; }
nav#nav a.bell-item em { display: block; font-size: .72rem; font-style: normal; opacity: .6; margin-top: 4px; }
nav#nav a.bell-item.new { background: rgba(255,255,255,.05); }
nav#nav a.bell-item.new b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 7px; }
nav#nav a.bell-item::after, nav#nav a.bell-btn::after { display: none; }
.card.notif.new { border-left: 3px solid var(--amber); }
.narrow.wide { max-width: 720px; }
@media (max-width: 960px) { .bell { margin: 4px 0; } .bell-pop { position: static; width: auto; max-width: none; margin-top: 6px; } }

/* pubblicità e consigli */
.adslot { margin: 32px auto; max-width: 960px; min-height: 90px; }
.adslot[hidden] { display: none; }
.adlabel { font: 600 .7rem var(--body); color: var(--dim, #8a8296); margin: 0 0 4px; }
.adsbygoogle { display: block; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto; background: var(--ink2, #17101f); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.consent[hidden] { display: none; }
.consent-in { display: flex; gap: 16px; align-items: center; padding: 16px 18px; }
.consent-btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .consent-in { flex-direction: column; align-items: stretch; } .consent-btns .btn { flex: 1; } }
.aff-box { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.aff-link { font-weight: 700; }
.aff-card a.aff-link { display: inline-block; margin-top: 4px; }
.site-footer button.linklike { color: var(--muted); padding: 3px 0; margin: 0; font: inherit; font-size: .93rem; background: none; border: 0; cursor: pointer; text-align: left; display: block; }
.site-footer button.linklike:hover { color: var(--milk); }
