@charset "UTF-8";

:root {
  --night-1: #1b0705;
  --night-2: #3a0e0a;
  --ember: #e23a1e;
  --amber: #f5a623;
  --gold: #ffd34e;
  --cream: #ffe4b8;
  --f-red: #e23a1e;
  --f-amber: #f5a623;
  --f-green: #1fa98f;
  --f-blue: #2e86de;
  --f-pink: #e84393;
  --f-gold: #ffd34e;
  --player-h: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(245, 166, 35, 0.16), transparent 55%),
    radial-gradient(90% 70% at 50% 118%, rgba(226, 58, 30, 0.55), transparent 60%),
    radial-gradient(140% 120% at 50% 40%, var(--night-2), var(--night-1) 70%);
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55));
  mix-blend-mode: multiply;
  z-index: 5;
}

/* ---------- Bandeirinhas (festa junina bunting) ---------- */
.pennants {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0;
  padding-top: 6px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.pennants::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 228, 184, 0.5) 8%, rgba(255, 228, 184, 0.5) 92%, transparent);
}
.flag {
  width: clamp(26px, 4.4vw, 46px);
  height: clamp(34px, 5.6vw, 58px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: varrer 3.4s ease-in-out infinite;
  position: relative;
}
.flag::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 45%);
}
.flag:nth-child(6n+1) { background: var(--f-red); }
.flag:nth-child(6n+2) { background: var(--f-gold); }
.flag:nth-child(6n+3) { background: var(--f-green); }
.flag:nth-child(6n+4) { background: var(--f-blue); }
.flag:nth-child(6n+5) { background: var(--f-pink); }
.flag:nth-child(6n+6) { background: var(--f-amber); }
.flag:nth-child(2n) { animation-delay: -1.1s; }
.flag:nth-child(3n) { animation-delay: -0.55s; }
.flag:nth-child(5n) { animation-delay: -1.7s; }

@keyframes varrer {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(2px); }
}

/* ---------- Palco ---------- */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 5vh, 60px) 22px calc(var(--player-h) + clamp(24px, 5vh, 60px));
  position: relative;
  z-index: 3;
}

.linha-apoio {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: clamp(0.62rem, 1.6vw, 0.8rem);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  opacity: 0;
  animation: subir 0.8s 0.15s ease-out forwards;
}
.linha-apoio::before, .linha-apoio::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.linha-apoio::after {
  transform: scaleX(-1);
}

.marca-container {
  position: relative;
  margin: clamp(18px, 3.5vh, 34px) 0 clamp(20px, 4vh, 38px);
  opacity: 0;
  animation: pular 1s 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards;
}
.marca-container::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.55), rgba(226, 58, 30, 0.18) 55%, transparent 72%);
  filter: blur(6px);
  z-index: -1;
  animation: respirar 4.5s ease-in-out infinite;
}
.marca-container img {
  display: block;
  width: min(80vw, 540px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
  animation: flutuar 6s ease-in-out infinite;
}

.titulo-principal {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 5.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(196, 30, 30, 0.35), 0 10px 26px rgba(0, 0, 0, 0.35);
  max-width: 16ch;
  opacity: 0;
  animation: subir 0.9s 0.6s ease-out forwards;
}
.titulo-principal .glow {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: clamp(14px, 2.4vh, 22px);
  font-size: clamp(1rem, 2.5vw, 1.28rem);
  line-height: 1.55;
  color: rgba(255, 228, 184, 0.9);
  max-width: 34ch;
  opacity: 0;
  animation: subir 0.9s 0.78s ease-out forwards;
}
.subtitle b {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Fagulhas (fogueira sparks) ---------- */
.sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.spark {
  position: absolute;
  bottom: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--ember) 70%, transparent);
  filter: blur(0.3px);
  opacity: 0;
  animation: subir-fagulha linear infinite;
}

/* ---------- Reprodutor fixo ---------- */
.reprodutor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  padding: clamp(12px, 2vh, 16px) clamp(16px, 4vw, 40px);
  padding-bottom: calc(clamp(12px, 2vh, 16px) + env(safe-area-inset-bottom));
  min-height: var(--player-h);
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(58, 14, 10, 0.72), rgba(27, 7, 5, 0.92)),
    radial-gradient(120% 180% at 12% 0%, rgba(245, 166, 35, 0.28), transparent 60%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255, 211, 78, 0.28);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45), 0 -1px 0 rgba(255, 228, 184, 0.12) inset;
  transform: translateY(120%);
  animation: reprodutor-in 0.9s 1.1s cubic-bezier(0.2, 0.9, 0.25, 1.05) forwards;
}
.reprodutor::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--gold), var(--amber), var(--ember), transparent);
  background-size: 200% 100%;
  opacity: 0.8;
  animation: deslizar-cor 6s linear infinite;
}

