:root {
  --bg: #0d0015;
  --bg2: #130020;
  --card: #1a002d;
  --card2: #200035;
  --accent: #c0392b;
  --accent2: #e74c3c;
  --purple: #8e44ad;
  --purple2: #9b59b6;
  --gold: #f39c12;
  --text: #f0e6ff;
  --text2: #b39dcc;
  --text3: #7a6b8a;
  --border: rgba(180,100,255,0.15);
  --border2: rgba(180,100,255,0.3);
  --glow: 0 0 30px rgba(192,57,43,0.3);
  --pglow: 0 0 20px rgba(142,68,173,0.4);
  --topbar-h: 72px;
  --nav-h: 52px;
  --header-total: 124px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-total);
}

/* TOP BAR */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--topbar-h);
  background: linear-gradient(135deg, rgba(18,0,32,0.98), rgba(28,0,46,0.98));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 1px 0 rgba(180,100,255,0.1);
}

/* APP FOOTER NAV */
#appFooterNav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(135deg, rgba(18,0,32,0.98), rgba(28,0,46,0.98));
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border2);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  display: flex;
}
.app-footer-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text2); text-decoration: none; background: none; border: none;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.app-footer-btn:hover, .app-footer-btn:active { color: var(--text); background: rgba(255,255,255,0.04); }
.app-footer-btn .icon { font-size: 1.25rem; line-height: 1; }
.app-footer-btn .label { font-size: 0.62rem; letter-spacing: 0.5px; text-transform: uppercase; }
.app-footer-btn.whatsapp .icon { color: #25D366; }
.app-footer-btn.facebook .icon { color: #1877F2; }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
.topbar-logo {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
}
.topbar-logo img {
  height: 48px; width: 48px; object-fit: contain; border-radius: 8px;
}
.topbar-logo-text {
  font-family: 'Bebas Neue', cursive; font-size: 1.3rem; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent2), var(--purple2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; display: flex; flex-direction: column;
}
.topbar-logo-text span {
  font-size: 0.45rem; letter-spacing: 3px;
  background: none; -webkit-text-fill-color: var(--text3);
  color: var(--text3); font-family: 'Inter', sans-serif;
  font-weight: 500; text-transform: uppercase;
}
.topbar-sep {
  width: 1px; height: 40px; background: var(--border2); flex-shrink:0;
}
.onair-box {
  display: flex; align-items: center; gap: 10px;
  flex: 1; overflow: hidden; min-width: 0;
}
.onair-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', cursive; font-size: 1rem;
  color: white; letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.onair-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.onair-info { overflow: hidden; flex: 1; min-width: 0; }
.onair-label {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 2px;
  color: var(--accent2); text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  animation: pulse-dot 1.5s infinite; flex-shrink:0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.5); }
}
.onair-prog {
  font-size: 0.88rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.onair-locutor {
  font-size: 0.72rem; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eq-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 22px; flex-shrink: 0;
}
.eq-bar {
  width: 3px; border-radius: 2px;
  background: linear-gradient(to top, var(--accent), var(--purple2));
  animation: eq-anim 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1){height:40%;animation-delay:0s}
.eq-bar:nth-child(2){height:80%;animation-delay:0.1s}
.eq-bar:nth-child(3){height:60%;animation-delay:0.2s}
.eq-bar:nth-child(4){height:90%;animation-delay:0.05s}
.eq-bar:nth-child(5){height:50%;animation-delay:0.15s}
.eq-bars.paused .eq-bar { animation-play-state:paused; height:20%; }
@keyframes eq-anim {
  0%{transform:scaleY(0.3)} 100%{transform:scaleY(1)}
}
.topbar-controls {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.play-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 14px rgba(192,57,43,0.5);
  flex-shrink: 0;
}
.play-btn:hover { transform:scale(1.07); box-shadow:0 4px 20px rgba(192,57,43,0.7); }
.play-btn:active { transform:scale(0.95); }
.vol-wrap {
  display: flex; align-items: center; gap: 6px; width: 130px;
}
.vol-icon { color: var(--text3); font-size: 0.85rem; flex-shrink:0; }
input[type=range] {
  -webkit-appearance:none; flex:1; height:3px;
  background:rgba(255,255,255,0.12); border-radius:4px; outline:none; cursor:pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none; width:12px; height:12px; border-radius:50%;
  background:var(--accent2); cursor:pointer;
  box-shadow:0 0 6px rgba(231,76,60,0.6);
}
.player-status {
  font-size:0.65rem; color:var(--text3); letter-spacing:1px; text-transform:uppercase; flex-shrink:0;
}
.player-status.buffering { color:var(--gold); }
.player-status.error { color:var(--accent2); }
.player-status.live { color:#58d68d; }

/* NAV */
nav {
  position: fixed; top: var(--topbar-h); left:0; right:0; z-index:999;
  height: var(--nav-h);
  background: rgba(13,0,21,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.nav-logo {
  font-family:'Bebas Neue',cursive; font-size:1.4rem; letter-spacing:3px;
  background:linear-gradient(135deg,var(--accent2),var(--purple2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.nav-links { display:flex; gap:2rem; list-style:none; }
.nav-links a {
  color:var(--text2); text-decoration:none;
  font-size:0.78rem; font-weight:500; letter-spacing:1.5px;
  text-transform:uppercase; transition:color 0.2s;
}
.nav-links a:hover { color:var(--accent2); }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; }
.hamburger span { width:22px; height:2px; background:var(--text2); border-radius:2px; }

/* HERO */
.hero {
  min-height: calc(100vh - var(--header-total));
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  background:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(142,68,173,0.18) 0%,transparent 70%),
             radial-gradient(ellipse 50% 40% at 80% 60%, rgba(192,57,43,0.12) 0%,transparent 60%),
             var(--bg);
  padding: 3rem 2rem;
}
.hero-grid {
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(180,100,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,100,255,0.04) 1px, transparent 1px);
  background-size:50px 50px;
}
.hero-waves {
  position:absolute; bottom:0; left:0; right:0; height:180px; pointer-events:none;
}
.hero-content { text-align:center; z-index:2; max-width:680px; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(192,57,43,0.15); border:1px solid rgba(192,57,43,0.4);
  border-radius:100px; padding:6px 16px;
  font-size:0.7rem; font-weight:600; letter-spacing:2px;
  color:var(--accent2); text-transform:uppercase; margin-bottom:1.5rem;
}
.hero-logo-img {
  width: 140px; height: 140px; object-fit: contain; margin: 0 auto 1rem;
  border-radius: 16px; filter: drop-shadow(0 0 30px rgba(192,57,43,0.4));
}
.hero-title {
  font-family:'Bebas Neue',cursive;
  font-size:clamp(4rem,15vw,8rem); line-height:0.9; letter-spacing:4px;
  background:linear-gradient(160deg,#ffffff 0%,var(--purple2) 50%,var(--accent2) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  margin-bottom:0.4rem;
}
.hero-freq {
  font-family:'Bebas Neue',cursive; font-size:clamp(1.5rem,5vw,2.5rem);
  letter-spacing:8px; color:var(--text2); margin-bottom:0.4rem;
}
.hero-city {
  font-size:0.82rem; color:var(--text3); letter-spacing:2px; text-transform:uppercase;
  margin-bottom:1.2rem;
}
.hero-slogan {
  font-size:0.95rem; color:var(--text2); margin-bottom:2rem;
  line-height:1.6; font-weight:300;
}

/* SECTIONS */
.page-section { padding:4rem 2rem; max-width:1200px; margin:0 auto; }
.section-eyebrow {
  font-size:0.68rem; font-weight:600; letter-spacing:3px;
  text-transform:uppercase; color:var(--accent2); margin-bottom:4px;
}
.section-title {
  font-family:'Bebas Neue',cursive; font-size:clamp(2.4rem,6vw,3.8rem);
  letter-spacing:2px; color:var(--text); margin-bottom:0.4rem;
}
.section-sub {
  color:var(--text2); font-size:0.92rem; margin-bottom:2.5rem;
  max-width:480px; line-height:1.7;
}

/* TABS */
.tabs-nav {
  display:flex; gap:4px;
  background:rgba(255,255,255,0.04); border-radius:12px; padding:4px;
  margin-bottom:2.5rem; width:fit-content; border:1px solid var(--border);
}
.tab-btn {
  background:none; border:none; cursor:pointer;
  color:var(--text2); font-size:0.8rem; font-weight:500;
  letter-spacing:1.5px; text-transform:uppercase;
  padding:9px 22px; border-radius:8px; transition:all 0.2s;
}
.tab-btn.active {
  background:linear-gradient(135deg,var(--accent),var(--purple));
  color:white; box-shadow:0 2px 12px rgba(192,57,43,0.4);
}
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* EQUIPE */
.equipe-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1.4rem;
}
.equipe-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:16px; overflow:hidden;
  transition:transform 0.25s,border-color 0.25s,box-shadow 0.25s;
  display:flex; flex-direction:column;
}
.equipe-card.onair {
  border-color: rgba(231,76,60,0.5);
  box-shadow: 0 0 20px rgba(231,76,60,0.2);
}
.equipe-card:hover {
  transform:translateY(-4px); border-color:var(--border2); box-shadow:var(--pglow);
}
.equipe-photo {
  width:100%; aspect-ratio:1/1; position:relative; overflow:hidden;
}
.equipe-photo img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.equipe-card:hover .equipe-photo img { transform:scale(1.05); }
.equipe-photo-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue',cursive; font-size:3.5rem; letter-spacing:3px; color:var(--text3);
}
.photo-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top,rgba(13,0,21,0.7) 0%,transparent 40%);
}
.onair-badge-card {
  position:absolute; top:12px; left:12px;
  background:rgba(231,76,60,0.9); color:white;
  font-size:0.6rem; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; padding:4px 10px; border-radius:100px;
  display:none; align-items:center; gap:5px;
}
.equipe-card.onair .onair-badge-card { display:flex; }
.equipe-info { padding:1rem 1.2rem 1.2rem; text-align:center; }
.equipe-nome {
  font-family:'Bebas Neue',cursive; font-size:1.3rem; letter-spacing:2px;
  color:var(--text); margin-bottom:6px;
}
.equipe-funcao {
  font-size:0.78rem; color:var(--text2); line-height:1.5;
  background:rgba(255,255,255,0.04); border:1px solid var(--border);
  border-radius:8px; padding:8px 10px; min-height:40px;
}

