@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');


/* Base nero assoluto, tipografia pulita */
:root{
  --bg:#000;
  --fg:#e8e8e8;
  --muted:#9a9a9a;
  --card:#0a0a0a;
  --line:#1a1a1a;
  --accent:#ffffff; /* tenue per contrasto su nero */
}

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

  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
}
.hand-font{
font-family: "Edu QLD Hand", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  }

.hero-logo {
  width: 90%;              /* puoi regolarla */
  max-width: 90%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}
.hero-center {
  display: flex;
  justify-content: center; /* centra orizzontalmente */
  align-items: center;     /* centra verticalmente se aggiungi altezza */
  width: 100%;
  margin-bottom: 20px;
}

.container{max-width:1100px;margin:0 auto;padding:20px}

.header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-block:18px}
.brand{display:flex;align-items:center;gap:10px}
.brand .dot{width:10px;height:10px;border-radius:50%;background:var(--fg);box-shadow:0 0 12px rgba(255,255,255,.3)}
.brand h1{font-size:18px;margin:0}
.nav a{color:var(--muted);text-decoration:none;margin-left:18px}
.nav a:hover{color:var(--fg)}

.hero, .albums, .player-card{
   height: 100vh;                  /* occupa tutta l’altezza della finestra */
  display: flex;                  /* attiva il layout flex */
  flex-direction: column;         /* per mantenere il testo sotto al logo */
  justify-content: center;        /* centra verticalmente */
  align-items: center;            /* centra orizzontalmente */
  text-align: center;
  padding: 40px 0 20px 0;

}


.hero h2{margin:0 0 8px 0;font-size:42px;letter-spacing:0.5px}
.hero p{color:var(--muted);max-width:60ch;margin:0}

.player-card{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:20px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  margin:24px 0 40px 0;
}
#ascolta{
  margin-top: 100px;
  margin-bottom: 100px;
}
.player-cover img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block}
.player-body{display:flex;flex-direction:column;gap:12px}

.now{display:flex;align-items:center;justify-content:space-between;gap:16px}
.now h3{margin:0 0 2px 0}
.now p{margin:0;color:var(--muted);font-size:14px}
.controls button{
  appearance:none;border:1px solid var(--line);background:#111;color:var(--fg);
  padding:8px 12px;border-radius:10px;cursor:pointer;font-size:14px
}
.controls button:hover{background:#151515}

.progress{display:flex;flex-direction:column;gap:6px}
#seek{width:100%}
.time{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}

.playlist{list-style:none;padding:0;margin:8px 0 0 0;border-top:1px solid var(--line)}
.playlist li{
  display:flex;align-items:center;gap:10px;
  padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer
}
.playlist li:hover{background:#0e0e0e}
.playlist .idx{color:var(--muted);width:22px;text-align:right}
.playlist .meta{display:flex;flex-direction:column}
.playlist .title{font-weight:600}
.playlist .sub{color:var(--muted);font-size:13px}

.albums h2{margin-top:0}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.album img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;display:block}
.album h3{margin:10px 0 2px 0;font-size:16px}
.album p{margin:0;color:var(--muted)}

.contacts ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.contacts a{color:var(--fg)}

.footer{border-top:1px solid var(--line);padding-block:18px;color:var(--muted)}

@media (max-width:900px){
  .player-card{grid-template-columns:1fr}
  .hero h2{font-size:32px}
  .grid{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .grid{grid-template-columns:1fr}
}
.retro-player {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  max-width: 800px;
  margin: 60px auto;
  color: #f1f1f1;
  font-family: "Courier New", monospace;
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.05);
}

.player-main {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.cover-box img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
}

.controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controls h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

.controls p {
  margin: 0;
  color: #999;
  font-size: 14px;
}

#seek {
  width: 100%;
  appearance: none;
  height: 3px;
  background: #111;
  border-radius: 2px;
}
#seek::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: #0ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #0ff;
  cursor: pointer;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.buttons button {
  background: none;
  border: 1px solid #333;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.buttons button:hover {
  border-color: #0ff;
  color: #0ff;
}

.time {
  color: #777;
  font-size: 13px;
}

.playlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.playlist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a1a;
  cursor: pointer;
  transition: background 0.2s;
}
.playlist li:hover {
  background: #111;
}
.playlist li.active {
  background: #141414;
  color: #0ff;
}
.playlist .idx {
  width: 24px;
  text-align: right;
  color: #555;
}
.playlist .meta {
  display: flex;
  flex-direction: column;
}
.playlist .title {
  font-weight: 600;
  font-size: 15px;
}
.playlist .artist {
  font-size: 13px;
  color: #777;
}

/* === ANIMAZIONI === */

/* Hero logo che appare dolcemente */
.hero-logo {
  opacity: 0;
  transform: scale(0.96);
  animation: fadeInZoom 1.5s ease-out forwards;
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Leggera respirazione continua del logo */
@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.02); opacity: 1; }
}
.hero-logo:hover {
  animation: softPulse 3s ease-in-out infinite;
}
.album img {
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0.9;
}
.album img:hover {
  transform: translateY(-6px) scale(1.02);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.1);
}
.album h3, .album p {
  transition: color 0.3s ease;
}
.album:hover h3, .album:hover p {
  color: #fff;
}
.buttons button {
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.buttons button:hover {
  transform: scale(1.15);
  color: #0ff;
  border-color: #0ff;
}

/* Slider progressivo che cambia colore quando suona */
#seek {
  transition: background 0.3s linear;
}
#seek:active {
  background: linear-gradient(90deg, #0ff 0%, #00f5ff 100%);
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  opacity: 0;
  transform: translateY(20px);
}
.show {
  opacity: 1;
  transform: none;
}
