/* Google Font 'Poppins'  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color:#020528;
    font-family: 'Poppins' , sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 100px;
}

header {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding-bottom: 120px;
}

header .side_menu, .main_content {
    position: relative;
    width: 25%;
    background-color: #111727;
    box-shadow: 5px 0px 2px #090f1f;
    color: #fff;
    padding:20px;
}

header .main_content {
    width: 75%;
    background: #0b1320;
    padding:30px;
    padding-left:15px;
}

/*Playlist, lyrics with icons*/
header .side_menu h4{
    color: #4c5262;
    margin:15px;
    cursor: pointer;
}

header .side_menu h4:hover {
color: red;
}

.bi-pencil-fill, .bi-music-note-beamed {
    margin-right:20px;
}

header .side_nav .active {
color:#AF5EFF;
}

header .menu_song img {
width: 50px;
height: 50px;
margin-left: 25px;
margin-right:10px;
}


header .popular_songs .menu_song li {
    display:flex;
    overflow-x:auto;
}

/* Track List on the site */
header .side_menu .menu_song li{
    position: relative;
    list-style-type: none;
    padding: 5px 0px 5px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .3s linear;
    color: #4c5262;
}

header .side_menu .menu_song li:hover {
    background: rgb(105, 105, 170, .1);
}

header .side_menu .menu_song li h5{
    color: white;
    margin-right: auto;
    flex: 1;
}

header .side_menu .menu_song li i{
    color: white;
    font-size: 18px;
    margin-left: 10px;
}

header .side_menu .menu_song li i:hover{
    color: #AF5EFF;
    transform: scale(1.1);
}

header .menu_song .subtitle {
    color:#4c5262;
}

/* NAVGIATIONS  Tabs */
header .main_content nav ul {
    list-style:none;
    font-weight:bold;
    display:flex;
    height:10%;
    align-items: center;
    font-size: 20px;
}

/* NAVGIATIONS Link itself */
header .main_content nav ul li {
    list-style: none;
}

header .main_content nav ul a {
    text-decoration:none;
    margin-right:30px;
    transition:.3s linear;
    cursor:pointer;
    color: #4c5262;
}

header .main_content nav ul a:hover {
    color: #AF5EFF;
}

/* Banner should always be visible */
header .main_content .banner {
    position: relative;
    z-index: 1;
}

/*ARTIST PROFILE*/
header .main_content h1 {
    padding-top:15px;
    padding-bottom:15x;
    color: #AF5EFF;
}

header .main_content p {
    color: #4c5262;
    font-size:10px;
}

/* BUTTONS */
button {
    margin-left:10px;
    width:150px;
    height:45px;
    border: 2px solid #AF5EFF;
    outline: none;
    background-color:#AF5EFF;
    border-radius: 20px;
    color: white;
    transition: .3s linear;
    cursor: pointer;
    font-weight:bold;
    margin-bottom:20px;
}

button:hover {
    background-color: transparent;
    color: #AF5EFF;
}

button:nth-child(2), button:nth-child(3) {
width: 50px;
height:45px;
background-color: transparent;
color: #AF5EFF;
}

button:nth-child(2):hover, button:nth-child(3):hover {
    background-color: #AF5EFF;
    color: white;
}

header .popular_songs {
    display:flex;
}


/* Bottom play bar */

header .master_play {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    min-width: 900px;
    height: 70px;
    background-color: #AF5EFF;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    gap: 5px;
}

header .master_play img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    flex-shrink: 0;
}

header .master_play h5 {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 130px;
    margin: 0 8px 0 8px;
    font-size: 13px;
}

header .master_play .icon {
font-size:20px;
}

header .main_content .popular_song {
    width: 90%;
    height: auto;
    /* border: 1px solid #fff; */
    margin: auto;
    margin-top: 15px;
}
header .main_content .popular_song .h4{
   display: flex;
   align-items: center;
   justify-content: space-between;
}
header .main_content .popular_song .h4 .bi{
   color: #a4a8b4;
   cursor: pointer;
   transition: .3s linear;
}
header .main_content .popular_song .h4 .bi:hover{
   color: #fff;
}

