/* ============================================================
   Play FM 99.7 â€” Folha de Estilos Principal
   Desenvolvido por Henrique Polidoro Â· polidoro@pophosting.com.br
============================================================ */

/* ============================================================
   FONTE DA MARCA â€” All Round Gothic
   Carregada via @font-face com fallback web-safe
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ============================================================
   VARIÃVEIS DE DESIGN â€” SISTEMA DE CORES E TIPOGRAFIA
   Paleta oficial Play FM 99.7
============================================================ */
:root {
  /* === Cores primÃ¡rias oficiais Play FM === */
  --primary:        #4754a2;   /* Azul profundo dominante da marca */
  --primary-dark:   #343e7a;   /* Variante escura do azul */
  --primary-light:  #647ada;   /* Azul claro secundÃ¡rio */

  /* === Cores de acento oficiais === */
  --accent-orange:  #d58234;   /* Laranja â€” destaque e CTAs */
  --accent-purple:  #755eb8;   /* Roxo / Violeta â€” cor secundÃ¡ria vibrante */
  --accent-gray:    #8c9cb0;   /* Cinza acinzentado/azulado */

  /* === Fundos e texto === */
  --white:          #ffffff;
  --off-white:      #f8fbff;   /* Branco gelo original da marca */
  --bg-light:       #eef3fa;   /* Fundo suave baseado na paleta */
  --text:           #1c2033;   /* Texto principal (azul muito muito escuro) */
  --text-muted:     #5b667a;   /* Cinza de texto ajustado */
  --border:         #cbd3de;   /* Borda amigÃ¡vel da paleta */

  /* === Elementos de UI === */
  --live:           #ef4444;   /* Vermelho â€” indicador ao vivo */
  --player-bg:      #262d59;   /* Fundo do player bar derivado do primary dark */

  /* === Retro-compatibilidade === */
  --blue:           #4754a2;   /* Mapeado para o azul principal */
  --blue-dark:      #343e7a;   /* Mapeado para o azul escuro */

  /* === Tipografia === */
  --font: 'Nunito', 'All Round Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* === Layout === */
  --nav-h: 68px;
  --player-bar-h: 64px;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET E BASE GLOBAL
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

input,
textarea {
  font-family: var(--font);
}

/* Scroll offset para Ã¢ncoras */
:target {
  scroll-margin-top: calc(var(--nav-h) + var(--player-bar-h) + 24px);
}

/* ============================================================
   UTILITÃRIOS
============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ANIMAÃ‡ÃƒO DE ENTRADA â€” INTERSECTION OBSERVER
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV â€” NAVIGATION BAR
============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: auto;
  height: 48px;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-brand:hover img {
  transform: scale(1.12) rotate(-3deg);
}

.nav-brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
}

/* Hamburger - mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Menu mobile */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  padding: 0.4rem 0;
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--blue);
}

/* ============================================================
   PLAYER BAR STICKY â€” aparece ao rolar alÃ©m do hero
============================================================ */
#player-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: var(--player-bar-h);
  background: var(--player-bg);
  z-index: 98;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#player-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.player-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

/* Ponto ao vivo â€” animaÃ§Ã£o vermelho piscante */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.live-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--live);
  text-transform: uppercase;
}

.player-station-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-left: 0.25rem;
}

