*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:linear-gradient(135deg,#121212,#1d1d1d);
  font-family:Arial,sans-serif;
  color:white;
  height:100vh;
  overflow:hidden;
}

/* ================= RESPONSIVE FONT ================= */

body{
  font-size:14px;
}

@media screen and (min-width:600px){
  body{
    font-size:16px;
  }
}

@media screen and (min-width:1024px){
  body{
    font-size:18px;
  }
}

img,
video,
canvas{
  max-width:100%;
  height:auto;
}

/* ================= MAIN LAYOUT ================= */

.box{
  display:flex;
  height:100vh;
  padding:20px;
  gap:20px;
  overflow:hidden;
}

.nav{
  width:220px;
  min-width:220px;
  background:rgba(255,255,255,0.05);
  border-radius:20px;
  padding:25px;
  backdrop-filter:blur(10px);
  overflow-y:auto;
}

.logo{
  margin-bottom:40px;
  font-size:20px;
}

.nav ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.nav-btn{
  all:unset;
  display:flex;
  align-items:center;
  gap:15px;
  width:100%;
  cursor:pointer;
  padding:12px;
  border-radius:12px;
  transition:.3s;
}

.nav-btn:hover,
.active-nav{
  background:rgba(255,255,255,0.1);
}

.nav-btn img{
  width:45px;
  height:45px;
  object-fit:cover;
}

.content{
  flex:1;
  min-height:0;
  overflow:hidden;
}

.page{
  display:none;
  flex-direction:column;
  gap:20px;
  height:100%;
  overflow-y:auto;
  padding-right:5px;
}

.active-page{
  display:flex;
}

/* ================= TOP SECTION ================= */

.top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  min-height:280px;
}

.smallbox,
.bigbox,
.glass{
  background:rgba(255,255,255,0.05);
  border-radius:20px;
  padding:20px;
  backdrop-filter:blur(10px);
}

.title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

/* ================= ARTIST ================= */

.artist-list{
  display:flex;
  gap:15px;
  overflow-x:auto;
  padding-bottom:5px;
}

.artist-card{
  min-width:120px;
  text-align:center;
  cursor:pointer;
  flex-shrink:0;
}

.artist-card img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:15px;
  margin-bottom:10px;
}

/* ================= ALBUM LIST ================= */

.album-list{
  display:flex;
  flex-direction:column;
  gap:15px;
  max-height:220px;
  overflow-y:auto;
  padding-right:5px;
}

.album-item{
  display:flex;
  align-items:center;
  gap:15px;
  background:rgba(255,255,255,0.05);
  padding:10px;
  border-radius:12px;
  cursor:pointer;
  transition:.3s;
}

.album-item:hover{
  background:rgba(255,255,255,0.09);
}

.album-item img{
  width:60px;
  height:60px;
  border-radius:12px;
  object-fit:cover;
}

/* ================= PLAYER ================= */

.bigbox{
  flex:1;
  display:flex;
  gap:20px;
  min-height:0;
  overflow:hidden;
}

.player-side{
  width:35%;
  min-width:280px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:15px;
}

.now-cover{
  width:100%;
  max-width:280px;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:20px;
}

#progressBar{
  width:100%;
}

.controls{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  justify-content:center;
}

.controls button{
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  color:white;
  font-size:18px;
  cursor:pointer;
}

/* ================= MUSIC PANELS ================= */

.music-panels{
  flex:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  min-height:0;
  overflow:hidden;
}

.panel{
  background:rgba(255,255,255,0.05);
  border-radius:15px;
  padding:15px;
  overflow-y:auto;
  min-height:0;
}

.song-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:10px;
  margin-bottom:10px;
  background:rgba(255,255,255,0.04);
  cursor:pointer;
  transition:.3s;
}

.song-item:hover{
  background:rgba(255,255,255,0.08);
}

