/* =========================================================
   DIAOLOKAN — SONG PAGE (Glass / Violet-Magenta, CLEAN)
   - No conflitti / no icone giganti
   - Layout stabile desktop + mobile
========================================================= */

:root{
  --bg0:#05030a;
  --bg1:#070512;
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --acc: rgb(214,64,255);      /* viola/magenta */
  --acc2: rgb(255,64,175);     /* magenta caldo */
  --border: rgba(214,64,255,.22);
  --glass: rgba(18,12,28,.68);
  --glass2: rgba(10,8,18,.78);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0,0,0,.65);
}

*{ 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;

  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(214,64,255,.16), transparent 60%),
    radial-gradient(1000px 700px at 110% 0%, rgba(255,64,175,.12), transparent 65%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 40%, var(--bg0) 100%);
  background-attachment: fixed;
}

.muted{ color:var(--muted); }

/* =========================
   Header spacer
========================= */
.empty-header{ height:70px; }
.header-shadow{
  height:30px;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0));
}

/* =========================
   Layout
========================= */
main{
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

.card{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;

  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--border);

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

  box-shadow: var(--shadow), 0 0 22px rgba(214,64,255,.18);
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: calc(var(--radius) + 2px);
  background: radial-gradient(600px 220px at 50% -20%, rgba(214,64,255,.25), transparent 60%);
  filter: blur(26px);
  opacity:.55;
  z-index:-1;
}

/* =========================
   Top section (cover + head)
========================= */
.cover{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.cover img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  border-radius: var(--radius-sm);
  border: 1px solid var(--border);

  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.cover-col{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cover-col 
.song-head{
  display:flex;
  flex-direction:column;
  min-width: 0;
}

/* ===== Title row ===== */
.title-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px 12px;
}

.song-title{
  margin:0;
  font-size: 2rem;
  line-height:1.1;
  color:#fff;
  text-shadow: 0 0 10px rgba(214,64,255,.25);
  min-width: 0;
}

#meta{
  width:100%;
  margin: .2rem 0 0;
  font-size: .95rem;
  color: var(--muted);
}

/* =========================
   Buttons (glass pill, consistent)
========================= */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top: .9rem;
}

/* unified button style */
.btn,
.listen-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(214,64,255,.35);

  background: rgba(28,16,44,.55);
  color: #f4ecff;

  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .2px;

  cursor:pointer;
  text-decoration:none;

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  backdrop-filter: blur(6px);
}

.btn:hover,
.listen-btn:hover{
  background: rgba(44,18,70,.80);
  border-color: rgba(255,90,220,.70);
  box-shadow: 0 0 18px rgba(255,90,220,.22);
  transform: translateY(-1px);
}

.btn:active,
.listen-btn:active{
  transform: translateY(0) scale(.99);
}

/* IMPORTANT: keep icons small (no “giganti”) */
.btn svg,
.listen-btn svg,
.share-btn svg,
.listen-item svg{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  display:block;
  fill: currentColor;
}

/* =========================
   Listen dropdown
========================= */
.listen-dd{ position:relative; display:inline-flex; z-index:101; }

