/* ════════════════════════════════════════════════════════
   BDSMLust Search Overlay — YouPorn-style smart panel
   Dodaje se na vrh postojećeg search.css
════════════════════════════════════════════════════════ */

/* ── BACKDROP ── */
.bds-overlay-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  animation: bds-fade-in 0.2s ease;
}
.bds-overlay-backdrop.open { display: block; }
@keyframes bds-fade-in { from { opacity:0; } to { opacity:1; } }

/* ── PANEL WRAPPER ── */
.bds-overlay-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #0c0a08;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(0,0,0,.82), 0 0 0 1px rgba(201,168,76,.05);
  z-index: 9999;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: none;
  animation: bds-panel-in 0.2s ease;
}
.bds-overlay-panel.open { display: block; }
.bds-overlay-panel::-webkit-scrollbar { display: none; }
@keyframes bds-panel-in {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── PANEL SECTION ── */
.bds-op-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.bds-op-section:last-child { border-bottom: none; }

.bds-op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.bds-op-title {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5b503c;
}
.bds-op-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #C9A84C;
  text-decoration: none;
  opacity: .75;
  transition: opacity .15s;
}
.bds-op-link:hover { opacity: 1; }

/* ── TRENDING PILLS ── */
.bds-op-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.bds-op-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  background: transparent;
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 999px;
  color: #9A8F78;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .02em;
  transition: all .15s;
  white-space: nowrap;
}
.bds-op-pill::before {
  content: '⌕';
  color: #5b503c;
  font-size: 13px;
}
.bds-op-pill:hover {
  border-color: rgba(201,168,76,.45);
  color: #E8DFC8;
  background: rgba(201,168,76,.05);
}

/* ── CATEGORY CARDS (horizontal scroll) ── */
.bds-op-cat-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.bds-op-cat-row::-webkit-scrollbar { display: none; }

.bds-op-cat-card {
  flex-shrink: 0;
  width: 108px;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.bds-op-cat-card:hover {
  border-color: rgba(201,168,76,.38);
  transform: translateY(-2px);
}
.bds-op-cat-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: #1a1508;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.bds-op-cat-label {
  padding: 7px 9px 8px;
  background: #131008;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #9A8F78;
}
.bds-op-cat-sub {
  font-size: 9px;
  color: #5b503c;
  font-weight: 400;
  margin-top: 1px;
}

/* ── PERFORMER CARDS ── */
.bds-op-person-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bds-op-person-row::-webkit-scrollbar { display: none; }

.bds-op-person-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 155px;
  padding: 9px 13px 9px 9px;
  background: #131008;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.bds-op-person-card:hover {
  border-color: rgba(201,168,76,.3);
  background: #1a1508;
}
.bds-op-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1a1508;
  border: 1px solid rgba(201,168,76,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.bds-op-avatar img { width:100%; height:100%; object-fit:cover; }
.bds-op-person-name {
  font-size: 13px;
  font-weight: 700;
  color: #E8DFC8;
  line-height: 1.2;
}
.bds-op-person-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-top: 2px;
}

/* ── STUDIO CARDS ── */
.bds-op-studio-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bds-op-studio-row::-webkit-scrollbar { display: none; }

.bds-op-studio-card {
  flex-shrink: 0;
  width: 126px;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.bds-op-studio-card:hover {
  border-color: rgba(201,168,76,.35);
  transform: translateY(-2px);
}
.bds-op-studio-logo {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0c0a08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  overflow: hidden;
}
.bds-op-studio-label {
  padding: 7px 9px;
  background: #131008;
  font-size: 10px;
  font-weight: 700;
  color: #9A8F78;
  border-top: 1px solid rgba(201,168,76,.08);
}
.bds-op-studio-sub {
  font-size: 9px;
  color: #5b503c;
  font-weight: 400;
  margin-top: 1px;
}

/* ── SORT TABS (All Videos) ── */
.bds-op-sort-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bds-op-sort-tab {
  height: 30px;
  padding: 0 14px;
  background: #131008;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 999px;
  color: #5b503c;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .07em;
  cursor: pointer;
  transition: all .15s;
}
.bds-op-sort-tab:hover {
  border-color: rgba(201,168,76,.3);
  color: #9A8F78;
}
.bds-op-sort-tab.active {
  background: rgba(201,168,76,.12);
  border-color: rgba(201,168,76,.45);
  color: #C9A84C;
}

/* ── ACTIVE STATE — search term pills ── */
.bds-op-term-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 999px;
  color: #9A8F78;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .02em;
  transition: all .15s;
  white-space: nowrap;
}
.bds-op-term-pill::before {
  content: '⌕';
  color: #5b503c;
  font-size: 12px;
}
.bds-op-term-pill:hover {
  border-color: rgba(201,168,76,.4);
  color: #E8DFC8;
  background: rgba(201,168,76,.05);
}

/* ── VIDEO ROWS IN ACTIVE PANEL ── */
.bds-op-video-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(201,168,76,.05);
  transition: background .12s;
  border-radius: 6px;
  padding-left: 6px;
  padding-right: 6px;
  margin: 0 -6px;
}
.bds-op-video-row:last-child { border-bottom: none; }
.bds-op-video-row:hover { background: rgba(201,168,76,.04); }

.bds-op-vthumb {
  width: 76px; height: 46px;
  border-radius: 6px;
  background: #131008;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.bds-op-vthumb img { width:100%; height:100%; object-fit:cover; }
.bds-op-vthumb-ph {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color:#5b503c; font-size:16px;
}
.bds-op-vdur {
  position: absolute;
  bottom: 3px; right: 3px;
  background: rgba(0,0,0,.88);
  color: #C9A84C;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}
.bds-op-vmeta { flex: 1; min-width: 0; }
.bds-op-vtitle {
  font-size: 13px;
  font-weight: 700;
  color: #E8DFC8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.bds-op-vsub { font-size: 10px; color: #5b503c; }
.bds-op-vsub span { color: #C9A84C; }
.bds-op-varrow { color: #5b503c; font-size: 14px; flex-shrink: 0; }

/* See all link in active panel */
.bds-op-see-all {
  display: block;
  text-align: center;
  padding: 11px;
  border-top: 1px solid rgba(201,168,76,.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  color: #9A8F78;
  cursor: pointer;
  transition: color .15s;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-family: inherit;
  width: 100%;
}
.bds-op-see-all:hover { color: #C9A84C; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .bds-overlay-panel {
    border-radius: 10px;
    max-height: calc(100vh - 100px);
  }
  .bds-op-cat-card { width: 90px; }
  .bds-op-studio-card { width: 106px; }
  .bds-op-person-card { min-width: 138px; }
}
