:root {
  --bg: #f6f5f2; --card: #ffffff; --line: #e4e1da; --text: #1d1b18; --muted: #6d675e;
  --accent: #0f6e5a; --accent-ink: #ffffff; --soft: #e8f2ef; --warn: #9a3b1f;
  --radius: 14px;
  font-family: Vazirmatn, "Vazir", Tahoma, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141412; --card: #1d1c1a; --line: #2f2d29; --text: #ece9e3; --muted: #a29b90; --accent: #4cc3a3; --accent-ink: #0b1f1a; --soft: #1d2c28; --warn: #f0a07f; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 15px; line-height: 1.6; padding-bottom: 96px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.top h1 { font-size: 26px; margin: 8px 0 2px; letter-spacing: -0.3px; }
.top .sub { margin: 0 0 18px; color: var(--muted); }
.search { display: flex; gap: 8px; position: sticky; top: 0; padding: 10px 0; background: var(--bg); z-index: 5; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search button, .more { font: inherit; padding: 0 20px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 600; }
.meta { color: var(--muted); min-height: 1.6em; margin: 6px 2px 10px; font-size: 13px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; }
.row1 { display: flex; align-items: center; gap: 12px; }
.play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--accent); font-size: 15px; cursor: pointer; }
.play[disabled] { opacity: .35; cursor: default; }
.play.on { background: var(--accent); color: var(--accent-ink); }
.names { min-width: 0; flex: 1; }
.names .t { font-weight: 700; overflow-wrap: anywhere; }
.names .a { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.badge { flex: none; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--accent); }
.row2 { font-size: 13px; color: var(--muted); }
.row2 select { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); max-width: 100%; }
.row3 { display: flex; gap: 8px; }
.row3 input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.dl { flex: none; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.more { display: block; margin: 16px auto 0; padding: 10px 28px; }
.more[hidden] { display: none; }
.empty { text-align: center; color: var(--muted); padding: 28px 8px; }
.player { position: fixed; inset: auto 0 0 0; background: var(--card); border-top: 1px solid var(--line); padding: 8px 16px; display: flex; align-items: center; gap: 12px; z-index: 10; }
.player[hidden] { display: none; }
.pl-name { flex: 0 1 34%; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player audio { flex: 1; min-width: 0; height: 40px; }
.pl-close { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
@media (max-width: 520px) {
  .player { flex-wrap: wrap; gap: 4px; }
  .pl-name { flex-basis: calc(100% - 40px); }
  .player audio { flex-basis: 100%; }
}
