/* Song archive — lifted from the worship-songs mockup (.wt-* listing). */
.wt-pane { display: none; padding: 48px 0 80px; }
.wt-pane.on { display: block; }

.wt-filter-anchor { position: relative; margin-bottom: 24px; }
.wt-search-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.wt-search { position: relative; }
/* Beat `.field input` from design-base (same 0,1,1 otherwise → icon overlaps text). */
.wt-pane .wt-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.wt-pane .wt-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(186, 56, 133, 0.12); }
.wt-pane .wt-search input[type="search"]::-webkit-search-decoration,
.wt-pane .wt-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.wt-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; z-index: 1; }
[dir="rtl"] .wt-pane .wt-search input { padding: 14px 48px 14px 18px; }
[dir="rtl"] .wt-search svg { left: auto; right: 18px; }

.wt-filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 0.15s; position: relative; }
.wt-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.wt-filter-btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.wt-filter-btn .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }

.wt-filter-panel { display: none; position: absolute; top: 100%; right: 0; margin-top: 10px; width: min(640px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px rgba(74, 23, 56, 0.18), 0 6px 14px rgba(74, 23, 56, 0.08); padding: 22px 24px 18px; z-index: 60; }
[dir="rtl"] .wt-filter-panel { right: auto; left: 0; }
.wt-filter-panel.on { display: block; }
.wt-fp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wt-fp-head h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -0.2px; margin: 0; color: var(--ink); }
.wt-fp-close { width: 30px; height: 30px; border-radius: 999px; background: transparent; border: none; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wt-fp-close:hover { background: var(--paper-2); color: var(--ink); }
.wt-fp-axis { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.wt-fp-axis button { background: transparent; border: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 10px 18px; cursor: pointer; position: relative; letter-spacing: -0.1px; }
.wt-fp-axis button:hover { color: var(--ink); }
.wt-fp-axis button.on { color: var(--accent); }
.wt-fp-axis button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.wt-fp-body { display: none; }
.wt-fp-body.on { display: block; }
.wt-fp-quality { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; margin-bottom: 16px; }
.wt-fp-quality button { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 7px 18px; border-radius: 999px; cursor: pointer; line-height: 1; }
.wt-fp-quality button.on { background: var(--accent); color: #fff; }
.wt-fp-alpha-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; }
.wt-fp-key-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 360px; }
.wt-fp-topic-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-fp-topic-grid .wt-fp-cell { padding: 8px 14px; width: auto; text-align: left; }
.wt-fp-help { font-size: 12.5px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.5; }
.wt-fp-cell { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border: 1px solid transparent; border-radius: 8px; padding: 10px 0; cursor: pointer; transition: all 0.12s; text-align: center; }
.wt-fp-cell:hover { border-color: var(--accent); color: var(--accent); }
.wt-fp-cell.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.wt-fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.wt-fp-clear { background: transparent; border: none; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; padding: 8px 0; }
.wt-fp-clear:hover { color: var(--ink); }
.wt-fp-apply { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px; font-family: inherit; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(186, 56, 133, 0.28); }
.wt-fp-apply:hover { background: var(--accent-deep); }

.wt-active-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.wt-active-filters.empty { display: none; }
.wt-active-filters .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: var(--ink-4); text-transform: uppercase; margin-right: 4px; }
.wt-active-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wt-active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-deep); font-size: 13px; font-weight: 600; }
.wt-active-chip button { width: 18px; height: 18px; border-radius: 999px; background: rgba(186, 56, 133, 0.20); color: var(--accent-deep); border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wt-active-chip button:hover { background: var(--accent); color: #fff; }
.wt-clear-all { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--accent-deep); cursor: pointer; }

.wt-sort-wrap { position: relative; }
.wt-sort-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 14px; background: var(--paper-2); border: 1px solid transparent; font-family: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.wt-sort-btn:hover { background: var(--paper-3); }
.wt-sort-btn strong { color: var(--ink); font-weight: 600; }
.wt-sort-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(74, 23, 56, 0.12), 0 4px 12px rgba(74, 23, 56, 0.06); padding: 6px; z-index: 30; }
.wt-sort-menu.on { display: block; }
.wt-sort-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; background: transparent; border: none; font-family: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; font-weight: 500; }
.wt-sort-menu button:hover { background: var(--paper-2); }
.wt-sort-menu button.on { background: var(--accent-tint); color: var(--accent-deep); font-weight: 600; }
.wt-sort-menu button .check { width: 14px; color: var(--accent); opacity: 0; }
.wt-sort-menu button.on .check { opacity: 1; }
[dir="rtl"] .wt-sort-menu { right: auto; left: 0; }
[dir="rtl"] .wt-sort-menu button { text-align: right; }

/* table */
.wt-table-head { display: grid; grid-template-columns: 1.6fr 1fr 60px; gap: 16px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink-4); text-transform: uppercase; }
.wt-row { display: grid; grid-template-columns: 1.6fr 1fr 60px; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; transition: background 0.12s; margin: 0; text-decoration: none; }
/* Author `display: grid` beats the UA [hidden] rule — same fix as article-list. */
.wt-row[hidden] { display: none !important; }
.wt-empty[hidden] { display: none !important; }
.wt-filter-btn .badge[hidden] { display: none !important; }
.wt-clear-all[hidden] { display: none !important; }
.wt-row:hover { background: var(--accent-tint); }
.wt-row .ttl { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.2px; line-height: 1.25; }
.wt-row:hover .ttl { color: var(--accent-deep); }
.wt-row .artist { font-size: 13.5px; color: var(--ink-2); }
.wt-row .key { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 8px; background: var(--paper-2); font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--ink); width: fit-content; min-width: 38px; }

.wt-empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 15px; }

@media (max-width: 720px) {
  .wt-search-row { grid-template-columns: 1fr; }
  .wt-table-head { display: none; }
  .wt-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .wt-row .artist { grid-column: 1; }
}
