  /* ══════════════════════════════════════════
     search.css — Pagefind-powered results
     Requires main.css to be loaded first.
  ══════════════════════════════════════════ */

  /* ── LAYOUT ── */
  .search-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    position: relative;
    z-index: 1;
  }
  @media (max-width: 600px) { .search-layout { padding: 24px 16px 40px; } }

  /* ── HERO ── */
  .search-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .search-badge {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(176,122,16,0.2);
  }

  .search-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    line-height: 1.15;
  }

  .search-sub {
    font-size: 0.88rem;
    color: var(--muted);
  }

  /* ── SEARCH FORM ── */
  .search-form {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    gap: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  }
  .search-form:focus-within { border-color: var(--gold); }

  .sf-icon { color: var(--muted); font-size: 15px; flex-shrink: 0; }

  .search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    min-width: 0;
  }
  .search-form input::placeholder { color: var(--muted); }

  .sf-btn {
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .sf-btn:hover { background: var(--gold2); }

  /* ── RESULTS WRAPPER ── */
  .results-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    min-height: 120px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  }
  [data-theme="dark"] .results-wrap { box-shadow: 0 2px 16px rgba(0,0,0,0.3); }

  .no-query {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 0.9rem;
  }

  /* ── RESULT STATUS ── */
  .result-status {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    background: var(--surface);
  }
  .result-status[hidden] { display: none; }
  .result-status .result-count {
    color: var(--gold);
    font-weight: 600;
  }
  .result-status code {
    background: var(--surface2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
  }

  /* ── RESULT ROW ── */
  .result-list { display: flex; flex-direction: column; }

  .result-row {
    display: block;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
  }
  .result-row:last-child { border-bottom: none; }
  .result-row:hover { background: rgba(176,122,16,0.04); }
  [data-theme="dark"] .result-row:hover { background: rgba(212,150,14,0.06); }

  .result-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
    margin-bottom: 3px;
  }
  .result-row:hover .result-title { text-decoration: underline; }

  .result-artist {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 7px;
  }

  .result-snippet {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 6px;
  }
  /* Pagefind wraps matched terms in <mark> */
  .result-snippet mark {
    background: var(--gold-lt, rgba(176,122,16,0.18));
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
  }

  .result-url {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    opacity: 0.75;
  }

  /* ── PAGINATION ── */
  .result-pager {
    padding: 16px 22px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .result-pager:empty { display: none; }

  .page-btn {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 11px;
    margin: 0 2px;
    text-decoration: none;
    background: var(--card);
    transition: all 0.15s;
  }
  .page-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    font-weight: 600;
  }
  .page-gap {
    color: var(--muted);
    margin: 0 4px;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
  }

  /* ── MOBILE ── */
  @media (max-width: 600px) {
    .result-row    { padding: 14px 16px; }
    .result-status { padding: 12px 16px; }
    .result-pager  { padding: 12px 16px; }
    .result-title  { font-size: 1rem; }
  }