.song-item span{
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.active-song{
  background:#1db954 !important;
}

.fav-btn{
  background:none;
  border:none;
  cursor:pointer;
  font-size:18px;
}

/* ================= WAVE ================= */

.time-wave{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:15px;
}

.wave{
  display:flex;
  align-items:flex-end;
  gap:4px;
  height:30px;
}

.wave span{
  width:4px;
  height:8px;
  background:#1db954;
  border-radius:10px;
  transition:.2s;
}

/* ================= ALBUM PAGE ================= */

.page-header{
  padding:25px;
}

.albums-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
}

.album-card{
  background:rgba(255,255,255,0.05);
  border-radius:20px;
  padding:20px;
  cursor:pointer;
  transition:.3s;
}

.album-card:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,0.08);
}

.album-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:15px;
  margin-bottom:15px;
}

/* ================= PROFILE ================= */

.profile-header{
  padding:25px;
}

.profile-left{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.profile-avatar{
  width:90px;
  height:90px;
  border-radius:50%;
  object-fit:cover;
}

.metrics-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.metric-card{
  padding:25px;
}

.metric-card h1{
  font-size:40px;
  margin-top:15px;
}

/* ================= HIDDEN SCROLLBAR ================= */

.panel,
.album-list,
.page,
.nav,
.artist-list{
  scrollbar-width:none;
  transition:.3s;
}

/* HIDE SCROLLBAR */
.panel::-webkit-scrollbar,
.album-list::-webkit-scrollbar,
.page::-webkit-scrollbar,
.nav::-webkit-scrollbar,
.artist-list::-webkit-scrollbar{
  width:0px;
  height:0px;
}

/* SHOW ON HOVER */
.panel:hover::-webkit-scrollbar,
.album-list:hover::-webkit-scrollbar,
.page:hover::-webkit-scrollbar,
.nav:hover::-webkit-scrollbar,
.artist-list:hover::-webkit-scrollbar{
  width:6px;
  height:6px;
}

/* THUMB */
.panel:hover::-webkit-scrollbar-thumb,
.album-list:hover::-webkit-scrollbar-thumb,
.page:hover::-webkit-scrollbar-thumb,
.nav:hover::-webkit-scrollbar-thumb,
.artist-list:hover::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.25);
  border-radius:10px;
}

/* TRACK */
.panel:hover::-webkit-scrollbar-track,
.album-list:hover::-webkit-scrollbar-track,
.page:hover::-webkit-scrollbar-track,
.nav:hover::-webkit-scrollbar-track,
.artist-list:hover::-webkit-scrollbar-track{
  background:transparent;
}

/* ================= TABLET ================= */

@media(max-width:1200px){

  .music-panels{
    grid-template-columns:1fr 1fr;
  }

  .player-side{
    width:40%;
  }

}

/* ================= MOBILE ================= */

@media(max-width:1000px){

  body{
    overflow:auto;
  }

  .box{
    flex-direction:column;
    height:auto;
    overflow:auto;
    padding:15px;
  }

  .nav{
    width:100%;
    min-width:100%;
    padding:15px;
  }

  .nav ul{
    flex-direction:row;
    overflow-x:auto;
    gap:10px;
  }

  .nav-btn{
    min-width:140px;
  }

  .content{
    overflow:visible;
  }

  .page{
    height:auto;
    overflow:visible;
  }

  .top{
    grid-template-columns:1fr;
  }

  .bigbox{
    flex-direction:column;
    overflow:visible;
  }

  .player-side{
    width:100%;
    min-width:100%;
  }

  .music-panels{
    grid-template-columns:1fr;
  }

  .albums-grid{
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  }

  .metrics-grid{
    grid-template-columns:1fr;
  }

  .album-card img{
    height:180px;
  }

  .now-cover{
    max-width:240px;
  }

  .mini-player{
    width:95%;
    left:50%;
    transform:translateX(-50%);
  }

}

/* ================= SMALL MOBILE ================= */

