/* ==========================================================================
   LyricBingo V2 — Unified search fields (canonical; loads after pro.css)
   Overrides legacy beatdesk-v2.css neon/purple search styling everywhere.
   ========================================================================== */

.lb-v2 .v2-search,
.lb-v2 .v2-search-pro,
.lb-v2 .v2-hub-search,
.lb-v2 .v2-spotlight__search,
.lb-v2 .v2-console-search {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  max-width: 420px;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0;
  padding: 0 16px !important;
  border-radius: 500px !important;
  border: 1px solid transparent !important;
  background: var(--pro-elevated, #181818) !important;
  box-shadow: none !important;
  cursor: text;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.lb-v2 .v2-hub-search {
  max-width: none;
  margin-top: 18px;
}

.lb-v2 .v2-spotlight__search {
  flex: 1;
  min-width: min(100%, 260px);
  max-width: 400px;
}

.lb-v2 .v2-console-search {
  flex: 1;
  min-width: min(100%, 280px);
}

.lb-v2 .v2-top-pro__search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
}

.lb-v2 .v2-top-pro__search .v2-search-pro {
  max-width: none;
  width: 100%;
}

.lb-v2 .v2-search:focus-within,
.lb-v2 .v2-search-pro:focus-within,
.lb-v2 .v2-hub-search:focus-within,
.lb-v2 .v2-spotlight__search:focus-within,
.lb-v2 .v2-console-search:focus-within {
  background: var(--pro-hover, #282828) !important;
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14)) !important;
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.18) !important;
}

.lb-v2 .v2-search .v2-ic,
.lb-v2 .v2-search-pro .v2-ic,
.lb-v2 .v2-hub-search .v2-ic,
.lb-v2 .v2-spotlight__search .v2-ic,
.lb-v2 .v2-console-search .v2-ic {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pro-subtle, #6a6a6a) !important;
  line-height: 0;
}

.lb-v2 .v2-search .v2-ic-svg,
.lb-v2 .v2-search-pro .v2-ic-svg,
.lb-v2 .v2-hub-search .v2-ic-svg,
.lb-v2 .v2-spotlight__search .v2-ic-svg,
.lb-v2 .v2-console-search .v2-ic-svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.25;
}

.lb-v2 .v2-search:focus-within .v2-ic,
.lb-v2 .v2-search-pro:focus-within .v2-ic,
.lb-v2 .v2-hub-search:focus-within .v2-ic,
.lb-v2 .v2-spotlight__search:focus-within .v2-ic,
.lb-v2 .v2-console-search:focus-within .v2-ic {
  color: var(--pro-muted, #b3b3b3) !important;
}

.lb-v2 .v2-hub-search__icon,
.lb-v2 .v2-spotlight__search > span:not(.v2-ic) {
  display: none !important;
}

.lb-v2 .v2-search input,
.lb-v2 .v2-search-pro input,
.lb-v2 .v2-hub-search input,
.lb-v2 .v2-spotlight__search input,
.lb-v2 .v2-console-search input {
  flex: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--pro-text, #ffffff) !important;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.lb-v2 .v2-search input::placeholder,
.lb-v2 .v2-search-pro input::placeholder,
.lb-v2 .v2-hub-search input::placeholder,
.lb-v2 .v2-spotlight__search input::placeholder,
.lb-v2 .v2-console-search input::placeholder {
  color: var(--pro-subtle, #6a6a6a) !important;
  opacity: 1 !important;
}

.lb-v2 .v2-search input::-webkit-search-cancel-button,
.lb-v2 .v2-search-pro input::-webkit-search-cancel-button,
.lb-v2 .v2-hub-search input::-webkit-search-cancel-button,
.lb-v2 .v2-spotlight__search input::-webkit-search-cancel-button,
.lb-v2 .v2-console-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6a6a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}

/* Legacy playlist wrapper — neutralize old neon card around search */
.lb-v2 .v2-library-search {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  height: 40px !important;
  border-radius: 500px !important;
  border: 1px solid transparent !important;
  background: var(--pro-elevated, #181818) !important;
  box-shadow: none !important;
}

.lb-v2 .v2-library-search:focus-within {
  background: var(--pro-hover, #282828) !important;
  border-color: var(--pro-border-strong, rgba(255, 255, 255, 0.14)) !important;
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.18) !important;
}

.lb-v2 .v2-library-search .v2-input {
  margin-bottom: 0 !important;
}

@media (max-width: 560px) {
  .lb-v2 .v2-spotlight__search {
    max-width: none !important;
  }
}
