/* ==============================================================================
   Web Rádio Onda X — Folha de Estilos Principal (Design System & Layout)
   Conformidade WCAG 2.2 AA • Mobile-First • Performance Otimizada
   ============================================================================== */

:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: #0d1b2b;
  --panel-card: #102238;
  --line: #20374c;
  --line-light: rgba(255, 255, 255, 0.08);
  --text: #f4f8fc;
  --muted: #a6b7c7;       /* Ajustado para alto contraste WCAG AA/AAA (> 4.5:1) */
  --cyan: #43e3ec;
  --cyan-glow: rgba(67, 227, 236, 0.28);
  --blue: #4192ff;
  --red: #e74c3c;
  --focus-ring: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 74% 27%, #0e3e566b, transparent 38%), var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); /* Espaço equilibrado para o dock fixo */
}

/* Acessibilidade: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 14px;
  background: var(--cyan);
  color: #06121d;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  z-index: 10000;
  text-decoration: none;
  transition: top .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

/* Barra Superior (Topline) */
.topline {
  border-bottom: 1px solid var(--line-light);
  color: #c4d4e2;
  font-size: 12px;
  letter-spacing: .08em;
}
.topline .wrap {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 10px;
  margin-left: -10px;
  border-radius: 999px;
  transition: all .2s ease;
}
.topline-link:hover,
.topline-link:focus-visible {
  color: var(--cyan);
  background: rgba(67, 227, 236, 0.12);
  outline: none;
}
.live-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex-shrink: 0;
}

/* Cabeçalho & Navegação */
header {
  position: sticky;
  top: 0;
  z-index: 8000;
  background: #07111de8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font: 700 17px Orbitron, sans-serif;
  letter-spacing: .02em;
}
.brand-name span {
  color: var(--cyan);
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: #d1dde8;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav a:hover, .footer a:hover {
  color: var(--cyan);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s, background .2s, box-shadow .2s;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  color: #06121d;
  background: linear-gradient(110deg, var(--cyan), #87f3de);
  box-shadow: 0 8px 30px var(--cyan-glow);
}
.btn-primary:hover {
  box-shadow: 0 12px 35px rgba(67, 227, 236, .4);
}
.btn-ghost {
  color: #e9f2fa;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-disabled {
  color: #9baab7;
  background: #ffffff0a;
  border: 1px solid #ffffff1a;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Hero Section */
.hero {
  min-height: 580px;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  font-size: 11px;
}
.hero h1 {
  font: 700 clamp(40px, 5.8vw, 68px)/1.08 Orbitron, sans-serif;
  letter-spacing: -.05em;
  margin: 20px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}
.lead {
  max-width: 500px;
  color: #cbd8e4;
  font-size: 18px;
  margin: 0 0 28px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fine {
  font-size: 12px;
  color: #a3b6c7; /* Contraste > 4.5:1 */
  margin-top: 16px;
}

/* Logo Art & SVG Interativo */
.logo-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}
.logo-art:before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, .15), rgba(0, 102, 255, .08) 40%, transparent 70%);
  filter: blur(18px);
}
.onda-x-logo {
  position: relative;
  z-index: 2;
  width: min(590px, 90vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, .8));
  cursor: pointer;
  outline: none;
}
.onda-x-logo > svg {
  display: block;
  width: 100%;
  height: auto;
}
.emblem-float {
  animation: floatEmblem 6s ease-in-out infinite;
}
.animate-radio-wave-1 {
  animation: wavePulse 2.2s infinite ease-in-out;
  transform-origin: center;
}
.animate-radio-wave-2 {
  animation: wavePulse 2.2s infinite ease-in-out .4s;
  transform-origin: center;
}
.animate-radio-wave-3 {
  animation: wavePulse 2.2s infinite ease-in-out .8s;
  transform-origin: center;
}
.logo-eq-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  will-change: transform;
}
#svg-waveform-path {
  will-change: transform;
}
@keyframes wavePulse {
  0% { opacity: .25; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.04); }
  100% { opacity: .25; transform: scale(.92); }
}
@keyframes floatEmblem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Seções Gerais */
.section {
  padding: 38px 0 84px;
}
.section-head {
  max-width: 660px;
  margin: 0 auto 30px;
  text-align: center;
}
.section-head .eyebrow {
  justify-content: center;
}
.section h2 {
  font: 700 clamp(27px, 4vw, 38px)/1.15 Orbitron, sans-serif;
  letter-spacing: -.03em;
  margin: 12px 0;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

/* Grid Sintonize Agora (Player + Mapa) */
.listen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}
.listen-grid .player-card {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Card do Player */
.player-card {
  border: 1px solid #45d9e52a;
  background: linear-gradient(135deg, #102238, #0b1725);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
}
.player-top-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}
.player-top-label {
  font-weight: 600;
  color: #d1e4f4;
}
.player-top-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  font-family: Orbitron, sans-serif;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(67, 227, 236, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(67, 227, 236, 0.28);
}
.player-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.play {
  width: 66px;
  height: 66px;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: #06121d;
  background: linear-gradient(145deg, var(--cyan), #82f4d7);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(67, 227, 236, 0.3);
  position: relative;
  display: inline-grid;
  place-items: center;
  touch-action: manipulation;
  transition: transform .2s ease;
}
.play:hover {
  transform: scale(1.04);
}
.play-symbol {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #06121d;
  transition: all .18s ease;
}
.play.is-playing .play-symbol {
  width: 18px;
  height: 21px;
  margin-left: 0;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #06121d 0 34%, transparent 34% 66%, #06121d 66% 100%);
  box-shadow: 0 0 0 1px rgba(6, 18, 29, 0.15);
}
.player-info {
  min-width: 0;
  flex: 1;
}
.player-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--cyan);
  font-weight: 700;
}
.player-title {
  font-size: 20px;
  font-weight: 700;
}
.player-hint {
  font-size: 13px;
  color: var(--muted);
}
.equalizer {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.equalizer i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 4px;
  background: var(--cyan);
  opacity: .5;
}
.is-playing .equalizer i {
  animation: beat .7s ease-in-out infinite alternate;
}
.equalizer i:nth-child(3n) { animation-delay: .2s; }
.equalizer i:nth-child(2n) { animation-delay: .4s; }
@keyframes beat {
  to { height: 27px; opacity: 1; }
}

