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

body {
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    transition: background 1s ease;
    min-height: 100vh;
    overflow-y: auto;
}

.night {
    background: linear-gradient(135deg, #000814, #001d3d, #003566);
    background-repeat: no-repeat;
}


.day {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-repeat: no-repeat;
}

#stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    opacity: 0.8;
    border-radius: 50%;
    animation: fall linear infinite;
    box-shadow: 0 0 6px white;
}

@keyframes fall {
    from {
        transform: translateY(-10px);
        opacity: 1;
    }

    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}


.main-body {
    display: flex;
    min-height: 90vh;
    z-index: 1;
    width: 100%;
}

.left-section {
    background: rgba(36, 36, 36, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    width: 20%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.appTitle {
    color: white;
    display: flex;
    justify-content: start;
    align-items: center;
}

.appTitle span {
    color: rgb(8, 153, 83);
}

.listA {
    margin-top: 100px;
    margin-bottom: 180px;
}

.listA li {
    list-style: none;
    margin: 30px 10px;
}

a {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    transition: 0.3s;
}

a:hover {
    color: rgb(8, 153, 83);
    transform: translateX(5px);
}

.icon {
    margin-right: 20px;
}

.playlist:hover {
    rotate: 45deg;
}


.listB li {
    list-style: none;
    margin: 20px 10px;
}

.right-section {
    background: rgba(49, 49, 49, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 30px;
    width: 80%;
    margin-left: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    height: auto;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background 0.5s ease;
}

#bgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* hidden by default */
    z-index: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
}

#bgVideo.active {
    opacity: 0.5;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgb(8, 153, 83);
    border-radius: 10px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: aliceblue;
}

.songSuggesstion {
    display: flex;
    gap: 2rem;
    width: 100%;
    height: 100%;
}

.music-cards {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.card {
    color: rgb(248, 252, 255);
    margin: 10px 0px;
    background-color: #405056;
    padding: 20px;
    width: 80%;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.card:hover {
    background-color: rgb(8, 153, 83);
    transform: scale(1.05);
}

#albumName {
    margin: 20px 0px;
    color: white;
}

.musicPlayer {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lyricsDiv {
    height: 100px;
    width: 100%;
    background-color: rgba(111, 111, 111, 0.2);
    margin-top: 20px;
    border-radius: 20px;
    padding: 15px;
    overflow-y: auto;
    color: white;
    line-height: 1.6;
}

.playSettings {
    color: white;
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    margin: 10px 0px;
    cursor: pointer;
    transition: 0.3s;
}

.playSettings span:hover {
    color: rgb(8, 153, 83);
    transform: scale(1.3);
}

#albumImage {
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(107, 142, 125, 0.5);
    transition: 0.3s;
}

#albumImage:hover {
    transform: scale(1.05);
}

.playSettings span {
    cursor: pointer;
    transition: 0.3s;
}

.playSettings span:hover {
    color: rgb(8, 153, 83);
    transform: scale(1.3);
}

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    color: white;
    margin: 10px 0px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    width: 0%;
    background: rgb(8, 153, 83);
    border-radius: 10px;
}

#waveform {
    width: 100%;
    height: 60px;
    margin-top: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(8, 153, 83, 0.2), transparent 70%);
    animation: glowMove 10s linear infinite;
    z-index: -1;
}

@keyframes glowMove {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loopBtn.active {
    color: rgb(8, 153, 83);
    transform: scale(1.2);
}

.active-card {
    background-color: rgb(8, 153, 83) !important;
    transform: scale(1);
}

#lyricsDiv p {
    margin: 6px 0;
    opacity: 0.8;
    transition: 0.3s;
}

#lyricsDiv p:hover {
    color: rgb(8, 153, 83);
    opacity: 1;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  body {
    padding: 0;
    width: 100%;
  }

  #albumName {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  .progress-container {
    gap: 8px;
    font-size: 0.9rem;
  }

  .progress-bar {
    height: 5px;
  }

  .main-body {
    flex-direction: column;
    width: 100%;
  }

  /* ❌ hide sidebar */
  .left-section {
    display: none;
  }

  /* ✅ full width */
  .right-section {
    width: 100%;
    padding: 15px;
    margin: 0;
    border-radius: 0;
  }

  /* stack layout */
  .songSuggesstion {
    flex-direction: column;
    gap: 30px;
  }

  .music-cards {
    width: 100%;
    gap: 10px;
  }

  .musicPlayer {
    width: 100%;
    margin-top: 10px;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 15px;
    border-radius: 20px;
  }

  /* cards full width */
  .card {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
  }

  /* album image smaller */
  #albumImage {
    width: 65%;
    max-width: 220px;
    border-radius: 20px;
  }

  /* controls spacing */
  .playSettings {
    font-size: 1.8rem;
    margin: 15px 0;
    justify-content: space-around;
  }

  /* lyrics height */
  #lyricsDiv {
    height: 120px;
    font-size: 0.9rem;
  }

  /* waveform smaller */
  #waveform {
    height: 40px;
  }

  /* top title */
  .greeting {
    font-size: 1.5rem;
  }

  .playSettings span {
  padding: 12px;
}
.top-bar {
    margin-bottom: 20px;
  }

  .greeting {
    font-size: 1.4rem;
  }

}

@media (max-width: 480px) {
  .greeting {
    font-size: 1.2rem;
  }

  #albumImage {
    width: 80%;
  }

  .card h3 {
    font-size: 1rem;
  }
}