/* MovieDB Search - blends with theme tokens */

:root{
  /* rely on existing variables if theme provides */
  --bg: var(--bg, #0c0d10);
  --panel: var(--panel, #131419);
  --text: var(--text, #f1f3f9);
  --muted: var(--muted, #a3a7b3);
  --accent: var(--accent, #7c4dff);
  --accent-2: var(--accent-2, #e50914);
  --card: var(--card, #191b23);
  --glass: var(--glass, rgba(255,255,255,.06));
  --border: var(--border, rgba(255,255,255,.08));
}

.mdbs-search-wrap{
  position:sticky; top:52px; z-index:90;
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.12)), var(--panel);
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(140%) blur(6px);
}
@media (max-width:680px){
  .mdbs-search-wrap{ top:48px; }
}

.mdbs-search-form{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 0;
}

.mdbs-search-input{
  flex:1;
  background:var(--glass);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.mdbs-search-input::placeholder{ color:var(--muted); }

.mdbs-search-btn{
  background:var(--accent);
  color:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:800;
}

.mdbs-search-results{
  position:absolute; left:0; right:0; top:calc(100% + 8px);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  padding:8px;
  max-height:60vh; overflow:auto;
}

.mdbs-item{
  display:flex; gap:10px; align-items:stretch;
  padding:8px; border-radius:10px; border:1px solid transparent;
}
.mdbs-item:hover{ background:var(--glass); border-color:var(--border); }

.mdbs-thumb{
  width:52px; height:78px; border-radius:8px; background:#222 center/cover no-repeat; flex:0 0 52px;
}

.mdbs-meta{
  display:flex; flex-direction:column; gap:4px; min-width:0; flex:1;
}
.mdbs-title{
  font-weight:800; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mdbs-sub{
  font-size:12px; color:var(--muted); display:flex; gap:8px; align-items:center;
}
.mdbs-badge{
  background:var(--accent); color:#fff; font-weight:800; font-size:11px; padding:3px 8px; border-radius:999px;
}

.mdbs-more{
  display:block; text-align:center; padding:8px; color:#cfd3df; font-size:13px; border-top:1px solid var(--border);
}