header .main_content .popular_song .pop_song {
    width: 100%;
    height: 150px;
    margin-top: 15px;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
}
header .main_content .popular_song .pop_song::-webkit-scrollbar{
    display: none;
}
header .main_content .popular_song .pop_song li{
    min-width: 100px;
    height: 140px;
    list-style-type: none;
    margin-right: 10px;
    transition: .3s linear;
}
header .main_content .popular_song .pop_song li:hover{
    background: rgb(105, 105, 170,.1);
}
header .main_content .popular_song .pop_song li .img_play{
   position: relative;
   width: 120px;
   height: 120px;
   display: flex;
   align-items: center;
   justify-content: center;
}
header .main_content .popular_song .pop_song li .img_play img{
  width: 100%;
  height: 100%;
  padding:3px;
}
header .main_content .popular_song .pop_song li .img_play .bi{
  position: absolute;
  font-size: 24px;
  cursor: pointer;
  transition: .3s linear;
  opacity: 0;
}
header .main_content .popular_song .pop_song li .img_play:hover .bi{
  opacity: 1;
}
header .main_content .popular_song .pop_song li h5{
  padding: 5px 0px 0px 10px;
  padding-bottom:10px;
  line-height: 15px;
  font-size: 10px;
}
header .main_content .popular_song .pop_song li h5 .subtitle{
  font-size: 9px;
  color: #4c5262;
}

header .albumcontainer {
    padding-left: 20px;
    border:2px solid white
}

header .albumcontainer .albums {
    display:flex;
}

.img2 {
    width:205px;
    height:205px;
    margin-left:-20px;
    margin-right:30px;
    margin-top:10px;
}

