/* ================= ROOT ================= */
:root{
  --bg:#0a0e14;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.12);
  --text:#e9eef7;
  --muted:rgba(233,238,247,.70);
  --gold:#d7b36a;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

/* ================= BASE ================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(215,179,106,.18), transparent),
    radial-gradient(900px 500px at 80% 0%, rgba(123,211,255,.18), transparent),
    var(--bg);
}

.bg{
  position:fixed;
  inset:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size:18px 18px;
  opacity:.35;
  pointer-events:none;
}

.container{
  width:min(1400px, 94vw);
  margin:0 auto;
}

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  margin:16px 0;
}

/* ================= HEADER ================= */
.header{ padding-top:26px; }

.header-card{
  display:grid;
  grid-template-columns: 240px 1fr 240px;
  gap:24px;
  align-items:center;
}

.avatar,
.logo{
  width:100%;
  max-width:240px;
  aspect-ratio:1/1;
  object-fit:cover;
  border:none;
}

.title{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.title h1{
  margin:10px 0 6px;
  font-size:42px;
  line-height:1.05;
}

.title p{
  margin:0;
  color:var(--muted);
  font-weight:600;
}

.links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.chip{
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
}
.chip:hover{ border-color: rgba(215,179,106,.55); }

/* ================= PLAYER ================= */
.player-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

.now-album{
  font-weight:900;
}

.now-track{
  margin-top:6px;
  color:var(--muted);
  font-weight:700;
}

.player-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn:hover{ border-color: rgba(215,179,106,.55); }

.btn-primary{
  background: rgba(215,179,106,.18);
  border-color: rgba(215,179,106,.55);
}

.btn-download{
  border-color: rgba(123,211,255,.45);
}

.player-mid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:14px;
  align-items:center;
}

.progress{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:800;
}

input[type="range"]{
  width:100%;
  accent-color: var(--gold);
}

.right-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.volume{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}

/* ================= ALBUMS ================= */
#albums{ position:relative; }

.albums-rail{
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
}

.albums-grid{
  display:flex;
  gap:14px;
  flex-wrap:nowrap;
}

.album{
  flex:0 0 240px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:18px;
  text-decoration:none;
  color:var(--text);
  transition:.12s ease;
}
.album:hover{
  transform:translateY(-2px);
  border-color:rgba(215,179,106,.55);
}

.album img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:18px;
}

.album .a-body{
  padding:12px;
  text-align:center;
}

.album .a-title{
  font-weight:1000;
  margin-bottom:6px;
}

.album .a-meta{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.a-about{ cursor:pointer; }

/* ===== ALBUMS NAV – SĂGEȚI NEGRE FINALE ===== */
#albums .albums-toolbar{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
}

#albums .albums-toolbar .albums-nav{
  width:34px;
  height:34px;
  border-radius:8px;
  background:#000;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
}

#albums .albums-toolbar .albums-nav:hover{
  background:#111;
}
.albums-head{
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.albums-head h2{
  margin: 0;
}

.albums-toolbar{
  display: flex;
  gap: 6px;
  transform: translateY(-2px); /* le urcă puțin */
}

.albums-hint{
  margin: 0;
  text-align: right;
  font-size: 16px;
  opacity: .75;
}

/* ================= TRACKLIST ================= */
.tracklist-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
}

.tracks{
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

.track{
  display:grid;
  grid-template-columns:54px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.t-num{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  background:rgba(215,179,106,.10);
  border:1px solid rgba(215,179,106,.35);
}

.t-name{ font-weight:900; }

.t-file{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.t-actions{
  display:flex;
  gap:10px;
}

/* ================= FOOTER ================= */
.footer{
  text-align:center;
  color:var(--muted);
  font-weight:700;
  padding:18px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  margin:16px 0 26px;
}

/* ================= RESPONSIVE ================= */
@media (max-width:980px){
  .header-card{ grid-template-columns:1fr; }
  .player-mid{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  #albums .albums-toolbar{ display:none; }
}

@media (max-width:560px){
  .title h1{ font-size:34px; }
}
.top-downloads{
  max-width: 300px;      /* sau cât are zona principală */
  margin: 18px 0 0 0;      /* pozitia */
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.top-downloads h3{
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
}

.top-downloads ol{
  margin: 0;
  padding-left: 22px;
}

.top-downloads li{
  padding: 6px 0;
  opacity: 0.95;
}
.top-downloads h3:last-of-type{
  font-weight: 400;   /* mai subțire */
  opacity: 0.7;       /* opțional, mai discret */
}
/* ===== MOBILE: centrare avatar + logo ===== */
@media (max-width: 768px){

  .header-card{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .avatar{
    margin: 0 auto 14px;
  }

  .logo{
    margin: 20px auto 0;
  }
.album-about {
  background: rgba(0,0,0,0.92) !important;
}