.player-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(8, 20, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 16px 0;
}
.player-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-spec .spec-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8c9ea0;
  font-weight: 600;
}
.player-spec .spec-v {
  font-size: 12px;
  font-weight: 600;
  color: #d8e5f2;
}

.player-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b0c2d1;
  font-size: 12px;
}
.listen-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.listeners {
  color: #a0b4c5; /* Contraste ajustado */
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.listeners::before {
  content: '●';
  color: var(--cyan);
  font-size: 8px;
  margin-right: 5px;
}

/* Volume Slider */
.volume {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume input[type="range"] {
  --vol: 80%;
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 24px;
  background: transparent;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}
.volume input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--cyan) var(--vol), rgba(255, 255, 255, .9) var(--vol));
  border-radius: 999px;
  transition: background .15s ease, box-shadow .2s ease;
}
.volume input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--cyan) var(--vol), rgba(255, 255, 255, .9) var(--vol));
  border-radius: 999px;
  transition: background .15s ease, box-shadow .2s ease;
}
.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4), 0 0 6px rgba(67, 227, 236, .6);
  margin-top: -6px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.volume input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4), 0 0 6px rgba(67, 227, 236, .6);
  cursor: pointer;
}
/* Estado Mudo / Volume Zero (Botão e Slider em Vermelho conforme especificação) */
.volume.is-muted input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 205, 215, 0.85) !important;
}

.volume.is-muted input[type="range"]::-moz-range-track {
  background: rgba(255, 205, 215, 0.85) !important;
}