.player-track {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* BotÃ£o play/pause */
.btn-play {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.btn-play:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

.btn-play svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Pulse ring quando tocando */
.btn-play.playing::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  animation: pulse-ring 1.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Autoplay bloqueado - hint pulsante */
.btn-play.autoplay-hint {
  animation: hint-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
}

@keyframes hint-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Controle de volume */
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.volume-control svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
}

/* ============================================================
   HERO â€” SEÃ‡ÃƒO PRINCIPAL
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--white) 0%, var(--off-white) 50%, var(--bg-light) 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero-logo {
  width: clamp(220px, 28vw, 340px);
  height: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.hero-logo:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

/* Player inline no hero */
.hero-player {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1rem 1.75rem;
  min-width: clamp(280px, 60vw, 500px);
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(71, 84, 162, 0.15);
}

.hero-player-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hero-player-live {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-player-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.hero-player-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-track-now {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.hero-volume svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.hero-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.hero-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

.hero-volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: none;
}

/* ============================================================
   SECTION HEADING â€” gradiente e animaÃ§Ã£o
============================================================ */
.section-heading {
  background: linear-gradient(90deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SEÃ‡ÃƒO SOBRE
============================================================ */
#sobre {
  background: var(--bg-light);
  padding: 6rem 0;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.sobre-text p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.sobre-stats {
  display: flex;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sobre-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Pillars / Diferenciais Soft AC â€” editorial numbered columns */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.pillar-card {
  padding: 0 2rem 0 0;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.pillar-card:first-child {
  padding-left: 0;
}

.pillar-card + .pillar-card {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.pillar-card:hover {
  border-left-color: var(--blue);
}

.pillar-card:first-child:hover {
  border-left-color: transparent;
}

.pillar-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pillar-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   SEÃ‡ÃƒO PROGRAMAÃ‡ÃƒO
============================================================ */
#programacao {
  background: var(--white);
  padding: 6rem 0;
}

.prog-header {
  margin-bottom: 2.5rem;
}

/* Tabs (CSS mantido para possÃ­vel reuso, nÃ£o renderizado) */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.6rem 1.1rem;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tab-btn:hover { color: var(--blue); }
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Grade de programaÃ§Ã£o */
.schedule-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background var(--transition), border-left-color var(--transition);
}

.schedule-row:hover { background: #f7f5ff; }

.schedule-row.on-air {
  border-left-color: var(--primary);
  background: rgba(71, 84, 162, 0.07);
}

.schedule-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-feature-settings: "tnum";
}

.schedule-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.schedule-host {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.on-air-badge {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(71, 84, 162, 0.12);
  padding: 3px 8px;
  border-radius: 3px;
}

.schedule-row.on-air .on-air-badge { display: inline-block; }

/* ============================================================
   SEÃ‡ÃƒO EQUIPE
============================================================ */
#equipe {
  background: var(--bg-light);
  padding: 6rem 0;
}

.equipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.host-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.host-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.host-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.host-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.host-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0.9rem;
}

.host-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   SEÃ‡ÃƒO ESTÃšDIO
============================================================ */
#estudio {
  background: var(--white);
  padding: 6rem 0;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.studio-main { grid-row: 1 / 3; }

.studio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease, opacity 0.3s ease;
  cursor: pointer;
}

.studio-main .studio-img    { height: 520px; }
.studio-secondary .studio-img { height: 255px; }

.studio-img:hover {
  transform: scale(1.04);
  opacity: 0.88;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  background: none;
  border: none;
}

#lightbox-close:hover { opacity: 1; }

/* ============================================================
   SEÃ‡ÃƒO CONTATO + FOOTER
============================================================ */
#contato {
  background: var(--bg-light);
  padding: 6rem 0 0;
}

/* Address block */
.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contato-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contato-address svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: var(--blue);
}

/* Instagram link */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.instagram-link:hover { color: var(--blue); }

.instagram-link svg {
  width: 20px;
  height: 20px;
}

/* Footer bar */
.footer-bar {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.footer-group-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-band-logo {
  height: 22px;
  width: auto;
  opacity: 0.6;
  display: inline-block;
}

.footer-bar p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}


/* ============================================================
   PWA INSTALL CARD — Design Premium
   Aparece na parte inferior como um sheet elegante
============================================================ */

#pwa-card {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: linear-gradient(160deg, #1a2060 0%, #2d3480 50%, #3b2f72 100%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
  font-family: 'Nunito', sans-serif;
  animation: pwaSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

#pwa-card.show {
  display: flex;
}

@keyframes pwaSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Barra decorativa topo */
#pwa-card::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Container interno com padding */
#pwa-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 20px;
}

/* Ícone do app com borda brilhante */
#pwa-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 2px rgba(255,255,255,0.15);
}

/* Textos centrais */
#pwa-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#pwa-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

#pwa-card-url {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botão fechar (X) no canto */
#pwa-card-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

#pwa-card-close:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Botão Instalar — CTA principal */
#pwa-card-install {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  background: linear-gradient(135deg, #ff8c3b 0%, #e8691a 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(213, 130, 52, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#pwa-card-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(213, 130, 52, 0.65);
}

#pwa-card-install:active {
  transform: translateY(0);
}

/* ============================================================
   MOBILE APP SHELL
   Visível apenas em mobile/tablet (max-width: 900px)
============================================================ */

