@media (max-height: 601px) {
    .about_links {
      opacity: 0;
    }

    .links{
      top: 8.5vh !important;
    }

}

@media (max-width: 1024px) {
  .links {
    display: none;
    position: absolute;
    top: 45px;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .links.show {
    display: flex;
  }

  .links ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .links ul li a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding-top: 12px;
    display: flex;
    width: 140px;
    padding: 8px 8px 6px 4px;
  }

  .account ul li a {
    text-decoration: none;
    color: #aaa;
    font-size: clamp(10px, 1.8vw, 14px);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: clamp(10px, 1.2vw, 14px) clamp(4px, 0.6vw, 17px);
  }

  .links ul li img {
    display: flex;
  }

  .links ul li:hover {
    background-color: #2a2a2a;
    border-radius: 4px;
  }

  .menu_toggle {
    display: flex;
    align-items: center;
  }

  .links {
    transition: all 0.3s ease;
  }

  .login_btn a {
    color: black !important;
    font-size: 1.5vw !important;
    font-weight: 600 !important;
  }
}

@media (min-width: 1920px){
  .noha_info {
    width: 15vw;
  }
}

@media (min-width: 1366px) and (max-width: 1370px){
  .body{
    min-height: 785;
  }
  .noha_info {
    width: 10.2vw;
  }
  .noha_playnow{
    width: 115px;
  }
}

