/* Rádio Só Flashback — layout minimalista e responsivo */
:root{
  --fg:#f6f2eb;
  --muted:#d4ad71;
  --panel:rgba(10,10,10,.66);
  --line:rgba(255,255,255,.12);
  --shadow:0 22px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100svh;
  overflow-x:hidden;
  background:#090909;
  color:var(--fg);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.bg{
  position:fixed;
  inset:-8vmax;
  z-index:-3;
  background:
    center/cover no-repeat url("assets/cover-fallback.svg");
  filter:blur(42px) saturate(1.15);
  transform:scale(1.08);
  opacity:.58;
  transition:background-image .7s ease, opacity .7s ease;
  will-change:background-image;
}

.shade{
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(circle at 50% 40%,rgba(0,0,0,.08),rgba(0,0,0,.42) 66%,rgba(0,0,0,.68)),
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.38));
  pointer-events:none;
}

.page{
  width:min(92vw,880px);
  min-height:calc(100svh - 88px);
  margin:0 auto;
  padding:clamp(22px,4vh,46px) 0 116px;
  display:grid;
  grid-template-rows:auto 1fr;
}

.header{
  text-align:center;
  padding-top:4px;
}
.logo{
  width:clamp(50px,6vw,68px);
  height:clamp(50px,6vw,68px);
  display:block;
  margin:0 auto 8px;
  border-radius:50%;
  object-fit:cover;
}
h1{
  margin:0;
  font-size:clamp(1.45rem,3vw,2.25rem);
  font-weight:400;
  letter-spacing:-.03em;
  text-shadow:0 1px 18px rgba(0,0,0,.35);
}

.now-playing{
  align-self:center;
  width:100%;
  display:grid;
  justify-items:center;
  gap:18px;
  padding:clamp(22px,4vh,38px) 0;
}

.cover-wrap{
  width:min(64vw,470px);
  aspect-ratio:1;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#151515;
}
.cover{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.track{
  width:min(92vw,720px);
  text-align:center;
  line-height:1.08;
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}
.artist{
  color:var(--muted);
  font-size:clamp(1rem,2vw,1.25rem);
  margin-bottom:6px;
}
.song{
  font-size:clamp(1.65rem,4.7vw,3.15rem);
  font-weight:400;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}

.player{
  position:fixed;
  left:50%;
  bottom:max(14px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:10;
  width:min(calc(100vw - 28px),820px);
  min-height:72px;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--panel);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 40px rgba(0,0,0,.36);
}

.play{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1.5px solid var(--muted);
  background:rgba(0,0,0,.24);
  color:var(--muted);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.play:active{transform:scale(.96)}
.icon{width:25px;height:25px;fill:currentColor}
.icon-pause{display:none}
body.playing .icon-play{display:none}
body.playing .icon-pause{display:block}

.equalizer{
  height:34px;
  display:flex;
  align-items:center;
  gap:3px;
}
.equalizer span{
  width:3px;
  height:8px;
  border-radius:10px;
  background:var(--muted);
  opacity:.85;
  transform-origin:center;
}
body.playing .equalizer span{
  animation:eq .72s ease-in-out infinite alternate;
}
body.playing .equalizer span:nth-child(2){animation-delay:-.18s}
body.playing .equalizer span:nth-child(3){animation-delay:-.42s}
body.playing .equalizer span:nth-child(4){animation-delay:-.08s}
body.playing .equalizer span:nth-child(5){animation-delay:-.55s}
body.playing .equalizer span:nth-child(6){animation-delay:-.30s}
body.playing .equalizer span:nth-child(7){animation-delay:-.64s}
body.playing .equalizer span:nth-child(8){animation-delay:-.22s}
body.playing .equalizer span:nth-child(9){animation-delay:-.47s}

@keyframes eq{
  from{height:5px}
  to{height:30px}
}

.status{
  color:rgba(255,255,255,.66);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.13em;
}

@media (max-width:600px){
  .page{
    width:min(90vw,500px);
    padding-top:24px;
    padding-bottom:104px;
    min-height:calc(100svh - 76px);
  }
  .now-playing{gap:14px}
  .cover-wrap{
    width:min(78vw,390px);
    border-radius:16px;
  }
  .player{
    min-height:64px;
    border-radius:20px;
    gap:14px;
  }
  .play{
    width:48px;
    height:48px;
    flex-basis:48px;
  }
  .equalizer{height:28px}
  .status{font-size:.66rem}
  body.playing .equalizer span{animation-duration:.78s}
}

@media (max-height:690px) and (min-width:601px){
  .page{padding-top:18px;padding-bottom:98px}
  .logo{width:46px}
  .cover-wrap{width:min(45vh,370px)}
  .now-playing{gap:12px;padding:12px 0}
}

@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important}
  .bg{transition:none}
  body.playing .equalizer span{animation:none;height:14px}
}


.header h1 span{
  color:var(--muted);
  font-weight:300;
}


@media (max-width:600px){
  .header h1 span{
    display:block;
    margin-top:4px;
    font-size:.68em;
  }
  
  
}


/* Ajuste do WhatsApp flutuante */
@media (max-width:600px){
  
  
}


/* WhatsApp V6: o tamanho principal está travado inline no HTML para evitar conflitos. */
@media (max-width:600px){
  #whatsapp-float{
    right:14px !important;
    bottom:84px !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    min-height:48px !important;
    max-height:48px !important;
  }
  #whatsapp-float img{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    max-width:26px !important;
    min-height:26px !important;
    max-height:26px !important;
  }
}
