:root {
  --primary: #FF0000;
  --accent: #FFD700;
  --text: #FFFFFF;
  --border: rgba(255,255,255,0.2);
  --glow: rgba(255, 215, 0, 0.28);
  --blur-bg: rgba(255,255,255,0.14);
}

body {
  margin: 0;
  background: url('../img/bg.webp') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  font-family: 'Courgette', cursive;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* HEADER */
header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 30px;
  background: var(--blur-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

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

header .logo img {
  height: 100px;
  width: auto;
  border-radius: 0;   
  box-shadow: none;   
}

/* PLAYER */
.player {
  max-width: 100%;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
}

.player-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.artist-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 4px solid #FF0000;
  box-shadow: 0 0 18px var(--glow), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.track-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  height: 260px;
}

#visualizer {
  width: 100%;
  height: 30vh;
  max-height: 260px;
  background: transparent;
  border: none;
}

.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--blur-bg);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 2.3rem;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 0 16px var(--glow), 0 4px 12px rgba(0,0,0,0.4);
}

.btn:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
  background: rgba(255,255,255,0.18);
}

#audio {
  display: none;
}

/* AUTOPLAY WARNING */
.warning {
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: var(--blur-bg);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

footer .social {
  margin-top: 10px;
}

footer .social a {
  color: var(--text);
  margin: 0 8px;
  font-size: 1.4rem;
  transition: color 0.3s;
}

footer .social a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .artist-img {
    width: 210px;
    height: 210px;
  }
  .btn {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  .track-title {
    font-size: 1.4rem;
  }
  header {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }
  .canvas-wrapper {
    height: 200px;
  }
  .warning {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}