/* =========================================================
   Web Rádio Luz Divina · tela inicial (style.css)
   Layout 9:16 centralizado. Ajuste as cores nas variáveis abaixo.
   ========================================================= */
:root{
  --ouro:#fde68a;
  --ouro2:#fbbf24;
  --azul:#06142c;
  --txt:#e8eefc;
  --muted:#9fb0cf;
  --foco:#93c5fd;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--txt);
  background:linear-gradient(180deg,rgba(6,20,44,.82),rgba(6,20,44,.95)),var(--azul);
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(600px 400px at 20% 10%,rgba(56,189,248,.18),transparent 60%),
    radial-gradient(500px 400px at 85% 90%,rgba(251,191,36,.14),transparent 60%);
}

/* ---------- Tela 9:16 centralizada ---------- */
.scene{
  min-height:100vh;
  min-height:100dvh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:1;
}

.phone{
  width:min(100vw,calc(100vh*9/16));
  width:min(100vw,calc(100dvh*9/16));
  min-height:min(100vh,calc(100vw*16/9));
  min-height:min(100dvh,calc(100vw*16/9));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:clamp(10px,2vh,18px);
  padding:max(14px,env(safe-area-inset-top)) 18px max(12px,env(safe-area-inset-bottom));
  position:relative;
  background:linear-gradient(180deg,rgba(18,44,88,.15),rgba(7,20,44,.30));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  animation:phone-entra 1s ease both;
}
@keyframes phone-entra{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:none}
}

/* ---------- Topo ---------- */
.top{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  flex:0 0 auto;
}

/* ---------- Título elegante: Web Rádio Luz Divina ---------- */
.titulo-radio{
  margin:0 0 14px;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  font-size:clamp(1.6rem,6vw,2.2rem);
  line-height:1.2;
  letter-spacing:.04em;
  text-align:center;
  background:linear-gradient(180deg,#fff1c1 0%,#f5c96a 45%,#c8912e 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.titulo-radio sup{
  font-size:.6em;
  vertical-align:super;
  margin-left:2px;
  -webkit-text-fill-color:#f5c96a;
  color:#f5c96a;
}
.titulo-radio::after{
  content:"";
  display:block;
  width:96px;
  height:1px;
  margin:10px auto 0;
  background:linear-gradient(90deg,transparent,#f5c96a,transparent);
}

/* ---------- Orbe central ---------- */
.orb-wrap{
  position:relative;
  width:min(56vw,30vh);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  flex:0 1 auto;
}
.ring{
  position:absolute;
  border-radius:50%;
  inset:0;
  pointer-events:none;
}
.ring.r1{border:1.5px dashed rgba(251,191,36,.45);animation:anel-gira 22s linear infinite}
.ring.r2{inset:-14px;border:1px solid rgba(96,165,250,.35);animation:anel-gira 34s linear infinite reverse}
.ring.r3{inset:-28px;border:1px dotted rgba(251,191,36,.25);animation:anel-gira 50s linear infinite}
@keyframes anel-gira{to{transform:rotate(360deg)}}

.orb{
  position:relative;
  width:72%;
  aspect-ratio:1;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.35),rgba(255,255,255,.04) 45%,rgba(30,64,120,.45) 80%);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 0 60px rgba(96,165,250,.35),inset 0 0 40px rgba(255,255,255,.08);
  animation:orb-respira 4s ease-in-out infinite;
}
@keyframes orb-respira{
  0%,100%{box-shadow:0 0 50px rgba(96,165,250,.3),inset 0 0 30px rgba(255,255,255,.06)}
  50%{box-shadow:0 0 90px rgba(251,191,36,.35),inset 0 0 40px rgba(255,255,255,.12)}
}
.orb svg{
  width:52%;
  height:auto;
  filter:drop-shadow(0 0 10px rgba(251,191,36,.8)) drop-shadow(0 0 22px rgba(251,191,36,.45));
  animation:orb-brilho 3s ease-in-out infinite;
}
@keyframes orb-brilho{0%,100%{opacity:.85}50%{opacity:1}}

