html { font-size: 16px; }

@media screen and (min-width: 25em){
  html { font-size: calc( 16px + (36 - 16) * (100vw - 300px) / (1500 - 300) ); }
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #eef3f0, #dce5e1);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 60vw;
  height: 60vh;
  background: #115138;
  border-radius: 50%;
  z-index: -1;
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 40%);
  mask: radial-gradient(circle, transparent 40%, #000 40%);
}

body::before {
  top: -35%;
  left: -35%;
}

body::after {
  bottom: -35%;
  right: -35%;
}

/* ===== LOGO ===== */
.logo-bg {
  position: fixed;
  top: 0;
  right: 0;
  width: 15%;
}

#home, #player {
  position: fixed;
  display: flex;
  width: 100vw;
  height: 100vh;
  transition: clip-path 0.4s ease, visibility 0.4s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  visibility: hidden;
  overflow: hidden;
  z-index: 100;
}

#home {
  clip-path: inset(0 100% 0 0); /* Esconde tudo da direita para esquerda */
}

#player {
  container-type: size;
  clip-path: inset(0 0 0 100%); /* Esconde tudo da direita para esquerda */
}

#player.active, #home.active {
  visibility: visible;
  clip-path: inset(0 0 0 0); /* Revela o elemento todo */
}

.player-indicator, .genre-indicator {
  padding-block: 0;
  padding-inline: 0;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  max-height: 20%;
  min-height: 10%;
  width: 10%;
  height: auto;
  aspect-ratio: 1/2;

  background: linear-gradient(180deg,
      rgba(17, 81, 56, 0.98),
      rgba(11, 44, 31, 0.98));

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8%;
  overflow: hidden;
  z-index: 300;
  pointer-events: auto;
  padding: 2.5%;
  container-type: size;

  box-shadow:
    0 0 35px rgba(17, 81, 56, 0.65),
    inset 0 0 25px rgba(255, 255, 255, 0.08);

  animation: pulsePlayer 2s infinite ease-in-out;
}

.player-indicator {
  right: 0;
  border-radius: 12% 0 0 12%;
}

.genre-indicator {
  left: 0;
  border-radius: 0 12% 12% 0;
}

.play-icon, .back-icon {
  width: 0;
  height: 0;

  border-top: 20cqh solid transparent;
  border-bottom: 20cqh solid transparent;
  border-left: 80cqw solid white;
  
  filter: drop-shadow(0 0 48px rgba(255, 255, 255, 0.7));
  animation: backMove 1.5s infinite ease-in-out;
}

.player-indicator span, .genre-indicator span {
  color: white;
  font-size: 38cqw;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0.92;
}

/* ===== ONDAS ===== */

.music-wave {
  display: flex;
  align-items: flex-end;
  gap: 10%;
  width: 50%;
  height: 15%;
}

.music-wave div {
  width: 20%;
  background: white;
  border-radius: 20px;
  animation: wave 1s infinite ease-in-out;
}

.music-wave div:nth-child(1) {
  height: 50%;
  animation-delay: 0s;
}

.music-wave div:nth-child(2) {
  height: 100%;
  animation-delay: 0.15s;
}

.music-wave div:nth-child(3) {
  height: 60%;
  animation-delay: 0.3s;
}

.music-wave div:nth-child(4) {
  height: 100%;
  animation-delay: 0.45s;
}

/* ===== ANIMAÇÕES ===== */

@keyframes pulsePlayer {
  0% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.06);
  }

  100% {
    transform: translateY(-50%) scale(1);
  }
}

@keyframes backMove {
  0% {
    transform: translateX(0);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-10%);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 0.7;
  }
}

@keyframes wave {
  0% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1.4);
    opacity: 1;
  }

  100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}