.volume.is-muted input[type="range"]::-webkit-slider-thumb {
  background: #ff385c !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 56, 92, 0.75), 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.volume.is-muted input[type="range"]::-moz-range-thumb {
  background: #ff385c !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 56, 92, 0.75), 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}


/* Card do Mapa de Ouvintes (Hoostcast) */
.map-card {
  border: 1px solid #45d9e52a;
  background: linear-gradient(135deg, #102238, #0b1725);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.map-card-header {
  margin-bottom: 12px;
}
.map-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.map-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  color: #ff6b81;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e74c3c;
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: .7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: .7; }
}
.map-card-title {
  font: 700 20px Orbitron, sans-serif;
  letter-spacing: -.02em;
  color: #ffffff;
  margin: 4px 0 6px;
}
.map-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.map-widget-container {
  position: relative;
  flex: 1;
  min-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(67, 227, 236, 0.2);
  background: #06111d;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}
.map-widget-container:not(.is-fullscreen) {
  isolation: isolate;
  z-index: 1;
}

/* Botão de Expandir Mapa (Canto Direito Superior) */
.map-expand-btn {
  position: absolute;
  top: 44px;
  right: 10px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 22, 36, 0.9);
  border: 1px solid rgba(67, 227, 236, 0.45);
  color: #e0f2fe;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(67, 227, 236, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .2s ease;
  user-select: none;
}

.map-expand-btn:hover {
  background: rgba(14, 38, 61, 0.98);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(67, 227, 236, 0.6);
  transform: translateY(-1px);
}

.map-expand-btn:active {
  transform: translateY(0);
}

/* Fundo Transparente com Desfoque do Modal */
.map-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(4, 11, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

body.map-modal-active {
  overflow: hidden !important;
}

body.map-modal-active .map-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Modo Modal: O mapa abre SOBRE a tela de forma interativa, centralizado e com transparência ao redor */
.map-widget-container.is-fullscreen {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  width: min(94vw, 1100px) !important;
  height: min(84vh, 650px) !important;
  max-width: none !important;
  border-radius: 20px !important;
  border: 1px solid rgba(67, 227, 236, 0.45) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #06111d !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.88), 0 0 50px rgba(67, 227, 236, 0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  animation: mapModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes mapModalPop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.map-widget-container.is-fullscreen .hc-listenersmap {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.map-widget-container.is-fullscreen .hc-listenersmap-header {
  flex: none !important;
  height: 48px !important;
  padding: 0 20px !important;
  background: #081626 !important;
  border-bottom: 1px solid rgba(67, 227, 236, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  letter-spacing: .04em !important;
  color: #9cb0c1 !important;
}

.hc-listenersmap-title-group {
  display: inline-flex;
  align-items: center;
}

.map-widget-container.is-fullscreen .hc-listenersmap-container {
  flex: 1 !important;
  width: 100% !important;
  height: calc(100% - 48px) !important;
  max-height: none !important;
  min-height: 0 !important;
}

.map-widget-container.is-fullscreen .map-expand-btn {
  top: 9px !important;
  right: 16px !important;
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  padding: 5px 13px !important;
  font-size: 12px !important;
}

.map-widget-container.is-fullscreen .map-expand-btn:hover {
  background: rgba(239, 68, 68, 0.38) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6) !important;
}
.map-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9cb0c1; /* Contraste ajustado */
  gap: 10px;
}
.map-foot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-foot-meta svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.map-interaction-hint {
  color: #9cb0c1; /* Contraste alto para WCAG AA */
}

