@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Montserrat:ital,wght@0,700;0,800;0,900;1,800;1,900&display=swap');

:root {
  /* IDENTIDADE VISUAL OFICIAL NOVA FM 94.7 - TEMA BRANCO / LIGHT */
  --nova-blue: #0545F5;
  --nova-blue-glow: rgba(5, 69, 245, 0.25);
  --nova-cyan: #00DAFA;
  --nova-cyan-glow: rgba(0, 218, 250, 0.25);
  
  /* Fundos Claros */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-brand: rgba(5, 69, 245, 0.18);
  
  /* Tipografia */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  
  --live-red: #E11D48;
  --live-glow: rgba(225, 29, 72, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  padding-bottom: 96px; /* Espaço para o player fixo inferior */
  position: relative;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.font-brand {
  font-family: 'Montserrat', sans-serif;
}

/* Header Flutuante Oficial com Expo-Glass-Effect (Espaço do topo + Cantos arredondados) */
header.site-header {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  z-index: 50 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 12px 36px -6px rgba(15, 23, 42, 0.08),
    0 4px 16px -2px rgba(5, 69, 245, 0.06),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 640px) {
  header.site-header {
    top: 16px !important;
    left: 20px !important;
    right: 20px !important;
    border-radius: 26px !important;
  }
}

@media (min-width: 1024px) {
  header.site-header {
    top: 20px !important;
    left: 24px !important;
    right: 24px !important;
    border-radius: 30px !important;
  }
}

/* Alinhamento e Linha Única para Itens do Menu Desktop (a partir de 1024px) */
@media (min-width: 1024px) {
  header.site-header nav {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
  }

  header.site-header nav a {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.35rem 0.55rem !important;
    font-size: 0.8125rem !important;
    transition: all 0.2s ease;
  }

  header.site-header nav a:hover {
    background-color: rgba(5, 69, 245, 0.08);
  }
}

/* Menu Dropdown Mobile e Tablet com Expo-Glass-Effect Flutuante */
#mobile-menu-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: calc(100vh - 100px) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(36px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 
    0 24px 48px -12px rgba(15, 23, 42, 0.18),
    0 8px 24px -4px rgba(5, 69, 245, 0.08),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95) !important;
  z-index: 49 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (min-width: 640px) {
  #mobile-menu-dropdown {
    border-radius: 26px !important;
  }
}

#mobile-menu-dropdown.hidden {
  display: none !important;
}

/* Custom Scrollbar Claro */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Custom Scrollbar Escura para Playlist de Lives */
.custom-scrollbar-dark {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.5) rgba(15, 23, 42, 0.6);
}
.custom-scrollbar-dark::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar-dark::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
.custom-scrollbar-dark::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 4px;
}
.custom-scrollbar-dark::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 68, 68, 0.8);
}
  background: var(--nova-blue);
}

/* Seções com Cores Alternadas da Marca */
.section-white {
  background-color: #FFFFFF;
}

.section-blue {
  background-color: var(--nova-blue);
  color: #FFFFFF;
}

/* Títulos principais da seção azul */
.section-blue > div h2,
.section-blue .text-white {
  color: #FFFFFF !important;
}

.section-blue .text-subtitle {
  color: #DBEAFE;
}

/* Cards e elementos brancos dentro de seções azuis preservam tipografia escura */
.section-blue .bg-white,
.section-blue .card-light {
  color: var(--text-body);
}

.section-blue .bg-white h1,
.section-blue .bg-white h2,
.section-blue .bg-white h3,
.section-blue .bg-white h4,
.section-blue .card-light h1,
.section-blue .card-light h2,
.section-blue .card-light h3,
.section-blue .card-light h4 {
  color: #0F172A !important;
}

.section-blue .bg-white h3:hover,
.section-blue .card-light h3:hover {
  color: var(--nova-blue) !important;
}

.section-blue .bg-white p,
.section-blue .card-light p {
  color: #475569 !important;
}