#mobile-app { display: none; }

@media (max-width: 900px) {

  /* ── BODY ── */
  html, body {
    background: var(--off-white) !important;
    overflow: hidden !important;
    height: 100%;
  }

  /* Esconde site desktop */
  #nav, #player-bar, #hero, #sobre, #programacao,
  #equipe, #estudio, #contato, #lightbox, .nav-mobile {
    display: none !important;
  }

  /* ── SHELL ── */
  #mobile-app {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--off-white);
    color: var(--text);
    font-family: var(--font);
    z-index: 200;
    overflow: hidden;
  }

  /* ═══════════════════════════════════════════
     HEADER
  ═══════════════════════════════════════════ */
  .mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  .mob-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
  }

  .mob-insta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }

  .mob-insta-btn:hover { background: var(--primary); color: #fff; }

  .mob-insta-btn svg {
    width: 18px;
    height: 18px;
  }

  /* ═══════════════════════════════════════════
     MINI PLAYER (aparece nas tabs que não são Player)
  ═══════════════════════════════════════════ */
  .mob-mini-player {
    display: none; /* JS mostra quando tab != player */
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(71,84,162,0.07);
  }

  .mob-mini-player.visible { display: flex; }

  .mob-mini-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    flex-shrink: 0;
    animation: blink 1.4s ease-in-out infinite;
  }

  .mob-mini-art {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .mob-mini-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .mob-mini-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mob-mini-track {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mob-mini-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(71,84,162,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .mob-mini-play:active { transform: scale(0.92); }

  .mob-mini-play svg {
    width: 16px;
    height: 16px;
    fill: #fff;
  }

  /* ═══════════════════════════════════════════
     CONTENT AREA + TABS
  ═══════════════════════════════════════════ */
  .mob-content {
    flex: 1;
    overflow: hidden;
    position: relative;
  }

  .mob-tab {
    display: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
  }

  .mob-tab.active { display: block; }

  /* ═══════════════════════════════════════════
     TAB: PLAYER
  ═══════════════════════════════════════════ */
  .mob-player-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 20px;
    gap: 24px;
    background: linear-gradient(180deg, #fff 0%, var(--off-white) 100%);
  }

  /* Artwork */
  .mob-artwork-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mob-artwork-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 2px solid rgba(71, 84, 162, 0.15);
    animation: mobRingPulse 3s ease-in-out infinite;
  }

  .mob-artwork-ring--2 {
    inset: -32px;
    border-color: rgba(71, 84, 162, 0.07);
    animation-delay: 1s;
  }

  @keyframes mobRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.04); opacity: 0.4; }
  }

  .mob-artwork {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
      0 0 0 5px rgba(71, 84, 162, 0.08),
      0 14px 40px rgba(71, 84, 162, 0.22);
    animation: mobArtFloat 6s ease-in-out infinite;
    transition: box-shadow 0.3s ease, border-radius 0.45s ease, opacity 0.35s ease;
    opacity: 1;
  }

  /* Quando tem capa de álbum real: quadrado arredondado */
  .mob-artwork.has-cover {
    border-radius: 18px;
    box-shadow:
      0 0 0 0 transparent,
      0 16px 48px rgba(0, 0, 0, 0.22);
    animation: mobArtFloatSlow 7s ease-in-out infinite;
  }

  #mobile-app.playing .mob-artwork.has-cover {
    animation: mobArtFloatSlow 7s ease-in-out infinite; /* não gira com capa */
  }

  @keyframes mobArtFloatSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-6px) scale(1.01); }
  }

  @keyframes mobArtFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
  }

  #mobile-app.playing .mob-artwork {
    box-shadow:
      0 0 0 5px rgba(71, 84, 162, 0.15),
      0 14px 40px rgba(71, 84, 162, 0.35);
    animation: mobArtFloat 6s ease-in-out infinite, mobArtSpin 30s linear infinite;
  }

  @keyframes mobArtSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  /* Now playing */
  .mob-now-playing {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .mob-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
  }

  .mob-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
  }

  .mob-track-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mob-track-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Controls */
  .mob-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 280px;
  }

  .mob-volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .mob-vol-icon {
    width: 17px;
    height: 17px;
    fill: var(--accent-gray);
    flex-shrink: 0;
  }

  .mob-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    cursor: pointer;
  }

  .mob-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 2px 6px rgba(71,84,162,0.35);
    cursor: pointer;
  }

  .mob-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
  }

  .mob-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(71, 84, 162, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }

  .mob-play-btn svg { width: 34px; height: 34px; fill: #fff; }

  .mob-play-btn:hover  { transform: scale(1.06); box-shadow: 0 12px 36px rgba(71,84,162,0.6); }
  .mob-play-btn:active { transform: scale(0.95); }

  #mobile-app.playing .mob-play-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(71, 84, 162, 0.3);
    animation: pulse-ring 1.5s ease-out infinite;
    pointer-events: none;
  }

  /* Schedule */
  .mob-schedule-section {
    padding: 16px 16px 8px;
    background: var(--off-white);
  }

  .mob-section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .mob-schedule-list { display: flex; flex-direction: column; gap: 2px; }

  .mob-schedule-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
  }

  .mob-schedule-row.on-air {
    background: rgba(71, 84, 162, 0.04);
    border-left-color: var(--primary);
  }

  .mob-schedule-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 68px;
    font-feature-settings: "tnum";
  }

  .mob-schedule-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
  }

  .mob-on-air-badge {
    display: none;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(71, 84, 162, 0.1);
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .mob-schedule-row.on-air .mob-on-air-badge { display: block; }

  /* ═══════════════════════════════════════════
     PAGE HEADER — comum às abas de conteúdo
  ═══════════════════════════════════════════ */
  .mob-page-header {
    padding: 24px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }

  .mob-page-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
  }

  .mob-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  /* ═══════════════════════════════════════════
     TAB: SOBRE
  ═══════════════════════════════════════════ */
  .mob-page-body {
    padding: 18px 18px 4px;
  }

  .mob-page-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .mob-stats-row {
    display: flex;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 4px 0 16px;
    background: #fff;
  }

  .mob-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-right: 1px solid var(--border);
    gap: 2px;
  }

  .mob-stat:last-child { border-right: none; }

  .mob-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
  }

  .mob-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mob-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 8px;
  }

  .mob-pillar {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }

  .mob-pillar:last-child { border-bottom: none; }

  .mob-pillar-num {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
  }

  .mob-pillar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }

  .mob-pillar-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
  }

  /* ═══════════════════════════════════════════
     TAB: EQUIPE
  ═══════════════════════════════════════════ */
  .mob-team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 8px;
  }

  .mob-host-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .mob-host-card:last-child { border-bottom: none; }

  .mob-host-photo {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(71,84,162,0.12);
  }

  .mob-host-info { flex: 1; }

  .mob-host-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
  }

  .mob-host-role {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
  }

  .mob-host-bio {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
  }

  /* ═══════════════════════════════════════════
     TAB: ESTÚDIO
  ═══════════════════════════════════════════ */
  .mob-studio-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 8px;
  }

  .mob-studio-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  /* ═══════════════════════════════════════════
     TAB: CONTATO
  ═══════════════════════════════════════════ */
  .mob-contact-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mob-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-decoration: none;
  }

  .mob-contact-link {
    color: var(--primary);
    font-weight: 600;
    align-items: center;
  }

  .mob-contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .mob-contact-icon--stroke {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    margin-top: 0;
  }

  .mob-footer-area {
    padding: 24px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .mob-footer-group {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
  }

  .mob-footer-logo {
    height: 18px;
    width: auto;
    opacity: 0.45;
  }

  .mob-footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
  }

  /* ═══════════════════════════════════════════
     BOTTOM NAVIGATION
  ═══════════════════════════════════════════ */
  .mob-bottom-nav {
    display: flex;
    align-items: stretch;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mob-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: none;
    color: var(--accent-gray);
    font-family: var(--font);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 8px 4px;
    transition: color 0.2s ease;
    position: relative;
  }

  .mob-nav-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.2s ease;
  }

  .mob-nav-btn span {
    line-height: 1;
  }

  .mob-nav-btn.active {
    color: var(--primary);
  }

  .mob-nav-btn.active svg {
    transform: translateY(-2px);
  }

  .mob-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
  }

  /* ═══════════════════════════════════════════
     PWA CARD — safe-area
  ═══════════════════════════════════════════ */
  #pwa-card {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #pwa-card-install {
    margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

} /* fim

} /* fim @media (max-width: 900px) */