/* Hoostcast & Leaflet Styling Overrides */
.map-widget-container .hoostcast {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.map-widget-container .hc-listenersmap {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
}
.map-widget-container .hc-listenersmap-header {
  padding: 8px 12px;
  background: rgba(9, 20, 33, 0.95);
  border-bottom: 1px solid rgba(67, 227, 236, 0.15);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #b3c5d6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.map-widget-container .hc-listenersmap-header .listeners,
.map-widget-container .hc-listenersmap-header [data-hc="mcount"],
.map-widget-container.is-fullscreen .hc-listenersmap-header .listeners,
.map-widget-container.is-fullscreen .hc-listenersmap-header [data-hc="mcount"] {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #a0b4c5 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: normal !important;
}
.map-widget-container .hc-listenersmap-header .listeners::before,
.map-widget-container .hc-listenersmap-header [data-hc="mcount"]::before,
.map-widget-container.is-fullscreen .hc-listenersmap-header .listeners::before,
.map-widget-container.is-fullscreen .hc-listenersmap-header [data-hc="mcount"]::before {
  content: '●' !important;
  color: var(--cyan) !important;
  font-size: 8px !important;
  margin-right: 5px !important;
  box-shadow: none !important;
}
.map-widget-container .hc-listenersmap-container {
  flex: 1;
  width: 100%;
  height: 100% !important;
  min-height: 220px;
  background: #06111d;
}
.map-widget-container .leaflet-container {
  background: #06111d !important;
  font-family: 'DM Sans', sans-serif;
}
.map-widget-container .leaflet-bar {
  border: 1px solid rgba(67, 227, 236, 0.3) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
.map-widget-container .leaflet-bar a {
  background: #0d1e30 !important;
  color: var(--cyan) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all .2s ease;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-widget-container .leaflet-bar a:hover {
  background: #13283f !important;
  color: #ffffff !important;
}
.map-widget-container .leaflet-popup-content-wrapper {
  background: #0b1a2a !important;
  color: #f4f8fc !important;
  border: 1px solid rgba(67, 227, 236, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}
.map-widget-container .leaflet-popup-tip {
  background: #0b1a2a !important;
}
.map-widget-container .leaflet-popup-content {
  margin: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #c4d4e3 !important;
}
.map-widget-container .leaflet-popup-content b {
  font-family: Orbitron, sans-serif !important;
  font-size: 12px !important;
  color: var(--cyan) !important;
  display: block;
  margin-bottom: 3px;
}
.ondax-map-tiles-dark {
  filter: contrast(1.15) brightness(0.92) !important;
}

/* ==============================================================================
   Marcadores Personalizados do Mapa de Ouvintes (Ciano Onda X • Privacy-First)
   ============================================================================== */
.ondax-custom-div-icon {
  background: transparent !important;
  border: none !important;
}

.ondax-map-bubble {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ondax-marker-core {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #43e3ec, #00b4d8);
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(67, 227, 236, 0.85), 0 0 22px rgba(0, 180, 216, 0.45), 0 2px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.ondax-marker-num {
  color: #061524;
  font-family: Orbitron, 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  user-select: none;
  pointer-events: none;
}

/* Local com mais pessoas (Top Location / Maior Concentração) — Mais chamativo e maior */
.ondax-map-bubble.is-top-location .ondax-marker-core {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 18px rgba(67, 227, 236, 1), 0 0 32px rgba(79, 172, 254, 0.7), 0 3px 8px rgba(0, 0, 0, 0.7);
}

.ondax-map-bubble.is-top-location .ondax-marker-num {
  font-size: 13px;
  font-weight: 900;
}

/* Animação suave de radar/pulso ciano para o grupo com maior concentração */
.ondax-marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(67, 227, 236, 0.55);
  transform: translate(-50%, -50%) scale(1);
  animation: ondaxCyanRadarPulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes ondaxCyanRadarPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  65% {
    transform: translate(-50%, -50%) scale(1.9);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.9);
    opacity: 0;
  }
}

.ondax-map-bubble:hover .ondax-marker-core {
  transform: scale(1.18);
  box-shadow: 0 0 24px rgba(67, 227, 236, 1);
}

/* App Android Strip */
.app-strip {
  padding: 58px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, #0a1c2b, #0b1724);
}
.app-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 26px;
}
.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}
.app-copy .eyebrow {
  margin-bottom: 8px;
}
.app-copy h2 {
  font: 700 27px Orbitron, sans-serif;
  margin: 0 0 8px;
}
.app-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 580px;
}

/* ==============================================================================
   Seção de Notícias de Música Nativa (Radar Musical Onda X)
   ============================================================================== */
.news-section {
  padding: 52px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.news-card {
  max-width: 1040px;
  margin: auto;
  background: linear-gradient(135deg, #0d1f33, #081320);
  border: 1px solid #45d9e526;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  container-type: inline-size;
}
.news-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.news-head-left .eyebrow {
  margin-bottom: 6px;
}
.news-head-left .news-title {
  font: 700 clamp(22px, 3.2vw, 28px) Orbitron, sans-serif;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  color: #fff;
}
.news-head-left .news-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.news-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.news-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(67, 227, 236, 0.25);
  background: rgba(13, 31, 51, 0.85);
  color: var(--cyan);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-nav-btn:hover:not(:disabled) {
  background: var(--cyan);
  color: #07111d;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(67, 227, 236, 0.35);
}
.news-nav-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.news-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transform: none;
  box-shadow: none;
}
.news-track-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.news-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(67, 227, 236, 0.25) transparent;
}
.news-track::-webkit-scrollbar {
  height: 6px;
}
.news-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.news-track::-webkit-scrollbar-thumb {
  background: rgba(67, 227, 236, 0.3);
  border-radius: 999px;
}
.news-track::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}
.news-item-card {
  flex: 0 0 calc(33.333% - 12px);
  min-width: 280px;
  max-width: 340px;
  scroll-snap-align: start;
  background: rgba(9, 21, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.news-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 227, 236, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(67, 227, 236, 0.15);
}
.news-item-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.news-item-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06111e;
  overflow: hidden;
}
.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.news-item-card:hover .news-item-thumb img {
  transform: scale(1.05);
}
.news-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #153252, #081423);
  color: var(--cyan);
}
.news-source-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7, 17, 29, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.news-source-badge.badge-rs {
  border-color: rgba(230, 43, 76, 0.55);
  color: #ff5e78;
}
.news-source-badge.badge-tmdqa {
  border-color: rgba(0, 210, 255, 0.55);
  color: #43e3ec;
}
.news-item-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-item-date {
  font-size: 11.5px;
  color: #8da4b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-item-title {
  font: 700 15px/1.35 'DM Sans', sans-serif;
  color: #f4f8fc;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-item-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}
.news-item-card:hover .news-item-action {
  gap: 9px;
}
.news-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #7b91a5;
}
.news-sources-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-sources-info strong {
  color: #d8e5f2;
}
.news-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #9db2c5;
}
.news-skeleton-card {
  flex: 0 0 calc(33.333% - 12px);
  min-width: 280px;
  background: rgba(9, 21, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
}
.sk-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #0e1e30 25%, #152d47 50%, #0e1e30 75%);
  background-size: 200% 100%;
  animation: skPulse 1.6s infinite ease-in-out;
}
.sk-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sk-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #0e1e30 25%, #152d47 50%, #0e1e30 75%);
  background-size: 200% 100%;
  animation: skPulse 1.6s infinite ease-in-out;
}
.sk-tag { width: 40%; height: 12px; }
.sk-title { width: 90%; height: 16px; }
.sk-title-sm { width: 70%; height: 16px; }
.sk-desc { width: 85%; height: 12px; }
@keyframes skPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@container (max-width: 760px) {
  .news-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-controls {
    align-self: flex-end;
  }
  .news-item-card, .news-skeleton-card {
    flex: 0 0 85%;
    min-width: 260px;
  }
}

