:root{
  --bg1:#050b16;
  --bg2:#030814;
  --chrome1:#2a6fa8;
  --chrome2:#0a2840;

  --text:#eaf2ff;
  --muted:#9fb7d6;
  --neon:#00ffd0;
  --accent:#6fd3ff;

  --base:18px;
}

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

body{
  margin:0;
  font-family:"Trebuchet MS",Tahoma,Verdana,system-ui,sans-serif;
  font-size:var(--base);
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(0,255,208,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(111,211,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  animation:bgPulse 3.2s ease-in-out infinite;
}

@keyframes bgPulse{
  0%,100%{ filter:saturate(1) brightness(1); }
  50%{ filter:saturate(1.15) brightness(1.07); }
}

.wrap{max-width:1100px;margin:0 auto;padding:28px}

.chrome{
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(0,255,208,.22);
  overflow:hidden;
  box-shadow:
    0 22px 50px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.7);
  will-change: transform, box-shadow;
}

.titlebar{
  position:relative;
  padding:18px 22px;
  background:
    linear-gradient(180deg, rgba(0,255,208,.20), transparent 40%),
    linear-gradient(180deg, var(--chrome1), var(--chrome2));
  border-bottom:1px solid rgba(255,255,255,.15);
}

.brand{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:96px;
}

.logo{
  position:absolute;
  left:22px;
  top:50%;
  transform:translateY(-50%);
  width:180px;
  height:180px;
  padding:0;
  background:none;
  border:none;
  box-shadow:none;
}

.logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 0 10px rgba(0,255,208,0.20));
}

.titleblock{text-align:center}

.site-title{
  font-family:"Orbitron","Audiowide","Trebuchet MS",sans-serif;
  font-weight:800;
  font-size:46px;
  letter-spacing:5px;
  color:#eaffff;
  text-shadow:
    0 0 8px rgba(0,255,208,.55),
    0 0 22px rgba(0,255,208,.35);
  line-height:1;
}

.sub{
  margin-top:6px;
  font-size:13px;
  letter-spacing:2.5px;
  text-transform:uppercase;
  color:var(--neon);
  opacity:.95;
}

.main{padding:20px}

.playerstrip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px;
  border-radius:18px;
  background:
    radial-gradient(600px 120px at 20% 0%, rgba(0,255,208,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.30));
  border:1px solid rgba(0,255,208,.28);
}

.lcd{
  flex:1;
  min-width:280px;
  padding:12px 16px;
  border-radius:12px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.35),
      rgba(0,0,0,.35) 2px,
      rgba(0,0,0,.45) 3px
    ),
    linear-gradient(180deg, #003b2f, #001f18);
  border:1px solid rgba(0,255,208,.40);
  box-shadow: inset 0 0 14px rgba(0,255,208,.33);
}
.lcd-text{
  font-family:"Courier New", monospace;
  font-size:18px;
  color:#7dffd6;
  letter-spacing:1px;
  text-shadow:0 0 10px rgba(0,255,208,.55);
}

.eq{
  width:170px;
  height:44px;
  display:flex;
  gap:4px;
  align-items:flex-end;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,255,208,.35);
  background:rgba(0,0,0,.35);
  box-shadow: inset 0 0 12px rgba(0,255,208,.16);
}
.eq span{
  width:6px;
  height:10px;
  border-radius:6px;
  background:linear-gradient(180deg, var(--neon), var(--accent));
  box-shadow:0 0 10px rgba(0,255,208,.22);
  transition: height 120ms linear;
}

.controls{display:flex;gap:12px;align-items:center}

.btn{
  padding:12px 14px;
  font-size:16px;
  border-radius:14px;
  cursor:pointer;
  color:var(--text);
  border:1px solid rgba(0,255,208,.30);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.20), transparent 55%),
    linear-gradient(180deg, rgba(0,255,208,.22), rgba(0,0,0,.35));
}
.btn:hover{box-shadow:0 0 14px rgba(0,255,208,.45)}

.datebox{
  min-width:120px;
  text-align:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,255,208,.35);
  background:rgba(0,0,0,.35);
  color:var(--text);
  font-family:"Courier New", monospace;
  letter-spacing:1px;
  box-shadow: inset 0 0 10px rgba(0,255,208,.12);
}

.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin-top:20px}
@media(max-width:980px){
  .playerstrip{flex-wrap:wrap}
  .eq{order:3;width:100%}
  .controls{width:100%;justify-content:flex-end}
  .grid{grid-template-columns:1fr}
  .brand{min-height:96px}
  .logo{width:78px;height:78px}
  .site-title{font-size:40px}
}

.panel{
  border-radius:18px;
  padding:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.30));
  border:1px solid rgba(0,255,208,.25);
}
.h{
  margin:0 0 14px;
  font-size:16px;
  color:var(--neon);
  letter-spacing:2px;
  text-transform:uppercase;
}
.list{margin:0;padding:0;list-style:none}
.list li{
  padding:12px 6px;
  border-bottom:1px solid rgba(255,255,255,.15);
  display:flex;
  gap:12px;
  font-size:18px;
}
.empty{color:var(--muted)}
.spacer{height:14px}

/* ===== TENDINE DATA (visibili e leggibili) ===== */
.cal-tools{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  margin:14px 0;
  flex-wrap:wrap;
}

/* NON NASCONDERE */
#calTools{
  display:flex;
}

.cal-label{
  font-size:12px;
  letter-spacing:1px;
  opacity:.85;
}

#calTools select{
  color: #eaf2ff !important;
  background: rgba(0,0,0,.35) !important;
  border: 1px solid rgba(0,255,208,.30) !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}

/* opzioni leggibili quando apri il menu */
#calTools select option{
  color:#000 !important;
  background:#fff !important;
}

#calGo{ white-space:nowrap; }

/* FIX COLONNA DESTRA */
.right-panel{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
}

.right-section{
  display:block;
  width:100%;
}

#albums-list,
#births-list,
#events-list{
  display:block;
}