/* Wallpaper search & actions. Load after ii.css, no global resets. */
.il-search-bar { box-sizing:border-box; margin: 0 0 20px; padding: 16px 18px 12px; background:#f4f9fb; border:1px solid #dbe9ed; border-radius: 14px; }
.il-search-form { display:flex; align-items:stretch; gap:10px; width:100%; margin:0; }
.il-search-form__field { min-width: 0; flex:1 1 auto; display:flex; align-items:center; gap:11px; padding: 0 14px; color:#66828e; border:1px solid #c8d7dd; background:#fff; border-radius: 10px; }
.il-search-form__field:focus-within { border-color:#409eb0; box-shadow:0 0 0 3px rgba(68,171,188,.14); }
.il-search-form__field svg { flex:none; }
.il-search-form__field input { width:100%; min-width:0; height:50px; padding:0; border:0; outline:0; background:none; color:#1b3540; font-size:16px; }
.il-search-form__field input::placeholder { color:#83949d; }
.il-search-form__sort { width:130px; max-width:35%; height:52px; border:1px solid #c8d7dd; border-radius:10px; color:#2c4f5d; background:#fff; font-size:14px; padding:0 12px; }
.il-search-form__submit { flex:0 0 105px; border:0; background:#176b80; border-radius:10px; color:#fff; font-size:15px; font-weight:700; cursor:pointer; }
.il-search-form__submit:hover { background:#075167; }
.il-search-bar__tip { margin:9px 2px 0; font-size:12px; color:#65808d; }
.il-search-bar__tip a { color:#176b80; text-decoration:underline; }
.il-result-bar {display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 20px; padding-bottom:11px; border-bottom:1px solid #dce5e8;}
.il-result-bar h1 {border:0!important; margin:0 0 4px!important; padding:0!important; font-size:20px!important; font-weight:750; color:#223844; overflow-wrap:anywhere; }
.il-result-bar p { margin:0; color:#71828a; font-size:12px; }
.il-clear-search {flex:none; font-size:13px; color:#176b80!important; border:1px solid #b7dbe2; border-radius:30px; padding:8px 12px; }
.il-empty-results { background:#f3f7f9; color:#41515a; border-radius:12px; padding:20px; margin-bottom:18px; font-size:14px; }
.il-pagination {display:flex; justify-content:center; align-items:center; gap:18px; margin:16px 0 30px; font-size:14px; color:#607681; }
.il-pagination a { background:#f4f9fa; padding:10px 16px; border:1px solid #d5e3e7; border-radius:10px; text-decoration:none; color:#176b80; }
.il-wallpaper-collections {margin-bottom:12px;}
.il-wallpaper-collections .matome_list img.photo { width:100%; height:auto; display:block; }
.il-wallpaper-results ul.image_list li a {text-decoration:none; display:block;}
.il-wallpaper-thumb { display:block; border:4px solid #ddd; background:#f4f4f4; }
.il-wallpaper-results ul.image_list li p {border:0;}
.il-wallpaper-results ul.image_list li h3 {margin-top:5px;}
.il-wallpaper-actions { display:flex; align-items:stretch; gap:10px; margin:15px 0 8px; width:100%; }
.il-wallpaper-action {flex:1 1 0; min-width:0; min-height:52px; box-sizing:border-box; border-radius:10px; padding:12px 8px; display:flex; justify-content:center; align-items:center; text-align:center; font-size:14px; font-weight:700; line-height:1.35; text-decoration:none!important; }
.il-wallpaper-action--download {background:#156a82; color:#fff!important;}
.il-wallpaper-action--download:hover {background:#07536a; color:#fff!important;}
.il-wallpaper-action--app {background:#fff; border:2px solid #156a82; color:#156a82!important;}
.il-wallpaper-action--app:hover {background:#e8f7fa; color:#156a82!important;}
@media (max-width:640px) {
 .il-search-bar {padding:12px; margin:0 0 15px; border-radius:0; }
 .il-search-form {gap:8px; display:grid; grid-template-columns:minmax(0,1fr) 100px; }
 .il-search-form__field {grid-column:1/-1; height:50px;}
 .il-search-form__sort {width:100%;max-width:none; height:46px; font-size:14px; }
 .il-search-form__submit {height:46px; }
 .il-result-bar {align-items:flex-start; }
 .il-result-bar h1 {font-size:18px!important;}
 .il-wallpaper-action {font-size:12px;min-height:50px;}
}

/* Ensure thumbnails remain contained inside the responsive grid. */
.il-wallpaper-results .image_list .il-wallpaper-thumb img.photo {display:block;width:100%;height:auto;max-width:100%;}
.il-wallpaper-results .image_list li h3 {overflow-wrap:anywhere;}
