/* Article list — long scroll + song-archive filter panel (library section). */

.al-wrap { max-width: 820px; }

.sec { padding: 64px 0; }
.sec .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec .head .eyebrow { color: var(--accent); }
.sec .head .ttl { font-family: var(--serif-fa); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -0.6px; margin: 8px 0 0; color: var(--ink); }
[dir="ltr"] .sec .head .ttl { font-family: var(--serif); }

.wt-filter-anchor { position: relative; flex-shrink: 0; }

.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-btn .badge[hidden] { display: none !important; }

.wt-filter-panel { display: none; position: absolute; top: 100%; right: 0; margin-top: 10px; width: min(640px, calc(100vw - 32px)); 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); }
[dir="rtl"] .wt-fp-head h3 { font-family: var(--serif-fa); }
.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; max-height: min(46vh, 360px); overflow-y: auto; }
.wt-fp-body.on { display: block; }
.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: start; }
.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-clear-all[hidden] { display: none !important; }

.articles-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.article-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0 22px 12px;
  border-bottom: 1px solid var(--line);
  border-inline-start: 3px solid transparent;
  cursor: pointer; transition: border-color 0.15s, padding 0.15s, opacity 0.15s;
  text-decoration: none;
}
.article-card:hover {
  border-inline-start-color: var(--accent);
  padding-inline-start: 18px;
}
.article-card:hover .a-ttl { color: var(--accent-deep); }
.article-card__body { min-width: 0; flex: 1; }
.article-card__chev { flex-shrink: 0; color: var(--ink-4); }

.article-card .meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.3px; margin: 0 0 8px;
  text-transform: uppercase; font-weight: 700;
}
.article-card .meta .author { color: var(--accent); }
.article-card .meta .readtime { color: var(--accent); letter-spacing: 0.6px; }
.article-card .meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-4); }
.article-card .a-ttl {
  font-family: var(--serif-fa); font-size: 24px; font-weight: 500; line-height: 1.35;
  color: var(--ink); margin: 0; letter-spacing: -0.3px; transition: color 0.15s;
}
[dir="ltr"] .article-card .a-ttl { font-family: var(--serif); }
.article-card .a-by { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; }

[data-al-row][hidden] { display: none !important; }
.wt-empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 15px; }
.wt-empty[hidden] { display: none !important; }

@media (max-width: 720px) {
  .sec { padding: 40px 0; }
  .sec .head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .wt-filter-anchor { align-self: stretch; }
  .wt-filter-btn { width: 100%; justify-content: center; }
  .wt-filter-panel { right: auto; left: 0; width: 100%; }
  [dir="rtl"] .wt-filter-panel { left: auto; right: 0; }
  .article-card .a-ttl { font-size: 20px; }
}
