:root{
  --bg: #0b1220;
  --bg2:#0f172a;
  --card:#0f1b33;
  --card2:#121f3b;
  --text:#e8eefc;
  --muted:#b8c2da;
  --line: rgba(255,255,255,.12);

  --brand1:#00d4ff; /* celeste */
  --brand2:#6a5cff; /* roxo */
  --brand3:#12ffa1; /* verde neon */

  --glass: rgba(16,24,40,.55);
  --glass2: rgba(255,255,255,.06);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.25);
  --radius: 18px;
  --radius2: 24px;
}

html[data-theme="light"]{
  --bg: #f7f9ff;
  --bg2:#eef3ff;
  --card:#ffffff;
  --card2:#ffffff;
  --text:#0b1220;
  --muted:#55607a;
  --line: rgba(16,24,40,.12);

  --glass: rgba(255, 141, 24,.70); /*rgba(255,255,255,.7);*/
  --glass2: rgba(16,24,40,.05);
  --shadow: 0 18px 60px rgba(16,24,40,.12);
  --shadow2: 0 10px 30px rgba(16,24,40,.10);
}

/* Base */
body{
  background:
	radial-gradient(1200px 600px at 10% -10%, rgba(0,212,255,.20), transparent 55%),
	radial-gradient(900px 600px at 95% 0%, rgba(106,92,255,.22), transparent 50%),
	radial-gradient(900px 700px at 50% 120%, rgba(18,255,161,.14), transparent 55%),
	linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration:none; }
.text-muted-2{ color: var(--muted) !important; }
.line{ border-color: var(--line)!important; }

/* Topo glass */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /*background: linear-gradient(180deg, var(--glass), rgba(0,0,0,0));*/
  background: linear-gradient(180deg, var(--glass), rgba(255,198,147,.36));
  border-bottom: 1px solid var(--line);
}
.brand-dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 6px rgba(0,212,255,.10);
  display:inline-block;
}
.pill{
  border: 1px solid var(--line);
  background: var(--glass2);
  border-radius: 999px;
  padding: .45rem .75rem;
  box-shadow: var(--shadow2);
}
.searchbar{
  background: var(--glass2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .75rem;
  display:flex;
  gap:.6rem;
  align-items:center;
}
.searchbar input{
  background: transparent;
  border:0;
  outline:0;
  color: var(--text);
  width:100%;
}
.iconbtn{
  width:42px;height:42px;border-radius:999px;
  border: 1px solid var(--line);
  background: var(--glass2);
  display:grid;place-items:center;
  transition: transform .15s ease, background .15s ease;
}
.iconbtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
html[data-theme="light"] .iconbtn:hover{ background: rgba(16,24,40,.06); }

/* Hero */
.hero{
  position: relative;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(106,92,255,.18));
  min-height: 340px;
}
.hero video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  /*opacity: .85;*/
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
}
html[data-theme="light"] .hero::after{
  background: linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,.12));
}
.hero-inner{
  position: relative;
  z-index: 2;
  padding: 42px 34px;
}
.hero-title{
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 10px 0;
}
.hero-sub{
  max-width: 680px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
}
html[data-theme="light"] .hero-sub{ color: rgba(16,24,40,.74); }

.hero-actions{
  display:flex; flex-wrap:wrap;
  gap:10px;
  margin-top: 18px;
}
.chip{
  border-radius: 999px;
  padding: .55rem .9rem;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  transition: transform .15s ease, background .15s ease;
  user-select:none;
}
.chip:hover{ transform: translateY(-1px); background: rgba(255,255,255,.12); }
html[data-theme="light"] .chip{
  border:1px solid rgba(16,24,40,.14);
  background: rgba(16,24,40,.05);
  color: rgba(16,24,40,.92);
}
html[data-theme="light"] .chip:hover{ background: rgba(16,24,40,.07); }