/* 1. All tablets (portrait + landscape) */
@media (min-width: 600px) and (max-width: 1024px) {
  .links {
    display: none;
    position: absolute;
    top: 6.3vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .login_btn a {
    color: black !important;
    font-size: 2vw !important;
    font-weight: 600 !important;
  }

  .login_btn {
    width: 12vw;
    height: 45px;
  }

  .search_bar {
    height: 45px;
  }

  .sign_up {
    width: 97.5vw;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 50vw;
    height: 82vh;
    left: -100%;
    top: 7.7vh;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
  }

  .Content_section {
    width: 97.5vw;
    margin: 4px 5px 10px 10px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 22.1vw;
  }

  .playbar {
    width: 94vw;
    right: 2.7vw;
    height: 14vh;
    z-index: 0;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
  }

  .noha_playbar_info {
    width: 30vw;
    height: 4vh;
    padding-top: 11px;
  }

  .playcontrol {
    width: 18vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 29vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    margin-right: 1vw;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up button {
    font-size: 1rem;
  }

  .sign_up_text {
    width: 70vw;
  }

  .sign_up h4 {
    font-size: 1rem;
  }

  .sign_up h5 {
    font-size: 1.2rem;
  }

}

/* For mobile */
@media (min-width: 519px) and (max-width: 599px){
  .links {
    display: none;
    position: absolute;
    top: 6.5vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .link_bar{
    width: 70vw !important;
  }

  .login_btn{
    width: 70px;
  }

  .login_btn a{
    font-size: 0.7rem !important;
  }

  .search_bar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 90px !important;
    padding: 6px !important;
    margin-top: 13px;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    cursor: pointer;
  }

  .search_bar input,
  .search_bar .browse_icon {
    display: none !important;
  }

  .search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search_bar .search_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Expanded version — same style as original, smaller width */
  .search_bar.expanded {
    width: clamp(180px, 35vw, 220px) !important;
    height: auto;
    border-radius: 50px;
    padding: 8px 17px 6px 14px;
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #1f1f1f;
    overflow: visible;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  .search_bar.expanded ~ .link_bar .account li:nth-child(-n+2) {
    display: none;
  }

  .search_bar.expanded .search_icon img {
    width: 1.5vw;
    min-width: 16px;
    max-width: 24px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar.expanded input {
    flex: 1 1 0;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    margin-left: -14px;
    font-size: 1rem;
    padding: 12px;
    height: 100%;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
  }

  .search_bar.expanded .browse_icon {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding-inline: 12px 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.548);
    color: gray;
    font-weight: bold;
  }

  .search_bar.expanded .browse_icon img {
    width: 1.5vw;
    max-width: 24px;
    min-width: 16px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar input[type="search"]::-webkit-search-cancel-button {
    margin-right: -22px;
  }

  /* ------------------ */

  .navbar{
    height: 7.4vh;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 95vw;
    height: 81.7vh;
    left: -100%;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
    margin: 4px 4px 10px 9px;
  }

  .Content_section {
    width: 95.5vw;
    margin: 4px 5px 10px 10px;
    padding: 25px 5px 25px 10px;
  }

  .artist_showall{
    margin-left: 50px;
  }
  
  .Content_section::-webkit-scrollbar {
    width: 0px;
  }

  .trending_showall{
    margin-left: 50px;
  }

  .trending_showall h1{

  }

  .popular_album_showall{
    margin-left: 50px;
  }

  .popular_playlist_showall{
    margin-left: 50px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 55vw;
  }

  .playbar {
    width: 92vw;
    right: 4vw;
    height: 22vh;
    z-index: 0;
    bottom: 11vh;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
  }

  .noha_playbar_info {
    width: 73vw;
    height: 4vh;
    padding-top: 11px;
    text-align: center;
  }

  .playcontrol {
    width: 32vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 73vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1vw;
  }

  .volume_seekbar{
    position: relative;
    width: 20vw;
    height: 5px;
    background-color: #383838;
    border-radius: 10px;
    cursor: pointer;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up{
    width: 95.5vw;
  }

  .sign_up button {
    font-size: 1rem;
  }

  .sign_up_text {
    width: 70vw;
  }

}

@media (min-width: 479px) and (max-width: 520px){
  .links {
    display: none;
    position: absolute;
    top: 6.5vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .link_bar{
    width: 70vw !important;
  }

  .login_btn{
    width: 70px;
  }

  .login_btn a{
    font-size: 0.7rem !important;
  }

  .search_bar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 90px !important;
    padding: 6px !important;
    margin-top: 13px;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    cursor: pointer;
  }

  .search_bar input,
  .search_bar .browse_icon {
    display: none !important;
  }

  .search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search_bar .search_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Expanded version — same style as original, smaller width */
  .search_bar.expanded {
    width: clamp(180px, 35vw, 220px) !important;
    height: auto;
    border-radius: 50px;
    padding: 8px 17px 6px 14px;
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #1f1f1f;
    overflow: visible;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  .search_bar.expanded ~ .link_bar .account li:nth-child(-n+2) {
    display: none;
  }

  .search_bar.expanded .search_icon img {
    width: 1.5vw;
    min-width: 16px;
    max-width: 24px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar.expanded input {
    flex: 1 1 0;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    margin-left: -14px;
    font-size: 1rem;
    padding: 12px;
    height: 100%;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
  }

  .search_bar.expanded .browse_icon {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding-inline: 12px 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.548);
    color: gray;
    font-weight: bold;
  }

  .search_bar.expanded .browse_icon img {
    width: 1.5vw;
    max-width: 24px;
    min-width: 16px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar input[type="search"]::-webkit-search-cancel-button {
    margin-right: -22px;
  }

  /* ------------------ */

  .navbar{
    height: 7.4vh;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 95vw;
    height: 81.7vh;
    left: -100%;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
    margin: 4px 4px 10px 9px;
  }

  .Content_section {
    width: 95.5vw;
    margin: 4px 5px 10px 10px;
    padding: 25px 5px 25px 10px;
  }

  .artist_showall{
    margin-left: 30px;
  }
  
  .Content_section::-webkit-scrollbar {
    width: 0px;
  }

  .trending_showall{
    margin-left: 30px;
  }

  .trending_showall h1{

  }

  .popular_album_showall{
    margin-left: 30px;
  }

  .popular_playlist_showall{
    margin-left: 30px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 52vw;
  }

  .playbar {
    width: 92vw;
    right: 4vw;
    height: 22vh;
    z-index: 0;
    bottom: 11vh;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
  }

  .noha_playbar_info {
    width: 73vw;
    height: 4vh;
    padding-top: 11px;
    text-align: center;
  }

  .playcontrol {
    width: 32vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 73vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1vw;
  }

  .volume_seekbar{
    position: relative;
    width: 20vw;
    height: 5px;
    background-color: #383838;
    border-radius: 10px;
    cursor: pointer;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up{
    width: 95.5vw;
  }

  .sign_up button {
    font-size: 1rem;
  }

  .sign_up_text {
    width: 70vw;
  }

}

@media (min-width: 439px) and (max-width: 480px){
  .links {
    display: none;
    position: absolute;
    top: 6.5vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .link_bar{
    width: 70vw !important;
  }

  .login_btn{
    width: 70px;
  }

  .login_btn a{
    font-size: 0.7rem !important;
  }

  .search_bar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 90px !important;
    padding: 6px !important;
    margin-top: 13px;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    cursor: pointer;
  }

  .search_bar input,
  .search_bar .browse_icon {
    display: none !important;
  }

  .search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search_bar .search_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Expanded version — same style as original, smaller width */
  .search_bar.expanded {
    width: clamp(180px, 35vw, 220px) !important;
    height: auto;
    border-radius: 50px;
    padding: 8px 17px 6px 14px;
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #1f1f1f;
    overflow: visible;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  .search_bar.expanded ~ .link_bar .account li:nth-child(-n+2) {
    display: none;
  }

  .search_bar.expanded .search_icon img {
    width: 1.5vw;
    min-width: 16px;
    max-width: 24px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar.expanded input {
    flex: 1 1 0;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    margin-left: -14px;
    font-size: 1rem;
    padding: 12px;
    height: 100%;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
  }

  .search_bar.expanded .browse_icon {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding-inline: 12px 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.548);
    color: gray;
    font-weight: bold;
  }

  .search_bar.expanded .browse_icon img {
    width: 1.5vw;
    max-width: 24px;
    min-width: 16px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar input[type="search"]::-webkit-search-cancel-button {
    margin-right: -22px;
  }

  /* ------------------ */

  .navbar{
    height: 7.4vh;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 95vw;
    height: 81.7vh;
    left: -100%;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
    margin: 4px 4px 10px 9px;
  }

  .Content_section {
    width: 95.5vw;
    margin: 4px 5px 10px 10px;
    padding: 25px 5px 25px 10px;
  }

  .artist_showall{
    margin-left: 10px;
  }
  
  .Content_section::-webkit-scrollbar {
    width: 0px;
  }

  .trending_showall{
    margin-left: 10px;
  }

  .trending_showall h1{

  }

  .popular_album_showall{
    margin-left: 10px;
  }

  .popular_playlist_showall{
    margin-left: 10px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 48vw;
  }

  .playbar {
    width: 92vw;
    right: 4vw;
    height: 22vh;
    z-index: 0;
    bottom: 11vh;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
  }

  .noha_playbar_info {
    width: 73vw;
    height: 4vh;
    padding-top: 11px;
    text-align: center;
  }

  .playcontrol {
    width: 32vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 73vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1vw;
  }

  .volume_seekbar{
    position: relative;
    width: 20vw;
    height: 5px;
    background-color: #383838;
    border-radius: 10px;
    cursor: pointer;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up{
    width: 95.5vw;
  }

  .sign_up button {
    font-size: 1rem;
  }

  .sign_up_text {
    width: 70vw;
  }

}

@media (min-width: 411px) and (max-width: 440px) {
  .links {
    display: none;
    position: absolute;
    top: 6.5vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .link_bar{
    width: 70vw !important;
  }

  .login_btn{
    width: 70px;
  }

  .login_btn a{
    font-size: 0.7rem !important;
  }

  .search_bar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 90px !important;
    padding: 6px !important;
    margin-top: 13px;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    cursor: pointer;
  }

  .search_bar input,
  .search_bar .browse_icon {
    display: none !important;
  }

  .search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search_bar .search_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Expanded version — same style as original, smaller width */
  .search_bar.expanded {
    width: clamp(180px, 35vw, 220px) !important;
    height: auto;
    border-radius: 50px;
    padding: 8px 17px 6px 14px;
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #1f1f1f;
    overflow: visible;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  .search_bar.expanded ~ .link_bar .account li:nth-child(-n+2) {
    display: none;
  }

  .search_bar.expanded .search_icon img {
    width: 1.5vw;
    min-width: 16px;
    max-width: 24px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar.expanded input {
    flex: 1 1 0;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    margin-left: -14px;
    font-size: 1rem;
    padding: 12px;
    height: 100%;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
  }

  .search_bar.expanded .browse_icon {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding-inline: 12px 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.548);
    color: gray;
    font-weight: bold;
  }

  .search_bar.expanded .browse_icon img {
    width: 1.5vw;
    max-width: 24px;
    min-width: 16px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar input[type="search"]::-webkit-search-cancel-button {
    margin-right: -22px;
  }

  /* ------------------ */

  .navbar{
    height: 7.4vh;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 95vw;
    height: 81.7vh;
    left: -100%;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
    margin: 4px 4px 10px 9px;
  }

  .Content_section {
    width: 95.5vw;
    margin: 4px 5px 10px 10px;
    padding: 25px 5px 25px 10px;
  }

  .artist_showall{
    margin-left: -10px;
  }
  
  .Content_section::-webkit-scrollbar {
    width: 0px;
  }

  .trending_showall{
    margin-left: -10px;
  }

  .popular_album_showall{
    margin-left: -10px;
  }

  .popular_playlist_showall{
    margin-left: -10px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 43vw;
  }

  .playbar {
    width: 92vw;
    right: 4vw;
    height: 22vh;
    z-index: 0;
    bottom: 11vh;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
  }

  .noha_playbar_info {
    width: 73vw;
    height: 4vh;
    padding-top: 11px;
    text-align: center;
  }

  .playcontrol {
    width: 32vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 73vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1vw;
  }

  .volume_seekbar{
    position: relative;
    width: 20vw;
    height: 5px;
    background-color: #383838;
    border-radius: 10px;
    cursor: pointer;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up{
    width: 95.5vw;
  }

  .sign_up button {
    font-size: 1rem;
  }

  .sign_up_text {
    width: 70vw;
  }

}

@media (min-width: 389px) and (max-width: 412px) {
  .links {
    display: none;
    position: absolute;
    top: 6.5vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .link_bar{
    width: 70vw !important;
  }

  .login_btn{
    width: 70px;
  }

  .login_btn a{
    font-size: 0.7rem !important;
  }

  .search_bar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 90px !important;
    padding: 6px !important;
    margin-top: 13px;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    cursor: pointer;
  }

  .search_bar input,
  .search_bar .browse_icon {
    display: none !important;
  }

  .search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search_bar .search_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Expanded version — same style as original, smaller width */
  .search_bar.expanded {
    width: clamp(180px, 35vw, 220px) !important;
    height: auto;
    border-radius: 50px;
    padding: 8px 17px 6px 14px;
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #1f1f1f;
    overflow: visible;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  .search_bar.expanded ~ .link_bar .account li:nth-child(-n+2) {
    display: none;
  }

  .search_bar.expanded .search_icon img {
    width: 1.5vw;
    min-width: 16px;
    max-width: 24px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar.expanded input {
    flex: 1 1 0;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    margin-left: -14px;
    font-size: 1rem;
    padding: 12px;
    height: 100%;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
  }

  .search_bar.expanded .browse_icon {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding-inline: 12px 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.548);
    color: gray;
    font-weight: bold;
  }

  .search_bar.expanded .browse_icon img {
    width: 1.5vw;
    max-width: 24px;
    min-width: 16px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar input[type="search"]::-webkit-search-cancel-button {
    margin-right: -22px;
  }

  /* ------------------ */

  .navbar{
    height: 7.4vh;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 95vw;
    height: 81.7vh;
    left: -100%;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
    margin: 4px 4px 10px 9px;
  }

  .Content_section {
    width: 95.5vw;
    margin: 4px 5px 10px 10px;
    padding: 25px 5px 25px 20px;
  }

  .artist_showall{
    margin-left: -10px;
  }
  
  .Content_section::-webkit-scrollbar {
    width: 0px;
  }

  .trending_showall{
    margin-left: -10px;
  }

  .cart{
    position: relative;
    padding: 10px 6px 15px 6px;
    cursor: pointer;
  }

  .profile{
    position: relative;
    padding: 10px 6px 15px 6px;
    cursor: pointer;
  }

  .album{
    position: relative;
    padding: 10px 6px 15px 6px;
    cursor: pointer;
  }

  .playlist{
    position: relative;
    padding: 10px 6px 15px 6px;
    cursor: pointer;
  }

  .trending_showall_carts{
    justify-content: center;
  }

  .popular_album_showall{
    margin-left: -10px;
  }

  .popular_playlist_showall{
    margin-left: -10px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 43vw;
  }

  .playbar {
    width: 92vw;
    right: 4vw;
    height: 22vh;
    z-index: 0;
    bottom: 11vh;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
  }

  .noha_playbar_info {
    width: 73vw;
    height: 4vh;
    padding-top: 11px;
    text-align: center;
  }

  .playcontrol {
    width: 32vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 73vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1vw;
  }

  .volume_seekbar{
    position: relative;
    width: 20vw;
    height: 5px;
    background-color: #383838;
    border-radius: 10px;
    cursor: pointer;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up{
    width: 95.5vw;
  }

  .sign_up button {
    font-size: 0.8rem;
  }

  .sign_up_text {
    width: 70vw;
  }

  .sign_up h4{
    font-size: 0.7rem
  }

  .sign_up h5{
    font-size: 0.7rem;
  }

}

@media (max-width: 390px) {
  .links {
    display: none;
    position: absolute;
    top: 6.5vh;
    right: 8px;
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }

  .link_bar{
    width: 70vw !important;
  }

  .login_btn{
    width: 70px;
  }

  .login_btn a{
    font-size: 0.7rem !important;
  }

  .search_bar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 90px !important;
    padding: 6px !important;
    margin-top: 13px;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    cursor: pointer;
  }

  .search_bar input,
  .search_bar .browse_icon {
    display: none !important;
  }

  .search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search_bar .search_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Expanded version — same style as original, smaller width */
  .search_bar.expanded {
    width: clamp(160px, 35vw, 220px) !important;
    height: auto;
    border-radius: 50px;
    padding: 8px 17px 6px 14px;
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #1f1f1f;
    overflow: visible;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  .account li:nth-child(-n+2) {
    display: none;
  }

  .search_bar.expanded .search_icon img {
    width: 1.5vw;
    min-width: 16px;
    max-width: 24px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar.expanded input {
    flex: 1 1 0;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    margin-left: -14px;
    font-size: 1rem;
    padding: 12px;
    height: 100%;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
  }

  .search_bar.expanded .browse_icon {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding-inline: 12px 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.548);
    color: gray;
    font-weight: bold;
  }

  .search_bar.expanded .browse_icon img {
    width: 1.5vw;
    max-width: 24px;
    min-width: 16px;
    height: auto;
    flex-shrink: 0;
  }

  .search_bar input[type="search"]::-webkit-search-cancel-button {
    margin-right: -22px;
  }

  /* ------------------ */

  .navbar{
    height: 7.4vh;
  }

  .footer_links {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .library_section {
    position: absolute;
    width: 95vw;
    height: 81.7vh;
    left: -100%;
    z-index: 5;
    border: 1px solid #444;
    transition: left 0.5s ease-in-out;
    margin: 4px 4px 10px 9px;
  }

  .Content_section {
    width: 95.5vw;
    margin: 4px 5px 10px 10px;
    padding: 25px 5px 25px 10px;
  }

  .artist_showall{
    margin-left: -10px;
  }
  
  .Content_section::-webkit-scrollbar {
    width: 0px;
  }

  .trending_showall{
    margin-left: -10px;
  }

  .cart{
    position: relative;
    padding: 10px 6px 15px 6px;
    cursor: pointer;
  }

  .trending_showall_carts{
    justify-content: center;
  }

  .popular_album_showall{
    margin-left: -10px;
  }

  .popular_playlist_showall{
    margin-left: -10px;
  }

  .firstlogo {
    display: none;
  }

  .Secondlogo {
    display: flex;
    cursor: pointer;
  }

  .home {
    display: none;
  }

  .library_icon {
    filter: invert(0);
    background-color: #1f1f1f;
    border-radius: 50%;
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .library_icon img {
    width: 26px;
  }

  .noha_info {
    width: 43vw;
  }

  .playbar {
    width: 92vw;
    right: 4vw;
    height: 25vh;
    z-index: 0;
    bottom: 11vh;
  }

  .playbar_upper {
    width: 86vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
  }

  .noha_playbar_info {
    width: 73vw;
    height: 4vh;
    padding-top: 11px;
    text-align: center;
  }

  .playcontrol {
    width: 32vw;
    gap: 15px;
  }

  .music_play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px;
  }

  .noha_audio_control {
    width: 73vw;
    height: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1vw;
  }

  .volume_seekbar{
    position: relative;
    width: 20vw;
    height: 5px;
    background-color: #383838;
    border-radius: 10px;
    cursor: pointer;
  }

  .playbar_lower {
    width: 86vw;
  }

  .language {
    left: 6px;
  }

  .about_links a {
    font-size: clamp(10px, 1.5vw, 12px);
  }

  .sign_up{
    width: 95.5vw;
  }

  .sign_up button {
    font-size: 0.8rem;
  }

  .sign_up_text {
    width: 70vw;
  }

  .sign_up h4{
    font-size: 0.5rem
  }

  .sign_up h5{
    font-size: 0.5rem;
  }

}

