/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #0f0f0f;
  color: #e6e6e6;
  padding: 20px;
}

/* ===== HEADER ===== */
.title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

button {
  background: #1db954;
  border: none;
  color: #000;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
}

button:hover {
  background: #1ed760;
}

/* ===== SEARCH / TOGGLE ===== */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.search-wrap input[type="text"] {
  background: #181818;
  border: 1px solid #2a2a2a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  width: 260px;
}

.search-wrap label {
  font-size: 13px;
  color: #aaa;
}

/* ===== SPOTLIGHT ===== */
.spotlight-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #181818;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.spotlight img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

#spotlightArtist {
  font-size: 18px;
  font-weight: 700;
}

#spotlightTitle {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

/* ===== CARD ===== */
.card {
  background: #181818;
  border-radius: 10px;
  padding: 12px;
  transition: background 0.2s ease;
}

.card:hover {
  background: #222;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ===== TEXT ===== */
.card .artist {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.card .title {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

/* ===== VOTE COUNT ===== */
.card .votes {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 6px;
}

/* ===== RED PERCENT BAR ===== */
.bar {
  width: 100%;
  height: 5px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: #e50914; /* SPOTIFY / NETFLIX RED */
  transition: width 0.6s ease;
}

/* ===== BUTTONS ===== */
.card button {
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
}

.card button.preview {
  background: transparent;
  border: 1px solid #333;
  color: #ccc;
}

.card button.preview:hover {
  background: #2a2a2a;
}

/* === ALIGNMENT LOCK (DO NOT REMOVE) === */

/* Artist name: force single-line height */
.card .artist {
  min-height: 18px;
  line-height: 18px;
}

/* Song title: reserve space for up to 2 lines */
.card .title {
  min-height: 32px;
  line-height: 16px;
}

/* Percentage / vote text */
.card .votes {
  min-height: 16px;
  line-height: 16px;
}
