/* =========================================================
   Single Model page (CPT: model)
   Layout inspired by reference site.
   ========================================================= */

/* ---------------------------------------------------------
   Break Astra container boxing + match site dark theme
   --------------------------------------------------------- */
body.single-model{
  background: var(--manure-background);
  color: #fff;
  overflow-x: hidden;
}

body.single-model .site,
body.single-model .site-content,
body.single-model #content,
body.single-model .ast-container,
body.single-model .ast-container-fluid,
body.single-model .content-area{
  background: transparent !important;
}

/* Remove Astra max-width boxing */
body.single-model #content .ast-container{
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  /* Astra adds a small top padding on some breakpoints which creates
     a visible gap above the hero image (mobile). */
  padding-top: 0 !important;
}
body.single-model .site-content{ padding: 0 !important; }
body.single-model .content-area,
body.single-model .site-main{
  margin: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Page wrapper */
.mf-model-single{ width: 100%; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.mf-model-hero{ width: 100%; }
.mf-model-hero__img{
  width: 100%;
  height: 56vh;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px){
  .mf-model-hero__img{ height: 36vh; }
}

/* ---------------------------------------------------------
   Intro
   --------------------------------------------------------- */
.mf-model-intro{
  padding: 14px 0 8px;
  background: transparent;
  color: #fff;
}
.mf-model-intro__inner{
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.mf-model-intro__name{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.1;
}
.mf-model-intro__details{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  line-height: 1.6;
}
.mf-dot{ padding: 0 8px; opacity: .7; }

.mf-model-intro__bio{
  margin-top: 14px;
  max-width: 980px;
}
.mf-model-intro__bioTitle{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 600;
}
.mf-model-intro__bioText{
  font-size: 14px;
  line-height: 1.65;
  opacity: .95;
}

/* Links inside bio */
body.single-model .mf-model-intro__bioText a{
  color: var(--manure-accent);
}
body.single-model .mf-model-intro__bioText a:hover{
  color: var(--manure-accent-hover);
}

/* ---------------------------------------------------------
   Section title
   --------------------------------------------------------- */
.mf-section-title{
  margin: 18px 0 12px;
  text-align: center;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: .85;
  color: rgba(255,255,255,.88);
}

/* ---------------------------------------------------------
   Latest
   --------------------------------------------------------- */
.mf-model-latest{
  background: transparent;
  padding: 0 0 18px;
  color: #fff;
}
.mf-model-latest__inner{
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* Full-bleed latest tile (heading stays in the normal container) */
body.single-model .mf-model-latest .mf-latest-tile{
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
body.single-model .mf-model-latest .mf-latest-tile,
body.single-model .mf-model-latest .mf-latest-tile .manure-video-container{
  border-radius: 0;
}

/* Make the latest tile taller like reference */
body.single-model .mf-model-latest .manure-video-container.ar31{
  aspect-ratio: 16 / 7;
}

/* Ensure the latest card is always clickable (video overlays shouldn't steal clicks) */
body.single-model .mf-model-latest .manure-video-container{
  position: relative;
  overflow: hidden;
}
body.single-model .mf-model-latest .manure-video-container > a.manure-woocommerce-loop-product__link{
  position: absolute;
  inset: 0;
  display: block;
  z-index: 30;
}
body.single-model .mf-model-latest .manure-video-container > a.manure-woocommerce-loop-product__link img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   Scenes
   --------------------------------------------------------- */
.mf-model-scenes{
  --mf-drawer-w: 280px;
  background: transparent;
  padding: 16px 0 80px;
  color: #fff;
}
.mf-model-scenes__inner{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 32px;
  box-sizing: border-box;
}
@media (max-width: 600px){
  .mf-model-scenes__inner{ padding: 0 16px; }
}

.mf-scenes-headline__count{
  margin: 10px 0 14px;
  text-align: center;
  font-size: 24px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: .9;
  color: rgba(255,255,255,.88);
}

/* Toolbar */
.mf-scenes-toolbar{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin: 6px 0 12px;
  flex-wrap: wrap;
}

.mf-filter-toggle{
  height: 34px;
  width: 34px;
  border-radius: 6px;
  /* The global Astra/Woo button styling can override this.
     We want this to be an icon-only toggle (no colored pill behind it). */
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Subtle hover (desktop) */
@media (hover: hover) and (pointer: fine){
  .mf-filter-toggle:hover{ background: rgba(255,255,255,.06) !important; }
}

/* Toggle image */
body.single-model .mf-filter-toggle__img{
  width: 22px;
  height: 22px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* Make the grey icon readable on the dark UI */
  filter: brightness(0) invert(1) !important;
}
body.single-model .mf-scenes-sort{
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background-color: transparent !important;
  color: #fff !important;
  padding: 0 34px 0 10px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ffffff' d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  background-repeat: no-repeat, no-repeat;
  background-position: right 10px center, 0 0;
  background-size: 16px 16px, 100% 100%;
}
/* Dropdown options (helps on some browsers) */
.mf-scenes-sort option{ color:#111; }

.mf-scenes-search{
  margin-left: 6px;
  position: relative;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  padding: 0;
  flex: 0 1 320px;
  min-width: 220px;
  max-width: 380px;
  box-sizing: border-box;
}
body.single-model .mf-scenes-search__input{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  font-size: 14px;
  padding: 0 34px 0 10px;
  margin: 0;
}
.mf-scenes-search__input::placeholder{ color: rgba(255,255,255,.55); }

/* remove browser decorations that can show weird icons */
body.single-model .mf-scenes-search__input::-webkit-search-decoration,
body.single-model .mf-scenes-search__input::-webkit-search-cancel-button,
body.single-model .mf-scenes-search__input::-webkit-search-results-button,
body.single-model .mf-scenes-search__input::-webkit-search-results-decoration{
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

body.single-model .mf-scenes-search__clear{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: .7;
  color: inherit;
  padding: 0;
}
.mf-scenes-search__clear:hover{ opacity: 1; }

/* Layout container (drawer + grid)
   --------------------------------------------------------- */
.mf-scenes-layout{
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow-x: hidden;
}
.mf-scenes-main{
  flex: 1 1 auto;
  min-width: 0;
}

body.mf-filter-open .mf-scenes-layout{ gap: 12px; }

/* ---------------------------------------------------------
   Drawer + sidebar
   - Desktop: inline sliding drawer that pushes the grid
   - Mobile: collapsible panel above the grid (slides down)
   --------------------------------------------------------- */

.mf-drawer-overlay{ display:none !important; }

.mf-scenes-sidebar{
  position: relative;
  box-sizing: border-box;
  flex: 0 0 0;
  width: 0;
  max-width: 86vw;
  z-index: 60;
  transform: translateX(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    width 320ms cubic-bezier(.4,0,.2,1),
    flex-basis 320ms cubic-bezier(.4,0,.2,1),
    padding 320ms cubic-bezier(.4,0,.2,1),
    margin 320ms cubic-bezier(.4,0,.2,1),
    opacity 160ms ease,
    max-height 320ms cubic-bezier(.4,0,.2,1);
  will-change: width, transform;
  box-shadow: none;
  border: 0;
  background: var(--manure-background) !important;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
}
body.mf-filter-open .mf-scenes-sidebar{
  flex: 0 0 var(--mf-drawer-w, 280px);
  width: var(--mf-drawer-w, 280px);
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  /* No box-shadow (blend ATF into the page) */
  box-shadow: none;
  border-right: 0;
  padding: 12px;
  margin: 0;
  overflow: hidden;
  max-height: 20000px;
}

@media (max-width: 900px){
  .mf-scenes-layout{
    display: block;
  }

  .mf-scenes-sidebar{
    width: 100%;
    max-width: none;
    flex: none;
    transform: none;
    transition:
      max-height 320ms cubic-bezier(.4,0,.2,1),
      padding 320ms cubic-bezier(.4,0,.2,1),
      margin 320ms cubic-bezier(.4,0,.2,1),
      opacity 200ms ease;
  }
  body.mf-filter-open .mf-scenes-sidebar{
    width: 100%;
    transform: none;
    /* No box-shadow (blend ATF into the page) */
    box-shadow: none;
    border-right: 0;
    border: 0;
    margin: 0 0 12px;
  }
}

.mf-tag-search{
  display: block;
  margin: 0 0 8px;
}
/* Tag search (reference-like: light field + dark text) */
body.single-model .mf-tag-search__input{
  width: 100% !important;
  height: 34px !important;
  line-height: 34px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0,0,0,.28) !important;
  background: rgba(255,255,255,.92) !important;
  color: #111 !important;
  padding: 0 10px !important;
  outline: none;
  text-align: center;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: lowercase;
  box-sizing: border-box;
}
body.single-model .mf-tag-search__input::placeholder{
  /* Some browsers/extensions can make placeholders very low contrast.
     Force a dark placeholder like the reference site. */
  color: #000 !important;
  opacity: 1 !important;
}

/* Vendor placeholder selectors (Safari/older browsers) */
body.single-model .mf-tag-search__input::-webkit-input-placeholder{ color:#000 !important; opacity:1 !important; }
body.single-model .mf-tag-search__input::-moz-placeholder{ color:#000 !important; opacity:1 !important; }
body.single-model .mf-tag-search__input:-ms-input-placeholder{ color:#000 !important; opacity:1 !important; }
body.single-model .mf-tag-search__input::-ms-input-placeholder{ color:#000 !important; opacity:1 !important; }

.mf-tags{
  /* New design: blend the ATF into the page (no grey box / border).
     Individual tags are rendered as pills instead. */
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

/* When the user reveals more tags (Show more...), keep the filter usable without
   making the whole page extremely long (especially on mobile). */
.mf-tags.is-scrollable{
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
@media (max-width: 900px){
  .mf-tags.is-scrollable{
    max-height: 42vh;
  }
}
.mf-tags-empty{
  font-size: 13px;
  opacity: .75;
  padding: 10px;
}

.mf-tag{
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  /* Pill border is always visible (was previously only on hover) */
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
}
.mf-tag:hover{
  background: rgba(255,255,255,.06);
}
.mf-tag.is-featured{
  border-color: rgba(209,132,22,.30);
}
.mf-tag[hidden]{ display: none !important; }
.mf-tag__btn{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.30);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 14px;
  opacity: 1;
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease;
}

.mf-tag__btn:hover{ background: rgba(255,255,255,.10); }

/* On desktop, show +/- only on hover (or when a tag is active) */
@media (hover: hover) and (pointer: fine){
  .mf-tag__btn{
    opacity: 0;
    pointer-events: none;
  }
  .mf-tag:hover .mf-tag__btn,
  .mf-tag:focus-within .mf-tag__btn,
  .mf-tag[data-weight]:not([data-weight="0"]) .mf-tag__btn{
    opacity: 1;
    pointer-events: auto;
  }
}

.mf-tag__name::before{ content: "< "; opacity: .7; }
.mf-tag__name::after{ content: " >"; opacity: .7; }

/* Tag importance labels (reference-like) */
.mf-tag[data-weight="1"] .mf-tag__name::before{ content: "May: < "; }
.mf-tag[data-weight="2"] .mf-tag__name::before{ content: "Must: < "; }
.mf-tag[data-weight="-1"] .mf-tag__name::before{ content: "Unlike: < "; }
.mf-tag[data-weight="-2"] .mf-tag__name::before{ content: "Hide: < "; }

.mf-tag[data-weight="-1"] .mf-tag__name{ opacity: .80; }
.mf-tag[data-weight="-2"] .mf-tag__name{ opacity: .70; text-decoration: line-through; }
.mf-tag[data-weight="2"] .mf-tag__name{ font-weight: 600; }

.mf-tag__name{
  font-size: 13px;
  line-height: 1.2;
  opacity: .95;
  text-align: center;
  cursor: pointer;
}

.mf-tag.is-featured .mf-tag__name{ font-weight: 600; }

/* Weight states (neutral -> include -> exclude) */
.mf-tag:hover{ background: rgba(255,255,255,.04); }

/* Include (positive) */
.mf-tag[data-weight="1"],
.mf-tag[data-weight="2"],
.mf-tag[data-weight="3"]{
  border-color: rgba(209,132,22,.35);
}
.mf-tag[data-weight="1"]{ background: rgba(209,132,22,.10); }
.mf-tag[data-weight="2"]{ background: rgba(209,132,22,.18); }
.mf-tag[data-weight="3"]{ background: rgba(209,132,22,.26); }

/* Exclude (negative) */
.mf-tag[data-weight="-1"],
.mf-tag[data-weight="-2"],
.mf-tag[data-weight="-3"]{
  border-color: rgba(220,70,70,.35);
}
.mf-tag[data-weight="-1"]{ background: rgba(220,70,70,.10); }
.mf-tag[data-weight="-2"]{ background: rgba(220,70,70,.18); }
.mf-tag[data-weight="-3"]{ background: rgba(220,70,70,.26); }

/* Button highlight based on sign */
.mf-tag[data-weight="1"] .mf-tag__btn--inc,
.mf-tag[data-weight="2"] .mf-tag__btn--inc,
.mf-tag[data-weight="3"] .mf-tag__btn--inc{
  border-color: rgba(209,132,22,.55);
}
.mf-tag[data-weight="-1"] .mf-tag__btn--exc,
.mf-tag[data-weight="-2"] .mf-tag__btn--exc,
.mf-tag[data-weight="-3"] .mf-tag__btn--exc{
  border-color: rgba(220,70,70,.55);
}


.mf-tags-controls{
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.mf-tags-showall,
.mf-tags-showless{
  flex: 1 1 0;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color: var(--manure-accent);
  cursor: pointer;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 10px;
  text-align: center;
}

.mf-tags-showall:hover,
.mf-tags-showless:hover{
  background: rgba(255,255,255,.08);
  color: var(--manure-accent-hover);
}

.mf-tags-showall.is-disabled{
  opacity: .55;
  cursor: default;
}


/* Reset Astra post-card styling on Woo <li> items (prevents grey boxed tiles) */
body.single-model ul.products.mf-model-products{
  background: transparent !important;
}
body.single-model ul.products.mf-model-products > li,
body.single-model ul.products.mf-model-products > li.ast-article-single{
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.single-model ul.products.mf-model-products > li.ast-article-single *{
  box-shadow: none !important;
}

/* ---------------------------------------------------------
   Scenes grid
   --------------------------------------------------------- */
ul.products.mf-model-products{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset Woo/Astra floats/widths */
ul.products.mf-model-products > li.product{
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

/* Responsive grid */
@media (max-width: 1100px){
  ul.products.mf-model-products{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mf-scenes-search{ flex-basis: 300px; max-width: 340px; }
}
@media (max-width: 980px){
  .mf-scenes-search{
    flex: 1 1 100%;
    max-width: none;
    min-width: 1px;
    margin-left: 0;
  }
}
@media (max-width: 600px){
  ul.products.mf-model-products{ grid-template-columns: 1fr !important; }
}

/* Empty state (inside UL) */
.mf-no-scenes .mf-scenes-empty{
  padding: 18px 12px;
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 8px;
  font-size: 14px;
  opacity: .9;
}

/* Load more */
.mf-scenes-more{ margin-top: 16px; text-align: center; }
.mf-btn-more{
  height: 40px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: inherit;
  cursor: pointer;
}
.mf-btn-more:hover{ background: rgba(255,255,255,.10); }
.mf-scenes-status{ margin-top: 10px; font-size: 13px; opacity: .75; }

/* ---------------------------------------------------------
   Mobile preview behavior for manure video cards on this page
   (We toggle .mf-preview on the container via JS)
   --------------------------------------------------------- */
@media (hover: none) and (pointer: coarse){
  body.single-model .manure-video-container{
    position: relative;
    overflow: hidden;
  }
  body.single-model .manure-video-container video.manure-background-video{
    opacity: 0;
    transition: opacity 260ms ease;
  }
  body.single-model .manure-video-container img{
    opacity: 1;
    filter: none;
    transform: none;
    /* Longer transitions so the blur state is visible before playback */
    transition: opacity 260ms ease, filter 420ms ease, transform 420ms ease;
  }

  /* Loading state: keep the image visible but add a subtle blur so the user
     feels an intentional transition (no grey flash). */
  body.single-model .manure-video-container.mf-loading img{
    filter: blur(6px);
    transform: scale(1.02);
  }
  body.single-model .manure-video-container.mf-preview video.manure-background-video{ opacity: 1; }
  /* Keep the blurred look during the cross-fade so the image doesn't
     "snap" back to sharpness while fading out. */
  body.single-model .manure-video-container.mf-preview img{ opacity: 0; filter: blur(6px); transform: scale(1.02); }

  /* "Tap again to open" banner (matches archive UX) */
  body.single-model .mv-tap-banner{
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 40;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
  }
  body.single-model .manure-video-container.mv-show-banner .mv-tap-banner{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------
   Desktop hover: blur-first transition before revealing video
   (Mobile already uses .mf-loading/.mf-preview via JS)
   --------------------------------------------------------- */
@media (hover: hover) and (pointer: fine){
  body.single-model .manure-video-container img{
    /* Default (mouse out): fade back instantly (no delay) */
    transition: opacity 260ms ease, filter 420ms ease, transform 420ms ease;
    filter: none;
    transform: none;
  }
  body.single-model .manure-video-container video.manure-background-video{
    transition: opacity 260ms ease;
  }

  /* On hover we first blur/zoom the image, then cross-fade to the video */
  body.single-model .manure-video-container:hover img{
    filter: blur(6px);
    transform: scale(1.02);
    opacity: 0;
    transition:
      /* Delay the fade so the blur is visible */
      opacity 260ms ease 420ms,
      filter 420ms ease,
      transform 420ms ease;
  }
  body.single-model .manure-video-container:hover video.manure-background-video{
    transition: opacity 260ms ease 420ms;
  }
}

/* mf-mobile-overflow-fix */
body.single-model .manure-video-container,
body.single-model .manure-video-container img,
body.single-model .manure-video-container video{
  max-width: 100%;
}
@media (max-width: 600px){
  body.single-model .mf-model-latest .mf-latest-tile{
    /* Keep the latest scene full-bleed on mobile as well */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: 100vw;
  }
}


/* Ensure archive-style tiles are correctly sized on the single model scenes grid */
body.single-model .mf-model-products .manure-video-container.ar31,
body.single-model .mf-model-products .manure-video-container.ar45 {
  position: relative;
  overflow: hidden;
}
body.single-model .mf-model-products .manure-video-container.ar31 > a,
body.single-model .mf-model-products .manure-video-container.ar45 > a {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}
body.single-model .mf-model-products .manure-video-container.ar31 img,
body.single-model .mf-model-products .manure-video-container.ar31 video.manure-background-video,
body.single-model .mf-model-products .manure-video-container.ar45 img,
body.single-model .mf-model-products .manure-video-container.ar45 video.manure-background-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
body.single-model .mf-model-products .manure-video-title,
body.single-model .mf-model-products .manure-video-models {
  position: absolute;
  z-index: 9;
}

/* ---------------------------------------------------------
   Title readability (grid + latest)
   --------------------------------------------------------- */
body.single-model .manure-video-title{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 35;
  /* Requested: remove the large background "pill".
     Keep the title readable using text-shadow instead. */
  display: inline-block;
  padding: 0 !important;
  border-radius: 0;
  background: transparent !important;
  max-width: calc(100% - 20px);
  pointer-events: none; /* keep tile click/tap behavior */
}
body.single-model .manure-video-title h2,
body.single-model .manure-video-title h3{
  margin: 0 !important;
  color: #fff !important;
  background: transparent !important;
  padding: 0 !important;
  /* Slightly smaller + ~10% transparent */
  opacity: .9;
  text-shadow: 0 2px 10px rgba(0,0,0,.95);
  font-size: 15px;
  line-height: 1.2;
}

@media (max-width: 600px){
  body.single-model .manure-video-title h2,
  body.single-model .manure-video-title h3{ font-size: 14px; }
}

/* Latest tile: ensure both media layers fill the box (prevents odd spacing
   and fixes the "title showing below the video" issue on mobile) */
body.single-model .mf-model-latest .manure-video-container img,
body.single-model .mf-model-latest .manure-video-container video.manure-background-video{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}


/* ---------------------------------------------------------
   iOS Safari: prevent input-focus zoom
   - iOS Safari auto-zooms inputs/selects with font-size < 16px.
   - On mobile we force 16px for ATF + search UI fields.
   --------------------------------------------------------- */
@media (max-width: 900px){
  body.single-model .mf-scenes-search__input,
  body.single-model .mf-tag-search__input,
  body.single-model .mf-scenes-sort{
    font-size: 16px !important;
  }
}
