/* ==========================================================================
   LyricBingo V2 — Collections (uses Pro tokens from beatdesk-v2-pro.css)
   ========================================================================== */

.v2-home-hub,
.v2-library-page {
  max-width: 1200px;
}

.v2-home-hub__hero {
  position: relative;
  padding: 0 0 28px;
  margin-bottom: 24px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.v2-home-hub__title {
  margin: 0;
  font-family: var(--v2-font);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.v2-home-hub__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Search visuals: beatdesk-v2-search.css */

.v2-home-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
}

.v2-home-hub__hero .v2-spotlight__search {
  display: none;
}

.v2-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.v2-col-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 0;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: var(--pro-elevated, #181818);
  overflow: hidden;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.v2-col-card__shine {
  display: none;
}

.v2-col-card:hover {
  transform: translateY(-4px);
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.v2-col-card.has-locks {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.35);
}

.v2-col-card__art {
  height: 140px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
}

.v2-col-card__art--empty {
  display: grid;
  place-items: center;
  background: var(--pro-hover, #282828);
}

.v2-col-card__art--empty::after {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--pro-accent-dim, rgba(30, 215, 96, 0.14));
}

.v2-col-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.v2-col-card__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pro-accent, #1ed760);
}

.v2-col-card__body strong {
  font-family: var(--v2-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.v2-col-card__body > span:last-child {
  font-size: 13px;
  color: var(--v2-muted);
  margin-top: auto;
}

.v2-col-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.v2-col-nav__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 500px;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  background: var(--pro-elevated, #181818);
  color: var(--pro-muted, #b3b3b3);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.v2-col-nav__chip:hover,
.v2-col-nav__chip.is-active {
  border-color: var(--pro-accent, #1ed760);
  background: var(--pro-hover, #282828);
  color: var(--pro-text, #fff);
}

.v2-col-nav__chip span {
  padding: 2px 7px;
  border-radius: 500px;
  font-size: 11px;
  background: var(--pro-hover, #282828);
  color: var(--pro-subtle, #6a6a6a);
}

.v2-col-stack {
  display: grid;
  gap: 32px;
}

.v2-col-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.v2-col-section__head h2 {
  margin: 0 0 4px;
  font-family: var(--v2-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.v2-col-section__head p {
  margin: 0;
  font-size: 14px;
  color: var(--v2-muted);
}

.v2-vol-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.v2-vol-scroll::-webkit-scrollbar {
  height: 5px;
}

.v2-vol-scroll::-webkit-scrollbar-thumb {
  background: var(--pro-hover, #282828);
  border-radius: 999px;
}

.v2-vol-card {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  background: var(--pro-elevated, #181818);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.v2-vol-card:hover {
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14));
  transform: translateY(-2px);
}

.v2-vol-card--locked {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.3);
}

.v2-vol-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.v2-vol-card__vol {
  font-size: 12px;
  font-weight: 700;
  color: var(--pro-accent, #1ed760);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v2-vol-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.v2-vol-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--v2-muted);
}

.v2-vol-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-col-modal[hidden] {
  display: none !important;
}

.v2-col-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.v2-col-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.v2-col-modal__sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background: var(--pro-elevated, #181818);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 22px;
}

.v2-col-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  background: var(--pro-hover, #282828);
  color: var(--pro-text, #fff);
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
}

.v2-col-modal__head h2 {
  margin: 0 0 4px;
  font-family: var(--v2-font);
  font-size: 22px;
  font-weight: 700;
}

.v2-col-modal__head p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 14px;
}

.v2-col-modal__list {
  display: grid;
  gap: 8px;
}

.v2-col-modal__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--pro-border, rgba(255, 255, 255, 0.08));
  background: var(--pro-card, #1e1e1e);
  color: inherit;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.v2-col-modal__item:hover {
  background: var(--pro-hover, #282828);
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14));
}

.v2-col-modal__item.is-locked {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.3);
}

.v2-col-modal__vol {
  font-size: 13px;
  font-weight: 700;
  color: var(--pro-accent, #1ed760);
  text-align: center;
}

.v2-col-modal__item em {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--pro-accent, #1ed760);
}

@media (max-width: 640px) {
  .v2-home-hub__tools {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-home-hub__actions .v2-btn {
    flex: 1;
  }

  .v2-col-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
