/* =============================================
   CORREÇÕES GERAIS
   ============================================= */

/* Ponto branco — esconde nav-toggle no desktop */
.nav-toggle { display: none !important; }
@media (max-width: 680px) {
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,.15) !important;
    border: none;
    border-radius: 8px;
    padding: 8px 9px;
    cursor: pointer;
    width: 42px;
    height: 42px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all .25s;
  }
}

/* ── Drawer mobile — fora do fluxo da página ── */
#navDrawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
#navDrawer.open { display: block; }

#navDrawerOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

#navDrawerMenu {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 78%;
  max-width: 300px;
  background: linear-gradient(180deg, #080000 0%, #1e0000 100%);
  box-shadow: 4px 0 24px rgba(0,0,0,.5);
  overflow-y: auto;
  animation: drawerIn .25s ease;
  display: flex;
  flex-direction: column;
}
@keyframes drawerIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer-cross { font-size: 22px; color: #D4A017; }
.drawer-nome  { font-size: 13px; font-weight: 900; color: #D4A017; flex: 1; line-height: 1.2; }
.drawer-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(255,255,255,.2); }

#navDrawerMenu ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}
#navDrawerMenu ul li a {
  display: block;
  padding: 13px 20px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s;
}
#navDrawerMenu ul li a:hover,
#navDrawerMenu ul li a:active {
  color: #f0bc2e;
  background: rgba(255,255,255,.06);
  border-left-color: #D4A017;
}
.vol-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.mute-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, opacity .15s;
  flex-shrink: 0;
}
.mute-btn:hover { color: white; }
.mute-btn svg { width: 16px; height: 16px; }

.vol-slider-desktop {
  width: 80px;
  accent-color: var(--gold, #D4A017);
  cursor: pointer;
}

/* Mobile: esconde o slider, botão mudo maior */
@media (max-width: 680px) {
  .vol-slider-desktop { display: none; }
  .mute-btn { padding: 5px; }
  .mute-btn svg { width: 22px; height: 22px; }
}

/* ── Nav desktop oculto no mobile (drawer substitui) ── */
@media (max-width: 680px) {
  #main-nav {
    display: none !important;
  }
  body { background: #1c1c1c; }
}

/* Centraliza player e nav */
.player-inner {
  max-width: 960px !important;
  margin: 0 auto !important;
}
.nav-inner {
  max-width: 960px !important;
  margin: 0 auto !important;
}
#nav-list {
  justify-content: center !important;
}

