/* XNXX.VIDEO V9.2: mobile toolbar cleanup. Loaded after v91.css.
   Does not modify desktop dropdowns, video embeds, SEO, or catalog data. */
@media (max-width:760px) {
  /* Four functions only: latest, categories, section, language.
     Header's magnifier is the sole mobile search control. */
  .mobile-tools {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    align-items:center;
    gap:0;
    min-height:48px;
    height:48px;
    padding-inline:6px;
  }
  .mobile-tools > a,
  .mobile-tools > button,
  .mobile-tools > details {
    min-width:0;
    width:100%;
    min-height:44px;
    align-self:stretch;
    touch-action:manipulation;
  }
  .mobile-tools > a,
  .mobile-tools > button {display:flex;align-items:center;justify-content:center}
  .mobile-tools .v90-section-switcher,
  .mobile-tools .v8-language-picker {display:flex;justify-content:center;align-items:center}
  .mobile-tools .v90-section-switcher summary,
  .mobile-tools .v8-language-picker summary {
    min-height:44px;
    height:44px;
    width:100%;
    justify-content:center;
    gap:3px;
  }
  /* Keep mobile flyouts above the grid and inside narrow viewports. */
  .mobile-tools .v90-section-options,
  .mobile-tools .v8-language-list {
    max-height:min(65dvh,460px);
    overscroll-behavior:contain;
    z-index:150;
  }
  .mobile-search:not([hidden]) {
    position:relative;
    z-index:2;
    min-height:48px;
    height:auto;
    align-items:center;
  }
  .mobile-search input {min-height:42px}
  .mobile-search button {min-height:42px}
  .mobile-tools > a:focus-visible,
  .mobile-tools > button:focus-visible,
  .mobile-tools summary:focus-visible {
    outline:2px solid #ffe34c;
    outline-offset:-2px;
  }
}
@media(max-width:360px) {
  .mobile-tools{padding-inline:2px}
  .mobile-tools .v90-rainbow{font-size:20px}
  .mobile-tools .v8-current-flag{font-size:18px}
  .mobile-tools .v90-chevron,.mobile-tools .v8-chevron{font-size:10px}
}
/* RTL: visual order remains consistent with document direction. */
@media(max-width:760px) {
  html[dir="rtl"] .mobile-tools .v90-section-options{left:8px;right:auto}
  html[dir="rtl"] .mobile-tools .v8-language-list{left:8px;right:8px}
}
