html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: #fff;

}

html {
    overflow-y: none;
}

* {
    font-family: "DM Sans", sans-serif;
}

.logo svg {
    color: #fff !important;
    fill: #fff !important;
}

.logo{
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    align-items: center;
    padding: 10px 20px;
    /* border: 2px solid #1db954; */
    height: 5vh;
    width: 90vw;
    margin: auto;
}

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

.home {
    width: 100px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121212;
    border-radius: 50%;
    cursor: pointer;
    gap: 5px;
}

.allsongs{
    display: block;
}

.bell svg {
    width: 24px;
    height: 24px;
    color: #fff !important;
    fill: #fff !important;
    cursor: pointer;
}

.profile {
    position: relative;
    z-index: 30;
}

.profile img {
    width: 20px;
    height: 20px;
    border-radius: 39px;
    border: 4px solid #393939;
}

.profilebox img{
    width: 100px;
    height: 100px;
    border-radius: 39px;
    border: 4px solid #393939;
}

.end {
    gap: 10px;
}

.search-bar {
    border: 0px solid #1db954;
    background-color: #121212;
    width: 300px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.bar {
    width: 70%;
    height: 30px;
    background-color: #121212;
    color: #fff;
    border-radius: 10px;
    border: none;
    padding-left: 5px;
    outline: none;
}

.end {
    gap: 20px;
}


.mid {
    height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.mid .left {
    width: 20%;
    height: 95%;
    background-color: #121212;
    /* padding: 10px; */
    overflow-y: auto;
    margin: 5px 0 5px 5px;
    position: relative;
    overflow-x: hidden;
}

.mid .right {
    width: 78vw;
    height: 95%;
    background-color: #121212;
    /* padding: 10px; */
    overflow-y: auto;
    margin: 5px;
    margin-right: 7px;
    scrollbar-width: none;
}

/* Sidebar styles */
.library-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-bottom: 10px;
    padding: 0 10px;
    border-bottom: #000000 1px solid;
    position: sticky;
    top: 0px;
    background-color: #121212;
    z-index: 3;
    box-shadow: -1px 11px 12px rgb(0 0 0 / 61%);
}

.create-btn {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: large;
}

.create-btn:hover {
    background-color: #3b3a3a;

}

.nav2 {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
    padding-bottom: 20px;
    gap: 10px;
    border-bottom: #000000 1px solid;
}

.library-icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.library-title {
    white-space: nowrap;
}

/* left side */
.playlist-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.playlist {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    width: 90%;
    height: 60px;
    background-color: #121212;

    cursor: pointer;
    overflow: hidden;
    color: white;
    position: relative;
    margin: 4px auto;
    margin-left: 5px ;
    margin-right: 5px;
    transition: 1s ease-out;
}

.playlist:hover {
    background-color: #282828;
}

.playlist img {
    height: 90%;
    border-radius: 8px;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.playlist:hover img {
    opacity: 0.3;

}

.playlist::before {
    content: '▶';
    font-size: 26px;
    color: white;
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.playlist.playing::before {
    content: '⏸';
}

.playlist:hover::before {
    opacity: 1;

}

.playlist div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.playlist h2 {
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}

.playlist p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}



/* right songs */
.right-header {
    position: sticky;
    top: 0px;
    background-color: #121212;
    z-index: 3;
    padding-top: 20px;
    box-shadow: -1px 11px 12px rgb(0 0 0 / 61%);
}

.card {
    width: 179px;
    height: 250px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: all 2s;
    gap: 5px;
}

.cardContainer {
    scroll-behavior: smooth;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    padding-left: 5px;
    padding-top: 10px;
}

.card h2 {
    margin: 0px;
    padding: 0px;
    margin-left: 5px;
}

.card p {
    margin: 0px;
    padding: 0px;
    margin-left: 5px;
    color: #b3b3b3;
}

.card img {
    width: 80%;
    border-radius: 10px;
    object-fit: contain;
    margin-top: 10px;

}

.card:hover {
    background-color: #282828;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.card-play-btn {
    position: absolute;
    top: 115px;
    right: 24px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.card-play-btn svg {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 50%;
    box-shadow: #000000 0px 0px 10px;
}

/* Show play button on hover */
.card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    background-color: #282828;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-play-btn:hover {
    scale: 1.1;
}









/* right footer */
.spotify-footer {
    background: #121212;
    color: #b3b3b3;
    font-size: 15px;
    padding: 40px 0 20px 0;
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    flex-wrap: wrap;
    font-size: larger;
}

.footer-col {
    min-width: 160px;
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    font-weight: bolder;
    text-decoration: underline;
}

.footer-socials {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #232323;
    border-radius: 50%;
    transition: background 0.2s ease-in-out;
}

.footer-socials a img {
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(2);
    object-fit: contain;
}

.footer-socials a:hover {
    background: #1db954;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(75deg) brightness(1.2);
}

.spotify-footer hr {
    border: none;
    border-top: 1px solid #282828;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1db954;
}

.footer-copyright {
    font-size: 13px;
    color: #b3b3b3;
}



/* player */

.player {
    position: fixed;
    width: 99%;
    height: 10vh;
    justify-content: center;
    background-color: black;
}
.abovebar{
    position: absolute;
    justify-content: space-between;
    align-items: center;
    width: 90%;

}

.player .playingbuts {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 40px;

}

.playingbuts div {
    cursor: pointer;


}

.playingbuts div img {
    width: 30px;
    height: 30px;
    padding: 10px;
}

.playingbuts div img:hover {
    background-color: #ededed;
    padding: 10px;
    border-radius: 30px;
}

.seekbar {
    height: 4px;
    width: 95%;
    background: rgb(133, 133, 133);
    border-radius: 10px;
    position: absolute;
    bottom: 40px;
    margin: 6px;
    cursor: pointer;
    position: absolute;
    bottom: 5px;
    right: 2.5%;
}

.circle {
    width: 13px;
    height: 13px;
    border-radius: 13px;
    background-color: rgb(255, 255, 255);
    position: relative;
    bottom: 5px;
    left: 0%;
    transition: left 0.5s;
}

.songinfo {

    bottom: 50px;
    left: 20px;
    color: white;
    font-size: 16px;
        margin-left: 5px;
}
.songtime {
    bottom: 50px;
    right: 20px;
    color: white;
    font-size: 16px;
            margin-right: 5px;
}

.cross{
    display: none;
}
.ham{
    display: none;
}

/* Style the volume range width */
.vol-range {
    width: 20px;
    accent-color: #1db954; /* Modern browsers: Spotify green */
    background: transparent;
    margin-left: 10px;
}

/* For Webkit browsers (Chrome, Edge, Safari) */
.vol-range::-webkit-slider-thumb {
    background: #1db954;
}


/* For Firefox */
.vol-range::-moz-range-thumb {
    background: #1db954;
}
.vol-range::-moz-range-track {
    background: #393939;
    height: 4px;
    border-radius: 2px;
}

/* For IE */
.vol-range::-ms-fill-lower,
.vol-range::-ms-fill-upper {
    background: #393939;
}
.vol-range::-ms-thumb {
    background: #1db954;
} 

.vol-range {
    width: 200px;
}

@media screen and (max-width: 1024px) {
    .card{
        font-size: 50%;
    }
    .logotext{

    display: none !important;

}
    .allsongs{
        display: none !important;
    }
    .home{
        width: 25px;
    }
    .mid .left {
        position:absolute;
        left: -100%;
        width: 97vw;
        height: 79vh;
        z-index: 20;
        margin: 0px;
        margin-top: 50px;
        top: 20px;
        transition: 1s ease-in-out;
    }

    .player{
        position: fixed;
        bottom: 5px;
        height: 10vh;
        margin-left: 10px;
    }
    .mid .right{
        width: 90vw;
    }
    .card{
        width: 150px;
    height: 200px;
    }
    .ham{
        display: block;
        cursor: pointer;
    }
    .cross{
        display: block;
        cursor: pointer;
        margin: 10px;
    }
    .footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    font-size: 10px;
}
.right-header {
    position: sticky;
    top: 0px;
    display: flex;
    justify-content: space-between;
    padding: 5px;
}

.abovebar .songinfo{
    font-size: 7px;
}
.abovebar .songtime{
    font-size: 7px;
}
.player .playingbuts {
    display: flex;
    justify-content: center;

    gap: 0px;


}

.vol-range {
    width: 70px; 
    accent-color: #1db954; 
    background: transparent;
    margin-left: 10px;
}

.profilebox {
    width: 90vw;
    max-width: 95vw;
    height: auto;
    max-height: 80vh;
    top: 60px;
    right: 5vw;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 8px;
  scrollbar-width: 10%;     
  -ms-overflow-style: none; 
  }

.profile-about {
  margin-top: 10px;
  text-align: center;
  font-size: 10px !important;
  color: #1db954;
  position: relative;
  overflow: hidden;
  height: 1.5em; 
}
.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;

}
}