/* ---------- Botão de play ---------- */
.play-area{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.play{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:6px 18px 6px 6px;
  border-radius:999px;
  cursor:pointer;
  border:1px solid rgba(253,230,138,.55);
  font:700 .8rem/1.2 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:linear-gradient(180deg,#c4b5fd 0%,#8b5cf6 55%,#6d28d9 100%);
  color:#fff;
  text-shadow:0 1px 2px rgba(46,16,101,.45);
  box-shadow:0 10px 30px rgba(251,191,36,.35),0 0 0 1px rgba(255,255,255,.2) inset,0 2px 0 rgba(255,255,255,.6) inset;
  transition:transform .2s ease,box-shadow .2s ease,background .3s ease,border-color .3s ease;
  -webkit-tap-highlight-color:transparent;
  -webkit-appearance:none;
  appearance:none;
}
.play:active{transform:scale(.97)}
.play:focus-visible{outline:3px solid var(--foco);outline-offset:4px}
.play:disabled,
.play.sem-stream{opacity:.6;cursor:not-allowed}
.play .lbl{white-space:nowrap}

/* Disco do ícone */
.play-disc{
  position:relative;
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:radial-gradient(circle at 30% 25%,#1e3a8a,#0b1d3a 70%);
  box-shadow:0 0 0 1.5px rgba(253,230,138,.8),0 3px 8px rgba(0,0,0,.35);
  transition:background .3s ease,box-shadow .3s ease;
}
.play-disc svg{
  width:14px;
  height:14px;
  color:var(--ouro);
  fill:currentColor;
  display:block;
  flex:0 0 auto;
  pointer-events:none;
}
.play-disc .ico-play{margin-left:2px}
.play-disc .ico-pause{display:none;margin-left:0}
.play-disc::before,
.play-disc::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:50%;
  border:2px solid rgba(251,191,36,.5);
  opacity:0;
  pointer-events:none;
  animation:disc-pulso 2.4s ease-out infinite;
}
.play-disc::after{animation-delay:1.2s}
@keyframes disc-pulso{
  0%{transform:scale(1);opacity:.45}
  100%{transform:scale(1.9);opacity:0}
}

/* Equalizador (sete barras, visível só quando tocando) */
.play .eq{
  display:none;
  align-items:flex-end;
  gap:2px;
  height:12px;
}
.play .eq i{
  display:block;
  width:3px;
  height:100%;
  border-radius:2px;
  background:#0b1d3a;
  transform-origin:bottom;
  animation:eq-barra 1s ease-in-out infinite;
}
.play .eq i:nth-child(1){animation-delay:0s}
.play .eq i:nth-child(2){animation-delay:.2s}
.play .eq i:nth-child(3){animation-delay:.4s}
.play .eq i:nth-child(4){animation-delay:.1s}
.play .eq i:nth-child(5){animation-delay:.3s}
.play .eq i:nth-child(6){animation-delay:.5s}
.play .eq i:nth-child(7){animation-delay:.15s}
.play .eq i:nth-child(1){background:#22d3ee}
.play .eq i:nth-child(2){background:#38bdf8}
.play .eq i:nth-child(3){background:#a78bfa}
.play .eq i:nth-child(4){background:#f472b6}
.play .eq i:nth-child(5){background:#fb7185}
.play .eq i:nth-child(6){background:#fbbf24}
.play .eq i:nth-child(7){background:#4ade80}
@keyframes eq-barra{
  0%,100%{transform:scaleY(.25)}
  50%{transform:scaleY(1)}
}

/* Estado tocando (ciano) */
.play.on{
  background:linear-gradient(180deg,#0e3b4a 0%,#0a2a36 100%);
  border-color:rgba(34,211,238,.7);
  color:#e0faff;
  text-shadow:none;
  box-shadow:0 10px 30px rgba(34,211,238,.35),0 0 0 1px rgba(34,211,238,.25) inset;
}
.play.on .play-disc{
  background:radial-gradient(circle at 30% 25%,#0e7490,#042f3b 70%);
  box-shadow:0 0 0 1.5px rgba(34,211,238,.9),0 3px 8px rgba(0,0,0,.35);
}
.play.on .play-disc::before,
.play.on .play-disc::after{border-color:rgba(34,211,238,.6)}
.play.on .play-disc .ico-play{display:none}
.play.on .play-disc .ico-pause{display:block}
.play.on .play-disc svg{color:#67e8f9}
.play.on .eq{display:flex}
.play.on .lbl::after{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-left:8px;
  border-radius:50%;
  background:#22d3ee;
  box-shadow:0 0 8px #22d3ee;
  vertical-align:middle;
  animation:ao-vivo-piscar 1.2s ease-in-out infinite;
}
@keyframes ao-vivo-piscar{
  0%,100%{opacity:1}
  50%{opacity:.25}
}

.play-hint{margin:0;font-size:.8rem;color:var(--muted)}

/* ---------- Textos ---------- */
.info{
  text-align:center;
  display:grid;
  gap:6px;
  justify-items:center;
  flex:0 0 auto;
}
.no-ar{
  margin:0;
  font-size:1.3rem;
  font-weight:700;
  color:#fff;
  text-shadow:0 0 18px rgba(147,197,253,.5);
}
.sub{margin:0;color:var(--muted);font-size:.95rem}

/* ---------- Compartilhar ---------- */
.acoes{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.share{
  width:46px;
  height:46px;
  flex:0 0 auto;
  padding:0;
  margin:0;
  border-radius:50%;
  border:1px solid rgba(253,230,138,.35);
  background:rgba(255,255,255,.05);
  color:var(--ouro);
  display:grid;
  place-items:center;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  transition:box-shadow .2s ease,color .2s ease,border-color .2s ease,transform .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.share:active{transform:scale(.95)}
.share:focus-visible{
  box-shadow:0 0 18px rgba(251,191,36,.45);
  outline:3px solid var(--foco);
  outline-offset:3px;
}
.share svg{
  width:22px;
  height:22px;
  filter:drop-shadow(0 0 6px rgba(251,191,36,.5));
}
.share.ok{color:#86efac;border-color:rgba(134,239,172,.5)}

/* ---------- Menu: 2 colunas ---------- */
.menu{
  width:100%;
  margin-top:auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:10px;
  border-radius:24px;
  flex:0 0 auto;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:84px;
  min-width:0;
  padding:12px 8px;
  border-radius:16px;
  overflow:hidden;
  overflow-wrap:anywhere;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:.95rem;
  line-height:1.25;
  text-align:center;
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  border:1px solid rgba(253,230,138,.22);
  transition:border-color .2s ease,box-shadow .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.item::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 30%,rgba(253,230,138,.22) 50%,transparent 70%);
  transform:translateX(-100%);
  transition:transform .6s ease;
}
.item:active{transform:scale(.98)}
.item:focus-visible{outline:3px solid var(--foco);outline-offset:3px}
.ico{
  font-size:1.4rem;
  line-height:1;
  filter:drop-shadow(0 0 6px rgba(251,191,36,.6));
}

.rod{
  margin:0;
  font-size:.75rem;
  color:var(--muted);
  text-align:center;
  flex:0 0 auto;
}

/* ---------- Hover: só em dispositivos com ponteiro ---------- */
@media (hover:hover){
  .play:not(:disabled):hover{
    transform:translateY(-2px) scale(1.02);
    box-shadow:0 14px 40px rgba(251,191,36,.5),0 0 0 1px rgba(255,255,255,.25) inset;
  }
  .play.on:not(:disabled):hover{
    box-shadow:0 14px 40px rgba(34,211,238,.45),0 0 0 1px rgba(34,211,238,.35) inset;
  }
  .share:hover{box-shadow:0 0 18px rgba(251,191,36,.45)}
  .item:hover{
    border-color:rgba(251,191,36,.7);
    box-shadow:0 0 22px rgba(251,191,36,.25);
  }
  .item:hover::after{transform:translateX(100%)}
}

/* ---------- Telas baixas ---------- */
@media (max-height:700px){
  .rod{display:none}
  .menu{padding:8px;gap:8px}
  .item{min-height:72px;padding:8px 6px}
}
@media (max-height:500px) and (orientation:landscape){
  .phone{padding-top:8px;padding-bottom:8px}
  .orb-wrap{width:min(40vw,44vh)}
  .sub{display:none}
  .item{min-height:60px;font-size:.85rem}
}

/* ---------- Telas estreitas ---------- */
@media (max-width:360px){
  .item{font-size:.85rem;min-height:76px}
  .ico{font-size:1.2rem}
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation:none!important;
    transition:none!important;
  }
  .play:hover,
  .item:hover,
  .play:active,
  .item:active{transform:none}
}