/* Hide mobile player buttons on desktop */
.mobile-player-buttons {
    display: none;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #AF5EFF;
    border: none;
    border-radius: 5px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

.hamburger span {
    width: 20px;
    height: 2.5px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
    header {
        width: 95%;
    }

    header .master_play {
        width: 90%;
        min-width: unset;
        gap: 3px;
        padding: 0 10px;
    }

    header .master_play h5 {
        font-size: 11px;
        min-width: 80px;
        max-width: 100px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 10px;
        padding-bottom: 80px;
    }

    header {
        width: 100%;
        flex-direction: column;
        padding-bottom: 80px;
    }

    .hamburger {
        display: flex;
    }

    /* Sidebar Navigation */
    header .side_menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 999;
        transition: 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 80px;
    }

    header .side_menu.active {
        left: 0;
    }

    header .side_menu h1 {
        font-size: 24px;
    }

    header .side_menu .menu_song {
        margin-top: 20px;
    }

    header .side_menu .menu_song li {
        padding: 5px 0px 5px 10px;
        margin-bottom: 5px;
    }

    header .side_menu .menu_song img {
        width: 35px;
        height: 35px;
        margin-left: 15px;
        margin-right: 8px;
    }

    header .side_menu .menu_song li h5 {
        font-size: 11px;
    }

    header .side_menu .menu_song li .subtitle {
        font-size: 9px;
    }

    header .side_menu .menu_song li span {
        font-size: 10px;
    }

    header .side_menu .menu_song li i {
        font-size: 14px;
    }

    /* Hide Lyrics and About buttons in sidebar on mobile */
    header .side_menu #lyricsButton,
    header .side_menu #songsButton {
        display: none;
    }

    /* Main Content */
    header .main_content {
        width: 100%;
        padding: 15px;
        padding-top: 60px;
    }

    header .main_content nav ul {
        flex-wrap: wrap;
        font-size: 16px;
        justify-content: center;
    }

    header .main_content nav ul a {
        margin-right: 15px;
        margin-bottom: 10px;
    }

    /* Banner */
    header .main_content .banner {
        margin-top: 15px !important;
    }

    header .main_content .artistprofile {
        padding: 20px !important;
        text-align: center;
    }

    header .main_content h1 {
        font-size: 24px;
    }

    header .main_content p {
        font-size: 12px;
    }

    .buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    button {
        margin-left: 0;
        width: 120px;
        height: 40px;
        font-size: 14px;
    }

    button:nth-child(2), button:nth-child(3) {
        width: 50px;
        height: 40px;
    }

    /* About Me Section */
    #aboutMeContent {
        padding: 10px;
    }

    #aboutMeContent h2 {
        font-size: 20px;
    }

    #aboutMeContent p {
        font-size: 14px !important;
    }

    /* Popular Songs */
    header .main_content .popular_song {
        width: 100%;
    }

    header .main_content .popular_song .h4 {
        gap: 10px;
    }

    header .main_content .popular_song .h4 h4 {
        font-size: 16px !important;
        flex: 1;
        max-width: calc(100% - 80px);
    }

    header .main_content .popular_song .h4 .btn_s {
        flex-shrink: 0;
    }

    header .main_content .popular_song .pop_song {
        height: 130px;
    }

    header .main_content .popular_song .pop_song li {
        min-width: 90px;
        height: 120px;
    }

    header .main_content .popular_song .pop_song li .img_play {
        width: 100px;
        height: 100px;
    }

    /* Master Play Bar */
    header .master_play {
        width: 95%;
        min-width: unset;
        height: 65px;
        padding: 0 5px;
        gap: 2px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    header .master_play img {
        width: 35px;
        height: 35px;
        margin-right: 3px;
    }

    header .master_play h5 {
        font-size: 9px;
        min-width: 50px;
        max-width: 65px;
        margin: 0 3px;
    }

    header .master_play .icon {
        font-size: 16px;
        margin-right: 2px;
    }

    header .master_play .icon i {
        margin: 0 2px;
    }

    header .master_play span {
        font-size: 9px;
        margin: 0 2px;
    }

    header .master_play .bar {
        flex: 0 1 auto;
        min-width: 60px;
        max-width: 100px;
        margin: 0 3px;
    }

    /* Hide volume controls on mobile */
    header .master_play .vol {
        display: none;
    }

    /* Hide end duration on mobile */
    header .master_play #currentEnd {
        display: none;
    }

    /* Mobile player buttons - hidden by default, shown only on mobile */
    .mobile-player-buttons {
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: center;
        margin-left: auto;
    }

    .mobile-player-buttons button {
        width: 50px;
        height: 20px;
        min-width: unset;
        border-radius: 3px;
        background-color: white;
        border: 1px solid white;
        color: #AF5EFF;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        font-size: 9px;
        font-weight: 600;
    }

    .mobile-player-buttons button:hover {
        background-color: #AF5EFF;
        color: white;
    }

    /* Popup Styles for Mobile */
    #popup > div {
        margin-left: 5% !important;
        width: 90% !important;
        margin-top: 30px !important;
        max-height: 85vh !important;
    }

    #exitButton {
        right: 10px !important;
        top: 10px !important;
        font-size: 32px !important;
    }
}

@media screen and (max-width: 480px) {
    header .side_menu {
        width: 85%;
    }

    header .main_content h1 {
        font-size: 20px;
    }

    header .main_content .popular_song .h4 h4 {
        font-size: 14px !important;
        max-width: calc(100% - 70px);
    }

    header .main_content .popular_song .pop_song li {
        min-width: 80px;
        height: 110px;
    }

    header .main_content .popular_song .pop_song li .img_play {
        width: 85px;
        height: 85px;
    }

    header .main_content .popular_song .pop_song li h5 {
        font-size: 9px;
    }

    button {
        width: 100px;
        height: 38px;
        font-size: 12px;
    }

    /* Simplified Master Play for Small Screens */
    header .master_play {
        height: 60px;
        padding: 0 5px;
    }

    header .master_play img {
        width: 35px;
        height: 35px;
    }

    header .master_play h5 {
        font-size: 9px;
        min-width: 50px;
        max-width: 70px;
    }

    header .master_play .icon {
        font-size: 16px;
    }

    header .master_play span {
        font-size: 9px;
    }

    header .master_play .bar {
        min-width: 60px;
    }

    /* Volume controls already hidden in 768px breakpoint */
}


