body {
  background-color: #1b1b12;
  color: white;
  text-align: center;
  margin: 0;
  padding: 40px;
}

h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.track {
  width: 80%;
  padding: 20px;
  background: #1e1c00;
  border-radius: 0%;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  font-size: 1.2rem;
}

.track:hover {
  background: #000000;
  transform: scale(1.02);
}

.container {
  display: flex;
  height: 100vh;
}

.left, .right {
  flex:1;
}

.left img {
  width: 100%;
  height: 100vh;
  display: flex;
  object-fit: cover;
}
.right {
  background-color: rgb(24, 24, 24);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

.scrubbar {
  display: flex;
  padding: 20px;
  align-items: center;
  gap: 10px;
  color: rgb(255, 255, 255);
}

#timeline {
  -webkit-appearance: none; /* remove default style this is not a bug ITS NORMAL */
  width: 100%;
  height: 6px; /* track height */
  background: #ccc; /* track background */
  border-radius: 3px;
}

/* The track (bar behind the thumb) */
#timeline::-webkit-slider-runnable-track {
  height: 6px;
  background: #827d46; /* default bar color */
  
}

/* The thumb (the draggable handle) */
#timeline::-webkit-slider-thumb {
  -webkit-appearance: none; /* needed */
  height: 20px;
  width: 20px;
  background: #e8d97e; /* thumb color */
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7px;
}

#playBtn {
  color:#000000;
  padding: 10px;
}

#playBtn {
  background: #aba161;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 24px;
  color: white;
}

#playBtn span {
  pointer-events: none; /* ensures clicks go to button */
}

/* =========================
   MOBILE LAYOUT
========================= */
@media (max-width: 768px) {
  body {
    padding: 20px;
    text-align: left;
  }

  .container {
    flex-direction: column; /* stack everything vertically */
    height: auto;
  }

  .left, .right {
    width: 100%;
    flex: none;
    height: auto;
  }

  .left img {
    width: 100%;
    height: auto;
    margin-bottom: 20px; /* space between image and scrubbar */
  }

  .scrubbar {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 0;
    gap: 10px;
    margin-bottom: 20px; /* space between scrubbar and tracklist */
  }

  #playBtn {
    width: 100%;
    font-size: 18px;
    padding: 12px 0;
  }

  .right {
    padding: 20px;
  }

  .tracklist {
    gap: 15px;
    width: 100%;
    align-items: stretch;
  }

  .track {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
}

/* =========================
   PASSWORD PROTECTION
========================= */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1b1b12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#vault-title {
  color: white;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-align: center;
}
.password-container {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 0px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 300px;
}

.password-container h2 {
  color: white;
  margin-bottom: 20px;
}

#password-input {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #333;
  border-radius: 0px;
  background: #2a2a2a;
  color: white;
  width: 250px;
  margin-bottom: 20px;
  outline: none;
}

#password-input:focus {
  border-color: #555;
}

#submit-password {
  padding: 12px 30px;
  font-size: 16px;
  background: #333;
  color: white;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: auto;
}

#submit-password:hover {
  background: #444;
}

.error-message {
  color: #ff6b6b;
  margin-top: 10px;
  font-size: 14px;
}

/* =========================
   navigationbar
========================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #1b1b12;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #007bff;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1b1b12;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #3a382a;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  cursor: pointer;
}

/* Hamburger menu - hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: #1b1b12;
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0,0,0,0.5);
    padding-top: 80px;
    z-index: 1000;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    padding: 1rem 0;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background-color: #2a2a2a;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  /* Animate hamburger to X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}