/* PROGRAMAÇÃO POR DIA */
.dias-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dia-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.dia-btn:hover {
  background: rgba(142,68,173,0.2);
  border-color: var(--purple2);
  color: var(--text);
}
.dia-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 12px rgba(192,57,43,0.4);
}
.dia-btn.today {
  border-color: var(--accent2);
}
.prog-dia-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.prog-card:hover {
  border-color: var(--border2);
  box-shadow: 0 0 20px rgba(142,68,173,0.15);
}
.prog-card.is-live {
  border-color: rgba(231,76,60,0.5);
  box-shadow: 0 0 20px rgba(231,76,60,0.2);
}
.prog-card-color {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.prog-card-content {
  padding-left: 0.8rem;
}
.prog-card-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}
.prog-card-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.prog-card-apres {
  font-size: 0.85rem;
  color: var(--purple2);
  font-weight: 500;
}
.prog-card-live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(231,76,60,0.9);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  display: none;
  align-items: center;
  gap: 5px;
}
.prog-card.is-live .prog-card-live-badge {
  display: flex;
}
.prog-dia-vazio {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text3);
  font-style: italic;
}

/* FOOTER */
footer {
  border-top:1px solid var(--border); padding:2rem; text-align:center;
  color:var(--text3); font-size:0.76rem; letter-spacing:1px;
}
footer strong { color:var(--text2); }