/* Play / Pause button */
.btn-tocar {
  position: relative;
  flex: 0 0 auto;
  width: clamp(56px, 9vw, 66px);
  height: clamp(56px, 9vw, 66px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #2a0806;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  box-shadow: 0 0 0 4px rgba(255, 211, 78, 0.14), 0 10px 26px rgba(226, 58, 30, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-tocar:hover {
  transform: scale(1.06);
}
.btn-tocar:active {
  transform: scale(0.95);
}
.btn-tocar svg {
  width: 44%;
  height: 44%;
  display: block;
}
.btn-tocar .icone-pausar {
  display: none;
}
.reprodutor.is-tocando .btn-tocar .icone-tocar {
  display: none;
}
.reprodutor.is-tocando .btn-tocar .icone-pausar {
  display: block;
}
.btn-tocar::before, .btn-tocar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 211, 78, 0.5);
  opacity: 0;
}
.reprodutor.is-tocando .btn-tocar::before {
  animation: anel 2s ease-out infinite;
}
.reprodutor.is-tocando .btn-tocar::after {
  animation: anel 2s 0.9s ease-out infinite;
}

/* Now-playing text block */
.agora-tocando {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 0 1 auto;
}
.agora-tocando .ao-vivo {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: var(--gold);
}
.agora-tocando .ao-vivo .dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: piscar 1.4s ease-in-out infinite;
}
.agora-tocando .nome {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agora-tocando .status {
  font-size: clamp(0.72rem, 1.8vw, 0.86rem);
  color: rgba(255, 228, 184, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animated equalizer bars */
.equalizador {
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.8vw, 5px);
  height: 34px;
  flex: 1 1 auto;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.reprodutor.is-tocando .equalizador {
  opacity: 1;
}
.equalizador span {
  width: clamp(3px, 0.9vw, 5px);
  height: 20%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--ember));
  transform-origin: bottom;
}
.reprodutor.is-tocando .equalizador span {
  animation: barra 1s ease-in-out infinite;
}
.equalizador span:nth-child(1) { animation-delay: -0.9s; }
.equalizador span:nth-child(2) { animation-delay: -0.2s; }
.equalizador span:nth-child(3) { animation-delay: -0.6s; }
.equalizador span:nth-child(4) { animation-delay: -0.4s; }
.equalizador span:nth-child(5) { animation-delay: -0.8s; }
.equalizador span:nth-child(6) { animation-delay: -0.1s; }
.equalizador span:nth-child(7) { animation-delay: -0.5s; }
.equalizador span:nth-child(8) { animation-delay: -0.3s; }
.equalizador span:nth-child(9) { animation-delay: -0.7s; }

/* Volume control */
.volume {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--gold);
}
.volume svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(70px, 10vw, 120px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber) var(--vol, 80%), rgba(255, 228, 184, 0.22) var(--vol, 80%));
  cursor: pointer;
  outline: none;
}
.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.volume input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

@media (max-width: 640px) {
  .equalizador { display: none; }
  .reprodutor { gap: 14px; }
  .agora-tocando { flex: 1 1 auto; }
  .volume { flex: 0 0 auto; }
  .volume input[type="range"] { width: clamp(64px, 26vw, 120px); }
}
@media (max-width: 400px) {
  .volume svg { display: none; }
  .volume input[type="range"] { width: clamp(56px, 22vw, 90px); }
  .reprodutor { gap: 12px; padding-left: 14px; padding-right: 14px; }
}

/* ---------- Keyframes ---------- */
@keyframes subir {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes pular {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes respirar {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes subir-fagulha {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  12% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-102vh) translateX(var(--drift, 20px)) scale(0.3); }
}
@keyframes reprodutor-in {
  to { transform: translateY(0); }
}
@keyframes deslizar-cor {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
@keyframes piscar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes anel {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes barra {
  0%, 100% { height: 22%; }
  25% { height: 95%; }
  50% { height: 45%; }
  75% { height: 75%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .sparks { display: none; }
  .linha-apoio, .marca-container, .titulo-principal, .subtitle, footer { opacity: 1; }
  .reprodutor { transform: none; }
  .equalizador span { height: 50%; }
}