/* Painéis e Cards Claros */
.card-light {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(5, 69, 245, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.card-light-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-light-hover:hover {
  border-color: rgba(5, 69, 245, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -4px rgba(5, 69, 245, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

/* Brilhos e Sombras da Marca */
.shadow-nova-blue {
  box-shadow: 0 10px 25px -3px rgba(5, 69, 245, 0.3);
}
.shadow-nova-cyan {
  box-shadow: 0 10px 25px -3px rgba(0, 218, 250, 0.35);
}

/* Badge estilizado 94.7 idêntico ao logo */
.brand-badge-947 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  padding-right: 3px;
}
.brand-badge-947 .badge-fm {
  color: var(--nova-cyan);
}
.brand-badge-947 .badge-num {
  background: var(--nova-blue);
  color: #FFFFFF;
  padding: 1px 7px;
  border-radius: 6px;
  transform: skewX(-10deg);
  display: inline-block;
  box-shadow: 0 3px 8px rgba(5, 69, 245, 0.35);
}

/* Pulsing Live Badge */
.live-pulse {
  position: relative;
}
.live-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: var(--live-red);
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Animated Equalizer Waveform */
.eq-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}
.eq-bar {
  width: 4px;
  background: linear-gradient(180deg, #00DAFA 0%, #0545F5 100%);
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s ease;
}
.playing .eq-bar:nth-child(1) { animation: eq-wave 0.8s ease infinite alternate; }
.playing .eq-bar:nth-child(2) { animation: eq-wave 1.1s ease infinite 0.15s alternate; }
.playing .eq-bar:nth-child(3) { animation: eq-wave 0.7s ease infinite 0.3s alternate; }
.playing .eq-bar:nth-child(4) { animation: eq-wave 1.3s ease infinite 0.1s alternate; }
.playing .eq-bar:nth-child(5) { animation: eq-wave 0.9s ease infinite 0.25s alternate; }

@keyframes eq-wave {
  0% { height: 4px; }
  100% { height: 24px; }
}

/* Floating Sticky Player Claro */
#sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(5, 69, 245, 0.12);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Volume Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  background: #E2E8F0;
  border-radius: 9999px;
  height: 6px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nova-blue);
  box-shadow: 0 0 8px rgba(5, 69, 245, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Modal Backdrop */
.modal-overlay {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease;
}

/* Gradientes da Marca Nova FM */
.bg-gradient-nova {
  background: linear-gradient(135deg, #0545F5 0%, #00DAFA 100%);
}

.text-gradient-nova {
  background: linear-gradient(135deg, #0545F5 0%, #00BBD8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero background glow para tema claro com contenção rigorosa */
.hero-glow-blob {
  position: absolute;
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 69, 245, 0.06) 0%, rgba(0, 218, 250, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  max-width: 100%;
}

/* ========================================================
   RESPONSIVIDADE APRIMORADA PARA MOBILE & TABLET
   ======================================================== */

/* Prevenção rigorosa de overflow horizontal em qualquer tela (Mobile, Tablet, Desktop) */
html {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
}

/* Contenção estrita para seções sem estourar viewport com 100vw */
section, aside, footer {
  max-width: 100%;
  overflow-x: clip;
}

#locutores-carousel-viewport {
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
}

#locutores-carousel-track {
  touch-action: pan-y;
}

/* Suporte a rolagem por toque fluida (iOS/Android) */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Ajustes finos para Mobile (telas até 640px) */
@media (max-width: 640px) {
  /* Previne zoom forçado desagradável no iOS Safari ao focar inputs */
  input[type="text"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Espaço inferior extra para não cobrir o rodapé com o player fixo */
  body {
    padding-bottom: 112px;
  }

  /* Padding confortável para cartões em celulares */
  .card-light {
    border-radius: 1.25rem;
  }
}

/* Ajustes para Tablets (641px a 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  body {
    padding-bottom: 100px;
  }
}

/* ========================================================
   AJUSTES ESPECÍFICOS DE ALTA PRECISÃO PARA TABLETS (641px a 1023px)
   ======================================================== */
@media (min-width: 641px) and (max-width: 1023px) {
  /* Header Flutuante do Tablet */
  header.site-header > div:first-child {
    padding-left: clamp(1rem, 2.5vw, 1.5rem) !important;
    padding-right: clamp(1rem, 2.5vw, 1.5rem) !important;
  }

  /* Seção Hero Perfeitamente Centralizada e Ocupando o Espaço */
  #inicio {
    min-height: auto !important;
    padding-top: 88px !important;
    padding-bottom: 48px !important;
    background-color: #EBF6FE !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #inicio > div {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(1.25rem, 4vw, 2.5rem) !important;
    padding-right: clamp(1.25rem, 4vw, 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #inicio .grid {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
  }

  #inicio h1 {
    font-size: clamp(2.1rem, 4.2vw, 2.85rem) !important;
    line-height: 1.16 !important;
    text-align: center !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #inicio p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Card NO AR AGORA Centralizado, Fluido e Alinhado */
  #inicio .hero-show-card {
    width: 100% !important;
    max-width: 580px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.25rem 1.5rem !important;
  }

  /* Personagem 3D Hero com 100% de largura na versão mobile e tablet */
  .hero-video-blend {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

/* Vídeo Oficial da Hero com Efeito Multiplicar Transparente e Altura Proporcional */
.hero-video-blend,
.hero-video-container,
.hero-video-wrapper {
  mix-blend-mode: multiply !important;
  -webkit-mix-blend-mode: multiply !important;
}

.hero-video-blend {
  transform: none !important;
  -webkit-transform: none !important;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
}

@media (min-width: 1024px) {
  .hero-video-blend {
    height: 100% !important;
    max-height: 750px !important;
    width: auto !important;
  }
}

@media (max-width: 1023px) {
  .hero-video-blend {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

/* Slider Rotativo de Destaques com Margem Negativa de -30px Sobrepondo a Hero */
#hero-slider-section {
  margin-top: -30px !important;
  position: relative !important;
  z-index: 30 !important;
}

#hero-carousel-viewport {
  width: 100%;
  aspect-ratio: 1024 / 352;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: none !important;
  outline: none !important;
  box-shadow: 0 20px 45px -15px rgba(2, 21, 66, 0.22);
  background-color: #f8fafc;
}

#hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  user-select: none;
  background-color: #f8fafc;
}

.hero-carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-carousel-slide:hover img {
  transform: scale(1.012);
}

/* Notícias do Portal: Clicabilidade 100% e Efeito de Hover */
#featured-news-card {
  cursor: pointer !important;
}

#featured-news-card-link,
#featured-news-title,
#featured-news-cta,
#news-secondary-list a,
#more-news-grid a {
  cursor: pointer !important;
}

#news-secondary-list > div,
#more-news-grid > div {
  cursor: pointer !important;
}

#news-secondary-list > div:hover,
#more-news-grid > div:hover {
  cursor: pointer !important;
}