.listen-menu{
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  min-width: 210px;

  display:none;
  padding:6px;

  background: rgba(12,12,12,.92);
  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.listen-menu.open{ display:block; }

.listen-item{
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 10px;
  border-radius: 10px;

  color:#ddd;
  text-decoration:none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}

.listen-item:hover{
  background: rgba(255,255,255,.08);
  color:#fff;
}

.listen-item.spotify:hover{ border-color:#1DB954; background: rgba(29,185,84,.10); }
.listen-item.apple:hover{ border-color:#fa243c; background: rgba(250,36,60,.10); }

/* =========================
   Description
========================= */
.desc{
  padding: 1.2rem 1.2rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
}

.desc a{ color:#7bb4ff; text-decoration: underline; }

/* =========================
   Lyrics inline (SEO) — elegant accordion
========================= */
.lyrics-inline{
  margin: 12px 1.2rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

.lyrics-inline summary{
  padding: 12px 16px;
  cursor:pointer;
  font-weight: 800;
  color: var(--fg);
  user-select:none;
  list-style:none;

  background: linear-gradient(90deg, rgba(214,64,255,.12), transparent);
}

.lyrics-inline summary::-webkit-details-marker{ display:none; }

.lyrics-inline summary::before{
  content:"▸";
  margin-right: 10px;
  color: var(--acc);
  display:inline-block;
  transition: transform .15s ease;
}
.lyrics-inline[open] summary::before{ transform: rotate(90deg); }

.lyrics-content{
  margin:0;
  padding: 16px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
}

/* =========================
   Share bottom (icons)
========================= */
.share-bottom{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;

  padding: .95rem 1.2rem 1.2rem;
  border-top: 1px dashed rgba(214,64,255,.26);
  margin-top: 1rem;
}

.share-label{ color: var(--muted); font-size:.88rem; }

.share-btn{
  width: 36px;
  height: 36px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:#bbb;

  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.share-btn:hover{
  border-color: var(--acc);
  background: rgba(214,64,255,.14);
  color:#fff;
  transform: translateY(-1px);
}

.share-btn.fb:hover{ border-color:#1877F2; background: rgba(24,119,242,.14); color:#1877F2; }
.share-btn.wa:hover{ border-color:#25D366; background: rgba(37,211,102,.14); color:#25D366; }
.share-btn.tg:hover{ border-color:#229ED9; background: rgba(34,158,217,.14); color:#229ED9; }

/* =========================
   Modal (lyrics)
========================= */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 1rem;
  background: rgba(0,0,0,.80);
  z-index:200;
  backdrop-filter: blur(6px);
}
.modal.open{ display:flex; }

.modal .panel{
  width: min(900px, 100%);
  max-height: 85vh;
  overflow:auto;

  background: rgba(12,10,16,.95);
  border: 1px solid rgba(214,64,255,.55);
  border-radius: 14px;

  box-shadow: 0 0 34px rgba(214,64,255,.18);
}

.modal .panel header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal .panel .content{
  padding: 1rem;
  white-space: pre-wrap;
  line-height: 1.6;
}

.close{
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.18);
  padding: .45rem .70rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color:#fff;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.close:hover{
  border-color: rgba(214,64,255,.70);
  color: var(--acc);
  background: rgba(214,64,255,.10);
}

/* =========================
   Footer
========================= */
footer{
  text-align:center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: .92rem;
  margin-top: 1.5rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 700px){
  main{ padding: 1rem; }
  .cover{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .cover img{
    max-width: 340px;
    margin: 0 auto;
  }

  .song-title{ font-size: 1.85rem; }
  #meta{ width:100%; text-align:center; }

  .actions{
    flex-direction: column;
    width:100%;
  }
  .actions .btn{
    width:100%;
  }

  .lyrics-inline{ margin-left: 1rem; margin-right: 1rem; }
}
@media (min-width:701px) and (max-width: 980px){
  .cover{ grid-template-columns: 240px 1fr; }
}
/* ascolta nero (pulsante a fianco del titolo) */
.title-row .listen-btn{
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  padding: 6px 12px;
  font-size: .85rem;
}
.title-row .listen-btn:hover{
  background: rgba(0,0,0,.85);
  border-color: rgba(214,64,255,.45);
}
/* MODALE TESTO — centrato */
#modal .panel{
  text-align: center;
}

#lyrics{
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
}
.song-body{
  background: linear-gradient(
    180deg,
    rgba(80,0,120,.35) 0%,
    rgba(40,0,70,.55) 40%,
    rgba(10,0,30,.85) 100%
  );
  
  border-top: 1px solid rgba(214,64,255,.35);
}
.song-body{
  color:#efeaff;
}
.song-body{
  box-shadow:
    inset 0 0 0 1px rgba(214,64,255,.18),
    inset 0 0 60px rgba(214,64,255,.12);
}