/* nav responsive */
@media (max-width: 1030px) {

  .rnav,
  .log-in,
  .hamburger {
    display: none !important;
  }

  .nav {
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 16px;
  }

  .lnav {
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  .logo {
    width: 24px;
  }

  .home-icon {
    width: 25px !important;
    height: 25px !important;
  }

  .searchbox {
    width: 224px !important;
    padding: 4px 7px !important;
    border-radius: 20px !important;
  }

  .search-icon {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;

  }

  .search-bar {
    font-size: 14px !important;
  }

  .clear-button {
    font-size: 15px !important;
  }
}

/* Mobile & Tablet Player (up to 1279px) */
@media (max-width: 1279px) {
  .nada-player {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    height: 72px;
    background: #000;
    border-top: none; /* Removed top border completely */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  /* Hide all controls in mini player except what we want */
  .nada-player:not(.fullscreen) .player-controls,
  .nada-player:not(.fullscreen) .volume-controls,
  .nada-player:not(.fullscreen) .progress-container,
  .nada-player:not(.fullscreen) .maximize-btn {
    display: none !important;
  }

  /* Track info - left side */
  .track-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 12px;
    overflow: hidden;
  }

  .cover {
    width: 48px !important;
    height: 48px !important;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .track-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .track-text h4 {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: white;
  }

  .track-text p {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 0;
    color: #b3b3b3;
  }

  /* Play/Pause button - right side */
  .mobile-play-pause {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    padding: 0;
    margin-left: 8px;
  }

  /* Mobile Fullscreen Player (screens < 1280px) */
  @media (max-width: 1279px) {
    .nada-player.fullscreen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      background: rgba(18, 18, 18, 0.98);
      z-index: 1000;
      padding: 20px 0 30px;
      margin: 0;
      box-sizing: border-box;
    }
    
    .nada-player.fullscreen .track-info {
      text-align: center;
      margin: 0 0 30px 0;
      width: 100%;
      max-width: 300px;
    }
    
    .nada-player.fullscreen .cover {
      width: 70vw;
      height: 70vw;
      max-width: 250px;
      max-height: 250px;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
      margin: 0 auto 20px;
      object-fit: cover;
    }
    
    .nada-player.fullscreen .track-text h4 {
      font-size: 18px;
      margin: 0 0 4px 0;
      color: #fff;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .nada-player.fullscreen .track-text p {
      font-size: 14px;
      color: #b3b3b3;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  /* Desktop Overlay (screens >= 1280px) */
  @media (min-width: 1280px) {
    .nada-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 80px; /* Height of the player */
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(18, 18, 18, 0.95);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      z-index: 999;
      overflow: hidden;
    }
  }
  
  /* Hide mobile play button in fullscreen */
  .nada-player.fullscreen .mobile-play-pause,
  .nada-player.fullscreen .volume-controls {
    display: none !important;
  }
  
  .nada-player.fullscreen .track-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 0 30px 0;
    width: 100%;
    max-width: 400px;
  }
  
  .nada-player.fullscreen .cover {
    width: 80%;
    max-width: 300px;
    aspect-ratio: 1/1;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin: 0 auto 20px;
    object-fit: cover;
  }
  
  .nada-player.fullscreen .track-text h4 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .nada-player.fullscreen .track-text p {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0 0 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .nada-player.fullscreen .progress-bar {
    width: 100%;
    max-width: 90%;
    margin: 20px auto 10px;
    box-sizing: border-box;
    padding: 0;
  }
  
  .nada-player.fullscreen .time-display {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 5px auto 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .nada-player.fullscreen .current-time,
  .nada-player.fullscreen .total-time {
    font-size: 11px;
    color: #b3b3b3;
  }

  .nada-player.fullscreen .time:first-child {
    text-align: left;
  }
  
  .nada-player.fullscreen .time:last-child {
    text-align: right;
  }

  /* Player Controls Container - Mobile Fullscreen */
  .nada-player.fullscreen .player-controls {
    width: 100%;
    max-width: 300px;
    padding: 0;
    margin: 20px auto 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .nada-player.fullscreen .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  
  .nada-player.fullscreen .buttons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  
  .nada-player.fullscreen .buttons #play {
    width: 48px;
    height: 48px;
    background: #1db954;
    border-radius: 50%;
    padding: 8px;
  }
  
  /* Base button styles */
  .nada-player.fullscreen .control-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    opacity: 0.9;
    transition: all 0.2s ease;
  }
  
  /* Play/Pause button - larger than others */
  .nada-player.fullscreen .play-pause-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #1db954;
    border-radius: 50%;
    margin: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Button icons */
  .nada-player.fullscreen .control-btn svg {
    width: 22px;
    height: 22px;
  }
  
  /* Play/Pause icon - larger than others */
  .nada-player.fullscreen .play-pause-btn svg {
    width: 24px;
    height: 24px;
  }
  
  /* Button active state */
  .nada-player.fullscreen .control-btn:active {
    opacity: 0.7;
    transform: scale(0.95);
  }
  
  /* Adjust for small screens */
  @media (max-width: 400px) {
    .nada-player.fullscreen .buttons {
      gap: 12px;
    }
    
    .nada-player.fullscreen .buttons img {
      width: 28px;
      height: 28px;
    }
    
    .nada-player.fullscreen .buttons #play {
      width: 44px;
      height: 44px;
    }
    
    .nada-player.fullscreen .progress-bar {
      padding: 0 16px;
      margin: 15px 0 8px;
    }
  }
  
  /* Adjust for very small screens */
  @media (max-width: 340px) {
    .nada-player.fullscreen .player-controls {
      padding: 0 8px;
      gap: 2px;
    }
    
    .nada-player.fullscreen .player-controls-main {
      gap: 6px;
    }
    
    .nada-player.fullscreen .control-btn {
      width: 36px;
      height: 36px;
      min-width: 36px;
    }
    
    .nada-player.fullscreen .play-pause-btn {
      width: 44px;
      height: 44px;
      min-width: 44px;
      margin: 0 2px;
    }
    
    .nada-player.fullscreen .control-btn svg {
      width: 18px;
      height: 18px;
    }
    
    .nada-player.fullscreen .play-pause-btn svg {
      width: 20px;
      height: 20px;
    }
  }
  


/* Desktop Overlay Styles */
@media (min-width: 1280px) {
  .nada-overlay .player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 25px 0;
    width: 100%;
    max-width: 400px;
  }
  
  .nada-overlay .progress-container {
    width: 90%;
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 0;
  }

  .nada-overlay .progress-bar {
    width: 100%;
    height: 4px;
    background: #4a4a4a;
    border-radius: 2px;
    overflow: hidden;
  }

  .nada-overlay .progress-filled {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    transition: width 0.1s linear;
  }

  .nada-overlay .time {
    font-size: 12px;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
  }
}
  
  .nada-player.fullscreen .mobile-play-pause {
    display: none;
  }

  /* Full Screen Player */
  .nada-player.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
    background: #121212;
    z-index: 2000;
    transform: translateY(0) !important;
    opacity: 1 !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease;
  }
  
  /* Initial state for fullscreen animation */
  .nada-player:not(.fullscreen) {
    transform: translateY(0);
  }
  
  /* When opening fullscreen */
  .nada-player.fullscreen-enter {
    transform: translateY(100%);
    opacity: 0;
  }
  
  /* When closing fullscreen */
  .nada-player.fullscreen-exit {
    transform: translateY(100%);
    opacity: 0;
  }

  .nada-player.fullscreen .track-info {
    flex-direction: column;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100% !important;
  }

  .nada-player.fullscreen .cover {
    width: 80% !important;
    height: auto !important;
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin: 0 auto 24px;
    aspect-ratio: 1/1;
  }

  .nada-player.fullscreen .track-text {
    width: 100%;
  }

  .nada-player.fullscreen .track-text h4 {
    font-size: 24px !important;
    margin-bottom: 8px;
  }

  .nada-player.fullscreen .track-text p {
    font-size: 16px !important;
    color: #b3b3b3;
  }

  .nada-player.fullscreen .player-controls {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
  }

  .nada-player.fullscreen .progress-bar {
    width: 100%;
    margin: 20px 0;
  }

  .nada-player.fullscreen .volume-controls {
    display: flex;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    justify-content: center;
  }

  /* Close button for fullscreen */
  .close-fullscreen {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }

  .close-fullscreen img {
    width: 20px;
    height: 20px;
  }

  /* Play/Pause button for mobile/tablet */
  .mobile-play-pause {
    background: none;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: none; /* Hidden by default, shown only on mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-play-pause:active {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

/* Tablet Styles (now handled by mobile styles) */
/* This media query is now redundant as we're using a single breakpoint at 1280px */
@media (min-width: 1280px) {
  .nada-player {
    padding: 0 20px;
    height: 90px;
    display: flex;
    align-items: center;
    background-color: #000;
    border-top: 1px solid #282828;
  }
  
  /* Hide progress bar in mini player */
  .nada-player:not(.fullscreen) .progress-container {
    display: none !important;
  }
  
  /* Hide mobile play/pause button on tablets when in desktop mode */
  .mobile-play-pause {
    display: none !important;
  }
  
  .track-info {
    width: 30%;
    min-width: 200px;
  }
  
  .player-controls {
    width: 40%;
    margin: 0 auto;
  }
  
  .volume-controls {
    width: 30%;
    justify-content: flex-end;
  }
  
  /* For smaller tablets, show mobile-like behavior */
  @media (max-width: 800px) {
    /* Hide progress bar in mini player */
    .nada-player:not(.fullscreen) .progress-container,
    .nada-player:not(.fullscreen) .player-controls,
    .nada-player:not(.fullscreen) .volume-controls {
      display: none !important;
    }
    
    .nada-player {
      padding: 8px 16px;
      height: 72px;
    }
    
    /* Show mobile play/pause button on mobile/tablet */
    .mobile-play-pause {
      display: flex !important;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: none;
      border: none;
      color: white;
      padding: 0;
      margin-left: 8px;
      flex-shrink: 0;
    }
    
    .player-controls,
    .volume-controls,
    .maximize-btn {
      display: none !important;
    }
    
    .track-info {
      width: auto;
      flex: 1;
      min-width: 0;
    }
    
    .track-text h4 {
      font-size: 14px !important;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .track-text p {
      font-size: 12px !important;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}




/* right */
@media (max-width: 800px) {
  .header {
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    display: flex;
    gap: 8px !important;
    padding: 10px !important;
    overflow: auto;
  }

  .cardscontent {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    padding: 0px;
    height: 100vh;

  }


  .card {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    height: auto;
  }

  .card .poster {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 720px) {
  .volume-controls {
    display: none !important;
  }

}


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

html,
body {
  height: 100%;
  font-family: 'Inter', 'Manrope', sans-serif;
  background-color: rgb(0, 0, 0);
  min-width: 360px;
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: black;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  z-index: 1000;
  display: flex;
  overflow: hidden;
}



/* Left Nav */
.lnav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 35px;
}

/* Home Icon */
.icon-wrapper {
  background-color: #282828;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icon-wrapper:hover {
  background-color: rgba(229, 226, 226, 0.2);
}

.home-icon {
  width: 33px;
  height: 33px;
}

/* Search Bar */
.search-container {
  display: flex;
  align-items: center;
}

.searchbox {
  display: flex;
  align-items: center;
  background-color: #1f1f1f;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 6px 16px;
  width: 380px;
  transition: all 0.3s ease;
  position: relative;
}

.searchbox:hover {
  background-color: #3a3a3a;
}

.searchbox:focus-within {
  border-color: white;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  opacity: 0.7;
}

.search-bar {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  padding: 8px 0;

}

.search-bar::placeholder {
  color: #9ca3af;
}

/* Clear Button (x) */
.clear-button {
  background: none;
  border: none;
  color: #b1b1b1;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.clear-button:hover {
  color: white;
}

/* Right Nav */
.rnav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
  font-size: 16px;
  color: #b3b3b3;
  font-weight: 700;
}

.rnav ul li {
  cursor: pointer;
}

.rnav ul li:hover {
  color: white;
}

.rnav ul li:last-child {
  margin-right: -12px;
}

/* Login Button */
.log-in {
  background-color: white;
  color: black;
  border: none;
  border-radius: 230px;
  padding: 10px 30px; /* Increased horizontal padding for wider button */
  font-weight: 700;
  font-size: 14px;    /* Slightly smaller font */
  font-family: 'Circular', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  height: 48px;       /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
}

.log-in:hover {
  background-color: #ffffff;
}

/* Main Container below navbar */
.container {
  display: flex;
  gap: 8px;
  margin-left: 8px;
  margin-right: 8px;
  height: calc(100% - 143px);
  margin-top: 65px;
  /* Push below navbar */
  margin-bottom: 72px;
  position: fixed;
  width: calc(100% - 16px);
}

/* Left Sidebar */
.left {
  width: 320px;
  background-color: #121212;
  color: white;
  border-radius: 10px;
  position: relative;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
  /* overflow: hidden; */
  overflow-x: hidden;
  height: 100%;
  max-height: 100%;
}



.box1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #1f1f1f;
  padding: 20px;
  height: 135px;

}


.create {
  background-color: white;
  color: black;
  border: none;
  border-radius: 200px;
  padding: 8px;
  font-weight: bold;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 125px;
  margin-top: 10px;
}

.browse {
  background-color: white;
  color: black;
  border: none;
  border-radius: 200px;
  padding: 8px;
  font-weight: bold;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 138px;
  margin-top: 10px;
}

.box2 {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  background-color: #1f1f1f;
  padding: 8px;
  height: 130px;
}

.footer {
  background-color: #121212;
  color: #b3b3b3;
  padding: 20px 20px;
  position: absolute;
  bottom: 0;
  z-index: 5;


}


.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-links li a {
  text-decoration: none;
  color: rgb(179, 179, 179);
  font-size: 11px;
  font-weight: 400;
}

.footer-links li a:hover {
  text-decoration: none;
  color: white;
}

.footer-lang {
  display: flex;
  justify-content: flex-start;
}

.lang-btn {
  background-color: transparent;
  border: 1px solid #b3b3b3;
  border-radius: 999px;
  color: white;
  padding: 8px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;

}

.e {
  filter: brightness(0) invert(1);
}

.lang-btn:hover {
  border-color: white;
}

.right {
  flex: 1;
  background: linear-gradient(to bottom, #202020 0%, #202020 2.5%, #0f0f0f 100%);
  color: black;
  overflow: auto;
  position: relative;
  border-radius: 10px;
  background: linear-gradient(to bottom, #202020 0px, #202020 10px, #0f0f0f 400px, #0f0f0f 100%);



}

.header {
  margin: 0;
  display: flex;
  gap: 12px;
  background: #121212;
  padding: 10px 25px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  height: 70px;
  max-height: 70.5px;
  align-items: center;
  box-sizing: border-box;

}

.hbtn {
  padding: 8px 13px;
  border: none;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  font-weight: 100;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(10px);
  max-height: 48px;
}

.hbtn.active {
  background-color: white;
  color: black;
}

.hbtn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 
.cards-wrapper  {
  display: flex;
  justify-content: center; 
  padding: 5px 14px;
  background: linear-gradient(to bottom, #202020 0px, #202020 10px, #0f0f0f 400px, #0f0f0f 100%);
} */


.cardscontent {

  padding: 30px;
  padding-left: 50px;
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
  max-height: 100vh;
}

.card {
  padding-bottom: 100px;
  width: 177px;
  height: 250px;
  border-radius: 7px;
  position: relative;
  transition: all .9s;
  color: white;
  background-color: transparent;
  font-weight: 400;
  cursor: pointer;
}

/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.card p {
  font-size: 14px;
  color: #B3B3B3;
  margin-top: -7px;
}

.card>* {
  padding: 11px;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.img-wrapper .poster {
  width: 155px;
  height: 155px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
  position: relative;
  --shadow-color: hsl(0deg 0% 0% / 0.3);
  filter: drop-shadow(1px 2px 8px var(--shadow-color));
}

.img-wrapper:hover .poster {

  transition: box-shadow 0.3s ease;
}


.card:hover {
  background: linear-gradient(to top, #1F1F1F, #1D1D1D);
  transition: all .9s;
}



/* Play button style */
.play-button {
  position: absolute;
  bottom: 90px;
  right: 18px;
  background-color: #0241E4;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(5px);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  will-change: transform;
  transform-origin: center;
  cursor: pointer;
}

.play-button img {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
  pointer-events: none;
  /* Prevents the image from blocking hover */
  cursor: pointer
}


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

/* Button hover effect */
.play-button:hover {
  background-color: #225ef7;
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);

}

/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* Player base styles */
.nada-player {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000; /* Keep player above overlay */
  background: #181818;
  align-items: center;
  padding: 8px 16px;
  background-color: #000;
  color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease, 
              background-color 0.3s ease;
  z-index: 1000;
  transform: translateY(0);
  will-change: transform, opacity;
}

/* Desktop maximize button - only show on desktop */
.maximize-btn {
  display: none; /* Hidden by default */
}

/* Desktop styles */
@media (min-width: 1280px) {
  /* Original desktop layout */
  .nada-player {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 76px; /* Increased from 70px */
    background-color: #000;
    border-top: none; /* Removed top border completely */
  }
  
  .track-info {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 300px;
    max-width: 400px;
    flex-shrink: 0;
  }
  
  .track-text {
    margin-left: 12px;
    min-width: 0;
    flex: 1;
  }
  
  .player-controls {
    width: 40%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }
  
  .volume-controls {
    width: 30%;
    min-width: 180px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
  }
  
  /* Show maximize button on desktop */
  .maximize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 16px;
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
  }
  
  .maximize-btn:hover {
    opacity: 1;
  }
  
  .nada-player.expanded .maximize-btn svg {
    transform: rotate(180deg);
  }
  
  .maximize-btn:active {
    transform: scale(0.9);
  }
  
  .maximize-btn:hover {
    opacity: 1;
    color: white;
  }
  
  .maximize-btn img {
    width: 16px;
    height: 16px;
  }
}

  .nada-player.expanded {
    /* Keep player at bottom */
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background-color: #121212;
    z-index: 1999; /* Just below the player controls */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .nada-player.expanded .track-info {
    flex-direction: column;
    text-align: center;
    margin: 40px 0;
    max-width: 800px;
    width: 100%;
  }

  .nada-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 80px; /* Stop at player height */
  background: #121212;
  z-index: 1999; /* Below player */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.nada-overlay img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
  

  .nada-player.expanded .track-text h4 {
    font-size: 28px !important;
    margin-bottom: 8px;
  }

  .nada-player.expanded .track-text p {
    font-size: 20px !important;
    color: #b3b3b3;
  }

  .nada-player.expanded .player-controls {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .nada-player.expanded .progress-bar {
    width: 100%;
    margin: 30px 0;
  }

  .nada-player.expanded .volume-controls {
    margin-top: 30px;
  }

/* Track Info */
.track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 350px;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.track-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.track-text h4,
.track-text p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  transition: all 0.3s ease;
}

.track-text h4 {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.track-text p {
  font-size: 12px;
  color: #b3b3b3;
}

/* Track text styles */
.track-text {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.track-text h4,
.track-text p {
  position: relative;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  will-change: transform;
  padding: 0 20px;
  margin: 0 -20px;
}

/* Track text hover states are intentionally left without effects */

/* Marquee animation for long text */
.track-text h4.marquee,
.track-text p.marquee {
  display: inline-block;
  padding-right: 20px;
  position: relative;
  background: none;
}

.track-text h4.marquee:hover,
.track-text p.marquee:hover {
  animation: marquee 8s linear infinite;
  animation-play-state: running;
  text-overflow: clip;
  overflow: visible;
  display: inline-block;
  transform: translateX(0);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% + 180px));
  }
}

/* Player Controls */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40%;
  min-width: 500px;
  margin: 0 auto 0 0;
  position: relative;
  left: 82px;
  transition: all 0.3s ease;
}

.buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
}

/* .b {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  opacity: 0.8;
  background-size: contain;
  background-repeat: no-repeat;
} */


#play {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* #pcontrol{
  width: 30px;
  height: 30px;
  cursor: pointer
} */

#previous {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

#next {
  width: 20px;
  height: 20px;
  cursor: pointer;
}




.b:hover {
  opacity: 1;
}

.progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.current-time,
.total-time {
  font-size: 12px;
  color: #b3b3b3;
  min-width: 45px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.bar {
  flex: 1;
  min-width: 0;
  height: 4px;
  background-color: #404040;
  border-radius: 2px;
  position: relative;
}

.progress {
  width: 40%;
  height: 100%;
  background-color: #0241E4;
  border-radius: 2px;
  transition: width 0.1s linear;
}
/* Volume Control */
.volume-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  justify-content: flex-end;
  margin-left: auto;
}

/* Hide volume controls on mobile by default */
@media (max-width: 1024px) {
  .volume-controls {
    display: none;
  }
}

.volume-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  padding-top: 4.5px;
}

