/* ================================================================
   HEADER — Topo, logo, cidade, ferramentas
   ================================================================ */
header {
  background: linear-gradient(-45deg, var(--cor-cidade-escura), var(--cor-cidade), var(--cor-cidade-escura), var(--cor-cidade));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  /* AQUI: Reduzido o padding inferior de 30px para 15px para o player subir */
  padding: 2px 20px 15px; 
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── BARRA SUPERIOR: TEMPO + RELOGIO + NOTIFICACAO ─── */
.header-tools {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 3;
}
.header-tools > * { pointer-events: auto; }

.btn-tempo {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
}
.btn-tempo:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-tempo .tempo-emoji { font-size: 16px; line-height: 1; }
.btn-tempo .tempo-temp { font-weight: 800; font-size: 13px; letter-spacing: 0.3px; }
.btn-tempo .tempo-cidade { font-size: 11px; opacity: 0.9; display: none; }

.header-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-relogio {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-notif {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-notif:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-notif.ativo {
  background: rgba(34, 197, 94, 0.9);
  border-color: rgba(34, 197, 94, 1);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}
.btn-notif:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── LOGO / NOMES ─── */
header .logo-radio {
  display: block;
  margin: 0 auto 10px; /* Reduzido de 15px para 10px */
  max-width: 280px;
  width: 180%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
  position: relative;
  z-index: 2;
}
header .nome-radio {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 5px; /* Reduzido de 10px para 5px */
  position: relative;
  z-index: 2;
}

/* AQUI: Removido o fundo azul forte do nome da cidade para ficar mais clean */
header .nome-cidade {
  font-size: clamp(14px, 6.5vw, 48px);
  font-weight: 800;
  letter-spacing: clamp(1px, 0.6vw, 5px);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  padding: 0 6px;
  position: relative;
  z-index: 2;
  /* background-color: #0050b3; -- Removido o fundo azul */
  /* border-radius: 10px; -- Removido */
}

/* ═══════════════════════════════════════════════════════════════
   EMOJI DO MUNICÍPIO — Flutuando (sobe e desce suave)
   ═══════════════════════════════════════════════════════════════ */
.ms-emoji-float {
  display: inline-block;
  font-size: 1.5em;
  vertical-align: middle;
  line-height: 1;
  margin-right: 6px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  animation: msFloatEmoji 2.5s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform;
}

@keyframes msFloatEmoji {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ms-emoji-float { animation: none; }
}

/* ─── SLOGAN ─── */
.slogan-cidade {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  opacity: 0.92;
  margin-top: 5px; /* Reduzido de 8px para 5px */
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  min-height: 20px;
  position: relative;
  z-index: 2;
}

/* ─── SAUDACAO ─── */
.saudacao {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  /* AQUI: Margens reduzidas para colar no MARESOL */
  margin-top: 8px; 
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

/* ─── AVISO file:// ─── */
.aviso-local {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.aviso-local.visivel { display: block; }

/* ─── INFO GRID ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.info-item {
  background: var(--bg-principal);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--cor-cidade);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.info-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.18);
  background: #ffffff;
}
.info-item strong {
  display: block;
  color: var(--cor-cidade);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.info-item span,
.info-item a {
  color: var(--texto-secundario);
  font-size: 15px;
  text-decoration: none;
  word-break: break-word;
}
.info-item a:hover { color: var(--cor-cidade); }
.info-item.whats { border-left-color: #16a34a; }
.info-item.whats strong { color: #16a34a; }
.info-item.whats a { color: #16a34a; font-weight: 600; }
.info-item.email { border-left-color: var(--cor-cidade); }
.info-item.email a { color: var(--cor-cidade); font-weight: 600; }
.info-item.site { border-left-color: #7c3aed; }
.info-item.site strong { color: #7c3aed; }
.info-item.site a { color: #7c3aed; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   ⭐ OUTRAS CIDADES — CARROSSEL 3D ESTILO CUBO (Blogger)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Container principal: fundo escuro + borda ciano ─── */
#lista-cidades {
  position: relative;
  width: 380px;
  max-width: calc(100% - 20px);
  margin: 20px auto 0;
  padding: 16px 14px;
  background: #05050a;
  border: 2px solid #0ea5e9;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.8), 0 0 40px rgba(14,165,233,.25);
  overflow: hidden;
}

/* ─── Título "ESTAMOS AQUI !!!" ─── */
#lista-cidades::before {
  content: 'ESTAMOS AQUI !!!';
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 3px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(14,165,233,.4);
  text-shadow: 0 0 10px rgba(14,165,233,.7);
}

/* ─── Viewport com perspectiva 3D ─── */
#lista-cidades .ms-cidades-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* ─── Track 3D ─── */
#lista-cidades .ms-cidades-track {
  display: flex;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   CARD — CENTRALIZADO + EMOJI GRANDE + UF NO CANTO + URL
   ═══════════════════════════════════════════════════════════════ */
#lista-cidades .cidade-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px 22px 20px;
  min-height: 260px;
  background-color: var(--cidade-cor, #0ea5e9);
  background-image: linear-gradient(135deg, rgba(255,255,255,.2) 0%, rgba(0,0,0,.3) 100%);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.2);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform .3s ease, filter .3s ease, opacity .5s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* ─── Efeito cubo 3D — ENTRAR (esquerda → direita) ─── */
#lista-cidades .cidade-card.ms-cubo-enter {
  animation: msCidadeCuboEnter .8s cubic-bezier(.25,.46,.45,.94) both;
  transform-origin: left center;
}
@keyframes msCidadeCuboEnter {
  0%   { opacity: 0; transform: rotateY(90deg) translateZ(-50px); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0deg) translateZ(0); }
}

/* ─── Efeito cubo 3D — SAIR ─── */
#lista-cidades .cidade-card.ms-cubo-exit {
  animation: msCidadeCuboExit .8s cubic-bezier(.25,.46,.45,.94) both;
  transform-origin: right center;
}
@keyframes msCidadeCuboExit {
  0%   { opacity: 1; transform: rotateY(0deg) translateZ(0); }
  60%  { opacity: 0.6; }
  100% { opacity: 0; transform: rotateY(-90deg) translateZ(-50px); }
}

