/* Make background transparent for card text and album cover container */

.cards-container h2,
.card-title,
.card-info,
.album,
.curr-time,
.tot-time {
  background-color: transparent !important;
}

/* Also transparent backgrounds for sidebar nav icons and text already set inline */

/* Remove all scroll properties on .cards-container if any */

.cards-container {
  max-height: unset !important;
  overflow-y: unset !important;
}


/* Unified styling and responsive layout */

* {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

.main {
  display: flex;
  height: 100vh;
  padding: 0.5rem;
}

.sidebar { 
  background: #000; 
  width: 340px; 
  border-radius: 1rem; 
  margin-right: 0.5rem; 
  /* no scrolling or height here */ 
}

.nav { 
  background: #121212; 
  border-radius: 1rem; 
  padding: 0.5rem 0.75rem; 
}

.nav-option { 
  display: flex; 
  align-items: center; 
  line-height: 2.5rem; 
  opacity: 0.7; 
  padding: 0.5rem 0.75rem; 
  font-weight: bold; 
  background: #121212; 
  cursor: pointer;
}

.nav-option:hover { 
  opacity: 1;
}

.nav-option i { 
  font-size: 0.9rem; 
  margin-right: 1rem; 
  background: transparent;
}

.nav-option a { 
  font-size: 1rem; 
  color: #fff; 
  text-decoration: none;
  background: transparent;
}

/* Sidebar search-bar */

.sidebar-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #232323;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  margin: 8px 0 18px 0;
}

.sidebar-search-bar i { 
  color: #bbb; 
  font-size: 1rem;
}

.sidebar-search-bar input {
  border: none; 
  outline: none; 
  background: transparent;
  color: #eee; 
  font-size: 1rem; 
  flex: 1;
  padding: 0 0.5rem;
}

.library { 
  background: #121212; 
  border-radius: 1rem; 
  margin-top: 0.5rem; 
  padding: 0.5rem; 
  height: 62%;
}

.options { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: #121212; 
}

.lib-option img { 
  height: 0.85rem; 
  width: 1.25rem; 
}

.icons { 
  font-size: 1.15rem; 
  display: flex; 
  opacity: 0.7; 
  background: #121212; 
}

.icons i { 
  margin-right: 1rem; 
  opacity: 0.7; 
  cursor: pointer; 
}

.icons i:hover { 
  opacity: 1;
}

.box { 
  height: 8rem; 
  background: #232323; 
  border-radius: 0.75rem; 
  margin: 0.75rem 0 1rem 0; 
  padding: 0.75rem 1rem; 
}

.lib-box { 
  background: #121212; 
}

.main-content {
  background-color: #121212;
  flex: 1;
  overflow: auto;
  padding: 0 1.5rem 0 1.5rem;
}

.music-player {
  background-color: #000;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 11;
}

a {
  text-decoration: none;
  color: #fff;
}



.icons {
  font-size: 1.15rem;
  display: flex;
  opacity: 0.7;
  background-color: #121212;
}

.icons i {
  margin-right: 1rem;
  opacity: 0.7;
  cursor: pointer;
}

.icons i:hover {
  opacity: 1;
}

.box {
  height: 8rem;
  background-color: #232323;
  border-radius: 0.75rem;
  margin: 0.75rem 0 1rem 0;
  padding: 0.75rem 1rem;
}

.lib-box {
  background-color: #121212;
}

.box-p1 {
  font-size: 1rem;
  font-weight: 600;
  background-color: #232323;
  margin-top: 0.65rem;
}

.box-p2 {
  font-size: 0.85rem;
  opacity: 0.8;
  background-color: #232323;
  margin-top: 1rem;
}

.badge {
  background-color: #fff;
  color: black;
  border: none;
  border-radius: 100px;
  padding: 0.25rem 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  height: 2rem;
  width: fit-content;
  cursor: pointer;
}

.dark-badge {
  background-color: #000;
  color: #fff;
}

.sticky-nav {
  position: sticky;
  top: 0;
  background-color: #121212;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.05rem 0 1rem 0;
  z-index: 10;
}

.sticky-nav-icons {
  margin-left: 0.75rem;
  background-color: #121212;
  opacity: 0.7;
  font-size: 1.5rem;
  display: flex;
  gap: 1rem;
}

.sticky-nav-icons img {
  background-color: #121212;
  cursor: pointer;
}

.sticky-nav-options {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #121212;
  margin-bottom: 1rem;
}

.nav-item {
  margin-right: 0.75rem;
}

.user-button {
  background-color: #121212;
  margin-top: 1rem;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .hide {
    display: none;
  }
}

.cards-container {
    background-color: #121212;
}

.card, .card-title, .card-info {
    background-color: #232323;
}

.card {
    width: 150px;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-left: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: scale(0.95);
}

.card-img {
    width: 100%;
    border-radius: 0.5rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
}

.card-title {
    font-weight: 600;
    font-weight: bold;
}

.card-info {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121212;
}

.line {
  width: 90%;
  height: 50%;
  border-top: 1px solid white;
  opacity: 0.08;
  background-color: #121212;
}

.album {
  width: 25%;
  height: 72px;
  background-size: cover;
  background-position: center center;
  border-radius: 0.5rem;
}

.player {
  width: 50%;
}

.controls {
  width: 25%;
}

.player-control-icon {
  height: 1rem;
  margin-right: 1.7rem;
  opacity: 0.7;
  cursor: pointer;
}

.player-control-icon:hover {
  opacity: 1;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.playback-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 2.1rem;
  margin-top: 0.5rem;
}

.progress-bar {
  width: 70%;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
  margin: 0 5px;
}

.progress-bar::-webkit-slider-runnable-track {
  background-color: #ddd;
  border-radius: 100px;
  height: 0.1rem;
  opacity: 0.4;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  height: 1rem;
  width: 1rem;
  background-color: #1bd760;
  border-radius: 50%;
  margin-top: -6px;
}

span {
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .sidebar {
    width: 250px;
  }
  .card {
    flex: 0 0 120px;
  }
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
    height: auto;
  }
  .sidebar {
    width: 100%;
    border-radius: 0;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .main-content {
    padding: 1rem;
  }
  .cards-container {
    max-height: 350px;
    justify-content: center;
  }
  .card {
    flex: 0 0 45%;
    margin: 0.5rem 1%;
  }
  .music-player {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 0;
  }
  .player {
    width: 100%;
  }
  .album,
  .controls {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .player-control-icon {
    margin-right: 1rem;
    height: 1.5rem;
  }
  .playback-bar {
    margin-right: 0;
  }
  span.curr-time,
  span.tot-time {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .sidebar {
    font-size: 0.9rem;
  }
  .card {
    flex: 0 0 90%;
    margin: 0.5rem auto;
  }
  .nav-option a,
  .nav-option i {
    font-size: 0.9rem;
  }
  .badge {
    padding: 0.2rem 0.8rem;
    font-size: 0.85rem;
  }
  .player-control-icon {
    height: 1.2rem;
    margin-right: 1rem;
  }
  .playback-bar {
    width: 90%;
  }
}
