/* ===== PAGE BACKGROUND ===== */
body {
  margin: 0;
  font-family: 'Orbitron', monospace;
  background: url("images/song-bg.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: -1;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border: 3px dashed white;
  text-decoration: none;
  color: white;
  background: black;
  z-index: 10;
}

.back-btn:hover {
  background: white;
  color: black;
}

/* ===== MAIN LAYOUT ===== */
.main-container {
  display: flex;
  gap: 20px;
  padding: 120px 20px 40px 20px;
  flex-wrap: wrap; /* makes responsive stacking on mobile */
  justify-content: center;
}

/* ===== BOX STYLE ===== */
.box {
  background: rgba(0,0,0,0.6);
  border: 6px dashed white;
  padding: 20px;
  border-radius: 12px;
  flex: 1 1 300px; /* flexible for responsive */
  min-width: 280px;
}

.box h2 {
  text-align: center;
  letter-spacing: 3px;
  margin-top: 0;
}

/* ===== FAVORITES GRID ===== */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-top: 15px;
}

.fav-item {
  position: relative;
  width: 90px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fav-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.fav-item:hover {
  transform: scale(1.2);
  z-index: 2;
}

.album-label {
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  font-size: 9px;
  background: black;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fav-item:hover .album-label {
  opacity: 1;
}

/* ===== SONG LIST ===== */
.song-list {
  margin-top: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.song-list div {
  padding: 8px;
  border-bottom: 1px solid white;
}

/* ===== VINYL STACK ===== */
.vinyl-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  min-width: 80px;
}

.vinyl {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for all */
.vinyl:hover {
  transform: rotate(15deg) scale(1.2);
  box-shadow: 0 0 15px rgba(255,255,255,0.7);
}

/* ELECTRONIC - Blue / Purple gradient */
.vinyl.electronic {
  background: radial-gradient(circle at 30% 30%, #000000, #8A2BE2);
}

/* ROCK - Red / Black gradient */
.vinyl.rock {
  background: radial-gradient(circle at 30% 30%, #FF4500, #000000);
}

/* INDIE - Green / Teal gradient */
.vinyl.indie {
  background: radial-gradient(circle at 30% 30%, #FFD700, #008080);
}

/* POP - Pink / Yellow gradient */
.vinyl.pop {
  background: radial-gradient(circle at 30% 30%, #FF69B4, #FFD700);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 900px) {
  .main-container {
    flex-direction: column;
    padding: 80px 20px 20px 20px;
  }

  .vinyl-strip {
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
  }
}
