body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif; /* Use Google Font here */
  background: #080810;
  color: #fff;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  background: rgba(9, 11, 24, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #000000;
  flex-wrap: wrap;
}

header h1 {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}


.albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 20px 15px 120px; 
  justify-items: center;
}

@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.album {
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  transition: .3s;
  width: 100%;
  max-width: 150px;
  opacity: 0;
  transform: scale(0.92);
  animation: fadeZoomIn .6s ease forwards;
}

.album:nth-child(1) { animation-delay: .05s; }
.album:nth-child(2) { animation-delay: .1s; }
.album:nth-child(3) { animation-delay: .15s; }
.album:nth-child(4) { animation-delay: .2s; }
.album:nth-child(5) { animation-delay: .25s; }

.album img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  transition: .4s cubic-bezier(.25,.8,.25,1);
}

.album img:hover {
  transform: scale(1.05);
}

.album p {
  margin: 8px 0 2px;
  font-size: 16px;
  font-weight: bold;
}

.album span {
  font-size: 12px;
  color: #aaa;
}


.player {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 94%;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(70px) saturate(250%);
  -webkit-backdrop-filter: blur(70px) saturate(250%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 
    opacity 0.5s ease, 
    transform 0.5s ease, 
    background 0.5s ease, 
    box-shadow 0.8s ease;
  z-index: 200;
  box-shadow: 
    inset 0 0 20px rgba(255, 255, 255, 0.08),
    0 10px 40px rgba(0, 0, 0, 0.5);
}

.player.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  box-shadow: 
    inset 0 0 25px rgba(255, 255, 255, 0.1),
    0 15px 50px rgba(0, 0, 0, 0.6);
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(220, 235, 255, 0.05),
    rgba(255, 255, 255, 0.08)
  );
  filter: blur(60px);
  z-index: -1;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.player.active::before {
  opacity: 1;
}


@keyframes gradientShift {
  0%,100% { background-position: 0 50% }
  50% { background-position: 100% 50% }
}

.player-top {
  display: flex;
  align-items: center;
  gap: 15px;
  overflow-x: auto;
}

.player-top img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.tracklist-mini {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.tracklist-mini::-webkit-scrollbar { 
  display: none; 
}

.tracklist-mini div {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 10px;
  max-width: 200px;
  text-overflow: ellipsis;
  overflow: hidden;


  transition: 
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.3s,
    color 0.3s;
}


.tracklist-mini.scrolling div {
  transform: scale(0.92);
}


.tracklist-mini.scrolling div.active {
  transform: scale(0.98);
}

.tracklist-mini div:hover {
  background: rgba(255,255,255,.1);
}

.tracklist-mini div.active {
  color: #48f8a0c7;
  font-weight: bold;
  transform: scale(1.08);
  background: rgba(30,215,96,.15);
}


.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.controls button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.controls button:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 5px #ecfff2);
}

.controls svg {
  width: 100%;
  height: 100%;
  fill: white;
}



.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress {
  width: 0;
  height: 100%;
  background: #1db954;
  transition: .1s linear;
}

.progress-dot {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%,-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1) }
  50% { transform: translate(-50%,-50%) scale(1.3) }
}
@media (max-width: 768px) {
  header {
  display: flex;
  flex-direction: column;
  align-items: center;   
  gap: 10px;
}
  .albums {
    gap: 15px;
    margin: 20px 5px 150px;
  }
  .album img {
    width: 120px;
    height: 120px;
  }
  .album p {
    font-size: 14px;
  }
  .album span {
    font-size: 11px;
  }
  .player-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .tracklist-mini {
    width: 100%;
  }
  .controls {
    justify-content: center;
    gap: 20px;
  }
  .controls button {
    width: 40px;
    height: 40px;
  }
  .controls #play {
    width: 60px;
    height: 60px;
  }
}

.controls button#shuffle:hover {
  filter: drop-shadow(0 0 5px #94c6a4);
}

#bonusButton {
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(20px) saturate(140%); 
  color: #fff;
  border-radius: 12px;
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#bonusButton:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-0.00001px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#bonusButton:active {
  transform: translateY(0.00001px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
  header h1 {
    font-size: 18px;
  }
  .album img {
    width: 100px;
    height: 100px;
  }
  .album p {
    font-size: 13px;
  }
  .album span {
    font-size: 10px;
  }
  .player-top img {
    width: 45px;
    height: 45px;
  }
  .tracklist-mini div {
    padding: 5px 8px;
    font-size: 11px;
  }
  .controls {
    justify-content: space-around;
    gap: 15px;
  }
  .controls button {
    width: 35px;
    height: 35px;
  }
  .controls #play {
    width: 55px;
    height: 55px;
  }
  .progress-bar {
    height: 5px;
  }
  .progress-dot {
    width: 8px;
    height: 8px;
  }
}
#volumeSlider {
  width: 100px;
  height: 4px;
  accent-color: #4bc267;
  cursor: pointer;
  transition: 0.3s;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #ccc;
  margin-top: -5px;
  user-select: none;
  font-family: monospace;
}

.time-stamps span {
  opacity: 0.8;
  transition: 0.2s;
}

.time-stamps span:hover {
  opacity: 1;
}
@media (max-width: 480px) {
.controls button#shuffle {
    width: 45px;  
    height: 45px;
}
}

.volume-slider { display: none; }

@media (max-width: 768px) {
  .volume-slider { display: none; }
}