/* Alapok */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  color: #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  z-index: 0;
  /* Háttér animáció a pseudoelemmel */
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 120vh;
  background:
    radial-gradient(circle at 30% 40%, rgba(29, 185, 84, 0.15), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(12, 48, 18, 0.4), transparent 80%),
    linear-gradient(135deg, #050505 15%, #0b0b0b 40%, #050505 70%, #0a0a0a 85%);
  backdrop-filter: blur(45px) saturate(150%);
  filter: brightness(0.7) contrast(1.15);
  z-index: -1;
  animation: liquidFlow 30s ease-in-out infinite alternate;
  will-change: transform, filter;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes liquidFlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(0.9) saturate(180%);
  }
  50% {
    transform: translate3d(15px, -10px, 0) scale(1.02);
    filter: brightness(1.1) saturate(210%);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(0.9) saturate(180%);
  }
}

/* Fade-in animáció */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}

.header .avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #1DB954;
  box-shadow: 0 0 15px #1DB954a0;
  object-fit: cover;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
  animation-fill-mode: forwards;
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.header p {
  font-size: 1.1rem;
  color: #aaa;
  font-style: italic;
}

/* PLAYLISTS */
.playlists {
  width: 100%;
  max-width: 960px;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
  animation-fill-mode: forwards;
  text-align: center;
}

.playlists h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #1DB954;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.playlist-container {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.playlist-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  width: 220px;
  padding: 15px;
  box-shadow: 0 0 15px #00000050;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.playlist-card img {
  width: 200px;        /* vagy amekkora négyzetet akarsz */
  height: 200px;
  object-fit: cover;   /* levágja a széleket, hogy szép legyen */
  border-radius: 12px; /* ha kell lekerekítés */
  display: block;
}



.playlist-card h3 {
  font-size: 1.25rem;
  color: #eee;
  text-align: center;
  transition: color 0.3s ease;
}

.playlist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px #1DB954;
}

.playlist-card:hover img {
  transform: scale(1.05);
}

.playlist-card:hover h3 {
  color: #1DB954;
}

/* NOW PLAYING */
.now-playing {
  width: 100%;
  max-width: 600px;
  margin-bottom: 50px;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
  animation-fill-mode: forwards;
}

.now-playing h2 {
  font-size: 2rem;
  color: #1DB954;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.now-playing-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px 25px;
  box-shadow: 0 0 15px #00000050;
  max-width: 500px;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.now-playing-card img {
  width: 110px;
  height: 110px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 20px #1DB954a0;
  transition: transform 0.3s ease;
}

.now-playing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.now-playing-card p {
  font-size: 1.1rem;
  color: #bbb;
}

.now-playing-card:hover {
  box-shadow: 0 0 35px #1DB954;
}

.now-playing-card:hover img {
  transform: scale(1.07);
}

/* LINKS */
.links {
  margin-bottom: 30px;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.links h2 {
  font-size: 2rem;
  color: #1DB954;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.links a {
  color: #1DB954;
  margin: 0 18px;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}

.links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #1DB954;
  transition: width 0.3s ease;
}

.links a:hover {
  color: dimgray;
}

.links a:hover::after {
  width: 100%;
}

/* Reszponzív */
@media (max-width: 720px) {
  .playlist-container {
    justify-content: center;
  }
  .playlist-card {
    width: 90vw;
    max-width: 300px;
  }
  .now-playing-card {
    flex-direction: column;
    max-width: 90vw;
  }
  .now-playing-card img {
    margin-bottom: 15px;
  }
}

/* PLAYLIST BUTTON DESIGN */
.playlist-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 10px 0;
  background: rgba(29, 185, 84, 0.15);
  color: #1DB954;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px #1db95440;
  transition: all 0.3s ease;
}

.playlist-btn:hover {
  background: #1DB954;
  color: #000;
  box-shadow: 0 0 25px #1DB954;
  transform: translateY(-3px) scale(1.03);
}

