/* 16.1: Scoped search layout; no changes to the player, wallet or catalogue styles. */
.ah-search-page{margin:0;background:#f7f8f5;color:#17211c;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ah-search-page *{box-sizing:border-box}
.ah-search-page [hidden]{display:none!important}
.ah-search-main{max-width:1360px;margin:auto;padding:32px 24px 20px;min-width:0}
.ah-search-hero{border:1px solid #e2e7d8;border-radius:22px;background:linear-gradient(120deg,#f0f4e1,#fff);padding:30px 36px;margin-bottom:32px}
.ah-search-eyebrow{font-weight:750;font-size:12px;color:#657822;letter-spacing:.08em;text-transform:uppercase}
.ah-search-hero h1{font-size:clamp(26px,3.3vw,40px);line-height:1.2;margin:9px 0 12px;letter-spacing:-.035em}
.ah-search-hero>p{max-width:780px;color:#5c665f;margin:0 0 20px}
.ah-search-form{max-width:900px}
.ah-search-form label{display:block;font-weight:750;font-size:14px;margin-bottom:6px}
.ah-search-input-row{display:flex;gap:10px;align-items:stretch}
.ah-search-input-row input{min-width:0;width:100%;border:1px solid #c8d1ba;border-radius:12px;background:#fff;color:inherit;font:inherit;font-size:16px;padding:13px 15px}
.ah-search-button{display:inline-flex;gap:10px;align-items:center;justify-content:center;border:1px solid #6a7e26;border-radius:12px;background:#6a7e26;color:#fff;cursor:pointer;padding:12px 22px;font:inherit;font-size:15px;font-weight:750;white-space:nowrap;text-decoration:none}
.ah-search-button:hover{background:#55661d}
.ah-search-button.secondary{background:#fff;color:#46591b;border-color:#bfcaa8}
.ah-search-page a:focus-visible,.ah-search-page button:focus-visible,.ah-search-page input:focus-visible{outline:3px solid #91aa42;outline-offset:3px}
.ah-search-form-bottom{display:flex;justify-content:space-between;gap:18px;margin-top:9px;color:#657064;font-size:12px}
.ah-search-form-bottom a{white-space:nowrap;color:#466014;font-weight:650}
#ah-search-status{min-height:22px;font-size:13px;margin:10px 0 0}
.ah-search-error{padding:13px 16px!important;border:1px solid #e8b494;border-radius:10px;background:#fff5ef;color:#833919!important;max-width:100%!important}
.ah-search-error a{display:inline-block;margin-left:5px;color:inherit;font-weight:700}
.ah-search-results{min-height:180px;scroll-margin-top:90px}
.ah-search-results[aria-busy="true"]{opacity:.65;transition:opacity .12s ease}
.ah-search-results-heading h2{font-size:23px;line-height:1.3;overflow-wrap:anywhere;margin:0 0 8px;letter-spacing:-.02em}
.ah-search-results-heading p,.ah-search-range{font-size:13px;color:#687067;margin:6px 0 16px}
.ah-search-type-summary{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.ah-search-type-summary span{padding:4px 11px;background:#eef2e5;border:1px solid #d9e1c5;border-radius:99px;color:#50632b;font-size:12px}
.ah-search-type-summary strong{margin-left:6px}
.ah-search-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ah-search-card{min-width:0;border:1px solid #dfe5d9;border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(22,36,19,.035)}
.ah-search-cover{position:relative;display:block;aspect-ratio:16/9;background:#233329;overflow:hidden;flex-shrink:0}
.ah-search-cover img{width:100%;height:100%;object-fit:cover;display:block}
.ah-search-kind{position:absolute;top:10px;left:10px;background:#fff;color:#344729;padding:3px 10px;border-radius:7px;font-size:12px;font-weight:750}
.ah-search-open{position:absolute;bottom:10px;right:10px;border-radius:99px;width:32px;height:32px;display:grid;place-items:center;background:#94a934;color:#fff;font-size:14px}
.ah-search-card-copy{padding:17px;display:flex;flex:1;flex-direction:column;min-width:0}
.ah-search-card h3{font-size:17px;line-height:1.35;margin:0 0 10px;overflow-wrap:anywhere}
.ah-search-card h3 a{color:inherit;text-decoration:none}
.ah-search-card h3 a:hover{text-decoration:underline}
.ah-search-creator{font-size:13px;line-height:1.55;margin:0 0 4px;overflow-wrap:anywhere}
.ah-search-creator>span{display:block;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.045em;color:#768067}
.ah-search-description{font-size:13px;line-height:1.65;color:#646d64;margin:10px 0;overflow-wrap:anywhere}
.ah-search-reason{font-size:11px;color:#59712e;background:#f4f7ed;padding:7px 8px;border-radius:6px;overflow-wrap:anywhere;margin:auto 0 12px}
.ah-search-detail{font-size:13px;font-weight:750;color:#536a23;text-decoration:none;display:flex;justify-content:space-between;gap:8px}
.ah-search-empty{border:1px dashed #cbd5bc;border-radius:16px;background:#fff;padding:26px 30px;max-width:100%}
.ah-search-empty h2,.ah-search-empty h3{margin:0 0 12px;font-size:20px}
.ah-search-empty p{color:#697167;margin:6px 0;font-size:14px}
.ah-search-empty a{color:#526a1e}
.ah-search-pagination{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin-top:28px}
.ah-search-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid #e1e6db;margin-top:40px;padding-top:18px;color:#768071;font-size:12px}
.ah-search-footer a{color:#4f6721;font-weight:700}
@media(max-width:1100px){.ah-search-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.ah-search-main{padding:22px 16px}.ah-search-hero{padding:24px}.ah-search-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:520px){.ah-search-main{padding:16px 12px}.ah-search-hero{padding:22px 17px;margin-bottom:25px;border-radius:17px}.ah-search-input-row{gap:7px}.ah-search-button{padding:12px 13px}.ah-search-input-row input{padding:12px 10px}.ah-search-form-bottom{flex-wrap:wrap;gap:5px}.ah-search-grid{grid-template-columns:minmax(0,1fr)}.ah-search-empty{padding:22px}.ah-search-results-heading h2{font-size:21px}.ah-search-hero>p{font-size:14px}.ah-search-card-copy{padding:18px}}
@media(prefers-reduced-motion:reduce){.ah-search-results[aria-busy="true"]{transition:none}}