/* ─── Efeito cubo reverso — ENTRAR ─── */
#lista-cidades .cidade-card.ms-cubo-enter-rev {
  animation: msCidadeCuboEnterRev .8s cubic-bezier(.25,.46,.45,.94) both;
  transform-origin: right center;
}
@keyframes msCidadeCuboEnterRev {
  0%   { opacity: 0; transform: rotateY(-90deg) translateZ(-50px); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0deg) translateZ(0); }
}

/* ─── Efeito cubo reverso — SAIR ─── */
#lista-cidades .cidade-card.ms-cubo-exit-rev {
  animation: msCidadeCuboExitRev .8s cubic-bezier(.25,.46,.45,.94) both;
  transform-origin: left center;
}
@keyframes msCidadeCuboExitRev {
  0%   { opacity: 1; transform: rotateY(0deg) translateZ(0); }
  60%  { opacity: 0.6; }
  100% { opacity: 0; transform: rotateY(90deg) translateZ(-50px); }
}

/* ═══════════════════════════════════════════════════════════════
   BADGE DA UF — CANTO SUPERIOR DIREITO (absoluto)
   ═══════════════════════════════════════════════════════════════ */
#lista-cidades .cidade-estado {
  position: absolute !important;
  top: 12px;
  right: 12px;
  min-width: 44px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 0 12px;
  border-radius: 16px;
  letter-spacing: 1.5px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ─── Emoji — GRANDE e CENTRALIZADO ─── */
#lista-cidades .cidade-emoji {
  display: block;
  font-size: 72px !important;
  line-height: 1;
  margin: 4px auto 16px auto;
  text-align: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.55));
  animation: msFloatEmoji 2.5s ease-in-out infinite;
}

/* ─── Nome da cidade — centralizado ─── */
#lista-cidades .cidade-card-nome {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.7), 0 0 12px rgba(0,0,0,.5);
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
  color: #fff;
  width: 100%;
}

/* ─── Slogan — centralizado ─── */
#lista-cidades .cidade-card-slogan {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.4;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,.6);
  max-width: 100%;
  padding: 0 6px;
  color: #fff;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   URL DO SITE DA CIDADE — embaixo do card
   ═══════════════════════════════════════════════════════════════ */
#lista-cidades .cidade-card-url {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-family: 'Courier New', monospace;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  line-height: 1.3;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

/* ─── Botões prev/next ─── */
#lista-cidades .ms-cidades-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  font-family: Arial, sans-serif;
  line-height: 1;
  padding: 0;
}
#lista-cidades .ms-cidades-btn:hover {
  background: rgba(14, 165, 233, 0.9);
  transform: translateY(-50%) scale(1.1);
}
#lista-cidades .ms-cidades-prev { left: 8px; }
#lista-cidades .ms-cidades-next { right: 8px; }