.header {
  position: relative;
  padding: 30px 40px;
  border-radius: 22px;
  text-align: center;

  background: #0a0a0a; /* stabil háttér */
  z-index: 10;
}
.header::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;

  border-radius: 25px;
  border: 3px solid #1DB954;

  box-shadow: 0 0 20px #1DB954;
  animation: neonPulse 2.5s ease-in-out infinite;

  z-index: -1;
}
@keyframes neonPulse {
  0% {
    box-shadow: 0 0 15px #1DB954;
    opacity: 0.7;
  }
  50% {
    box-shadow: 0 0 35px #1DB954;
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 15px #1DB954;
    opacity: 0.7;
  }
}

h2 {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 12px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg,
    transparent,
    #1DB954,
    transparent
  );

  background-size: 300px 100%;
  animation: neonLine 2.5s linear infinite;
  border-radius: 3px;
}

@keyframes neonLine {
  0% {
    background-position: -300px 0;
    box-shadow: 0 0 10px #1DB954;
  }
  50% {
    background-position: 300px 0;
    box-shadow: 0 0 25px #1DB954;
  }
  100% {
    background-position: -300px 0;
    box-shadow: 0 0 10px #1DB954;
  }
}

.music-player {
  text-align: center;
  margin-top: 40px;
}

/* Neon keretes zene kártya */
.music-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin: 0 auto;
  width: fit-content;

  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 2px solid #1DB954;
  box-shadow: 0 0 20px #1DB95455;
}

.album-cover {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  box-shadow: 0 0 20px #1DB954aa;
}

.track-info h3 {
  margin: 0;
  color: #1DB954;
}

.track-info p {
  margin: 0;
  opacity: 0.8;
}

/* Equalizer */
.real-equalizer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.real-equalizer .bar {
  width: 12px;
  height: 10px;
  background: #1DB954;
  border-radius: 6px;
  box-shadow: 0 0 15px #1DB954, 0 0 30px #1DB954;
  transition: height 0.1s ease;
}
.music-player h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 25px;
}

.music-player h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, transparent, #1DB954, transparent);
  background-size: 300px 100%;
  animation: neonLine 2.5s linear infinite;
  border-radius: 3px;
}

audio {
  width: 300px;
  margin-top: 20px;
  margin-bottom: 20px;

  background: #0a0a0a;
  border: 2px solid #1DB954;
  border-radius: 12px;
  padding: 5px;

  box-shadow: 0 0 15px #1DB95455;
}

.music-player {
  text-align: center;
  margin-top: 40px;
}

/* Zene kártya */
.music-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin: 0 auto;
  width: fit-content;
  background: rgba(0,0,0,0.4);
  border: 2px solid #1DB954;
  border-radius: 16px;
  box-shadow: 0 0 20px #1DB95455;
}

.album-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  box-shadow: 0 0 20px #1DB954aa;
}

.track-info h3 {
  margin: 0;
  color: #1DB954;
}

.track-info p {
  margin: 0;
  opacity: 0.8;
}

/* Play gomb */
.play-btn {
  background: #1DB954;
  border: none;
  color: black;
  font-size: 26px;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 15px #1DB954;
  transition: 0.2s;
}

.play-btn:hover {
  box-shadow: 0 0 25px #1DB954;
}

/* Progress bar */
.progress-container {
  width: 80%;
  height: 10px;
  margin: 20px auto;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #1DB95455;
  box-shadow: 0 0 15px #1DB95433;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #1DB954;
  box-shadow: 0 0 15px #1DB954, 0 0 30px #1DB954;
  transition: width 0.1s linear;
}

/* Equalizer */
.real-equalizer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-top: 20px;
}

.real-equalizer .bar {
  width: 12px;
  height: 10px;
  background: #1DB954;
  border-radius: 6px;
  box-shadow: 0 0 15px #1DB954, 0 0 30px #1DB954;
  transition: height 0.1s ease;
}

.play-btn {
  width: 55px;
  height: 55px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#spotify-avatar {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

#spotify-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px #1DB954aa;
}

.music-player {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 1.2s;
  animation-fill-mode: forwards;
}