/* Seção de Clima & Previsão Open-Meteo */
.weather-section {
  padding: 24px 0 10px;
}
.weather-card {
  position: relative;
  max-width: 1040px;
  margin: auto;
  background: linear-gradient(135deg, #0d1f33 0%, #081320 100%);
  border: 1px solid #45d9e526;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.weather-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.weather-title-wrap h3 {
  font: 700 clamp(22px, 3.2vw, 28px) Orbitron, sans-serif;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.weather-title-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.wx-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wx-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #051322;
  border: 1px solid #45d9e533;
  color: var(--cyan);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  min-height: 44px;
}
.wx-loc-icon {
  color: var(--cyan);
  flex: none;
}
.wx-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2effa;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
  touch-action: manipulation;
  min-height: 44px; /* WCAG 2.2 touch target */
}
.wx-btn:hover {
  background: #45d9e51f;
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}
.wx-btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.wx-spin-icon {
  transition: transform .4s ease;
}
.wx-spinning .wx-spin-icon {
  animation: wxSpin .8s linear infinite;
}
@keyframes wxSpin {
  to { transform: rotate(360deg); }
}

/* Painel Acessível de Mensagens/Avisos do Clima (Sem alert() bloqueante) */
.wx-notice {
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  background: rgba(67, 227, 236, 0.12);
  border: 1px solid rgba(67, 227, 236, 0.35);
  color: #e5f7fd;
}
.wx-notice.is-error {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.4);
  color: #ff98a5;
}

