.feedback-btn {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #dce7ff;
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.feedback-btn:hover {
  border-color: rgba(48,169,222,0.6);
  background: rgba(48,169,222,0.12);
}

.confidence-chip {
  display: inline-block;
  margin: 0.35rem 0 0.15rem;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 252, 0, 0.35);
  background: rgba(124, 252, 0, 0.10);
  color: #d5ffb0;
  font-size: 0.72rem;
  font-weight: 700;
}

.why-chip {
  display: inline-block;
  margin: 0.15rem 0 0.15rem;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(48,169,222,0.45);
  background: rgba(48,169,222,0.14);
  color: #bfe9ff;
  font-size: 0.73rem;
  font-weight: 600;
}

.auth-bar {
  margin-bottom: 14px;
  border: 1px solid rgba(48,169,222,0.25);
  background: rgba(10, 25, 35, 0.55);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-actions input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: #dce7ff;
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 200px;
}

/* Recommendations page mobile layout fixes */
html, body {
  overflow-x: hidden;
}

.mobile-nav-toggle {
  display: none;
}

.rec-filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  row-gap: 0.7rem;
}

.genre-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.genre-match-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: #dce7ff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.genre-hint {
  color: #9fb0c9;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

#becauseSection {
  margin-top: 18px;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  background: rgba(4,10,18,0.72);
  display: grid;
  place-items: center;
  z-index: 2500;
}

.quiz-card {
  width: min(92vw, 430px);
  background: rgba(11,22,35,0.95);
  border: 1px solid rgba(48,169,222,0.35);
  border-radius: 14px;
  padding: 14px;
}

.quiz-card h3 { margin: 0 0 6px; }
.quiz-sub { margin: 0 0 10px; color: #9fb0c9; font-size: 0.9rem; }
.quiz-card label { display:block; margin: 8px 0 5px; font-size: 0.86rem; color:#b5c5df; }
.quiz-card select { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #dce7ff; border-radius: 8px; padding: 8px 10px; color-scheme: dark; }
.quiz-card select option { background-color: #0f1b2b; color: #dce7ff; }
.quiz-actions { display:flex; gap: 8px; margin-top: 12px; }

/* show all genre pills without clipping */
.genre-tags-row {
  flex-wrap: wrap;
  overflow: visible;
  row-gap: 0.45rem;
  max-height: none;
}

@media (max-width: 768px) {
  .site-nav-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(48,169,222,0.35);
    border-radius: 9px;
    background: rgba(255,255,255,0.04);
    color: #d8f4ff;
    font-size: 1rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.65rem 0.15rem 0.25rem;
    white-space: normal;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.95rem;
  }

  .controls-inner {
    padding: 0 0.85rem !important;
  }

  .genre-tags-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .genre-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .genre-match-select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .auth-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-actions input {
    min-width: 0;
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr !important;
  }

  .select-wrap,
  .select-wrap select,
  .select-wrap input[type="range"] {
    width: 100%;
  }

  .apply-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .apply-wrap .apply-btn,
  .apply-wrap .reset-btn {
    width: 100%;
  }
}