/* Cards */
.cardx{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.cardx-header{
  padding: 14px 16px;
  display:flex; gap:12px; align-items:flex-start;
}
.avatar{
  width:44px;height:44px;border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  display:grid;place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  flex: 0 0 auto;
}
.meta{
  display:flex; flex-direction:column; gap:2px;
  min-width:0;
}
.meta .title{
  font-weight: 700;
  white-space:nowrap; overflow:hidden; text-overflow: ellipsis;
}
.badge-soft{
  border: 1px solid var(--line);
  background: var(--glass2);
  color: var(--muted);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  display:inline-flex;
  gap:.35rem;
  align-items:center;
}
.cardx-media{
  aspect-ratio: 16/9;
  background:
	radial-gradient(700px 300px at 20% 10%, rgba(0,212,255,.25), transparent 55%),
	radial-gradient(800px 500px at 90% 30%, rgba(106,92,255,.25), transparent 55%),
	linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.cardx-body{
  padding: 14px 16px 8px 16px;
}
.cardx-body p{ margin-bottom: 10px; }
.actions{
  display:flex; justify-content:space-between; gap:10px;
  padding: 10px 12px 14px 12px;
}
.action{
  flex: 1 1 auto;
  display:flex; justify-content:center; align-items:center;
  gap:.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass2);
  padding: .55rem .75rem;
  color: var(--muted);
  transition: transform .15s ease, background .15s ease;
  user-select:none;
  cursor:pointer;
}
.action:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
html[data-theme="light"] .action:hover{ background: rgba(16,24,40,.06); }
.action.whats{ color: #2ecc71; border-color: rgba(46,204,113,.35); }

/* Sidebar */
.side-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.listitem{
  display:flex; gap:10px; align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.listitem:hover{
  background: rgba(255,255,255,.06);
  border-color: var(--line);
}
html[data-theme="light"] .listitem:hover{ background: rgba(16,24,40,.04); }

.rank{
  width:26px;height:26px;border-radius:10px;
  background: linear-gradient(135deg, rgba(0,212,255,.22), rgba(106,92,255,.22));
  border:1px solid var(--line);
  display:grid;place-items:center;
  font-weight:800;
  flex:0 0 auto;
}

/* Marquee empresas */
.marquee{
  border: 1px solid var(--line);
  background: var(--glass2);
  border-radius: var(--radius);
  overflow:hidden;
  position:relative;
  box-shadow: var(--shadow2);
}
.marquee::before, .marquee::after{
  content:"";
  position:absolute; top:0; bottom:0; width:90px;
  z-index:2;
  pointer-events:none;
}
.marquee::before{
  left:0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee::after{
  right:0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
html[data-theme="light"] .marquee::before{ background: linear-gradient(90deg, var(--bg2), transparent); }
html[data-theme="light"] .marquee::after{ background: linear-gradient(270deg, var(--bg2), transparent); }

.marquee-track{
  display:flex;
  gap: 14px;
  padding: 14px;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.biz{
  width: 260px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
  overflow:hidden;
  transform: perspective(800px) translateZ(0);
  transition: transform .18s ease;
  cursor:pointer;
}
.biz:hover{ transform: perspective(800px) rotateX(2deg) rotateY(-3deg) translateY(-2px); }
.biz-top{
  padding: 14px;
  display:flex; gap:12px; align-items:center;
}
.biz-logo{
  width:44px;height:44px;border-radius:14px;
  background: linear-gradient(135deg, var(--brand2), var(--brand1));
  display:grid;place-items:center;
  font-weight:900;
}
.biz-name{ font-weight:800; margin:0; line-height:1.1; }
.biz-meta{ font-size:.85rem; color: var(--muted); }
.biz-actions{
  display:flex; gap:10px;
  padding: 0 14px 14px 14px;
}
.btnx{
  flex:1 1 auto;
  border-radius: 999px;
  padding: .5rem .7rem;
  border:1px solid var(--line);
  background: var(--glass2);
  font-weight:700;
  font-size:.9rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  cursor:pointer;
}
.btnx.whats{ border-color: rgba(46,204,113,.35); color:#2ecc71; }

/* Container spacing */
.page{
  padding: 18px 0 34px 0;
}

/* ✅ SAFE SPACE: não deixar player cobrir a última notícia */
:root{ --rp-safe: 110px; }
@media (max-width: 992px){ :root{ --rp-safe: 170px; } }
main.page{ padding-bottom: calc(34px + var(--rp-safe)) !important; }
.bottomnav{ z-index: 60; }
.radio-player{ z-index: 70; }

/* Mobile bottom nav (opcional) */
.bottomnav{
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display:none;
  width: min(560px, calc(100% - 22px));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 8px 10px;
}
.bottomnav a{
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  color: var(--muted);
  font-size: .74rem;
  padding: 8px 6px;
  border-radius: 999px;
}
.bottomnav a.active{
  background: rgba(255,255,255,.10);
  color: var(--text);
}
html[data-theme="light"] .bottomnav a.active{ background: rgba(16,24,40,.06); }

@media (max-width: 992px){
  .hero-inner{ padding: 30px 18px; }
  .bottomnav{ display:flex; }
}

/* ===== RADIO PLAYER (bottom) ===== */
.radio-player{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;

  width: min(980px, calc(100% - 22px));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 10px 12px;

  display:flex;
  align-items:center;
  gap: 10px;
}

.radio-player .rp-btn{
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--glass2);
  display:grid; place-items:center;
  transition: transform .15s ease, background .15s ease;
  flex: 0 0 auto;
}
.radio-player .rp-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
html[data-theme="light"] .radio-player .rp-btn:hover{ background: rgba(16,24,40,.06); }

.radio-player .rp-meta{
  min-width: 0;
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.radio-player .rp-title{
  font-weight: 850;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-player .rp-sub{
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-player .rp-bars{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1 1 40%;
}
.radio-player input[type="range"]{
  width: 100%;
  accent-color: var(--brand1);
}
.radio-player .rp-time{
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  color: var(--muted);
  width: 86px;
  text-align:center;
  flex:0 0 auto;
}

.radio-player .rp-vol{
  display:flex;
  align-items:center;
  gap: 8px;
  width: 170px;
  flex: 0 0 auto;
}
.radio-player .rp-vol input[type="range"]{
  width: 110px;
}

@media (max-width: 992px){
  /* em mobile, deixa mais compacto e sobe pra não bater no bottomnav */
  .radio-player{
	bottom: 72px; /* acima da bottomnav */
	border-radius: 22px;
	padding: 10px 10px;
	gap: 8px;
  }
  .radio-player .rp-vol{ display:none; } /* simplifica no mobile */
  .radio-player .rp-time{ width: 72px; }
}
/* ===== LIGHTBOX FULL (Overlay) ===== */
#lightboxOverlay{
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* JS alterna display none/flex */
  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 18px;
}

#lightboxOverlay.active{ display:flex; }

/* Imagem central */
#lightboxImg{
  max-width: min(1100px, 96vw);
  max-height: 86vh;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);

  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  background: rgba(255,255,255,.04);

  object-fit: contain;
}

/* Botões */
#lightboxClose,
#lightboxPrev,
#lightboxNext{
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;

  width: 50px;
  height: 50px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

#lightboxClose:hover,
#lightboxPrev:hover,
#lightboxNext:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}

/* Posições */
#lightboxClose{
  top: 16px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
}

#lightboxPrev{
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

#lightboxNext{
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

/* Mantém o hover do prev/next sem perder o translateY(-50%) */
#lightboxPrev:hover{ transform: translateY(-50%) translateY(-1px); }
#lightboxNext:hover{ transform: translateY(-50%) translateY(-1px); }

/* Mini “efeito de entrada” */
#lightboxOverlay.active #lightboxImg{
  animation: lbPop .16s ease-out;
}
@keyframes lbPop{
  from{ transform: scale(.98); opacity: .0; }
  to  { transform: scale(1);   opacity: 1;  }
}

/* Mobile: botões menores e imagem mais alta */
@media (max-width: 576px){
  #lightboxOverlay{ padding: 12px; }
  #lightboxImg{ max-height: 78vh; border-radius: 16px; }

  #lightboxClose,
  #lightboxPrev,
  #lightboxNext{
    width: 44px;
    height: 44px;
  }

  #lightboxClose{ top: 12px; right: 12px; font-size: 24px; }
  #lightboxPrev{ left: 12px; }
  #lightboxNext{ right: 12px; }
}

/* ===== Card guia com imagem ===== */
.biz.biz-guide{
  width: 270px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.biz-guide .biz-cover{
  position:relative;
  height: 140px;
  overflow:hidden;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.biz-guide .biz-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  opacity:.95;
}
.biz-guide .biz-badge{
  position:absolute;
  top:10px; left:10px;
  padding:.28rem .55rem;
  border-radius:999px;
  font-size:.78rem;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.biz-guide .biz-body{
  padding: 10px 12px 0;
}
.biz-guide .biz-name{
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-guide .biz-meta{
  font-size:.85rem;
  color: rgba(255,255,255,.75);
  display:flex;
  gap:10px;
  padding-bottom: 10px;
}

/* ações (usa seu .btnx) */
.biz-guide .biz-actions{
  display:flex;
  gap:10px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.biz-guide .btnx{
  flex:1 1 auto;
  justify-content:center;
  border-radius:999px;
  padding:.55rem .7rem;
}
.biz-guide .btnx.disabled{
  opacity:.55;
  pointer-events:none;
}

/* Light mode (opcional) */
html[data-theme="light"] .biz.biz-guide{
	/*border: 1px solid rgba(16,24,40,.12);
	background: rgba(16,24,40,.04);*/
	border: 6px solid rgb(255 159 14 / 89%);
    background: rgb(253 198 137 / 94%);
}
html[data-theme="light"] .biz-guide .biz-badge{
  background: rgba(255,255,255,.7);
  color: rgba(16,24,40,.92);
  border: 6px solid rgba(16,24,40,.12);
}
html[data-theme="light"] .biz-guide .biz-meta{
  color: rgba(16,24,40,.65);
}

/* ===== SIDEBAR • CATEGORIAS ===== */
.cats{ display:grid; gap:10px; }
.cats-empty{ color: var(--muted); font-size:.92rem; padding:8px 2px; }

.cat-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid var(--line);
  background: var(--glass2);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.cat-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(0,212,255,.28);
}
html[data-theme="light"] .cat-item:hover{ background: rgba(16,24,40,.06); }

.cat-ico{
  width:44px; height:44px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  flex:0 0 auto;
  background:
    radial-gradient(340px 140px at 20% 10%, rgba(0,212,255,.18), transparent 60%),
    radial-gradient(380px 260px at 90% 30%, rgba(106,92,255,.16), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.cat-ico img{ width:100%; height:100%; object-fit:cover; display:block; }

.cat-txt{ min-width:0; }
.cat-title{
  font-weight:950;
  letter-spacing:-.01em;
  color: var(--text);
  font-size:.95rem;
  margin:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cat-sub{
  color: var(--muted);
  font-size:.82rem;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-top:2px;
}

.cat-arrow{
  margin-left:auto;
  color: var(--muted);
  opacity:.9;
}

.cat-root{
  border-color: rgba(0,212,255,.25);
  background:
    radial-gradient(520px 220px at 20% 10%, rgba(0,212,255,.16), transparent 60%),
    radial-gradient(520px 260px at 90% 30%, rgba(106,92,255,.14), transparent 60%),
    linear-gradient(180deg, var(--card), var(--card2));
}

.rank-badge{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:900;
  border-radius:12px;
  flex-shrink:0;
}

.rank-gold{
  background:linear-gradient(135deg,#ffd700,#ffb300);
  color:#000;
}

.rank-silver{
  background:linear-gradient(135deg,#dcdcdc,#a9a9a9);
  color:#000;
}

.rank-bronze{
  background:linear-gradient(135deg,#cd7f32,#8b4513);
  color:#fff;
}

.rank-normal{
  background:var(--glass2);
  border:1px solid var(--line);
  color:var(--text);
}