.filterPanel{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 360px;
  max-width: 90vw;
  background: rgba(20,20,20,0.96);
  border-right: 1px solid rgba(255,255,255,0.12);
  transform: translateX(-102%);
  transition: transform 180ms ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.filterPanel.show{ transform: translateX(0); }

.filterHdr{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.filterTitle{ font-weight: 700; }

.filterClose{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.filterBody{
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filterGroup{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
}

.filterGroupTitle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.filterGroupTitle .chev{
  opacity: 0.85;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}
.filterGroupBody{ margin-top: 8px; }

.filterGroup.collapsed .filterGroupBody{ display: none; }
.filterGroup.collapsed .filterGroupTitle .chev{ transform: rotate(-90deg); }

.fRow{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.fRow span{ width: 120px; font-size: 12px; opacity: 0.9; }
.fRow input, .fRow select{
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.fRow.two{ justify-content: space-between; }
.fRow.two > label{ flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fRow.two > label span{ width: auto; }

.fChecks{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; flex: 1; }
.fChecks label{ display: flex; align-items: center; gap: 6px; font-size: 12px; }

.filterActions{ display: flex; gap: 8px; }
.filterActions button{
  flex: 1;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}
.filterActions button.secondary{ background: rgba(0,0,0,0.25); }

.filterResults{ border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; }
.resultsHdr{ display: flex; justify-content: space-between; padding: 8px 10px; background: rgba(0,0,0,0.22); border-bottom: 1px solid rgba(255,255,255,0.12); }
.resultsList{ max-height: 44vh; overflow: auto; }

.resultRow{
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.resultRow:hover{ background: rgba(255,255,255,0.06); }
.resultThumb{
  width: 50px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}
.resultThumb img{ width: 100%; height: 100%; object-fit: cover; display:block; }

.resultText{ display: flex; flex-direction: column; gap: 2px; }
.resultName{ font-weight: 700; font-size: 12px; }
.resultMeta{ font-size: 11px; opacity: 0.9; }
.resultPath{ font-size: 10px; opacity: 0.75; word-break: break-all; }