/* Hero: centraliza cruz e subtítulo */
.hero-content { text-align: center; }
.hero-cross   { display: block; margin: 0 auto 10px; }
.hero-sub {
  max-width: 520px;
  margin: 0 auto 24px;
  background: rgba(0,0,0,.25);
  padding: 8px 18px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* Sidebar contatos — sem espaço extra entre emoji e texto */
.side-ct-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all .16s;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-ct-item span {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}
.side-ct-item:hover { border-color: var(--blue2); background: #f0f4ff; }
.whatsapp-btn:hover { border-color: #25d366; background: #f0fff4; color: #1a7d3d; }

/* =============================================
   TOP 10 — PLAYER INLINE
   ============================================= */
.top10-item-wrap { display: flex; flex-direction: column; }

.top10-audio-bar {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #1a0000, #3d0000);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(212,160,23,.3);
}
.top10-audio-bar.active { display: flex; }
.top10-audio-bar audio  { flex: 1; height: 30px; min-width: 0; }
.top10-now-lbl {
  font-size: 10px; color: var(--gold2); font-weight: 900;
  white-space: nowrap; letter-spacing: .5px;
  animation: blinkDot 1.4s infinite;
}
.btn-sample.playing-now { background: #e74c3c; animation: pulseSample .8s ease-in-out infinite; }
@keyframes pulseSample { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* =============================================
   MODAL FALE CONOSCO
   ============================================= */
.modal-contato { max-width: 560px; }
.modal-contato h2 { font-size: 20px; font-weight: 900; color: var(--crimson); margin-bottom: 16px; }

/* =============================================
   BANNER BAIXE O APP — direita, formato celular
   ============================================= */
#appBanner {
  position: fixed; bottom: 24px; right: 20px; left: auto;
  z-index: 8000; width: 190px;
  background: linear-gradient(175deg, #0a0000 0%, #3d0000 55%, #1a0000 100%);
  border: 2px solid var(--gold); border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 24px rgba(212,160,23,.25);
  overflow: hidden;
  animation: appSlideIn .6s cubic-bezier(.34,1.56,.64,1) 1.5s both;
  transition: transform .2s, box-shadow .2s;
}
#appBanner:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,.65), 0 0 32px rgba(212,160,23,.35); }
@keyframes appSlideIn { from{transform:translateX(240px);opacity:0} to{transform:translateX(0);opacity:1} }
#appBanner::before {
  content:''; position:absolute; top:9px; left:50%; transform:translateX(-50%);
  width:40px; height:5px; background:rgba(0,0,0,.5); border-radius:3px; z-index:3;
}
.app-banner-close {
  position:absolute; top:8px; right:9px; background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.2); border-radius:50%; width:22px; height:22px;
  color:rgba(255,255,255,.85); font-size:10px; display:flex; align-items:center;
  justify-content:center; cursor:pointer; z-index:4; transition:all .15s;
}
.app-banner-close:hover { background:rgba(255,255,255,.25); color:white; }
.app-banner-img { width:100%; height:215px; object-fit:cover; object-position:center 15%; display:block; margin-top:17px; }
.app-banner-body { padding:11px 14px 13px; text-align:center; }
.app-banner-tag {
  display:inline-block; font-size:9px; font-weight:900; color:var(--gold);
  text-transform:uppercase; letter-spacing:1px;
  border:1px solid rgba(212,160,23,.45); border-radius:20px; padding:2px 9px; margin-bottom:7px;
}
.app-banner-title { font-size:13px; font-weight:900; color:white; margin-bottom:10px; line-height:1.35; }
.app-banner-btn {
  display:flex; align-items:center; justify-content:center; gap:5px;
  background:linear-gradient(135deg,var(--gold),#b8850f); color:var(--dark);
  font-size:12px; font-weight:900; padding:9px 12px; border-radius:20px;
  transition:all .18s; box-shadow:0 3px 10px rgba(212,160,23,.4);
}
.app-banner-btn:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(212,160,23,.6); color:var(--dark); }
.app-banner-bar { display:flex; justify-content:center; padding:7px 0 10px; }
.app-banner-bar span { width:52px; height:4px; background:rgba(255,255,255,.2); border-radius:2px; }

@media (max-width:500px) {
  #appBanner { width:162px; right:10px; bottom:14px; }
  .app-banner-img { height:180px; }
  .app-banner-title { font-size:12px; }
}

/* =============================================
   SLEEP TIMER — botão no player
   ============================================= */
.sleep-wrap {
  position: relative;
  flex-shrink: 0;
}

.sleep-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color: rgba(255,255,255,.8);
  padding: 5px 11px 5px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  font-family: var(--fb, 'Nunito', sans-serif);
}
.sleep-btn:hover {
  background: rgba(255,255,255,.18);
  color: white;
  border-color: rgba(255,255,255,.4);
}
.sleep-btn.active {
  background: rgba(212,160,23,.25);
  border-color: rgba(212,160,23,.6);
  color: #f0bc2e;
  animation: sleepPulse 2s ease-in-out infinite;
}
@keyframes sleepPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,.0); }
  50%      { box-shadow: 0 0 0 5px rgba(212,160,23,.15); }
}

.sleep-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 8px 6px;
  min-width: 150px;
  box-shadow: 0 10px 36px rgba(0,0,0,.55);
  z-index: 2000;
  animation: sleepMenuIn .18s ease;
}
.sleep-menu.open { display: block; }
@keyframes sleepMenuIn {
  from { opacity:0; transform: translateY(-6px) scale(.97); }
  to   { opacity:1; transform: translateY(0)    scale(1); }
}

.sleep-menu-title {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4px;
}

.sleep-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .14s;
  font-family: var(--fb, 'Nunito', sans-serif);
}
.sleep-opt:hover { background: rgba(255,255,255,.1); color: white; }
.sleep-opt.selected { background: rgba(212,160,23,.2); color: #f0bc2e; }
.sleep-cancel { color: #ff6b6b !important; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px !important; }
.sleep-cancel:hover { background: rgba(255,107,107,.15) !important; }

/* Countdown no botão */
#sleepLabel { font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  .sleep-btn span { display: none; }
  .sleep-btn { padding: 6px 8px; }

  /* Menu fixo no topo da tela, centralizado */
  .sleep-menu {
    position: fixed;
    top: 62px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 220px;
    z-index: 9999;
  }
  .sleep-menu.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .sleep-menu-title { grid-column: 1 / -1; }
  .sleep-cancel     { grid-column: 1 / -1; }
}