/* Google Font: Baloo 2 */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&display=swap');

:root{
  --azul: #009fe3;
  --azul-escuro: #007bbf;
  --habbo-laranja: #ff9f00;
  --cinza: #e5e7eb;
  --sombras: rgba(0,0,0,.25);
}

/* Fundo Habbo com overlay */
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Baloo 2', system-ui, -apple-system, Arial, sans-serif;
  background: url("img/bg.png") repeat #06283b;
  background-size: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: #25beffba; /* solicitado */
  z-index: 0;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #25beffba;
  display: flex;
  align-items: center;   /* Centraliza vertical */
  justify-content: center; /* Centraliza horizontal */
  z-index: 9999;
  flex-direction: column;
}

#loader .hop {
  width: 15%;
  height: 30%;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .2));
  animation: hop 900ms ease-in-out infinite;
}

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

#loader .loading-text {
  margin-top: 18px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-family: "Baloo", sans-serif;
  font-size: 16px;
}


/* Social */
.social{
  position: fixed;
  top: 50%;
  left: -2px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}
.social a{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  border-radius: 0 12px 12px 0; /* colado na borda esquerda */
  box-shadow: 0 6px 16px var(--sombras);
  transition: transform .18s ease, filter .18s ease;
}
.social a:hover{
  transform: translateX(3px) scale(1.05);
  filter: brightness(1.05);
}
.social a.discord{ background: #5865F2; }     /* roxo discord */
.social a.twitter{ background: #15202B; }     /* azul-marinho twitter */
.social i{ font-size: 22px; }

/* Conteúdo principal */
.container{
  text-align: center;
  z-index: 1;
  width: min(920px, 92vw);
}

/* Logo */
.logo img{
  width: 200px;
  margin: 10vh auto 42px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

/* Player estilo Habbo */
.player-box{
  margin: 0 auto;
  background: #fff;
  padding: 16px 22px;
  border-radius: 18px;
  border: 3px solid var(--azul);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.player-box:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(0,0,0,.30);
}

/* Avatar do DJ */
.player-box img#avatar{
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid var(--azul);
  background: #eef2f7;
  object-fit: cover;
}

/* Informações */
.info{
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}
.info .dj{
  font-weight: 700;
  font-size: 18px;
  color: var(--azul);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info .programa{
  color: #2b2b2b;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botão Play/Pause — redondo */
button#playBtn{
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;          /* bem arredondado */
  background: var(--azul);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 14px var(--sombras);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
button#playBtn:hover{
  transform: scale(1.06) rotate(-2deg);
  background: var(--azul-escuro);
  box-shadow: 0 8px 16px var(--sombras);
}

/* Volume */
.volume-control{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.volume-control i{
  color: var(--azul);
  transition: transform .16s ease;
}
.volume-control i:hover{ transform: scale(1.1) }

input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 8px;
  background: linear-gradient(90deg, var(--azul) 50%, var(--cinza) 50%);
  border-radius: 8px;
  outline: none;
  transition: background 0s; /* sem delay */
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--habbo-laranja);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
}

/* Ouvintes */
.listeners{
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111827;
}
.listeners i{
  color: var(--azul);
}

/* Rodapé */
footer{
  margin-top: 28px;
  color: #eaf6ff;
  text-align: center;
  font-size: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
footer a{ color: #fff; text-decoration: underline dotted; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {

  body {
    align-items: flex-start;
    padding: 20px 10px;
  }

  .container {
    width: 100%;
  }

  /* Logo menor e mais próxima */
  .logo img {
    width: 150px;
    margin: 40px auto 24px;
  }

  /* Player empilhado no celular */
  .player-box {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    text-align: center;
  }

  .player-box img#avatar {
    margin: 0 auto;
    width: 70px;
    height: 70px;
  }

  .info {
    text-align: center;
  }
  .info .dj {
    font-size: 16px;
  }
  .info .programa {
    font-size: 14px;
  }

  /* Botão Play maior no celular */
  button#playBtn {
    width: 52px;
    height: 52px;
    font-size: 20px;
    margin: 0 auto;
  }

  /* Volume reduzido */
  .volume-control {
    justify-content: center;
    min-width: auto;
  }
  .volume-control input[type="range"] {
    width: 90px;
  }

  /* Ouvintes abaixo */
  .listeners {
    justify-content: center;
    font-size: 14px;
  }

  /* Redes Sociais fixas no rodapé em mobile */
  .social {
    position: fixed;
    bottom: 12px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 14px;
  }
  .social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  footer {
    font-size: 12px;
    margin-bottom: 70px; /* espaço para não colidir com social */
  }
}

/* Remover Loader no mobile */
@media (max-width: 768px) {
  #loader {
    display: none !important;
  }
}
