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

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

.sidebar {
  background-color: #000;
  width: 340px;
  border-radius: 1rem;
  margin-right: 0.5rem;
}

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

.music-player {
  background-color: #181818;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 72px;
  border-top: 1px solid #282828;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

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

.nav {
  background-color: #121212;
  border-radius: 1rem;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  height: 100px;
  padding: 0.5rem 0.75rem;
}

.nav-option {
  line-height: 2.5rem;
  opacity: 0.7;
  padding: 0.5rem 0.75rem;
  transition: opacity 0.3s ease;
}

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

.nav-option i {
  font-size: 1.25rem;
}

.nav-option a {
  font-size: 1rem;
}

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

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

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

.icons {
  font-size: 1.25rem;
  display: flex;
}

.icons i {
  opacity: 0.7;
  margin-right: 1rem;
  transition: opacity 0.3s ease;
}

.icons i:hover {
  opacity: 1;
}

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

.box-p1 {
  font-size: 1rem;
  font-weight: 500;
}

.box-p2 {
  font-size: 0.85rem;
  opacity: 0.9;
}

.badge {
  background-color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.25rem 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  height: 2rem;
}

.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: 1rem 0 1rem 0;
  z-index: 10;
}

.sticky-nav-icons {
  margin-left: 0.75rem;
}

.sticky-nav-options {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.card {
  background-color: #232323;
  width: 150px;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-left: 1.5rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.card:hover {
  background-color: #2a2a2a;
  cursor: pointer;
}

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

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

.card-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info {
  font-size: 0.85rem;
  opacity: 0.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

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

.line {
  width: 90%;
  height: 50%;
  border-top: 1px solid white;
  opacity: 0.4;
}

.album {
  width: 25%;
}

.player {
  width: 50%;
}

.controls {
  width: 25%;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.player-control-icon {
  height: 1rem;
  margin-right: 1.75rem;
  opacity: 0.7;
  transition: all 0.2s ease;
  cursor: pointer;
}

.player-control-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.playback-bar {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.curr-time,
.tot-time {
  margin: 0 0.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.control-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1rem;
}

.control-icons i {
  margin-right: 1.25rem;
  font-size: 1rem;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.control-icons i:hover {
  opacity: 1;
}

.volume-bar {
  width: 100px;
  height: 4px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.volume-bar::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  border-radius: 2px;
}

.volume-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.volume-bar:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

.currently-playing {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.current-album-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  margin-right: 1rem;
}

.current-song-info {
  flex-grow: 1;
}

.song-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.artist-name {
  font-size: 0.8rem;
  opacity: 0.7;
}

.fa-heart {
  margin-left: 1rem;
  font-size: 1.25rem;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fa-heart:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Hide elements for mobile */
.hide {
  display: none;
}

/* Mobile First - Small devices (phones) */
@media (max-width: 480px) {
  .main {
    flex-direction: column;
    padding: 0;
    height: calc(100vh - 120px);
  }
  
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin: 0;
    border-radius: 0;
    padding: 0 1rem;
    height: calc(100vh - 120px);
  }
  
  .music-player {
    height: 120px;
    flex-direction: column;
    padding: 0.5rem;
  }
  
  .currently-playing {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .current-album-cover {
    width: 40px;
    height: 40px;
  }
  
  .current-song-info {
    flex-grow: 1;
    margin-right: 1rem;
  }
  
  .song-title {
    font-size: 0.8rem;
  }
  
  .artist-name {
    font-size: 0.7rem;
  }
  
  .fa-heart {
    margin-left: 0;
    font-size: 1rem;
  }
  
  .player {
    width: 100%;
  }
  
  .player-controls {
    margin-bottom: 0.25rem;
  }
  
  .player-control-icon {
    height: 0.9rem;
    margin-right: 1rem;
  }
  
  .playback-bar {
    width: 100%;
  }
  
  .progress-bar {
    width: 80%;
  }
  
  .curr-time,
  .tot-time {
    font-size: 0.65rem;
  }
  
  .album,
  .controls {
    display: none;
  }
  
  .card {
    width: calc(50% - 1rem);
    margin: 0.5rem;
  }
  
  .cards-container {
    justify-content: center;
  }
  
  .sticky-nav {
    padding: 0.5rem 0;
  }
  
  .sticky-nav-options .nav-item {
    margin-right: 0.5rem;
  }
}

/* Small tablets and large phones */
@media (min-width: 481px) and (max-width: 768px) {
  .main {
    padding: 0.25rem;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    padding: 0 1rem;
  }
  
  .music-player {
    height: 80px;
  }
  
  .current-album-cover {
    width: 48px;
    height: 48px;
  }
  
  .volume-bar {
    width: 60px;
  }
  
  .control-icons i {
    margin-right: 0.75rem;
  }
  
  .card {
    width: calc(33.33% - 1rem);
    margin: 0.5rem;
  }
  
  .player-control-icon {
    margin-right: 1.25rem;
  }
  
  .progress-bar {
    width: 65%;
  }
}

/* Medium tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 300px;
  }
  
  .card {
    width: calc(25% - 1rem);
    margin: 0.5rem;
  }
  
  .volume-bar {
    width: 80px;
  }
  
  .control-icons i {
    margin-right: 1rem;
  }
}

/* Large tablets and small desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
  .sidebar {
    width: 320px;
  }
  
  .card {
    width: 140px;
  }
}

/* Hide elements on smaller screens */
@media (max-width: 768px) {
  .hide {
    display: none;
  }
  
  .sticky-nav-options .nav-item:nth-child(n+3) {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .main-content {
    padding: 0 0.5rem;
  }
  
  .card {
    width: calc(100% - 1rem);
  }
  
  .player-control-icon {
    margin-right: 0.75rem;
  }
  
  .song-title {
    font-size: 0.75rem;
  }
  
  .artist-name {
    font-size: 0.65rem;
  }
}