@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}
html, body {
  height: 100%;
  width: 100%;
  background-color: #111;
  color: white;
}
.flex {
    display: flex;
}
.justify-center{
    justify-content: center;
}
.align-item {
    align-items: center;
}
.border {
    border: 2px solid red;
    margin: 3px;
}
.left {
    width: 25vw;
}
.right{
    width: 75vw;
}
.home ul li{
    display: flex;
    gap: 15px;
    padding-top: 14px;
    font-weight: bold;
    cursor: pointer;
}
.home {
    border-radius: 7px;
    background-color: #121212;
}
.bg-black{
    background-color: #000000;
    color: white;
}
.invert{
    filter: invert(1);
}
.bg-grey{
    background-color: #121212;
}
.m-1{
    margin: 10px;
}
.home{
    padding: 10px;
}
.library{
    padding: 10px;
    border-radius: 7px;
}
.library li{
    display: flex;
    font-size: 20px;
    padding: 10px 0px;
    align-items: center;
    gap: 10px;
}
.library {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px); 
    overflow: hidden;
    background: linear-gradient(180deg, rgba(59, 59, 59, 0.75), rgba(89, 89, 89, 0.75));
}
#song-title {
    width: 70%;
    font-size: 12px;
}
#singer {
    font-size: 10px;
    font-weight: 800;
}
.footer{
    display: flex;
    font-size: 9px;
    gap: 13px;
    bottom: 10px;
    white-space: nowrap;
}
.footer a {
    color: grey;
}
.right {
    margin: 10px;
    border-radius: 7px;
    
}
.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #222222;
    border-radius: 7px;
}
.header > *{
    padding: 20px;
}
.search input {
    opacity: 0;
}
.search i {
    opacity: 0;
}
.buttons :nth-child(1){
    padding: 10px;
    background-color: transparent;
    color: white;
    width: 80px;
    border-radius: 40px;
    border: none;
    font-weight: 700;
    transition: all ease 0.1s;
}
.buttons :nth-child(1):hover{
    transform: scale(1.2);
}
.buttons :nth-child(2){
    padding: 10px;
    width: 80px;
    border-radius: 40px;
    border: none;
    font-weight: 700;
    transition: all ease 0.1s;
}
.buttons :nth-child(2):hover{
    transform: scale(1.1);
}
.spotify-playlist {
    padding: 16px;
    font-size: 12px;
    position: relative;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    max-height: 78vh;
    overflow-y: scroll;
}
::-webkit-scrollbar {
  width: 10px;         
}

::-webkit-scrollbar-track {
  background: #111;           
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #444, #222);  
  border-radius: 10px;
  border: 2px solid #111; 
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #666, #333);  
}

.card {
    margin: 15px 10px;
    height: 240px;
    width: 160px;
    background-color: #222222;
    border-radius: 7px;
    position: relative;
}
.play {
    position: absolute;
    right: 7%;
    top: 44%;
    font-size: 20px;
    background-color: #1DB954;
    padding: 13px;
    border-radius: 50%;
    opacity: 0;
    transition: all ease .5s;
}
.play i{
    color: #ffffff;
    font-size: 22px;
}
.card:hover {
    background-color: #303030;
}
.card:hover .play {
    transform: translateY(-5px);
    opacity: 1;
}
.card img {
    padding: 5px;
    border-radius: 15px;
    object-fit: contain;
    width: 100%;
}
.card h2{
    padding: 0px 15px;
    font-size: 13px;
}
.card p{
    padding: 5px 15px;
    font-size: 11px;
}
.playbar-container{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.playbar{
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  bottom: 17px;
  background: linear-gradient(180deg, rgba(0, 255, 89, 0.645), rgba(15, 114, 15, 0.35));
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
  width: 60%;
  padding: 28px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;

}
.song-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    cursor: pointer;
    
}
.song-button i{
    color: #ffffff;
    font-size: 39px;
    font-weight: 900;
    border-radius: 50%;
}
.song-button i:hover {
        transform: scale(1.1);
    }
