/* Genre pills — picker (forms) and display (track page, etc.) */
.genre-pill-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-pill-picker__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #71717a;
}

.genre-pill {
  cursor: pointer;
  user-select: none;
}

.genre-pill__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.genre-pill__label {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.genre-pill__input:checked + .genre-pill__label {
  color: #fff;
  background: rgba(255, 69, 0, 0.2);
  border-color: rgba(255, 69, 0, 0.55);
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.15);
}

.genre-pill__input:focus-visible + .genre-pill__label {
  outline: 2px solid #ff4500;
  outline-offset: 2px;
}

.genre-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.genre-display__pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fcd34d;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.22);
}

/* Home — genre filter sidebar */
.genre-sidebar {
  margin-bottom: 1.25rem;
}

.genre-sidebar__block + .genre-sidebar__block {
  margin-top: 1.25rem;
}

.genre-sidebar__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
  margin: 0 0 0.75rem;
}

/* Mobile / tablet: horizontal scroll above tracks */
.genre-sidebar__nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.genre-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: #a1a1aa;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.genre-filter-pill:hover {
  color: #fff;
  border-color: #3f3f46;
}

.genre-filter-pill.is-active {
  color: #fff;
  background: rgba(255, 69, 0, 0.22);
  border-color: rgba(255, 69, 0, 0.55);
}

/* Tracks use full width of the centered main column */
.home-tracks-area {
  width: 100%;
}

/* Desktop: dock Estilos to the left of the centered main (max-w-5xl), outside the track grid */
@media (min-width: 1024px) {
  .genre-sidebar {
    position: fixed;
    z-index: 40;
    top: 5.75rem;
    left: max(1rem, calc(50% - 32rem - 14.5rem));
    width: 13rem;
    margin-bottom: 0;
    padding: 0.75rem 0;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .genre-sidebar__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
    gap: 0.4rem;
  }

  .genre-filter-pill {
    width: 100%;
  }
}

/* Very narrow desktop: keep sidebar in left margin without overlapping main */
@media (min-width: 1024px) and (max-width: 1180px) {
  .genre-sidebar {
    left: 0.75rem;
    width: 11.5rem;
  }
}