/* ─── Dots ─── */
#lista-cidades .ms-cidades-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
#lista-cidades .ms-cidades-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#lista-cidades .ms-cidades-dots button.active {
  background: #0ea5e9;
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.8);
}

/* ═══ MOBILE ═══ */
@media (max-width: 600px) {
  .header-tools {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 0 0 12px 0;
    margin-bottom: 8px;
    pointer-events: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .header-tools > * { pointer-events: auto; }

  .btn-tempo { padding: 5px 10px; font-size: 11px; flex-shrink: 0; }
  .btn-tempo .tempo-emoji { font-size: 14px; }
  .btn-tempo .tempo-temp { font-size: 12px; }

  .header-tools-right { display: flex; gap: 6px; flex-shrink: 0; }
  .btn-relogio { padding: 5px 9px; font-size: 11px; }
  .btn-notif { padding: 5px 10px; font-size: 11px; }
  .btn-notif #notif-txt { display: none; }

  header .logo-radio { max-width: 220px; margin-top: 4px; }
  header .nome-radio { font-size: 13px; letter-spacing: 2px; }
  header .nome-cidade {
    font-size: clamp(12px, 5.5vw, 32px);
    letter-spacing: clamp(0.5px, 0.4vw, 2px);
  }
  .slogan-cidade { font-size: 18px; margin-top: 8px; }
  .saudacao { font-size: 13px; margin-top: 4px; }

  #lista-cidades {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 10px auto 0;
    padding: 12px 10px;
    border-radius: 12px;
  }
  #lista-cidades::before { font-size: 13px; letter-spacing: 2px; }
  #lista-cidades .cidade-card { padding: 22px 16px 18px 16px; min-height: 240px; }
  #lista-cidades .cidade-emoji { font-size: 56px !important; margin: 2px auto 12px auto; }
  #lista-cidades .cidade-card-nome { font-size: 20px; }
  #lista-cidades .cidade-card-slogan { font-size: 13px; }
  #lista-cidades .cidade-card-url { font-size: 9px; padding: 5px 10px; }
  #lista-cidades .ms-cidades-btn { width: 28px; height: 28px; font-size: 18px; }
  #lista-cidades .cidade-estado {
    min-width: 38px;
    height: 28px;
    font-size: 12px;
    padding: 0 10px;
    top: 10px;
    right: 10px;
  }
}

/* ═══ MOBILE pequeno ═══ */
@media (max-width: 380px) {
  #lista-cidades .cidade-emoji { font-size: 50px !important; }
  #lista-cidades .cidade-card-nome { font-size: 18px; }
  #lista-cidades .cidade-card-slogan { font-size: 12px; }
  #lista-cidades .cidade-card-url { font-size: 8px; padding: 4px 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADER
   ═══════════════════════════════════════════════════════════════ */
.cidades-loading-info {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.cidade-skeleton {
  background: #e2e8f0 !important;
  background-image: none !important;
  cursor: default;
  pointer-events: none;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.cidade-skeleton::before { display: none; }
.skeleton-box {
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 50%, #cbd5e1 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeleton-shimmer 1.5s linear infinite;
}
.skeleton-emoji { width: 24px; height: 24px; border-radius: 50%; }
.skeleton-estado { width: 34px; height: 18px; border-radius: 10px; }
.skeleton-nome { width: 80%; height: 18px; margin-top: 4px; }
.skeleton-slogan { width: 60%; height: 12px; margin-top: 4px; }
@keyframes skeleton-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ─── MENU DE NAVEGAÇÃO (PC e Celular) ─── */
.menu-hamburger {
  display: none; /* Escondido no PC */
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: auto; 
  z-index: 1001;
}

.menu-hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff; /* Cor dos pontinhos */
  border-radius: 3px;
  transition: 0.3s;
}

.menu-navegacao {
  display: flex; /* Menu aberto no PC */
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.menu-navegacao a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu-navegacao a:hover {
  background: rgba(255,255,255,0.2);
  color: #00ff41; /* Verde neon no hover */
}

/* ─── NO CELULAR (Hambúrguer) ─── */
@media (max-width: 768px) {
  .menu-hamburger {
    display: flex; /* Mostra o botão */
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .menu-navegacao {
    display: none; /* Esconde a lista */
    position: absolute;
    top: 70px; /* Abaixo do header */
    left: 0;
    width: 100%;
    background: #081a33; /* Fundo escuro */
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
  }

  /* Classe que o JS adiciona */
  .menu-navegacao.aberto {
    display: flex;
  }

  .menu-navegacao a {
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}