/* ======================================================
   DIAOLOKAN — SCALETTA (standalone)
   - mini topbar fixed
   - background blu/teal vetro
   - lista: numero fuori + copertina nel quadrato
   - nessun rosso
====================================================== */

:root{
  --bg0:#050608;
  --bg1:#070b10;

  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --cyan: rgba(120,220,255,.95);
  --teal: rgba(80,220,220,.22);

  --panel: rgba(10,18,22,.55);
  --panel2: rgba(8,12,16,.92);

  --bd: rgba(120,220,255,.14);
  --bd2: rgba(255,255,255,.10);

  --radius: 18px;
  --radius2: 16px;
  --page-max: 900px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;

  /* sfondo profondo blu/teal */
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(80,220,220,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(40,120,255,.18), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(0,180,140,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 40%, var(--bg0) 100%);

  padding-top: 64px; /* spazio per topbar */
}

/* ======================================================
   MINI TOPBAR (fissa in cima)
====================================================== */

/* ================================
   MINI TOPBAR
================================ */

.mini-topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;

  background: rgba(8, 18, 22, .55);
  border-bottom: 1px solid rgba(120,220,255,.15);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

/* CONTENUTO ALLINEATO ALLA BOX SCALETTA */
.mini-topbar-inner{
  max-width: var(--page-max);
  margin: 0 auto;

  padding: 12px 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* spazio sotto per non coprire contenuto */
body{
  padding-top: 74px;
}

.mini-back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
}

.mini-ico{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
}

.mini-ico svg{
  width: 16px;
  height: 16px;
}

.mini-share{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.share-label{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .70;
  white-space: nowrap;
}

.share-btn{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}

.share-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn.whatsapp { color:#25D366; }
.share-btn.telegram { color:#0088cc; }
.share-btn.facebook { color:#1877F2; }

.share-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(120,220,255,.40);
}

@media (max-width: 440px){
  .share-label{ display:none; }
}

/* ======================================================
   TITOLI
====================================================== */

.after-hero{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 16px 10px;
  text-align: center;
}

.setlist-goth{
  margin: 0;
  font-size: clamp(38px, 7vw, 70px);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--cyan);
  text-shadow:
    0 10px 30px rgba(0,0,0,.60),
    0 0 22px rgba(80,220,220,.18);
}

.setlist-count{
  margin: 10px 0 0;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

/* ======================================================
   CARD CONTENITORE
====================================================== */

main{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px 16px 70px;
}

.card{
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--bd);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.list-wrap{ padding: 18px; }

/* ======================================================
   LISTA BRANI
   Struttura generata dal JS:
   <li>
     <a class="song-link">
       <span class="track-no">01</span>
       <span class="thumb"><img ...></span>
       <span class="track-title">Titolo</span>
       <span class="chev">›</span>
     </a>
   </li>
====================================================== */

.setlist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.song-link{
  display: grid;
  grid-template-columns: 46px 56px 1fr 18px;
  align-items: center;
  gap: 14px;

  padding: 14px 14px;
  border-radius: var(--radius2);

  background: linear-gradient(
    180deg,
    rgba(18,28,36,.55),
    rgba(8,12,16,.75)
  );

  border: 1px solid rgba(120,220,255,.10);

  color: var(--fg);
  text-decoration: none;

  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.song-link:hover{
  transform: translateY(-2px);
  border-color: rgba(120,220,255,.30);
  box-shadow:
    0 12px 40px rgba(0,0,0,.55),
    0 0 18px rgba(80,220,220,.12);
}

.song-link:active{ transform: translateY(0); }

.track-no{
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 12px;
  color: rgba(190,230,255,.90);
  text-align: right;
}

.thumb{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* se non c'è cover */
.thumb.is-empty{
  display: grid;
  place-items: center;
  color: rgba(120,220,255,.55);
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
}

.track-title{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 18px;

  /* UNA riga */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chev{
  font-size: 22px;
  color: rgba(120,220,255,.55);
  text-align: right;
}

.badge-missing{
  display: inline-block;
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,215,215,.92);
  border: 1px solid rgba(255,215,215,.22);
  background: rgba(80, 0, 0, .18);
  padding: 3px 8px;
  border-radius: 999px;
}

@media (min-width: 900px){
  .setlist{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
  .song-link{ grid-template-columns: 40px 52px 1fr 14px; gap: 12px; }
  .thumb{ width: 52px; height: 52px; border-radius: 14px; }
  .track-title{ font-size: 16px; }
}

/* ======================================================
   MODALI (coerenti blu/teal)
====================================================== */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,.82);
  z-index: 100;
}

.modal.open{ display: flex; }

.modal .panel{
  max-width: 920px;
  width: 100%;
  max-height: 86vh;
  overflow: auto;

  background: var(--panel2);
  border: 1px solid rgba(120,220,255,.18);
  border-radius: var(--radius);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  box-shadow: 0 18px 60px rgba(0,0,0,.65);
}

.modal .panel header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal-title{ margin: 0; font-size: 1.35rem; }
.modal-kicker{ font-size: .9rem; opacity: .9; }

.content{
  padding: 1rem;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  hyphens: auto;
  white-space: pre-wrap;
  line-height: 1.65;
}

.song-content{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.song-cover{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: #000;
}

.song-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions-row{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-footer{
  display: flex;
  gap: 10px;
  padding: 0 1rem 1rem;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(120,220,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.btn:hover{ border-color: rgba(120,220,255,.30); }
.btn:active{ transform: scale(.98); }

.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
}

.btn.ghost:hover{ background: rgba(255,255,255,.06); }

.close{
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.18);
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
}

.close:hover{ border-color: rgba(255,255,255,.28); }

@media (max-width: 720px){
  .song-content{ grid-template-columns: 1fr; }
}
