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

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.hide {
  display: none;
}


.main {
  display: flex;
  height: calc(100vh - 90px);
  gap: 8px;
  padding: 8px;
}

/* =========================
SIDEBAR
========================= */
.sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.nav {
  background-color: #121212;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-option {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #b3b3b3;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-option:hover {
  color: #fff;
}

.nav-option i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.library {
  background-color: #121212;
  border-radius: 8px;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

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

.lib-option img {
  width: 24px;
  height: 24px;
}

.icons {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b3b3b3;
}

.icons i {
  cursor: pointer;
  transition: color 0.2s ease;
}

.icons i:hover {
  color: #fff;
}

.lib-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box {
  background-color: #242424;
  border-radius: 8px;
  padding: 16px;
}

.box-p1 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.box-p2 {
  font-size: 13px;
  color: #b3b3b3;
  margin-bottom: 16px;
}

/* =========================
BADGES / BUTTONS
========================= */
.badge {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 500px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.badge:hover {
  transform: scale(1.04);
  background-color: #f0f0f0;
}

/* =========================
MAIN CONTENT
========================= */
.main_content {
  flex: 1;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 300px);
  border-radius: 8px;
  overflow-y: auto;
  padding: 0 24px;
}

.main_content h2 {
  margin: 24px 0 16px 0;
  font-size: 22px;
  font-weight: 700;
}

/* =========================
STICKY NAV
========================= */
.sticky-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.sticky-nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-nav-icons img {
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
}

.sticky-nav-options {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.nav-item:hover {
  background: transparent;
  transform: scale(1.04);
  color: #fff;
}

.dark-badge {
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
}

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

.sticky-nav-options i.fa-user-tie {
  background-color: #1ed760;
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================
CARDS
========================= */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.card {
  background-color: #181818;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card:hover {
  background-color: #282828;
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info {
  font-size: 13px;
  color: #b3b3b3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
FOOTER
========================= */
.footer {
  margin: 32px 0 24px 0;
}

.line {
  height: 1px;
  background-color: #2a2a2a;
  width: 100%;
}

/* =========================
MUSIC PLAYER (BOTTOM BAR)
========================= */
.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background-color: #181818;
  border-top: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

/* =========================
ALBUM INFO (LEFT)
========================= */
.album {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
}

.song-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.singer-name {
  font-size: 12px;
  color: #b3b3b3;
}

/* =========================
PLAYER (CENTER)
========================= */
.player {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.player-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #b3b3b3;
  font-size: 16px;
}

.player-icons i {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.player-icons i:hover {
  color: #fff;
  transform: scale(1.1);
}

.play-btn {
  font-size: 32px !important;
  color: #fff !important;
}

.play-btn:hover {
  color: #1ed760 !important;
  transform: scale(1.08) !important;
}

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

.time {
  font-size: 11px;
  color: #b3b3b3;
}

.seekbar {
  flex: 1;
  height: 4px;
  background-color: #4d4d4d;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.seek-fill {
  height: 100%;
  width: 30%;
  background-color: #fff;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.seekbar:hover .seek-fill {
  background-color: #1ed760;
}

/* =========================
CONTROLS (RIGHT)
========================= */
.controls {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #b3b3b3;
  font-size: 15px;
  min-width: 180px;
}

.controls i {
  cursor: pointer;
  transition: color 0.2s ease;
}

.controls i:hover {
  color: #fff;
}

.volume-bar {
  width: 90px;
  height: 4px;
  background-color: #4d4d4d;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.volume-fill {
  height: 100%;
  width: 60%;
  background-color: #fff;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.volume-bar:hover .volume-fill {
  background-color: #1ed760;
}


@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .album {
    min-width: 100px;
  }

  .controls {
    min-width: 60px;
  }
}