/* Match the Nasheed search and filter surfaces without changing matching logic. */
body.quran-refreshed .qrf-library-tools .qrf-search{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 18px;border:1px solid #dac08b33;border-radius:99px;background:#0a0e0b8f;box-shadow:none;transition:border-color .18s}
body.quran-refreshed .qrf-library-tools .qrf-search:focus-within{border-color:#d9bb8073;box-shadow:none}
body.quran-refreshed .qrf-search>svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:#bca47a;stroke-width:1.6;stroke-linecap:round}
body.quran-refreshed .qrf-library-tools .qrf-search input{flex:1;width:100%;min-width:0;min-height:46px;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;outline:none;font:400 13px/1.6 Poppins,sans-serif;color:#e6e2d5}
body.quran-refreshed .qrf-library-tools .qrf-search input::placeholder{color:#aeb5a9;opacity:1}
body.quran-refreshed .qrf-search input::-webkit-search-cancel-button{appearance:none;-webkit-appearance:none}
body.quran-refreshed .qrf-search .qrf-search-clear{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0 -12px 0 0;padding:0;border:0;border-radius:50%;background:transparent;color:#c7c4b3;font-size:22px;cursor:pointer}
body.quran-refreshed .qrf-search .qrf-search-clear[hidden]{display:none}
body.quran-refreshed .qrf-library-tools .qrf-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;padding:0;max-width:100%}
body.quran-refreshed .qrf-library-tools .qrf-filters button{box-sizing:border-box;min-height:38px;padding:7px 14px;border:1px solid transparent;border-radius:99px;background:#ffffff09;color:#bcc2b7;font:400 12px/1.6 Poppins,sans-serif;box-shadow:none;transform:none;transition:background-color .18s,color .18s,border-color .18s}
body.quran-refreshed .qrf-library-tools .qrf-filters button:hover{background:#d9bb8014;color:#e8decd}
body.quran-refreshed .qrf-library-tools .qrf-filters button[aria-pressed=true]{border-color:#d9bb8080;background:linear-gradient(135deg,#d9bb8021,#adc1a214);color:#f0dfbd}
@media(max-width:820px){body.quran-refreshed .qrf-library-tools .qrf-search{padding-inline:14px;gap:9px}body.quran-refreshed .qrf-library-tools .qrf-search input{font-size:16px}body.quran-refreshed .qrf-library-tools .qrf-filters{flex-wrap:wrap;overflow:visible;padding:0;margin:12px 0;gap:8px}body.quran-refreshed .qrf-library-tools .qrf-filters button{min-height:44px;padding:9px 14px;white-space:nowrap}}
body.quran-refreshed .qrf-library-tools #maqamFilterRow{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0;max-width:100%;margin:0 0 14px;padding:0;overflow:visible;justify-content:flex-start}
body.quran-refreshed .qrf-library-tools #maqamFilterRow button{box-sizing:border-box;flex:0 0 auto;min-height:44px;max-width:100%;margin:0;padding:9px 14px;border:1px solid #dac08b33;border-radius:99px;background:#ffffff06;color:#bcc2b7;font:400 12px/1.6 Poppins,sans-serif;white-space:normal;box-shadow:none;transform:none;transition:background-color .18s,color .18s,border-color .18s}
body.quran-refreshed .qrf-library-tools #maqamFilterRow button[aria-pressed=true]{border-color:#d9bb8080;background:linear-gradient(135deg,#d9bb8021,#adc1a214);color:#f0dfbd}
body.quran-refreshed .qrf-library-tools #maqamFilterRow button:focus-visible{outline:2px solid #cbaa6f;outline-offset:2px}
@media(prefers-reduced-motion:reduce){body.quran-refreshed .qrf-library-tools :is(.qrf-search,button){transition:none}}

/* Keep both filter levels fully visible at phone widths. */
body.quran-refreshed .qrf-library-tools #maqamFilterRow::before{content:"Maqam";flex:0 0 100%;color:#b9b5a6;font:400 11px/1.5 Poppins,sans-serif;letter-spacing:.3px;margin:0 0 1px}
@media(max-width:820px){
 body.quran-refreshed .qrf-library-tools{width:100%;min-width:0;max-width:100%}
 body.quran-refreshed .qrf-library-tools .qrf-filters button{flex:0 1 auto;min-width:0;white-space:normal}
 body.quran-refreshed .qrf-library-tools #maqamFilterRow{gap:8px;margin-top:16px}
 body.quran-refreshed .qrf-library-tools #maqamFilterRow button{min-width:64px}
}
