/* =========================
   ROOT / THEME
========================= */
:root{
  --bg:#000;
  --panel:#0b0b0b;
  --panel-grad:linear-gradient(180deg,#0c0c0c,#000);
  --border:#1f1f1f;
  --text:#fff;
  --muted:#9ca3af;
  --accent:#3b82f6;
}

/* LIGHT */
body.light{
  --bg:#f4f4f4;
  --panel:#ffffff;
  --panel-grad:linear-gradient(180deg,#ffffff,#f3f3f3);
  --border:#e5e7eb;
  --text:#000;
  --muted:#6b7280;
  --accent:#2563eb;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
  transition:.2s;
}

/* =========================
  
/* THEME BTN */
.theme-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--panel);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.theme-btn::before{
  content:"☾";
  color:var(--text);
  font-size:16px;
}
body.light .theme-btn::before{content:"☀";}

/* =========================
   CONTENT
========================= */
.container{
  max-width:1200px;
  margin:auto;
  padding:30px 20px;
}

/* =========================
   SONG BLOCK
========================= */
.songs-box{
  background:var(--panel-grad);
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px;
  margin-bottom:30px;
}

.songs-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.songs-title{
  font-size:20px;
  font-weight:600;
}

/* ALL BTN */
.all-btn{
  padding:6px 14px;
  font-size:12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--muted);
  text-decoration:none;
}
.all-btn:hover{
  border-color:var(--accent);
  color:var(--accent);
}

/* =========================
   GRID
========================= */
.song-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

/* =========================
   SONG ROW
========================= */
.song-row{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:6px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition:.2s;
}

.song-row.active{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent);
}

.song-left{
  display:flex;
  align-items:center;
  gap:12px;
}

/* =========================
   COVER + SVG ICON (FIXED)
========================= */
.song-cover{
  width:42px;
  height:42px;
  border-radius:50%;
  position:relative;
  overflow:hidden;
  flex-shrink:0;
  cursor:pointer;
}

.song-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ICON HOLDER */
.song-cover .play-icon{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

/* SVG ICONS */
.song-cover svg{
  width:16px;
  height:16px;
  fill:#fff;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.6));
}

/* DEFAULT STATE */
.song-cover .icon-pause{display:none;}

/* PLAYING */
.song-cover.playing .icon-play{display:none;}
.song-cover.playing .icon-pause{display:block;}

/* =========================
   TEXT
========================= */
.song-text{
  display:flex;
  flex-direction:column;
}

.song-title{
  font-size:14px;
  font-weight:600;
  color:var(--text);
  text-decoration:none;
  display:block;
}

.song-title:hover{
  color:var(--accent);
}

.song-artist{
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
  display:block;
}


/* =========================
   DOWNLOAD
========================= */
.download-btn{
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid var(--border);
  position:relative;
  flex-shrink:0;
}
.download-btn::before{
  content:'';
  position:absolute;
  width:2px;
  height:10px;
  background:var(--text);
  left:50%;
  top:7px;
  transform:translateX(-50%);
}
.download-btn::after{
  content:'';
  position:absolute;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid var(--text);
  left:50%;
  top:15px;
  transform:translateX(-50%);
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){
  .song-list{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:600px){
  .song-list{grid-template-columns:1fr;}
  .nav{display:none;}
}

/* =========================
   PAGE OFFSET
========================= */
body{
  padding-bottom:140px;
}

/* =========================
   BOTTOM PLAYER
========================= */
#bottomPlayer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:var(--panel);
  border-top:1px solid var(--border);
  z-index:1000;
}

.bp-inner{
  max-width:1200px;
  margin:auto;
  padding:12px 16px 14px;
}

/* =========================
   TOP ROW
========================= */
.bp-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* LEFT */
.bp-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.bp-cover{
  width:34px;
  height:34px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
}

.bp-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

#bpTitle{
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--text);
}

/* =========================
   CONTROLS
========================= */
.bp-controls{
  display:flex;
  align-items:center;
  gap:12px;
}

.bp-controls button{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--border);
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* DEFAULT ICON COLOR */
.bp-controls svg{
  width:16px;
  height:16px;
  fill:var(--text);
}

/* =========================
   PROGRESS
========================= */
.bp-bottom{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
}

.bp-bottom span{
  font-size:11px;
  min-width:32px;
  text-align:center;
  color:var(--muted);
}

.bp-progress{
  flex:1;
  height:3px;
  background:rgba(255,255,255,.25);
  border-radius:3px;
  overflow:hidden;
}

#bpBar{
  height:100%;
  width:0%;
  background:var(--accent);
}

body.light .bp-progress{
  background:rgba(0,0,0,.2);
}

/* =========================
   PLAY / PAUSE (BOTTOM)
========================= */
.bp-icon-play,
.bp-icon-pause{
  display:none;
}

#bottomPlayer:not(.playing) .bp-icon-play{
  display:block;
}

#bottomPlayer.playing .bp-icon-pause{
  display:block;
}

/* PLAY BUTTON SPECIAL */
.bp-play svg{
  fill:var(--accent);
}

/* =========================
   SONG COVER ICON
========================= */
.song-cover{
  position:relative;
}

.song-cover svg{
  width:16px;
  height:16px;
  fill:var(--text);
}

.song-cover .icon-play,
.song-cover .icon-pause{
  display:none;
}

.song-cover:not(.playing) .icon-play{
  display:block;
}

.song-cover.playing .icon-pause{
  display:block;
}

/* =========================
   MOBILE
========================= */
@media (max-width:600px){

  body{
    padding-bottom:160px;
  }

  .container{
    padding:12px 0;
  }

  .songs-box{
    margin:0 0 18px 0;
    padding:14px 12px;
    border-radius:16px;
  }

  .song-list{
    grid-template-columns:1fr;
    gap:10px;
  }

  .song-row{
    margin:0 2px;
    padding:8px 10px;
    border-radius:12px;
  }

  .nav{
    display:none;
  }

  .bp-volume input{
    width:90px;
  }
}
.song-cover svg{
  fill:#fff;
}


/* =========================
   HEADER (GLOBAL)
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  height: 64px;
  max-width: 1200px;
  margin: auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   LEFT
========================= */
.header-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO */
.logo img{
  height: 26px;
}

/* =========================
   BURGER
========================= */
.burger{
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.burger span{
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* =========================
   DESKTOP NAV
========================= */
.desktop-nav{
  display: flex;
  gap: 18px;
}

.desktop-nav a{
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a.active,
.desktop-nav a:hover{
  color: var(--accent);
}

/* =========================
   SEARCH
========================= */
.search-box input{
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  width: 150px;
}

.search-box input::placeholder{
  color: var(--muted);
}

/* =========================
   RIGHT
========================= */
.header-right{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu{
  display: none;
  flex-direction: column;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.mobile-menu a{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.mobile-menu a:hover{
  background: rgba(255,255,255,.04);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .desktop-nav{display:none}
  .burger{display:flex}
  .search-box{display:none}
}



.track-detail{
  max-width:800px;
  margin:40px auto;
  display:flex;
  gap:24px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
}

.track-cover img{
  width:220px;
  border-radius:14px;
}

.track-info h1{
  font-size:24px;
  margin-bottom:6px;
}

.track-info .artist{
  color:var(--muted);
  margin-bottom:10px;
}

.cat-link{
  display:inline-block;
  margin-bottom:14px;
  font-size:13px;
  color:var(--accent);
}

.track-actions{
  display:flex;
  gap:12px;
}
.play-btn{
  padding:10px 18px;
  border-radius:999px;
  border:none;
  background:var(--accent);
  color:#fff;
  cursor:pointer;
}
