/* JAVSPY AGE + ACCESS FILTERS V3N */

/* =========================================================
   AGE GATE STATE FIX
   V3F introduced display:grid!important on the gate. Explicit hidden
   state must win or an accepted gate can visually reappear.
   ========================================================= */
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;
}

html.vp-age-required body .vp-age-gate:not([hidden])[aria-hidden="false"]{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* =========================================================
   TODOS / GRATIS / PREMIUM
   Icon-only trigger + small menu.
   ========================================================= */
.javspy-tier-select{
  z-index:75!important;
}

.javspy-tier-current{
  width:34px!important;
  min-width:34px!important;
  height:34px!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:#747474!important;
  box-shadow:none!important;
}

.javspy-tier-current>span,
.javspy-tier-current>.fa-chevron-down{
  display:none!important;
}

.javspy-tier-current>.javspy-tier-icon{
  display:block!important;
  margin:0!important;
  color:currentColor!important;
  font-size:13px!important;
  line-height:1!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,.075)!important;
  color:#fff!important;
}

/* Free/Premium selection has a subtle green active hint, not a pill. */
.javspy-tier-current.is-filtered{
  color:#43d98a!important;
}

.javspy-tier-select>.vp-tier-filter-inline{
  top:calc(100% + 4px)!important;
  left:auto!important;
  right:0!important;
  width:126px!important;
  min-width:126px!important;
  padding:3px!important;
  gap:1px!important;
  border:1px solid #252525!important;
  border-radius:0!important;
  background:#070707!important;
  box-shadow:0 16px 42px rgba(0,0,0,.68)!important;
}

.javspy-tier-select>.vp-tier-filter-inline button{
  min-height:32px!important;
  height:32px!important;
  padding:0 8px!important;
  gap:7px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#797979!important;
  font-size:12.5px!important;
  font-weight:700!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:#0c1711!important;
  color:#48dc8d!important;
}

.javspy-tier-select>.vp-tier-filter-inline button.is-active:after,
.javspy-tier-select>.vp-tier-filter-inline button[aria-pressed="true"]:after{
  display:none!important;
  content:none!important;
}

.javspy-tier-option-icon{
  width:13px!important;
  flex:0 0 13px!important;
  color:currentColor!important;
  font-size:10px!important;
  text-align:center!important;
}

/* =========================================================
   ADVANCED FILTERS: source selector removed
   Static template and dynamically generated variant are both covered.
   ========================================================= */
.vp-advanced-filter-field:has(select[name="fsrc"]),
.vp-advanced-filter-field:has([data-vp-filter="fsrc"]){
  display:none!important;
}

/* With Source gone, keep the panel balanced/compact. */
.vp-advanced-filter-grid{
  align-items:start!important;
}