@media(max-width:600px){

  .box{
    padding:10px;
    gap:10px;
  }

  .smallbox,
  .bigbox,
  .glass{
    padding:15px;
  }

  .album-card{
    padding:15px;
  }

  .album-card img{
    height:150px;
  }

  .artist-card{
    min-width:100px;
  }

  .artist-card img{
    height:100px;
  }

  .controls button{
    width:45px;
    height:45px;
    font-size:16px;
  }

  .mini-player{
    width:96%;
    bottom:10px;
    padding:10px;
  }

  .mini-left img{
    width:45px;
    height:45px;
  }

  .mini-controls{
    display:flex;
    gap:8px;
  }

}

/* ================= MINI PLAYER ================= */

.mini-player{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 420px;

    background: #111;
    border-radius: 18px;

    padding: 14px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.4);

    z-index: 999;
}

.mini-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

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

    min-width: 0;
}

#miniCover{
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-info{
    overflow: hidden;
}

#miniTitle{
    color: white;
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 170px;
}

#miniArtist{
    color: #aaa;
    font-size: 12px;
}

.mini-controls{
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-controls button{
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.mini-bottom{
    display: flex;
    align-items: center;
    gap: 8px;
}

#miniProgress{
    flex: 1;
    height: 4px;
    cursor: pointer;
}

#miniCurrent,
#miniDuration{
    color: #aaa;
    font-size: 11px;
    min-width: 34px;
    text-align: center;
}

.mini-info{
  display:flex;
  flex-direction:column;
  width:100%;
}

.mini-progress-wrapper{
  margin-top:6px;
  width:100%;
}

.mini-progress-bar{
  width:100%;
  height:4px;
  background:#2a2a2a;
  border-radius:20px;
  overflow:hidden;
}

#miniProgress{
  width:0%;
  height:100%;
  background:white;
  transition:0.1s linear;
}

.mini-times{
  margin-top:4px;
  display:flex;
  justify-content:space-between;
  font-size:10px;
  opacity:0.7;
}

/* ================= LOADING SCREEN ================= */

.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg,#121212,#1d1d1d);
  z-index: 99999;
  overflow: hidden;
}

/* ================= SHIMMER EFFECT ================= */

.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* ================= SIDEBAR SKELETON ================= */

.sk-nav {
  width: 220px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sk-logo {
  height: 30px;
  width: 80%;
}

.sk-nav-item {
  height: 45px;
  border-radius: 12px;
}

/* ================= MAIN ================= */

.sk-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOP GRID */
.sk-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 280px;
}

.sk-box {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sk-title {
  height: 25px;
  width: 60%;
}

.sk-row {
  height: 18px;
  width: 100%;
}

/* ================= PLAYER ================= */

.sk-player {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.sk-cover {
  width: 220px;
  height: 220px;
  border-radius: 20px;
}

.sk-line {
  height: 18px;
  width: 60%;
}

.sk-line.small {
  width: 40%;
}

.sk-progress {
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.sk-controls {
  display: flex;
  gap: 12px;
}

.sk-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.search-box {
  margin-bottom: 20px;
  position: relative;
}

#searchBar {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: white;
}

.search-results {
  position: absolute;
  top: 45px;
  width: 100%;
  background: rgba(0,0,0,0.9);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.search-item {
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.search-item:hover {
  background: rgba(255,255,255,0.1);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);

  width: fit-content;
}

/* ICON */
.vol-icon {
  font-size: 16px;
  opacity: 0.8;
}

/* VALUE TEXT */
#volumeValue {
  font-size: 12px;
  opacity: 0.7;
  min-width: 40px;
}

/* SLIDER BASE */
#volumeSlider {
  width: 80px;
  height: 4px;
  appearance: none;
  background: linear-gradient(to right, #1db954 100%, #444 0%);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

/* THUMB (Chrome/Edge) */
#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1db954;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* FIREFOX */
#volumeSlider::-moz-range-track {
  height: 4px;
  border-radius: 10px;
  background: #444;
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1db954;
  border: none;
  cursor: pointer;
}

/* HOVER EFFECT */
.volume-control:hover {
  background: rgba(255, 255, 255, 0.12);
}
