/* ===== Global Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ===== Main Layout ===== */
.main {
  display: flex;
  height: 100vh;
  padding: 0.5rem;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 350px;
  background-color: #000;
  margin-right: 0.5rem;
}

.navigation,
.library {
  background-color: #121212;
  border-radius: 1rem;
  padding: 0.75rem;
}

.navigation {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  opacity: 0.7;
  cursor: pointer;
}

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

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

.nav-option a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}

/* ===== Library ===== */
.library {
  margin-top: 0.5rem;
  height: calc(100% - 110px);
}

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

.lib-option {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.icons i {
  margin-left: 1rem;
  opacity: 0.7;
}

.icons i:hover {
  opacity: 1;
}

.lib-box {
  margin-top: 1rem;
}

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

.box-p1 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.box-p2 {
  font-size: 0.75rem;
  opacity: 0.8;
}

.badge {
  margin-top: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.dark-badge {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
}

/* ===== Main Content ===== */
.main_content {
  flex: 1;
  background-color: #121212;
  border-radius: 1rem;
  padding: 0 1.5rem;
  overflow-y: auto;
}

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

.sticky-nav-icons img {
  height: 1.25rem;
  margin-right: 1rem;
}

.sticky-nav-options {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ===== Cards ===== */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.card {
  background-color: #232323;
  width: 150px;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

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

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

.card-title {
  font-weight: 600;
  margin-top: 0.75rem;
}

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

/* ===== Footer ===== */
.footer {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.line {
  width: 90%;
  border-top: 1px solid #fff;
  opacity: 0.2;
}

/* ===== Music Player ===== */
.music_player {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 72px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.album,
.controls {
  width: 25%;
}

.player {
  width: 50%;
}

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

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

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

.main-play {
  height: 2rem;
  opacity: 1;
}

.playback-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

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

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

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