/* .volume-bar {
  
  flex: 1;
  height: 4px;
  background-color: #404040;
  border-radius: 2px;
  position: relative;
}  */

.volume {
  width: 90%;
  height: 4px;
  appearance: none;
  background: linear-gradient(to right, #0241E4 50%, #535353 50%);
  border-radius: 2px;
  outline: none;
}

.volume::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ////////////////////////////////////////////////// Library List  /////////////////////////////////// */


.library {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 100px;
  box-sizing: border-box;
  list-style-type: none;
  padding: 6px;
  padding-bottom: 100px;
  height: 100vh;
}



.library ul {
  display: flex;
  flex-direction: column;
  gap: 0px;
  cursor: pointer;
  height: auto;
  overflow-x: hidden;


}

.library ul li {
  width: 100%;
  height: 62px;
  padding: 8px;
  display: flex;
  border-radius: 5px;
  align-items: center;
}



.library ul li:hover {
  background-color: #1F1F1F;
}

.li-poster {
  width: 48px;
  height: 48px;
  border-radius: 8%;
  object-fit: cover;
  display: block;
}



.s1 {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}



.library li span {
  padding: 0px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.3s ease;
  /* for collapsed sidebar */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left.collapsed .library li span {
  display: none;
}

.left.collapsed .library ul li {
  justify-content: center;
  padding: 19px 0;
}

.stitle {
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin: 0;
}

.artist {
  font-size: 13px;
  font-weight: 400;
  color: #AFAFAF;
  margin: 0;
}

/* Play button container */
.Click-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
  overflow: hidden;
  /* pointer-events: none; */
  /* Makes only the button clickable, not the image itself */
}

.s1 button {
  all: unset;
  /* Removes all default button styling */
  position: absolute;
  inset: 0;
}

/* Play icon inside */
.Click-play img {
  width: 16px;
  height: 16px;
  cursor: pointer
}

/* Show button on hover */
.s1:hover .Click-play,
.library li:hover .Click-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Remove focus dot or glow */
.Click-play:focus {
  outline: none;
}

.library li:hover .li-poster {
  opacity: 0.60;
}



/* hamburger sidebar */


.left.collapsed {
  width: 76px;
  background-color: #101010;
}

.library-header {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 10px;
  background-color: #121212;
  transition: box-shadow 0.2s;
  width: 100%;
  position: sticky;

}



.library-header p {
  white-space: nowrap;
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 500;
  /* padding-left: 10px;      */
}


.shadow-bottom {

  box-shadow: 0 6px 10px rgba(0, 0, 0, .6);
}



.hamburger-btn {
  background: none;
  width: 16px;
  height: 16px;
  background-image: url('./images/library.svg');
  background-size: contain;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn img {
  width: 30px;
  height: 30px;
}

.plus-icon {
  width: auto;
  padding-left: 120px;
}

.left.collapsed .lib-title,
.left.collapsed .plus-icon,
.left.collapsed .footer {
  display: none;
}

.footer {

  font-size: 12px;
  background-color: #121212;
  color: #b3b3b3;
  padding: 20px 20px;
  flex-shrink: 0;
  position: relative;
  margin-top: auto;

}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-lang .lang-btn {
  background-color: #222;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}


/* ////////////////////////////////////////////////////////////// */

/* Round + button under hamburger */
.plus-round {
  background-color: #2a2a2a;
  border: none;
  color: white;
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0px 12px 0px 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0px;


}

/* Show + only in collapsed state */
.left.collapsed .plus-round {
  display: flex;

}

.left.collapsed .library-header {
  display: flex;
  flex-direction: column;
}


.left.collapsed .hamburger-btn {
  background-image: url('./images/lib.svg');
  width: 23px;
  height: 23px;
}

.left.collapsed .hamburger-btn:hover {
  background-image: url('./images/library1.svg');
  width: 23px;
  height: 23px;
}


/* Align posters with equal padding on both sides */
.poster-list {
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.poster-list li {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
}

.poster-list img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  padding-left: 5px;
  padding-right: 5px;
}

/* Mobile Player Overlay */
.mobile-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #121212;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-player-overlay.active {
  transform: translateY(0);
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  box-sizing: border-box;
  margin: auto;
  height: 100%;
  position: relative;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.overlay-cover-container {
  width: 70vmin;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.overlay-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-track-info {
  width: 70vmin;
  max-width: 500px;
  text-align: center;
  margin: 30px auto 30px;

  position: relative;
  z-index: 1;
}

.overlay-track-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.overlay-track-artist {
  font-size: 16px;
  color: #b3b3b3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.overlay-progress-container {
  width: 70vmin;
  max-width: 500px;
  margin: 0px auto 0px;
  padding: 0 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay-progress-bar {
  width: 100%;
  height: 3px;
  background-color: rgba(77, 77, 77, 0.6);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.overlay-progress-bar:hover {
  height: 5px;
  background-color: rgba(77, 77, 77, 0.8);
}

.overlay-progress {
  height: 100%;
  background-color: #0241E4;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
  border-radius: 2px;
}

/* Time display */
.overlay-time-display {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #b3b3b3;
  margin: 5px 0 0;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0 2px;
}

.overlay-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 15px 0 0px;
  width: 100%;
  max-width: 300px;
}

.overlay-control-btn {
  background: none;
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.overlay-control-btn:active {
  opacity: 0.7;
  transform: scale(0.95);
}

#overlay-play {
  width: 64px;
  height: 64px;
  background-color: #0241E4;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(2, 65, 228, 0.4);
}

#overlay-play:active {
  transform: scale(0.95);
}

.overlay-control-btn img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

#overlay-play img {
  width: 28px;
  height: 28px;
  margin-left: 2px; /* Slight adjustment for play icon centering */
}

/* Animation for overlay */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

/* Hide scrollbar for overlay content but keep it scrollable */
.overlay-content::-webkit-scrollbar {
  display: none;
}

.overlay-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Better touch feedback */
.overlay-progress-bar:active .overlay-progress::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #0241E4;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Safe area for notches and home indicators */
@supports (padding: max(0px)) {
  .overlay-content {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}