/* Painel de Busca de Cidades */
.wx-search-panel {
  margin-bottom: 22px;
  background: #06121fe6;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #45d9e53d;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: wxFadeIn .25s ease;
}
@keyframes wxFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wx-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wx-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a1a2b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  height: 44px; /* Touch target */
  transition: border-color .2s;
}
.wx-search-input-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(67, 227, 236, 0.25);
}
.wx-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}
.wx-search-input::placeholder {
  color: #9cb0c1;
}
.wx-search-clear {
  background: transparent;
  border: 0;
  color: #9aabba;
  font-size: 20px;
  cursor: pointer;
  padding: 0 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wx-search-clear:hover {
  color: #fff;
}
.wx-close-panel-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d5e5f2;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.wx-close-panel-btn:hover {
  background: #ff475730;
  border-color: #ff4757;
  color: #ff6b81;
}
.wx-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.wx-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0d2033;
  border-radius: 10px;
  color: #e1edf7;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  min-height: 44px; /* WCAG touch target */
}
.wx-result-item:hover, .wx-result-item:focus-visible {
  background: #16324f;
  border-color: var(--cyan);
  color: var(--cyan);
}
.wx-result-meta {
  font-size: 11px;
  color: #9cb0c1;
}
.wx-quick-cities {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.wx-quick-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9cb0c1;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.wx-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wx-chip {
  background: #0d2238;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #b0c8dc;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.wx-chip:hover {
  background: #45d9e522;
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Ferramentas de Privacidade do Clima */
.wx-privacy-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.wx-clear-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c8d8;
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.wx-clear-btn:hover {
  background: rgba(255, 71, 87, 0.15);
  border-color: #ff4757;
  color: #ff8597;
}

/* Conteúdo da Previsão */
.wx-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wx-current-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
  align-items: stretch;
}
.wx-main-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #091624 0%, #0d2238 100%);
  border: 1px solid #45d9e52b;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wx-icon-display {
  width: 76px;
  height: 76px;
  flex: none;
  filter: drop-shadow(0 4px 16px rgba(67, 227, 236, .25));
}
.wx-main-temp-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wx-temp-val {
  font: 800 clamp(38px, 5vw, 52px)/1 Orbitron, sans-serif;
  color: #ffffff;
  letter-spacing: -.03em;
  display: flex;
  align-items: baseline;
}
.wx-degree {
  font-size: 24px;
  color: var(--cyan);
  font-weight: 600;
  margin-left: 2px;
}
.wx-condition-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #45d9e514;
  border: 1px solid #45d9e530;
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.wx-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.wx-metric-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.wx-metric-box:hover {
  border-color: #45d9e526;
  background: rgba(9, 27, 46, 0.7);
}
.wx-metric-icon {
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.wx-metric-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wx-m-lbl {
  font-size: 11px;
  color: #9cb0c1;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.wx-m-val {
  font-size: 15px;
  color: #eef5fc;
  font-weight: 700;
  font-family: Orbitron, sans-serif;
}
.wx-forecast-strip {
  background: #06121ee6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
}
.wx-forecast-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #9cb0c1;
  font-weight: 700;
  margin-bottom: 12px;
}
.wx-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.wx-day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(10, 28, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.wx-day-card:hover {
  transform: translateY(-2px);
  border-color: #45d9e530;
  background: rgba(14, 37, 61, 0.6);
}
.wx-day-name {
  font-size: 12px;
  font-weight: 700;
  color: #d0e0ef;
  text-transform: capitalize;
}
.wx-day-card.is-today .wx-day-name {
  color: var(--cyan);
}
.wx-day-icon {
  width: 38px;
  height: 38px;
  flex: none;
}
.wx-day-desc {
  font-size: 11px;
  color: #9cb0c1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.wx-day-temp-range {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: Orbitron, sans-serif;
}
.wx-day-max { color: #ffb703; }
.wx-day-min { color: #45d9e5; opacity: .85; }
.wx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #9cb0c1;
}
.wx-update-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wx-source {
  color: #7d93a6;
}
.wx-loading {
  padding: 40px 20px;
  text-align: center;
  color: #9cb0c1;
  font-size: 13px;
}
.wx-skeleton-shimmer {
  height: 120px;
  background: linear-gradient(90deg, #0a1a2b 25%, #112942 50%, #0a1a2b 75%);
  background-size: 200% 100%;
  border-radius: 18px;
  animation: wxShimmer 1.5s infinite;
  margin-bottom: 12px;
}
@keyframes wxShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.wx-error {
  padding: 30px 20px;
  text-align: center;
  color: #ff6b81;
  background: rgba(42, 15, 22, 0.25);
  border: 1px solid rgba(255, 71, 87, 0.25);
  border-radius: 16px;
}
.wx-error p {
  margin: 0 0 10px;
  font-size: 13px;
}

/* Rodapé */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0 24px;
  color: #9cb0c1;
  font-size: 12px;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer a,
.footer-links a,
.footer-links span {
  font-size: 11px;
  min-height: auto;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
  color: #9cb0c1;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover {
  color: var(--cyan);
}
.footer-links span {
  color: #7e91a3;
  cursor: default;
}

/* Dock Fixo Inferior */
.dock {
  position: fixed;
  z-index: 9000;
  bottom: 0;
  left: 0;
  right: 0;
  background: #08131eef;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(67, 227, 236, 0.2);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
}
.dock-in {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dock-title {
  font-weight: 700;
  font-size: 14px;
}
.dock-sub {
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.dock .play {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.dock .play-symbol {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
  margin-left: 3px;
}
.dock .play.is-playing .play-symbol {
  width: 13px;
  height: 16px;
}
.dock-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==============================================================================
   Modo Reduzido de Movimento (prefers-reduced-motion) — Desativa TODAS as animações
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .emblem-float,
  .animate-radio-wave-1,
  .animate-radio-wave-2,
  .animate-radio-wave-3,
  .logo-ring-spin,
  .x-pulse,
  .wave1, .wave2, .wave3,
  .live-pulse,
  .ondax-marker-pulse,
  .wx-spinning .wx-spin-icon,
  .wx-skeleton-shimmer,
  .is-playing .equalizer i {
    animation: none !important;
  }
  .btn:hover, .wx-btn:hover, .wx-day-card:hover, .ondax-map-bubble:hover .ondax-marker-core {
    transform: none !important;
  }
}

/* ==============================================================================
   Responsividade e Breakpoints
   ============================================================================== */
@media (max-width: 960px) {
  .listen-grid { grid-template-columns: 1fr; gap: 20px; }
  .map-card { min-height: auto; }
  .map-widget-container .hc-listenersmap-container { height: 260px !important; }
}

@media (max-width: 860px) {
  .wx-current-grid { grid-template-columns: 1fr; gap: 14px; }
  .wx-forecast-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 55px 0 30px;
    min-height: auto;
  }
  .hero-copy { order: 1; }
  .logo-art { order: 0; min-height: 0; }
  .onda-x-logo { width: min(100%, 420px); }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); margin: 15px 0; }
  .lead { font-size: 16px; }
  .app-row { grid-template-columns: 78px 1fr; gap: 16px; }
  .app-icon { width: 76px; height: 76px; }
  .app-row > .btn { grid-column: 1 / -1; justify-self: start; }
  .app-strip { padding: 42px 0; }
  .nav { height: 66px; gap: 14px; }
  .nav a { font-size: 12px; }
  .nav .btn { min-height: 42px; padding: 0 14px; font-size: 12px; }
  .news-card, .weather-card { padding: 20px 16px; }
  .news-section { padding: 36px 0 20px; }
  .weather-section { padding: 18px 0 8px; }
  .footer-in { align-items: center; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
}

@media (max-width: 600px) {
  .weather-head { flex-direction: column; gap: 14px; }
  .wx-toolbar { width: 100%; justify-content: space-between; }
  .wx-metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wx-metric-box { padding: 10px 12px; }
  .wx-main-hero { padding: 16px 18px; }
  .wx-forecast-strip { padding: 14px 12px; }
  .wx-day-card { padding: 10px 6px; }
}

@media (max-width: 480px) {
  .player-specs-row { grid-template-columns: 1fr; gap: 8px; }
  .map-card-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .wrap { width: min(100% - 24px, 1120px); }
  nav { gap: 10px; }
  nav > a:first-child { display: none; }
  .player-card { padding: 18px; }
  .player-title { font-size: 17px; }
  .player-foot { font-size: 11px; }
  .volume input[type="range"] { width: 68px; }
  .dock-in { min-height: 62px; }
  .dock-sub { font-size: 9px; }
  .listeners { font-size: 9px; }
}

/* ==============================================================================
   Acessibilidade WCAG 2.2 AA — Redução de Movimento (prefers-reduced-motion)
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
