/* V414 - Mobile banner visibility and responsive sizing */
@media (max-width: 900px) {
  html body .z401-promo,
  html body .z401-promo-top,
  html body .z401-promo-bottom,
  html body .z401-bottom-extra,
  html body .v378-hero-ad-shell,
  html body .v376-home-top-ad,
  html body .v376-home-bottom-ad,
  html body .patron-ad-after-toolbar,
  html body .ad-slot-home_top_banner,
  html body .ad-slot-home_bottom_banner,
  html body .ad-slot-site_top_banner,
  html body .ad-slot-site_bottom_banner,
  html body .ad-slot-site_content_banner,
  html body .ad-slot-watch_under_player,
  html body .ad-slot-watch_related_inline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    clip: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 64px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  html body .z401-promo .ad-box,
  html body .z401-promo .ad-v3-box,
  html body .z401-promo .ad-click,
  html body .z401-promo .ad-v3-click,
  html body .z401-promo .ad-html,
  html body .z401-promo .ad-v3-html,
  html body .v378-hero-ad-shell .ad-box,
  html body .v378-hero-ad-shell .ad-click,
  html body .ad-slot .ad-box,
  html body .ad-slot .ad-click {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  html body .z401-promo img:not(.ad-tracking-pixel),
  html body .z401-promo video,
  html body .v378-hero-ad-shell img:not(.ad-tracking-pixel),
  html body .v378-hero-ad-shell video,
  html body .ad-slot img:not(.ad-tracking-pixel),
  html body .ad-slot video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    max-height: 170px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #090611 !important;
  }

  html body .z401-promo iframe,
  html body .v378-hero-ad-shell iframe,
  html body .ad-slot iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 120px !important;
    min-height: 90px !important;
    border: 0 !important;
  }

  /* Mobil görsel varsa onu, yoksa masaüstü görselini göster. */
  html body .v378-hero-ad-shell.has-mobile-creative .v378-hero-ad-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html body .v378-hero-ad-shell.has-mobile-creative .v378-hero-ad-desktop {
    display: none !important;
  }
  html body .v378-hero-ad-shell:not(.has-mobile-creative) .v378-hero-ad-desktop {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Mobil alt sabit banner */
  html body .ad-v3-mobile-bottom,
  html body .ad-slot-mobile_bottom_banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 86px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 9997 !important;
  }
  html body .ad-v3-mobile-bottom .ad-box,
  html body .ad-slot-mobile_bottom_banner .ad-box {
    min-height: 56px !important;
    max-height: 76px !important;
    overflow: hidden !important;
  }
  html body .ad-v3-mobile-bottom img:not(.ad-tracking-pixel),
  html body .ad-v3-mobile-bottom video,
  html body .ad-slot-mobile_bottom_banner img:not(.ad-tracking-pixel),
  html body .ad-slot-mobile_bottom_banner video {
    width: 100% !important;
    height: 64px !important;
    min-height: 56px !important;
    max-height: 64px !important;
    object-fit: contain !important;
  }

  /* V401 tema banner alanının mobilde sıfır yüksekliğe düşmesini engelle. */
  html body .z401-promo-top,
  html body .z401-promo-bottom {
    padding: 0 !important;
    min-height: 72px !important;
  }
  html body .z401-promo .z401-fallback-banner {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 88px !important;
  }
}

@media (max-width: 520px) {
  html body .z401-promo img:not(.ad-tracking-pixel),
  html body .z401-promo video,
  html body .v378-hero-ad-shell img:not(.ad-tracking-pixel),
  html body .v378-hero-ad-shell video,
  html body .ad-slot img:not(.ad-tracking-pixel),
  html body .ad-slot video {
    max-height: 135px !important;
  }
  html body .z401-promo iframe,
  html body .v378-hero-ad-shell iframe,
  html body .ad-slot iframe {
    height: 105px !important;
  }
}