.song-list ul{
    padding: 0 12px;
    
}
.song-list ul li {
    font-size: 13px;
    display: flex;
    cursor: pointer;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid white;
    margin: 12px 0;
    padding: 10px;
    word-wrap: break-word;
    border-radius: 5px;
}
.song-list ul li i{
    font-size: 24px;
    
}
.info{
    display: flex;
    align-items: center;
    gap: 5px;
}
.play1 i {
    padding: 10px;
    background-color: #1DB954;
    border-radius: 50%;
    opacity: 0;
}
.song-list ul li:hover .play1 i{
    transform: translateY(-5px);
    opacity: 1;
}
.song-info div{
    margin-top: 5px;
}
.song-list {
    flex: 1;
    overflow-y: auto;
}
.seekbar{
    height: 2px;
    width: 94%;
    border: 3px solid rgb(211, 255, 207);
    position: absolute;
    bottom: 6px;
    /* border-radius: 25px; */
    cursor: pointer;
}
.circle {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #ff8800;
    position: relative;
    bottom: 10px;
    left: -1%;
    transition: left 0.5s;
}
#playP i{
    cursor: pointer;
}
.above-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.song-button i{
  height: 54px;
  width: 54px;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* display: grid; */
  place-items: center;
  background: rgba(0,0,0,0.18);
  box-shadow: 0 6px 14px rgba(12,-14,8.45);
}
.song-info1 {
    position: absolute;
    top: 10px;
    left: 10px;
  flex: 1 1 auto; 
  min-width: 0;        
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
}
.song-time{
    position: absolute;
    right: 25px;
    bottom: 20px;
    font-weight: 800;
  flex: 0 0 auto;
  margin-left: 8px;
  white-space: nowrap;
}
@media (max-width: 500px) {

    body {
        font-size: 12px;
    }
    .play1 i {
    padding: 5px;
    background-color: #1DB954;
    border-radius: 50%;
    opacity: 0;
}
.search {
      position: relative;
      width: 10px;
      margin-left: 60px;
      margin-top: 10px;
      margin-bottom: 10px;
    }

    .search input {
      width: 100%;
      padding: 8px 37px;
      font-size: 16px;
      border: 2px solid #1DB954;
      border-radius: 40px;
      box-sizing: border-box;
      opacity: 0;
    }
    .search i {
      position: absolute;
      top: 50%;
      left: 0px;
      transform: translateY(-67%) translateX(-200%);
      font-size: 16px;
      color: #ffffff;
      pointer-events: none;
      background-color: #1DB954; 
      padding: 10px;
      border-radius: 50%;
      cursor: pointer;
    }
    .song-button {
        position: relative;
        left: 0;
        display: flex;
        justify-content: flex-start;
        gap: 10px;
    }

    .song-time {
        font-size: 10px;
        color: white;
    }

    .song-info1 {
        max-width: 100%;
        color: white;
    }
    .logo {
        margin-left: 155px;
    }
    .nav i:nth-child(1){
        position: absolute;
        left: 70px;
        top: 25px;
    }
    .nav i:nth-child(2){
        position: absolute;
        left: 120px;
        top: 25px;
    }
    .home ul{
        display: flex;
        gap: 55%;
        margin: 0 10px;
    }
    .home ul li{
        font-size: 16px;
    }

    .left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: transparent;
        backdrop-filter: blur(10px);
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 10px;
    }
    .music {
        display: none;
    }
    .left.active {
        left: 0;
    }
    .hamburger {
        position: fixed;
        top: 15px;
        left: 15px;
        font-size: 24px;
        color: white;
        z-index: 1100;
        cursor: pointer;
    }

    .right {
        width: 100%;
        margin: 0;
    }
    .header > * {
        padding: 10px;
    }
    .card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .card {
        height: 200px;
        width: 29%;
        margin: 5px;
    }

    .card h2 {
        font-size: 10px;
        font-weight: 900;
    }

    .card p {
        font-size: 9px;
    }
    .play {
    position: absolute;
    right: 7%;
    top: 38%;
    font-size: 10px;
    background-color: #1DB954;
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: all ease .5s;
}
    .playbar {
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        max-width: 720px;
        padding: 26px 16px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(180deg, rgba(0, 255, 89, 0.645), rgba(15, 114, 15, 0.35));
        backdrop-filter: blur(16px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
    }

    .song-button i {
        font-size: 44px;
        color: #ffffff;
        padding: 6px;
        border-radius: 10px;
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        background: rgba(0, 0, 0, 0.232);
        box-shadow: 0 6px 14px rgba(12,-14,8.45);
    }

    .song-button i:hover {
        transform: scale(1.1);
    }

    .song-info1 {
    font-weight: 600;
    font-size: 12px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-weight: 700;
    position: relative;
}
    .song-time {
        font-size: 11px;
        color: #e9f7ee;
        min-width: 80px;
        text-align: right;
    }

    .song-list {
        height: auto;
    }
    .footer {
        flex-wrap: wrap;
        gap: 5px;
        font-size: 8px;
    }
    .buttons :nth-child(1){
    padding: 1px;
    background-color: transparent;
    color: white;
    width: 50px;
    border-radius: 40px;
    border: none;
    font-weight: 400;
    transition: all ease 0.1s;
}
.buttons :nth-child(2){
    padding: 5px;
    width: 55px;
    border-radius: 40px;
    border: none;
    font-weight: 400;
    transition: all ease 0.2s;

}
.seekbar{
    position: absolute;
    bottom: -3px;
    border: 3px solid rgb(197, 255, 198);
    margin: 10px 0px;
    border-radius: 25px;
}
.circle{
    position: relative;
    left: -1%;
    bottom: 7px;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: #ffa600;
}
.song-time {
    position: absolute;
    bottom: 25px;
    right: 17px;
}
.song-info1 {
    font-weight: 600;
    font-size: 12px;
    position: absolute;
    top: 5%;
    left: 5%;
    width: 100%;
}
.library {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 210px); 
    overflow: hidden;
    background: linear-gradient(180deg, rgba(59, 59, 59, 0.75), rgba(89, 89, 89, 0.75));
}

}
