/* Vibra — stile. Palette: inchiostro viola-notte, corallo e viola elettrico. */
:root {
  --bg: #100d17;
  --panel: #17131f;
  --raised: #1d1929;
  --hover: #272236;
  --line: #2c2640;
  --text: #f4f1fb;
  --muted: #a69fbd;
  --dim: #6f6888;
  --accent: #ff6b3d;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(255, 107, 61, .14);
  --grad: linear-gradient(135deg, #ff6b3d 0%, #e2477f 50%, #8b5cf6 100%);
  --ok: #34d399;
  --danger: #f43f5e;
  --radius: 14px;
  --radius-sm: 8px;
  --player-h: 88px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
i[data-icon] { display: inline-flex; width: 22px; height: 22px; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; letter-spacing: .01em; transition: transform .12s, background .15s, opacity .15s; }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px -8px rgba(255, 107, 61, .55); }
.btn-light { background: var(--text); color: #120f1c; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { border: 1px solid var(--danger); color: var(--danger); }
.btn-sm { white-space: nowrap; height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn i[data-icon] { width: 18px; height: 18px; }
.icon-btn { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  border-radius: 50%; transition: color .15s, background .15s, transform .1s; }
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn.on { color: var(--accent); }
.pb-controls .icon-btn.on::after, .pb-right .icon-btn.on::after, .fp-controls .icon-btn.on::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); left: 50%; bottom: 0; transform: translateX(-50%); }
.icon-btn i[data-icon] { width: 20px; height: 20px; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); display: inline-flex; align-items: center;
  justify-content: center; color: var(--text); flex: none; }
.round-btn:hover { background: var(--hover); }
.round-btn i[data-icon] { width: 20px; height: 20px; }

