*{box-sizing:border-box}
:root{
  --navy:#15234B;
  --blue:#70C8F1;
  --orange:#F97316;
  --bg:#F5F7FB;
  --card:#FFFFFF;
  --text:#1F2937;
  --muted:#667085;
  --border:#E5EAF2;
  --shadow:0 18px 48px rgba(21,35,75,.10);
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.wrap{max-width:1180px;margin:auto}
.hero{
  padding:34px 16px 24px;
  color:#fff;
  background:
    radial-gradient(circle at top right,rgba(112,200,241,.35),transparent 34%),
    linear-gradient(135deg,var(--navy),#243a6b);
}
.badge-top{
  display:inline-flex;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  padding:6px 10px;
  color:#DFF4FD;
  font-size:13px;
  font-weight:800;
}
h1{
  font-size:clamp(32px,5vw,58px);
  line-height:1.02;
  margin:16px 0 8px;
}
p{
  color:rgba(255,255,255,.82);
  font-size:17px;
  margin:0 0 18px;
}
.search-panel{
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.20);
  border-radius:26px;
  padding:12px;
  backdrop-filter:blur(8px);
}
.search-main{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}
.advanced{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
  margin-top:10px;
}
input,select,button{font:inherit}
input,select{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:13px 14px;
  background:#fff;
  outline:none;
}
input:focus,select:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(112,200,241,.22);
}
button{
  border:0;
  border-radius:14px;
  background:var(--orange);
  color:white;
  font-weight:850;
  padding:13px 18px;
  cursor:pointer;
}
button.secondary{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.25);
}
.layout{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:18px;
  padding:22px 16px 70px;
}
.panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}
.panel h3{margin:0 0 12px;color:var(--navy)}
.status{color:var(--muted);margin-bottom:14px}
.results{display:grid;gap:14px}
.card{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:16px;
  box-shadow:var(--shadow);
}
.thumb{
  width:120px;
  height:160px;
  object-fit:cover;
  object-position:top center;
  border-radius:14px;
  border:1px solid var(--border);
  background:#eef2f7;
}
.thumb-fallback{
  width:120px;
  height:160px;
  border-radius:14px;
  background:#eef2f7;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:800;
}
.card h2{
  margin:0;
  color:var(--navy);
  font-size:22px;
  line-height:1.22;
}
.meta{
  color:var(--muted);
  font-size:14px;
  margin-top:7px;
}
.badges,.chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:12px 0;
}
.badge,.chip{
  border-radius:999px;
  background:#EEF6FF;
  color:var(--navy);
  padding:6px 10px;
  font-size:12px;
  font-weight:800;
  border:0;
  cursor:pointer;
}
.snippet{line-height:1.56;color:#344054}
mark{background:#FFF1B8;border-radius:4px}
.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:15px;
}
.actions a{
  text-decoration:none;
  border-radius:13px;
  padding:10px 14px;
  background:var(--navy);
  color:#fff;
  font-weight:850;
}
.actions a.secondary{background:#EAF7FE;color:var(--navy)}
.empty{
  text-align:center;
  background:#fff;
  border:1px dashed var(--border);
  border-radius:24px;
  padding:44px;
  color:var(--muted);
}
@media(max-width:820px){
  .hero{padding:18px 10px}
  .search-panel{border-radius:18px}
  .search-main,.advanced,.layout,.card{grid-template-columns:1fr}
  .layout{padding:14px 10px 50px}
  .sidebar{order:2}
  button{width:100%}
  .card{border-radius:18px;padding:15px}
  .thumb,.thumb-fallback{width:100%;height:220px}
}