/* MOBILE */
@media(max-width:680px){
  :root{ --topbar-h:72px; --nav-h:56px; --header-total:128px; }
  #topbar {
    height: 72px;
    padding: 0 1.5rem;
    gap: 1rem;
  }
  .topbar-logo img {
    height: 44px;
    width: 44px;
  }
  .topbar-logo-text {
    font-size: 1.2rem;
    letter-spacing: 2.5px;
  }
  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .topbar-controls {
    margin-left: auto;
  }
  .onair-box {
    display: none;
  }
  .eq-bars {
    display: none;
  }
  .vol-wrap {
    display: none;
  }
  .player-status {
    display: none;
  }
  .topbar-sep {
    display: none;
  }
  nav {
    padding: 0 1.5rem;
  }
  .nav-links{ display:none; }
  .nav-links.open{
    display:flex; flex-direction:column; gap:0;
    position:absolute; top:var(--nav-h); left:0; right:0;
    background:rgba(13,0,21,0.98); border-bottom:1px solid var(--border2);
    padding:1rem 0;
  }
  .nav-links.open a{display:block;padding:11px 2rem}
  .hamburger{display:flex}
  .hero {
    padding: 1.5rem 2rem;
  }
  .hero-badge {
    margin-bottom: 1rem;
  }
  .hero-logo-img{display:none}
  .equipe-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}
}
@media(max-width:400px){
  .topbar-sep{display:none}
}
