

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


body{
  font-family: 'Poppins', sans-serif;
  min-height:100vh;
  background: linear-gradient(135deg, #0f0f14, #1a1a24, #000);
  color:white;
  overflow-x:hidden;
  display:block; }

.topbar{
  position:fixed;
  top:15px;
  left:15px;
  z-index:1100;
}

.toggle-btn{
  background: rgba(255,255,255,0.1);
  border:none;
  color:white;
  font-size:22px;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
}
.toggle-btn:hover{
  background: rgba(28, 115, 139, 0.3);
}

.sidebar{
  position:fixed;
  top:0;
  left:0;
  height:100%;
  width:280px;
  padding:60px 20px 20px 20px; /* 🔥 TOP SPACE for close button */
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border-right:1px solid rgba(255,255,255,0.1);
  transition:0.4s ease;
  transform: translateX(-100%);
  z-index:1000;

  display:flex;
  flex-direction:column;
  gap:10px;
}
/* HIDE */
.sidebar.hide{
  margin-left:-280px;
}
.sidebar.show{
  transform: translateX(0);
}
.sidebar h2{
  
  
  position: absolute;
  top:25px;
  left:60px;
  font-size:18px;
  opacity:0.9;

}

.song{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:12px;
  background: rgba(255,255,255,0.05);
  cursor:pointer;
  transition:0.3s;
  font-size:15px;
  margin-top:5px;
}
.song img{
  width:35px;
  height:35px;
  border-radius:8px;
  object-fit:cover;
}

.song:hover{
  background: rgba(28, 115, 139, 0.3);
  transform: translateX(5px);
}

.song.active{
  background: linear-gradient(90deg, #35787d, #facc15);
  box-shadow:0 0 15px rgba(37, 123, 129, 0.6);
}

.overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.4);
  opacity:0;
  visibility:hidden;
  transition:0.3s;
  z-index:999;
}


.overlay.active{
  opacity:1;
  visibility:visible;
}
.player{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
}



/* BACKGROUND ANIMATION */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* GLASS CARD */
.wrapper {
    width: 400%;
    max-width: 420px;
    padding: 25px;
    border-radius: 22px;

    background: rgba(170, 75, 75, 0.06);
    backdrop-filter: blur(25px);

    border: 1px solid rgba(255,255,255,0.1);

    box-shadow:
        0 20px 50px rgba(170, 153, 86, 0.8),
        inset 0 0 10px rgba(131, 145, 24, 0.05);

    text-align: center;
    transition: all 0.3s ease;
}

/* HOVER */
.wrapper:hover {
    transform: translateY(-6px);
}

/* TRACK IMAGE */
.track-art {
    width: 180px;
    height: 180px;
    margin: 20px auto;

    border-radius: 50%;
    background-size: cover;
    background-position: center;

    border: 3px solid rgba(255,255,255,0.15);

    box-shadow: 0 0 20px rgba(255,255,255,0.1);

    transition: 0.3s;
}

/* ROTATION + SOFT GLOW */
.rotate {
    animation: spin 10s linear infinite, glow 2.5s ease-in-out infinite alternate;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    from { box-shadow: 0 0 15px rgba(95, 225, 30, 0.5); }
    to { box-shadow: 0 0 30px rgba(191, 174, 109, 0.6); }
}

/* TEXT */
.now-playing {
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 1px;
}

.track-name {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;

    background: linear-gradient(90deg, #35787d, #facc15);
    -webkit-background-clip: text;
    color: transparent;
}

.track-artist {
    font-size: 13px;
    opacity: 0.7;
}

/* BUTTONS */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.buttons div {
    margin: 8px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #e5e7eb;
}

/* CLEAN HOVER */
.buttons div:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* CLICK */
.buttons div:active {
    transform: scale(0.95);
}

/* PLAY BUTTON */
.playpause-track i {
    font-size: 55px;
    transition: 0.3s;
}

.playpause-track:hover i {
    color: linear-gradient(90deg, #35787d, #facc15);
    text-shadow: 0 0 10px rgba(168, 119, 29, 0.5);
}

/* SLIDERS */
.slider_container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.seek_slider,
.volume_slider {
    appearance: none;
    height: 5px;
    border-radius: 10px;
    margin: 0 10px;

    background: linear-gradient(90deg, #23909a, #facc15);
}

/* WIDTH */
.seek_slider { width: 60%; }
.volume_slider { width: 30%; }

/* THUMB */
.seek_slider::-webkit-slider-thumb,
.volume_slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;

    box-shadow: 0 0 8px rgba(255,107,107,0.6);
}

/* TIME */
.current-time,
.total-duration {
    font-size: 11px;
    opacity: 0.6;
}

/* WAVE */
#wave {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#wave .stroke {
    width: 4px;
    height: 12px;
    margin: 0 3px;

    border-radius: 10px;
    background: linear-gradient(#165c63, #facc15);

    animation: wave 1.2s infinite ease-in-out;
}

#wave .stroke:nth-child(2){ animation-delay:0.2s }
#wave .stroke:nth-child(3){ animation-delay:0.4s }

@keyframes wave {
    0%,100% { height: 10px; }
    50% { height: 25px; }
}

/* ACTIVE */
.randomActive {
    color: #ff6b6b;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .track-art {
        width: 150px;
        height: 150px;
    }

    .playpause-track i {
        font-size: 45px;
    }

    .buttons div {
        margin: 5px;
        padding: 8px;
    }
}
