/* Base */
:root{
  --bg:#0e0e11;
  --fg:#f5f5f7;
  --line:rgba(255,255,255,.12);
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.03);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Arial, sans-serif;
  background:var(--bg);
  color:var(--fg);
  padding-top: var(--stickybar-h, 0px);
}

/* Hero */
.hero{
  text-align:center;
  padding:56px 16px;
  background:radial-gradient(circle at top,#2b2f77,#0e0e11 70%);
}

/* Sticky bar (always visible album nav + search) */
.stickybar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(to bottom, rgba(14,14,17,.96), rgba(14,14,17,.86));
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.album-nav{
  flex:1;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 2px;
  scrollbar-width:thin;
}
.album-nav::-webkit-scrollbar{height:6px}
.album-nav a{
  color:#fff;
  text-decoration:none;
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  font-size:13px;
  white-space:nowrap;
  background:rgba(255,255,255,.03);
}
.album-nav a:hover{ background:rgba(255,255,255,.08); }
.album-nav a.active{
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.12);
}

.search-wrap{flex:0 0 auto}
#search{
  width: min(420px, 42vw);
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:#15151c;
  color:#fff;
}

/* Buttons */
.iconbtn{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  cursor:pointer;
  font-size:12px;
}
.iconbtn:hover{ background:rgba(255,255,255,.10); }
.iconbtn-close{ width:36px; height:36px; border-radius:12px; font-size:18px; line-height:1; }

/* Drawer */
.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:1100;
}
.backdrop.open{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed;
  top:12px;
  left:12px;
  width:min(420px, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  overflow:auto;
  background:rgba(14,14,17,.96);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  transform:translateY(-6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:1200;
}
.drawer.open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px 6px;
}
.drawer-title{ font-weight:700; font-size:14px; }
.drawer-sub{
  opacity:.7;
  font-size:12px;
  padding:0 14px 10px;
}
.drawer-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0 14px 14px;
}
.drawer-links a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:#fff;
  text-decoration:none;
  line-height:1.25;
}
.drawer-links a:hover{ background:rgba(255,255,255,.08); }
.drawer-links a.active{
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.12);
}

/* Album sections */
.album{
  max-width:1000px;
  margin:0 auto;
  padding:28px 16px 40px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.album-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:18px;
  align-items:start;
}
.cover{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
}
.meta{font-size:13px;opacity:.75;margin-bottom:12px}
.links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}

.track{
  display:grid;
  grid-template-columns:36px 1fr auto;
  gap:10px;
  padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,.14);
  font-size:14px;
  position:relative;
}
.track .no{opacity:.6}
.track .isrc{font-family:monospace;opacity:.65;font-size:12px}

/* Track-level buttons + embedded player */
.track-links{ grid-column: 1 / -1; display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 2px; }
.tbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  cursor:pointer;
  user-select:none;
}
.tbtn:hover{ background:rgba(255,255,255,.10); }
.tbtn:active{ transform: translateY(1px); }
.tbtn-secondary{ background:rgba(255,255,255,.02); }

.track.playing{
  background:rgba(255,255,255,.04);
  border-radius:12px;
  padding-left:10px;
  padding-right:10px;
}
.track.playing::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:99px;
  background:rgba(255,255,255,.85);
}

.album-player, .track-player{ padding:10px 0 16px; border-bottom:1px dashed rgba(255,255,255,.18); }
.player-inner{ background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.10); border-radius:14px; padding:10px; }
.player-inner iframe{ width:100%; aspect-ratio:16/9; border-radius:12px; }
.player-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.album.playing h2{ text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
footer{text-align:center;padding:32px 16px;font-size:12px;opacity:.6}

/* Responsive */
@media (max-width: 820px){
  .album-grid{ grid-template-columns: 1fr; }
  #search{ width: min(520px, 44vw); }
}
@media (max-width: 520px){
  .stickybar{ flex-wrap:wrap; }
  .album-nav{ order:3; flex-basis:100%; }
  .search-wrap{ width:100%; }
  #search{ width:100%; }
}
