/* =========================
   BASE
========================= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  color:#eaf0ff;
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(120,60,255,.25), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(0,220,255,.18), transparent 60%),
    radial-gradient(900px 600px at 40% 90%, rgba(255,120,0,.12), transparent 60%),
    linear-gradient(180deg, #070816 0%, #050611 60%, #04040b 100%);
  overflow-x:hidden;
}

/* Background orbs */
.bg-orb{
  position:fixed;
  width:520px;height:520px;border-radius:999px;
  filter: blur(40px);
  opacity:.35;
  pointer-events:none;
  z-index:0;
}
.orb1{left:-140px; top:-120px; background:radial-gradient(circle at 30% 30%, #8a3dff, transparent 60%)}
.orb2{right:-180px; top:60px; background:radial-gradient(circle at 30% 30%, #00d9ff, transparent 60%)}
.orb3{left:30%; bottom:-220px; background:radial-gradient(circle at 30% 30%, #ff6a00, transparent 60%)}

.wrap{
  position:relative;
  z-index:1;
  max-width:1240px;
  margin:0 auto;
  padding:22px 18px 40px;
}

/* =========================
   NAV (DESKTOP)
========================= */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,12,28,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-inner{
  max-width:1240px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:14px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  min-width:220px;
}

.brand-badge{
  width:46px;
  height:46px;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,217,255,.10), 0 10px 30px rgba(138,61,255,.12);
}

.brand-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.brand-lines{display:flex; flex-direction:column; line-height:1.05; min-width:0}
.brand-name{font-weight:900; letter-spacing:.3px}
.brand-sub{font-size:12px; opacity:.75}

/* Menu desktop */
.menu{
  display:flex;
  gap:10px;
  flex:1;
  flex-wrap:wrap;
}

.mitem{
  text-decoration:none;
  color:rgba(234,240,255,.86);
  padding:9px 12px;
  border-radius:12px;
  border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
  background:rgba(255,255,255,0.03);
}
.mitem:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.10);
}

/* Actions desktop */
.nav-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.10);
  transition:transform .15s ease, background .15s ease;
  color:#fff;
}
.btn:hover{transform:translateY(-1px)}
.btn-ghost{background:rgba(255,255,255,0.04)}
.btn-soft{
  background: linear-gradient(135deg, rgba(255,106,0,.25), rgba(138,61,255,.20));
}

/* =========================
   HERO
========================= */
.hero{
  margin-top:14px;
  border-radius:20px;
  padding:18px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.hero-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.h-title{font-size:44px; margin:0; letter-spacing:.2px}
.h-sub{margin:8px 0 0; opacity:.75}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(0, 255, 170, .08);
  border:1px solid rgba(0,255,170,.20);
  color:#c8fff2;
  font-weight:800;
}

/* =========================
   GRID
========================= */
.layout{
  margin-top:16px;
  display:grid;
  grid-template-columns: 280px 1fr 280px;
  gap:16px;
}

/* =========================
   PANELS
========================= */
.panel{
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.panel-h{
  padding:12px 14px;
  font-weight:900;
  letter-spacing:.3px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,0.03);
}
.panel-b{padding:14px}

/* TOP LIST */
.toplist{margin:0; padding-left:18px}
.toplist li{
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.toplist li:last-child{border-bottom:0}

/* NEWS */
.newsitem{
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  opacity:.92
}
.newsitem:last-child{border-bottom:0}

/* ADS */
.adbox{
  height:250px;
  display:grid;
  place-items:center;
  color:rgba(234,240,255,.70);
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,0.03);
}
.ad-img{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  display:block
}

/* =========================
   PLAYERS
========================= */
.players{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.playercard{
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.playerhero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.player-left{display:flex; align-items:center; gap:12px}

.picon{
  width:44px;height:44px;border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  font-size:20px;
}

.ptitle{font-weight:900; font-size:18px}
.psub{opacity:.72; font-size:12px; margin-top:2px}

audio{width:100%; margin:8px 0 12px}

/* Playlist / History */
.smallnow{padding:8px 0; opacity:.9}
.playlistbox{border-top:1px solid rgba(255,255,255,.08); padding-top:12px}
.pltitle{font-weight:900; margin-bottom:8px; opacity:.95}
.pllist{
  margin:0;
  padding-left:18px;
  max-height:180px;
  overflow:auto;
}

/* =========================
   VOTE + SONG CARD
========================= */
.voteBtn{
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, #6cf2c2, #4dd6ff);
  color: #06121a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  margin-left: 8px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .2s ease;
  box-shadow: 0 4px 14px rgba(77,214,255,.35), inset 0 0 0 1px rgba(255,255,255,.25);
}
.voteBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77,214,255,.55), inset 0 0 0 1px rgba(255,255,255,.35);
}
.voteBtn:active{transform: scale(.96)}
.voteBtn:disabled,
.voteBtn.voting{
  cursor: not-allowed;
  opacity: .6;
  background: linear-gradient(135deg, #999, #777);
  box-shadow: none;
}

.pllist li{
  list-style: none;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pllist li:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(100,220,255,.12), rgba(255,255,255,.04));
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(120,220,255,.25);
}

/* =========================
   DONATE
========================= */
.donate{
  margin-top:16px;
  border-radius:20px;
  padding:18px;
  text-align:center;
  background: linear-gradient(135deg, rgba(91,44,255,.22), rgba(0,217,255,.12));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.donate-title{font-weight:900; font-size:20px}
.donate-sub{opacity:.8; margin:8px 0 14px}
.donate-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:16px;
  font-weight:900;
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,0.06);
}
.donate-btn:hover{background:rgba(255,255,255,0.09)}