/* ---------- layout stile desktop a tre colonne ---------- */
.app { overflow: hidden; }
.layout { display: grid; grid-template-columns: 300px 1fr 330px; gap: 8px; padding: 8px 8px 0; height: calc(100vh - var(--player-h)); height: calc(100dvh - var(--player-h)); }
.layout.no-right { grid-template-columns: 300px 1fr; }
.layout.no-right .rightpanel { display: none; }
.panel { background: var(--panel); border-radius: var(--radius); min-height: 0; }
.sidebar { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side-nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 12px; font: 700 20px var(--display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav-link { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 700; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active i { color: var(--accent); }
.library { flex: 1; display: flex; flex-direction: column; padding: 8px 6px 6px; overflow: hidden; }
.library-head { display: flex; align-items: center; justify-content: space-between; padding-right: 6px; }
.chips { display: flex; gap: 8px; padding: 6px 10px 10px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--raised); font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--hover); }
.chip.active { background: var(--text); color: #120f1c; }
.library-list { overflow-y: auto; flex: 1; padding: 0 2px; }
.lib-item { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.lib-item:hover { background: var(--raised); }
.lib-item.active { background: var(--hover); }
.lib-item .lib-cover { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.lib-item .lib-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-item .lib-sub { color: var(--muted); font-size: 13px; }
.lib-item.playing .lib-name { color: var(--accent); }
.lib-text { min-width: 0; }

.main { overflow-y: auto; position: relative; scroll-behavior: smooth; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; transition: background .2s; }
.topbar.solid { background: rgba(21, 18, 31, .92); backdrop-filter: blur(14px); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--raised); border-radius: 999px; padding: 0 16px; height: 44px;
  width: min(380px, 40vw); border: 1px solid transparent; margin-left: 6px; }
.search-box:focus-within { border-color: var(--muted); background: var(--hover); }
.search-box input { background: none; border: 0; outline: 0; width: 100%; }
.search-box i { color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); font-weight: 800; color: #fff; border: 3px solid rgba(0,0,0,.4); }
.menu-wrap { position: relative; }
.dropdown { position: absolute; right: 0; top: 44px; min-width: 200px; background: var(--raised); border-radius: 10px; padding: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 50; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.dropdown a:hover, .dropdown button:hover { background: var(--hover); }
.view { padding: 0 20px 40px; min-height: calc(100% - 68px); }

/* ---------- testate di pagina ---------- */
.hero { margin: -68px -20px 18px; padding: 96px 24px 24px; display: flex; align-items: flex-end; gap: 22px;
  background: linear-gradient(180deg, var(--hero, #3b2266) 0%, rgba(21,18,31,0) 100%); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover { width: 200px; height: 200px; border-radius: 12px; flex: none; box-shadow: 0 18px 50px rgba(0,0,0,.55); object-fit: cover; }
.hero-kind { font-size: 13px; font-weight: 700; }
.hero h1 { font: 700 clamp(28px, 5vw, 64px)/1.05 var(--display); margin: 6px 0 10px; letter-spacing: -.02em; word-break: break-word; }
.hero-sub { color: var(--muted); font-size: 14px; }
.hero-sub strong { color: var(--text); }
.actions { display: flex; align-items: center; gap: 18px; padding: 8px 0 18px; }
.big-play { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; box-shadow: 0 10px 30px -10px rgba(255,107,61,.8); transition: transform .12s; }
.big-play:hover { transform: scale(1.06); }
.big-play i[data-icon] { width: 26px; height: 26px; }
.greeting { font: 700 28px var(--display); margin: 8px 0 18px; letter-spacing: -.01em; }

/* ---------- sezioni e card ---------- */
.section { margin: 26px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head h2 { font: 700 22px var(--display); margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.section-head a { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.section-head a:hover { color: var(--text); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity; margin: 0 -10px; padding-left: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 0 -10px; }
.card { padding: 10px; border-radius: 10px; cursor: pointer; position: relative; scroll-snap-align: start; transition: background .2s; min-width: 0; }
.card:hover { background: var(--raised); }
.card-art { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--raised); margin-bottom: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-play { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad);
  color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px);
  transition: all .2s; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.card:hover .card-play, .card.playing .card-play { opacity: 1; transform: none; }
.card-play i[data-icon] { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.tag-preview { background: rgba(139, 92, 246, .18); color: #c4b0ff; }
.tag-new { background: var(--accent-soft); color: var(--accent); }
.tag-indie { background: rgba(52, 211, 153, .14); color: var(--ok); }
.card-art .tag { position: absolute; left: 8px; top: 8px; background: rgba(12,10,19,.75); }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.genre-tile { height: 110px; border-radius: 12px; padding: 14px; font: 700 20px var(--display); position: relative; overflow: hidden; }
.genre-tile::after { content: ""; position: absolute; width: 90px; height: 90px; right: -18px; bottom: -22px; border-radius: 22px;
  background: rgba(255,255,255,.18); transform: rotate(24deg); }
.genre-tile:hover { filter: brightness(1.1); }

/* ---------- lista brani ---------- */
.tracklist { width: 100%; }
.tl-head, .tl-row { display: grid; grid-template-columns: 36px minmax(0, 4fr) minmax(0, 2.4fr) 40px 56px 36px; gap: 14px; align-items: center; padding: 0 14px; }
.tl-head { height: 36px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; position: sticky; top: 68px;
  background: var(--panel); z-index: 5; }
.tl-row { height: 58px; border-radius: 8px; cursor: default; }
.tl-row:hover, .tl-row.selected { background: var(--raised); }
.tl-num { color: var(--muted); text-align: right; position: relative; font-variant-numeric: tabular-nums; }
.tl-num .play-small { display: none; color: var(--text); }
.tl-row:hover .tl-num .n { display: none; }
.tl-row:hover .tl-num .play-small { display: inline-flex; }
.tl-row.playing .tl-num .n { display: none; }
.tl-row.playing .tl-num .eq { display: inline-flex; }
.tl-row.playing:hover .tl-num .eq { display: none; }
.tl-num .eq { display: none; }
.tl-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tl-title img, .tl-title .ph { width: 42px; height: 42px; border-radius: 6px; flex: none; object-fit: cover; background: var(--raised); }
.tl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row.playing .tl-name { color: var(--accent); }
.tl-artist, .tl-album { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row:hover .tl-artist, .tl-row:hover .tl-album { color: var(--text); }
.tl-dur { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.tl-row .like-btn { opacity: 0; }
.tl-row:hover .like-btn, .tl-row .like-btn.on { opacity: 1; }
.tl-row .more-btn { opacity: 0; }
.tl-row:hover .more-btn { opacity: 1; }
.like-btn.on { color: var(--accent); }
.unavailable { opacity: .45; }
.eq { gap: 2px; align-items: flex-end; height: 14px; width: 14px; justify-content: flex-end; }
.eq span { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .2s; } .eq span:nth-child(3) { animation-delay: .4s; }
.paused .eq span { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--text); font: 700 22px var(--display); margin: 0 0 8px; }
.empty .btn { margin-top: 16px; }
.notice { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 14px; margin: 12px 0; }
.notice strong { color: var(--text); }

/* ---------- barra player ---------- */
.playerbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); display: grid;
  grid-template-columns: minmax(180px, 30%) minmax(0, 40%) minmax(180px, 30%); align-items: center; padding: 0 16px; background: var(--bg); z-index: 40; }
.pb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-cover { width: 56px; height: 56px; border-radius: 8px; background: var(--raised); overflow: hidden; flex: none; }
.pb-cover img { width: 100%; height: 100%; object-fit: cover; }
.pb-meta { min-width: 0; }
.pb-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pb-artist { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pb-controls { display: flex; align-items: center; gap: 14px; }
.play-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #120f1c; display: inline-flex; align-items: center;
  justify-content: center; transition: transform .1s; }
.play-btn:hover { transform: scale(1.07); }
.play-btn i[data-icon] { width: 20px; height: 20px; }
.pb-progress { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 620px; }
.time { font-size: 11px; color: var(--muted); min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--raised); color: var(--muted); white-space: nowrap; }
.badge.hq { background: var(--grad); color: #fff; }
.badge-skips { background: var(--accent-soft); color: var(--accent); }
#volume { width: 100px; }
.pb-mini-progress { display: none; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--hover); flex: 1; cursor: pointer;
  background-image: linear-gradient(var(--text), var(--text)); background-size: var(--p, 0%) 100%; background-repeat: no-repeat; }
input[type=range]:hover { background-image: var(--grad); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); opacity: 0; }
input[type=range]:hover::-webkit-slider-thumb { opacity: 1; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }

/* ---------- pannello destro ---------- */
.rightpanel { display: flex; flex-direction: column; overflow: hidden; }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px 16px; }
.tabs { display: flex; gap: 16px; }
.tab { font-weight: 700; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-color: var(--accent); }
.rp-body { overflow-y: auto; padding: 8px 16px 20px; flex: 1; }
.np-art { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--raised); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.np-title { font: 700 22px var(--display); margin: 16px 0 2px; letter-spacing: -.01em; }
.np-artist { color: var(--muted); }
.np-card { background: var(--raised); border-radius: 12px; padding: 14px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.np-card h4 { margin: 0 0 6px; color: var(--text); }
.q-label { font-weight: 700; margin: 16px 0 6px; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; }
.q-item:hover { background: var(--raised); }
.q-item img, .q-item .ph { width: 42px; height: 42px; border-radius: 6px; flex: none; object-fit: cover; background: var(--raised); }
.q-item .q-text { min-width: 0; flex: 1; }
.q-item .q-t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item .q-a { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item.now .q-t { color: var(--accent); }
.q-item .icon-btn { opacity: 0; }
.q-item:hover .icon-btn { opacity: 1; }

/* ---------- menu contestuale, modali, toast ---------- */
.ctx-menu { position: fixed; z-index: 90; min-width: 230px; max-width: 300px; background: var(--raised); border-radius: 10px; padding: 4px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6); max-height: 70vh; overflow-y: auto; }
.ctx-menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.ctx-menu button:hover { background: var(--hover); }
.ctx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ctx-menu i[data-icon] { width: 18px; height: 18px; color: var(--muted); }
.ctx-menu .ctx-title { padding: 8px 12px 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.modal-root:empty { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 4, 9, .72); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--raised); border-radius: 16px; width: min(480px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h2 { font: 700 22px var(--display); margin: 0 0 8px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.modal .close { position: absolute; top: 12px; right: 12px; }
.field { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); outline: 0; font-weight: 500; font-size: 15px; }
.field textarea { height: 90px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input[type=file] { padding: 10px; height: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.row-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 16px); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #3b6cf6; color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: tin .2s ease-out; max-width: 90vw; text-align: center; }
.toast.ok { background: #1f9d6c; } .toast.err { background: #c2304f; } .toast.brand { background-image: var(--grad); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* pausa del piano Free */
.break-overlay { position: fixed; inset: 0; z-index: 110; background: radial-gradient(circle at 30% 20%, #3a1d5e 0%, #0c0a13 65%); display: flex;
  align-items: center; justify-content: center; padding: 24px; text-align: center; }
.break-box { max-width: 460px; }
.break-box .ring { width: 110px; height: 110px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 36px var(--display); background: conic-gradient(var(--accent) var(--deg, 0deg), var(--hover) 0); position: relative; }
.break-box .ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); }
.break-box .ring span { position: relative; }
.break-box h2 { font: 700 26px var(--display); margin: 0 0 8px; }
.break-box p { color: var(--muted); margin: 0 0 22px; }

/* ---------- premium ---------- */
.premium-hero { margin: -68px -20px 0; padding: 100px 24px 36px; background: radial-gradient(ellipse at 20% 0%, rgba(255,107,61,.45), transparent 60%),
  radial-gradient(ellipse at 90% 30%, rgba(139,92,246,.5), transparent 55%); }
.premium-hero h1 { font: 700 clamp(28px, 4.6vw, 52px)/1.08 var(--display); margin: 0 0 12px; max-width: 760px; letter-spacing: -.02em; }
.premium-hero p { color: var(--muted); max-width: 560px; margin: 0; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 24px 0; }
.compare div { background: var(--raised); border-radius: 12px; padding: 14px; }
.compare strong { display: block; margin-bottom: 4px; }
.compare span { color: var(--muted); font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.plan { background: var(--raised); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); position: relative; }
.plan.current { border-color: var(--accent); }
.plan .plan-badge { position: absolute; top: -10px; left: 18px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font: 700 24px var(--display); margin: 4px 0; }
.plan .price { font-weight: 700; margin-bottom: 14px; }
.plan .price small { color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.paypal-box { min-height: 50px; margin-top: 8px; }

/* ---------- form pagina ---------- */
.form-card { background: var(--raised); border-radius: 16px; padding: 22px; max-width: 640px; margin-bottom: 20px; }
.form-card h3 { margin: 0 0 6px; font: 700 18px var(--display); }
.form-card > p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; margin-bottom: 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.status.approved { background: rgba(52,211,153,.15); color: var(--ok); }
.status.pending { background: rgba(245,158,11,.15); color: #fbbf24; }
.jam-code { font: 700 44px var(--display); letter-spacing: .12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.members { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.member { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; }
.member .avatar { width: 28px; height: 28px; border-width: 0; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- pagine login / errore / admin ---------- */
.auth-page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(ellipse at 15% 10%, rgba(255,107,61,.25), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(139,92,246,.3), transparent 55%), var(--bg); }
.auth-card { width: min(440px, 100%); background: rgba(21,18,31,.92); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; backdrop-filter: blur(10px); }
.auth-card.center { text-align: center; }
.auth-card.legal { width: min(720px, 100%); }
.auth-card.legal h2 { font: 700 17px var(--display); margin: 22px 0 6px; }
.auth-card.legal p { color: var(--muted); }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px var(--display); margin-bottom: 22px; }
.auth-logo img { width: 36px; height: 36px; }
.auth-card h1 { font: 700 28px/1.15 var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.auth-sub { color: var(--muted); margin: 0 0 22px; }
.auth-card form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[name=display_name] { display: block; width: 100%; height: 48px; margin-top: 6px;
  padding: 0 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); outline: 0; font-size: 16px; }
.auth-card input:focus { border-color: var(--accent); }
.auth-hint { color: var(--dim); font-size: 13px; margin: -6px 0 12px; }
.auth-check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; color: var(--muted); }
.auth-check input { accent-color: var(--accent); width: 18px; height: 18px; }
.auth-check a { color: var(--text); text-decoration: underline; }
.auth-error { background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.4); color: #fda4af; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.auth-switch { text-align: center; color: var(--muted); margin: 20px 0 0; font-size: 14px; }
.auth-switch a { color: var(--text); font-weight: 700; }
.admin-page { overflow: auto; }
.admin-head { padding: 20px 24px 0; }
.admin-main { padding: 0 24px 60px; max-width: 980px; }
.admin-main h2 { font: 700 20px var(--display); margin: 28px 0 6px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.admin-stats div { background: var(--panel); border-radius: 12px; padding: 14px; }
.admin-stats strong { display: block; font: 700 28px var(--display); }
.admin-stats span { color: var(--muted); font-size: 13px; }
.admin-row { display: flex; justify-content: space-between; gap: 16px; background: var(--panel); border-radius: 12px; padding: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-row audio { margin-top: 8px; width: 100%; max-width: 420px; }
.admin-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- player a schermo intero (mobile) ---------- */
.fullplayer { position: fixed; inset: 0; z-index: 80; background: linear-gradient(180deg, var(--hero, #3b2266) 0%, var(--bg) 70%);
  display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); }
.fp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fp-head span { font-size: 12px; font-weight: 700; text-align: center; color: var(--muted); }
.fp-art { width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 14px; object-fit: cover; margin: auto; box-shadow: 0 24px 60px rgba(0,0,0,.55); background: var(--raised); }
.fp-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.fp-title { font: 700 22px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-artist { color: var(--muted); }
.fp-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.fp-controls .play-btn { width: 66px; height: 66px; background: var(--text); color: #120f1c; }
.fp-controls .play-btn i[data-icon] { width: 30px; height: 30px; }
.fp-controls .icon-btn { width: 48px; height: 48px; }
.fp-controls .icon-btn i[data-icon] { width: 26px; height: 26px; }
.fp-extra { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }

.mobile-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 260px 1fr; }
  .rightpanel { position: fixed; right: 8px; top: 8px; bottom: calc(var(--player-h) + 8px); width: 340px; z-index: 30; box-shadow: -10px 0 40px rgba(0,0,0,.5); }
  .layout.no-right .rightpanel { display: none; }
  .layout.no-right { grid-template-columns: 260px 1fr; }
}
@media (max-width: 780px) {
  :root { --player-h: 64px; }
  body { font-size: 14px; }
  .layout, .layout.no-right { grid-template-columns: 1fr; padding: 0; gap: 0; height: calc(100dvh - var(--player-h) - 62px); }
  .sidebar { display: none; }
  .panel.main { border-radius: 0; }
  .rightpanel { left: 0; right: 0; top: 0; width: auto; bottom: calc(var(--player-h) + 62px); border-radius: 0; }
  .topbar { padding: 10px 14px; }
  #nav-back, #nav-fwd { display: none; }
  .search-box { width: 100%; margin: 0; }
  .topbar-left { flex: 1; }
  .topbar-right .round-btn { display: none; }
  #go-premium { display: none !important; }
  .view { padding: 0 14px 28px; }
  .hero { margin: -64px -14px 14px; padding: 80px 16px 18px; flex-direction: column; align-items: flex-start; }
  .hero-cover { width: 150px; height: 150px; align-self: center; }
  .premium-hero { margin: -64px -14px 0; padding: 84px 16px 24px; }
  .shelf { grid-auto-columns: 140px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tl-head { display: none; }
  .tl-head, .tl-row { grid-template-columns: minmax(0, 1fr) 36px 36px; padding: 0 4px; gap: 6px; }
  .tl-num, .tl-album, .tl-dur { display: none; }
  .tl-row .like-btn, .tl-row .more-btn { opacity: 1; }
  .playerbar { bottom: 62px; left: 8px; right: 8px; height: var(--player-h); border-radius: 10px; background: var(--raised); grid-template-columns: 1fr auto;
    padding: 0 8px; overflow: hidden; }
  .pb-cover { width: 44px; height: 44px; }
  .pb-center .pb-progress, #btn-shuffle, #btn-repeat, #btn-prev { display: none; }
  .pb-right { display: none; }
  .pb-controls { gap: 4px; }
  .play-btn { background: none; color: var(--text); }
  .pb-mini-progress { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--hover); border-radius: 2px; }
  .pb-mini-progress span { display: block; height: 100%; background: var(--text); width: 0; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 62px; padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(0deg, var(--bg) 60%, rgba(12,10,19,.85)); z-index: 41; justify-content: space-around; align-items: center; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); font-weight: 600; flex: 1; }
  .mobile-nav a.active { color: var(--text); }
  .mobile-nav a.active i { color: var(--accent); }
  .toasts { bottom: calc(var(--player-h) + 74px); }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .greeting { font-size: 22px; }
}
@media (min-width: 781px) { .fullplayer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


/* =====================================================================
   v2 — copertine protagoniste, colore dinamico, pagina di presentazione
   ===================================================================== */
:root { --tint: #3b2266; }
.app .main { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 34%, var(--panel)) 0, var(--panel) 420px); transition: background .6s; }

/* sfondo sfocato ricavato dalla copertina */
.backdrop { position: relative; isolation: isolate; overflow: hidden; }
.backdrop::before { content: ""; position: absolute; inset: -40px; z-index: -2; background-image: var(--cover); background-size: cover;
  background-position: center; filter: blur(48px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.backdrop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,13,23,.15) 0%, var(--panel) 100%); }
.hero { background: linear-gradient(180deg, var(--hero, #3b2266) 0%, rgba(23,19,31,0) 100%); }
.hero.backdrop { background: var(--hero, #3b2266); }
.hero-cover { border-radius: 14px; }
.hero h1 { text-wrap: balance; }
.hero-sub a, .link-artist { color: inherit; font-weight: 700; }
.hero-sub a:hover, .link-artist:hover, .tl-artist a:hover, .card-sub a:hover, .pb-artist a:hover { text-decoration: underline; }
.tl-artist a, .card-sub a, .pb-artist a, .q-a a { color: inherit; }

/* banner in evidenza nella home */
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: end; border-radius: 22px; padding: 26px; margin: 4px 0 8px;
  background: var(--tint); min-height: 270px; }
.feature .feature-cover { width: 220px; height: 220px; border-radius: 14px; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.feature .feature-kicker { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin: 0 0 6px; }
.feature h2 { font: 700 clamp(28px, 4vw, 52px)/1.02 var(--display); margin: 0 0 8px; letter-spacing: -.025em; text-wrap: balance; }
.feature .feature-artist { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.feature .feature-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* card: la copertina è la protagonista */
.card-art { border-radius: 12px; }
.card-art img { transition: transform .35s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.card-art .tag { left: 8px; top: 8px; background: rgba(16,13,23,.72); backdrop-filter: blur(6px); color: #fff; }
.card-sub a { position: relative; z-index: 1; }

/* scheletri di caricamento */
.sk { background: linear-gradient(90deg, var(--raised) 0%, var(--hover) 50%, var(--raised) 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-title { height: 30px; width: 260px; margin: 18px 0 22px; }
.sk-row { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 16px; overflow: hidden; margin-bottom: 30px; }
.sk-card { aspect-ratio: 1; }

/* pannello destro e player */
.np-head { margin: -8px -16px 0; padding: 8px 16px 16px; border-radius: 0; }
.np-art { border-radius: 14px; }
.pb-cover { box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.playerbar { border-top: 1px solid rgba(255,255,255,.04); }
.fullplayer { background: var(--hero, #3b2266); }
.fullplayer.backdrop::after { background: linear-gradient(180deg, rgba(16,13,23,.1) 0%, rgba(16,13,23,.92) 70%); }

/* upload: zona copertina con anteprima */
.cover-drop { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.cover-drop .cover-preview { width: 140px; height: 140px; border-radius: 12px; border: 2px dashed var(--line); display: flex; align-items: center;
  justify-content: center; color: var(--muted); overflow: hidden; cursor: pointer; background: var(--bg); text-align: center; font-size: 12px; padding: 8px; }
.cover-drop .cover-preview.has { border: 0; padding: 0; }
.cover-drop .cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-drop.drag .cover-preview { border-color: var(--accent); color: var(--text); }
.cover-drop p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.my-track { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; }
.my-track:hover { background: var(--raised); }
.my-track .mt-cover { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; position: relative; overflow: hidden; }
.my-track .mt-actions { display: flex; gap: 4px; align-items: center; }

/* ---------------- pagina di presentazione ---------------- */
.landing { background: var(--bg); overflow-x: hidden; }
.l-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(16,13,23,.78); backdrop-filter: blur(14px); }
.l-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px var(--display); letter-spacing: -.01em; }
.l-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14px; }
.l-links a:not(.btn) { color: var(--muted); }
.l-links a:not(.btn):hover { color: var(--text); }
.l-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center;
  min-height: calc(100vh - 64px); padding: 20px clamp(16px, 4vw, 48px) 40px; position: relative; }
.l-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 10% 20%, rgba(255,107,61,.22), transparent 70%), radial-gradient(ellipse 50% 60% at 85% 70%, rgba(139,92,246,.25), transparent 70%); }
.l-hero h1 { font: 800 clamp(44px, 7.4vw, 104px)/.95 var(--display); letter-spacing: -.045em; margin: 0 0 26px; max-width: 9.5em; text-wrap: balance; }
.l-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #cfc8e4; max-width: 34em; margin: 0 0 28px; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.l-btn-big { height: 54px; padding: 0 28px; font-size: 16px; }
.l-small { color: var(--dim); font-size: 13px; margin: 14px 0 0; }
.l-crate { height: min(760px, calc(100vh - 110px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(-7deg) scale(1.08);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.l-crate-col { overflow: hidden; }
.l-crate-track { display: flex; flex-direction: column; gap: 16px; animation: drift 60s linear infinite; }
.l-crate-col-1 .l-crate-track { animation-direction: reverse; animation-duration: 75s; }
.l-crate-col-2 .l-crate-track { animation-duration: 52s; }
.l-crate:hover .l-crate-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateY(calc(-50% - 8px)); } }
.l-cover { margin: 0; position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: 0 18px 40px rgba(0,0,0,.45); flex: none; }
.l-cover img { width: 100%; height: 100%; object-fit: cover; }
.l-cover figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  display: flex; flex-direction: column; font-size: 13px; opacity: 0; transition: opacity .2s; }
.l-cover:hover figcaption { opacity: 1; }
.l-cover figcaption span { color: #d9d3ea; }
.l-cover-empty { aspect-ratio: 1; border-radius: 16px; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 60) 60% 35%)); }
.l-sources, .l-artists, .l-plans, .l-faq { padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.landing h2 { font: 700 clamp(30px, 4.2vw, 54px)/1.04 var(--display); letter-spacing: -.03em; margin: 0 0 40px; max-width: 18em; text-wrap: balance; }
.l-source-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.l-source-row h3 { font: 700 22px var(--display); margin: 22px 0 8px; letter-spacing: -.01em; }
.l-source-row p { color: var(--muted); margin: 0; max-width: 30em; line-height: 1.6; }
.l-stack { position: relative; height: 210px; }
.l-stack img { position: absolute; width: 170px; height: 170px; border-radius: 14px; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.l-stack img:nth-child(1) { left: 0; top: 30px; transform: rotate(-8deg); }
.l-stack img:nth-child(2) { left: 70px; top: 10px; transform: rotate(3deg); z-index: 1; }
.l-stack img:nth-child(3) { left: 140px; top: 36px; transform: rotate(10deg); }
.l-stack:empty { background: linear-gradient(135deg, #ff6b3d, #8b5cf6); border-radius: 16px; width: 170px; height: 170px; }
.l-stack-b:empty { background: linear-gradient(135deg, #14b8a6, #3b82f6); }
.l-stack-c:empty { background: linear-gradient(135deg, #e2477f, #f59e0b); }
.l-artists { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.l-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 30px; display: grid; gap: 18px; }
.l-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.l-steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 18px var(--display); background: var(--raised); color: var(--accent); }
.l-steps strong { font-size: 17px; }
.l-steps span { color: var(--muted); line-height: 1.55; }
.l-artist-card { background: var(--raised); border-radius: 24px; padding: 18px; transform: rotate(2deg); box-shadow: 0 40px 80px rgba(0,0,0,.5); max-width: 420px; justify-self: center; width: 100%; }
.l-artist-card img, .l-artist-card .l-cover-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.l-artist-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px 4px 4px; }
.l-artist-meta strong { font: 700 20px var(--display); }
.l-artist-meta span { color: var(--muted); grid-column: 1; }
.l-bars { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.l-bars i { width: 6px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; height: 10px; }
.l-bars i:nth-child(2) { animation-delay: .15s; } .l-bars i:nth-child(3) { animation-delay: .3s; } .l-bars i:nth-child(4) { animation-delay: .45s; } .l-bars i:nth-child(5) { animation-delay: .6s; }
.l-compare { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.l-compare > div { border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; }
.l-free { background: var(--panel); border: 1px solid var(--line); }
.l-premium { background: linear-gradient(160deg, #3a1d3f 0%, #241a44 100%); border: 1px solid rgba(255,107,61,.35); }
.l-compare h3 { font: 700 26px var(--display); margin: 0; }
.l-price { font-size: 18px; font-weight: 700; margin: 6px 0 18px; color: #e6e0f5; }
.l-compare ul { list-style: none; padding: 0; margin: 0 0 22px; }
.l-compare li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid rgba(255,255,255,.07); }
.l-compare li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.l-free li::before { border-color: var(--muted); }
.l-plan-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 22px; }
.l-plan-list div { background: rgba(255,255,255,.06); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.l-plan-list span { font-weight: 700; }
.l-plan-list strong { font: 700 20px var(--display); }
.l-plan-list small { color: #c9c1de; font-size: 12px; }
.l-compare .btn-block { margin-top: auto; height: 50px; }
.l-faq { max-width: 860px; }
.l-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.l-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.l-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 28px var(--font); color: var(--muted); transition: transform .2s; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { color: var(--muted); margin: 0 0 20px; line-height: 1.6; max-width: 44em; }
.l-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); color: var(--muted); }
.l-footer nav { display: flex; gap: 22px; font-size: 14px; }
.l-footer a:hover { color: var(--text); }

/* login e iscrizione con il muro di copertine */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px); padding: 0; align-items: stretch; min-height: 100vh; }
.auth-split .auth-card { align-self: center; justify-self: center; margin: 32px 24px; }
.auth-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 48px; }
.auth-wall { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform: rotate(-8deg); opacity: .9; align-content: center; }
.auth-wall img, .auth-wall div { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,13,23,.95) 8%, rgba(16,13,23,.25) 60%, rgba(16,13,23,.6) 100%); }
.auth-quote { position: relative; z-index: 1; font: 700 clamp(26px, 3vw, 40px)/1.12 var(--display); letter-spacing: -.02em; max-width: 14em; margin: 0; text-wrap: balance; }

@media (max-width: 980px) {
  .l-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .l-crate { height: 360px; transform: rotate(-6deg); }
  .l-source-row, .l-artists, .l-compare { grid-template-columns: 1fr; }
  .l-plan-list { grid-template-columns: repeat(2, 1fr); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature .feature-cover { width: 160px; height: 160px; }
}
@media (max-width: 640px) {
  .l-links a:not(.btn):not(.l-login) { display: none; }
  .l-hero h1 { font-size: 46px; }
  .l-crate { grid-template-columns: repeat(3, 1fr); gap: 10px; height: 300px; }
  .l-crate-track { gap: 10px; }
  .l-stack img { width: 130px; height: 130px; }
  .l-stack img:nth-child(2) { left: 55px; } .l-stack img:nth-child(3) { left: 110px; }
  .upload-grid { grid-template-columns: 1fr; }
  .cover-drop { grid-template-columns: 110px 1fr; }
  .cover-drop .cover-preview { width: 110px; height: 110px; }
  .feature { padding: 18px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .l-crate-track, .l-bars i, .sk { animation: none !important; } }
.feature.backdrop::after { background: linear-gradient(90deg, rgba(16,13,23,.62) 0%, rgba(16,13,23,.15) 100%); }
.feature.backdrop::before { opacity: .8; }
.feature .btn i[data-icon] { width: 18px; height: 18px; }
.feature .btn-ghost { border-color: rgba(255,255,255,.35); }
.fullplayer.backdrop { position: fixed; }
.app .feature { margin-top: 22px; }
.l-hero { overflow-x: clip; overflow-y: visible; }
html:has(body.landing) { overflow-x: hidden; }
.field input[type=file] { color: var(--muted); font-size: 14px; }
.field input[type=file]::file-selector-button { font: 700 13px var(--font); color: #120f1c; background: var(--text); border: 0; border-radius: 999px;
  padding: 8px 16px; margin-right: 12px; cursor: pointer; }

/* ---------- player YouTube (i brani delle etichette si ascoltano con il video ufficiale) ---------- */
.tag-yt { background: rgba(244, 63, 94, .16); color: #fda4af; }
.yt-box { position: fixed; z-index: 45; right: 12px; bottom: calc(var(--player-h) + 12px); width: 356px; height: 200px;
  border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.yt-box #yt-player, .yt-box iframe { width: 100%; height: 100%; display: block; border: 0; }
body:has(#fullplayer:not(.hidden)) .yt-box { z-index: 85; }
@media (max-width: 780px) {
  .yt-box { left: 8px; right: 8px; width: auto; height: auto; aspect-ratio: 16 / 9; min-height: 200px; bottom: calc(var(--player-h) + 62px + 8px); }
  body:has(#fullplayer:not(.hidden)) .yt-box { top: calc(max(14px, env(safe-area-inset-top)) + 64px); bottom: auto; }
  body.yt-on #fullplayer .fp-art { visibility: hidden; }
  body.yt-on .view { padding-bottom: 260px; }
}
