/* JAVSPY FILTERS SAFE V3P
   No MutationObserver. Compact access + filters controls.
*/

/* Accepted age gate: hard hidden without JS loops. */
html.javspy-age-ok .vp-age-gate,
html.javspy-age-ok [data-age-gate],
html body .vp-age-gate[hidden],
html body .vp-age-gate[aria-hidden="true"]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Access + advanced filter controls sit together. */
.vp-section-head-tools,
.vp-catalog-bar{
  column-gap:0!important;
}

.vp-section-head-tools .javspy-tier-select,
.vp-catalog-bar .javspy-tier-select,
.vp-section-head-tools .vp-advanced-filter-wrap,
.vp-catalog-bar .vp-advanced-filter-wrap{
  margin:0!important;
}

.vp-section-head-tools .javspy-tier-select + .vp-advanced-filter-wrap,
.vp-catalog-bar .javspy-tier-select + .vp-advanced-filter-wrap{
  margin-left:1px!important;
}

/* ACCESS trigger: generic icon only. No runtime icon injection needed. */
.javspy-tier-current{
  position:relative!important;
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border:1px solid transparent!important;
  border-radius:4px!important;
  background:transparent!important;
  color:#727272!important;
  box-shadow:none!important;
  line-height:1!important;
  cursor:pointer!important;
}

.javspy-tier-current > span,
.javspy-tier-current > i,
.javspy-tier-current > .javspy-tier-icon{
  display:none!important;
}

.javspy-tier-current::before{
  content:"\f5fd";
  font-family:"Font Awesome 6 Free"!important;
  font-weight:900!important;
  font-size:12px!important;
  line-height:1!important;
  color:currentColor!important;
}

.javspy-tier-current:hover,
.javspy-tier-select.is-open > .javspy-tier-current{
  border-color:rgba(255,255,255,.05)!important;
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
}

/* Small dropdown, not the oversized V3F/V3N version. */
.javspy-tier-select{
  position:relative!important;
  z-index:1000!important;
}

.javspy-tier-select > .vp-tier-filter-inline{
  position:absolute!important;
  top:calc(100% + 4px)!important;
  right:0!important;
  left:auto!important;
  width:112px!important;
  min-width:112px!important;
  padding:3px!important;
  gap:1px!important;
  border:1px solid #242424!important;
  border-radius:0!important;
  background:#070707!important;
  box-shadow:0 14px 36px rgba(0,0,0,.68)!important;
  z-index:2000!important;
}

.javspy-tier-select.is-open > .vp-tier-filter-inline{
  display:grid!important;
}

.javspy-tier-select > .vp-tier-filter-inline button{
  min-height:29px!important;
  height:29px!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#777!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:700!important;
  text-align:left!important;
}

.javspy-tier-select > .vp-tier-filter-inline button:hover{
  background:#101010!important;
  color:#eee!important;
}

.javspy-tier-select > .vp-tier-filter-inline button.is-active,
.javspy-tier-select > .vp-tier-filter-inline button[aria-pressed="true"]{
  background:#0b1710!important;
  color:#49dc8e!important;
}

.javspy-tier-select > .vp-tier-filter-inline button::after{
  content:none!important;
  display:none!important;
}

.javspy-tier-option-icon{
  display:none!important;
}

/* Advanced filters icon matches Access icon. */
.vp-advanced-filter-wrap{
  position:relative!important;
  z-index:999!important;
}

.vp-advanced-filter-wrap .vp-advanced-filter-toggle{
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  margin:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border:1px solid transparent!important;
  border-radius:4px!important;
  background:transparent!important;
  color:#727272!important;
  box-shadow:none!important;
}

.vp-advanced-filter-wrap .vp-advanced-filter-toggle:hover,
.vp-advanced-filter-wrap .vp-advanced-filter-toggle[aria-expanded="true"]{
  border-color:rgba(255,255,255,.05)!important;
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
}

/* Source/Fuentes removed visually from both static and dynamic panels. */
.vp-advanced-filter-field:has(select[name="fsrc"]),
.vp-advanced-filter-field:has([data-vp-filter="fsrc"]){
  display:none!important;
}

@media(max-width:720px){
  .vp-section-head-tools .javspy-tier-select + .vp-advanced-filter-wrap,
  .vp-catalog-bar .javspy-tier-select + .vp-advanced-filter-wrap{
    margin-left:0!important;
  }
}