/* =========================
   FOOTER
========================= */
.footer{
  position:relative;
  z-index:1;
  padding:22px 18px 28px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(10,12,28,.45);
}
.footer-inner{
  max-width:1240px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.foot-title{font-weight:900}
.foot-sub{opacity:.75; margin-top:4px}
.foot-link{
  color:rgba(234,240,255,.82);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,0.03);
  margin-left:8px;
}
.foot-link:hover{background:rgba(255,255,255,0.06)}

/* Partners */
.partner-strip{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.partner-strip img{height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);padding:6px}
.partner-grid{display:grid;gap:10px}
.partner-card{padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.partner-card img{max-width:100%;border-radius:14px;border:1px solid rgba(255,255,255,.10)}
.news-card{padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.news-card img{width:100%;border-radius:14px;border:1px solid rgba(255,255,255,.10);margin-top:10px}

/* =========================
   ADMIN MENU
========================= */
.admin-menu{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.admin-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 20px;
  border-radius:18px;
  font-size:18px;
  font-weight:900;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.15);
  transition:all .2s ease;
}
.admin-item:hover{
  transform:translateY(-2px) scale(1.02);
  background:linear-gradient(135deg,#7c7cff,#9c9cff);
  color:#0b0b20;
  box-shadow:0 10px 30px rgba(124,124,255,.35);
}

/* =========================
   RESPONSIVE LAYOUT
========================= */
@media(max-width:1100px){
  .layout{grid-template-columns:1fr}
  .players{grid-template-columns:1fr}
  .h-title{font-size:34px}
}

/* extra small phones */
@media (max-width: 420px){
  .h-title{ font-size:28px; }
  .wrap{ padding:16px 12px 34px; }
}

/* =========================
   MOBILE NAV (SINGLE SYSTEM)
   Works with: #navToggle + #navCollapse + .open
========================= */

/* Hamburger hidden on desktop */
.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  flex-shrink:0;
  font-size:22px;
  line-height:1;
}

/* container that will collapse on mobile */
.nav-collapse{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
}

/* ===== MOBILE ===== */
@media (max-width: 900px){

  .nav-inner{
    flex-wrap:wrap;
    gap:10px;
  }

  /* brand shrink */
  .brand{ min-width:0; flex:1; }
  .brand-name, .brand-sub{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 52vw;
  }

  /* show hamburger */
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* collapse hidden by default */
  .nav-collapse{
    display:none;
    width:100%;
    margin-top:10px;
    padding:12px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(10,12,28,.55);
    box-shadow:0 18px 50px rgba(0,0,0,.35);
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  /* open by JS */
  .nav-collapse.open{
    display:flex;
  }

  /* menu vertical */
  .menu{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .mitem{
    width:100%;
    padding:12px 14px;
    border-radius:14px;
  }

  /* actions below menu */
  .nav-actions{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .nav-actions .btn{
    flex:1;
    min-width:140px;
  }
}

/* =========================
   MOBILE ORDER: center first
========================= */
@media (max-width: 1100px){
  .layout{
    display:flex !important;
    flex-direction:column;
    gap:14px;
  }
  .layout .col.center{ order:1; }
  .layout .col.left{ order:2; }
  .layout .col.right{ order:3; }
  .players{ grid-template-columns:1fr !important; }
}
.menu-desktop{display:flex;}
.nav-collapse{display:none;}

@media (max-width:900px){
  .menu-desktop{display:none;}
  .btn-desktop-only{display:none;}
  .nav-toggle{display:inline-flex;}
  .nav-collapse{display:none; width:100%;}
  .nav-collapse.open{display:flex;}
}
/* =========================
   NAV FINAL OVERRIDE (FIX DUPLICATES)
   pune blocul asta ULTIMUL in style.css
========================= */

/* Desktop defaults */
.nav-toggle{ display:none !important; }
.nav-collapse{ display:none !important; }
.menu-desktop{ display:flex !important; }
.menu-mobile{ display:none !important; }
.btn-desktop-only{ display:inline-flex !important; }

/* Desktop layout - keep clean */
.nav-inner{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  flex-wrap:nowrap !important;
}

.nav-right{ margin-left:auto !important; display:flex !important; gap:10px !important; align-items:center !important; }

/* Mobile rules */
@media (max-width: 900px){
  .nav-inner{ flex-wrap:wrap !important; }

  .nav-toggle{ display:inline-flex !important; }
  .menu-desktop{ display:none !important; }
  .btn-desktop-only{ display:none !important; }

  .nav-collapse{
    display:none !important;
    width:100% !important;
    margin-top:10px !important;
    padding:12px !important;
    border-radius:18px !important;
    border:1px solid rgba(255,255,255,.10) !important;
    background:rgba(10,12,28,.55) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  .nav-collapse.open{ display:flex !important; }

  .menu-mobile{ display:flex !important; flex-direction:column !important; gap:8px !important; }
}

/* =========================
   FINAL MOBILE NAV OVERRIDE
   (paste at VERY END of style.css)
========================= */

/* desktop defaults */
.nav-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; }

/* collapsible container (desktop = visible inline) */
.nav-collapse{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
}

/* menu desktop */
.menu{
  display:flex;
  gap:10px;
  flex:1;
  flex-wrap:wrap;
}

/* ===== MOBILE ===== */
@media (max-width: 900px){

  /* keep header on one row + allow dropdown under it */
  .nav-inner{ flex-wrap:wrap; }

  /* show burger */
  .nav-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.05);
    color:#fff;
    cursor:pointer;
    flex-shrink:0;
  }

  /* IMPORTANT: hide dropdown by default */
  .nav-collapse{
    display:none !important;
    width:100%;
    margin-top:10px;
    padding:12px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(10,12,28,.55);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);

    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  /* show only when JS adds .open */
  .nav-collapse.open{
    display:flex !important;
  }

  /* menu inside dropdown */
  .nav-collapse .menu{
    display:flex !important;
    flex-direction:column;
    gap:8px;
    width:100%;
  }

  .nav-collapse .mitem{
    width:100%;
    padding:12px 14px;
    border-radius:14px;
  }

  /* actions (login/register/admin) inside dropdown */
  .nav-collapse .nav-actions{
    display:flex !important;
    gap:10px;
    flex-wrap:wrap;
    width:100%;
  }
}