@media screen and (min-width:1024px) {
    .mid .left {
    width: 20%;
    height: 95%;
    background-color: #121212;
    /* padding: 10px; */
    overflow-y: auto;
    margin: 5px 0 5px 5px;
    position: relative;
    overflow-x: hidden;
}

.vol-range {
    width: 120px;
    accent-color: #1db954; 
    background: transparent;
    margin-left: 10px;
}
}


.profilebox{
    position: absolute;
    top: 70px;
    right: 40px;
    background-color: #121212;
    padding: 10px;
    border-radius: 5px;
    height: 60vh;
    width: 50vw;
    z-index: 30;
    box-shadow: -1px 0px 20px 14px rgba(0, 0, 0, 0.591);
    display: none;

}

.profile-stats {
        z-index: 30;
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.profile-stats .stat {
        z-index: 30;
  background: #121212;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}
.profile-stats .stat h3 {
        z-index: 30;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #999;
}
.profile-stats .stat p {
        z-index: 30;
  font-size: 1.1rem;
  font-weight: bold;
}
.profilebox.open {
      display: flex;
    flex-direction: column;
    align-items: center;
}
.profile .toggletip.close{
    display: none
}


.profile-about {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #1db954;
  position: relative;
  overflow: hidden;
      margin-bottom: 2rem;
  height: 1.5em;
}

.typewriter {
  display: inline-block;

}

.cursor {
  display: inline-block;
  animation: blink 0.7s steps(1) infinite;
  color: #1db954;
  margin-left: 2px;

}


@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


