/* IPTV Charleroi v1.3.59 — Responsive & hamburger menu 2026 audit polish
   Scope: mobile/tablet responsiveness and header hamburger command sheet. */

:root {
  --ipch-live-header-h: 70px;
  --ipch-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ipch-safe-top: env(safe-area-inset-top, 0px);
}

html {
  scroll-padding-top: calc(var(--ipch-live-header-h, 70px) + 16px);
}

html.ipch-mobile-menu-lock,
body.ipch-menu-open {
  overscroll-behavior: none;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

.site-main,
.container,
.hero-grid,
.ipch-product-shell,
.ipch-product-content-grid,
.ipch-page-grid,
.ipch-internal-links-grid,
.pricing-grid-v1341,
.reviews-grid,
.ipch-offers-grid,
.ipch-plan-grid {
  min-width: 0;
}

body.ipch-menu-open .topbar.ipch-command-header {
  background: rgba(5, 5, 8, .94);
  border-bottom-color: rgba(255,255,255,.12);
}

.topbar.ipch-command-header .mobile-toggle.ipch-mobile-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ipch-mobile-panel[hidden] {
  display: none !important;
}

.ipch-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: block;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background:
    radial-gradient(circle at 88% 9%, rgba(237, 13, 18, .40), transparent 30%),
    radial-gradient(circle at 10% 92%, rgba(237, 13, 18, .18), transparent 34%),
    rgba(4, 4, 7, .78);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
  transition: opacity .24s ease;
  isolation: isolate;
}

.ipch-mobile-panel.is-open,
body.ipch-menu-open .ipch-mobile-panel {
  opacity: 1;
  pointer-events: auto;
}

.ipch-mobile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 28px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 86%);
}

.ipch-mobile-panel__inner {
  width: min(100% - 26px, 510px);
  max-height: calc(100dvh - 18px - var(--ipch-safe-bottom));
  min-height: auto;
  margin: max(10px, var(--ipch-safe-top)) auto calc(8px + var(--ipch-safe-bottom));
  padding: calc(var(--ipch-live-header-h, 70px) + 18px) 14px 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(17, 18, 24, .74), rgba(5, 5, 8, .86));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 28px 80px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.07);
  transform: translateY(14px) scale(.982);
  transition: transform .30s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}

.ipch-mobile-panel__inner::-webkit-scrollbar {
  display: none;
}

.ipch-mobile-panel.is-open .ipch-mobile-panel__inner,
body.ipch-menu-open .ipch-mobile-panel__inner {
  transform: translateY(0) scale(1);
}

.ipch-mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 2px;
}

.ipch-mobile-panel__head > div {
  min-width: 0;
}

.ipch-mobile-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.ipch-mobile-close:hover,
.ipch-mobile-close:focus-visible {
  background: rgba(237,13,18,.20);
  border-color: rgba(237,13,18,.35);
}

.ipch-mobile-hero-cta {
  min-height: 62px;
  border-radius: 22px;
  transform: translateZ(0);
}

.ipch-mobile-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ipch-mobile-offers a {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 10px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.ipch-mobile-offers a:first-child {
  background: linear-gradient(145deg, rgba(237,13,18,.22), rgba(255,255,255,.07));
  border-color: rgba(237,13,18,.26);
}

.ipch-mobile-offers strong,
.ipch-mobile-offers small {
  display: block;
}

.ipch-mobile-offers strong {
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.ipch-mobile-offers small {
  color: rgba(255,255,255,.66);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.ipch-mobile-links {
  display: grid;
  gap: 8px;
}

.ipch-mobile-links a,
.ipch-mobile-hero-cta,
.ipch-mobile-offers a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ipch-mobile-links a {
  min-height: 56px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.052));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.ipch-mobile-links a:hover,
.ipch-mobile-links a:focus-visible,
.ipch-mobile-offers a:hover,
.ipch-mobile-offers a:focus-visible {
  transform: translateY(-1px);
  background: rgba(237, 13, 18, .18);
  border-color: rgba(237, 13, 18, .34);
}

.ipch-mobile-trust {
  margin-bottom: 0;
  background: rgba(255,255,255,.052);
  border-color: rgba(255,255,255,.095);
}

.ipch-mobile-toggle[aria-expanded="true"] {
  background: rgba(237,13,18,.24) !important;
  border-color: rgba(237,13,18,.40) !important;
  box-shadow: 0 12px 30px rgba(237,13,18,.18), inset 0 1px 0 rgba(255,255,255,.10) !important;
}

.ipch-mobile-close:focus-visible,
.ipch-mobile-panel a:focus-visible,
.ipch-mobile-toggle:focus-visible {
  outline: 3px solid rgba(255,255,255,.88);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .topbar.ipch-command-header {
    z-index: 7000;
  }

  .ipch-command-deck {
    display: none !important;
  }

  .topbar.ipch-command-header .mobile-toggle.ipch-mobile-toggle {
    min-width: 48px;
    min-height: 48px;
    border-radius: 17px;
  }

  .hero,
  .hero.hero-v2-local-assets {
    padding-top: calc(var(--ipch-live-header-h, 70px) + 28px) !important;
  }

  .ipch-seo-hero,
  .ipch-product-hero {
    padding-top: calc(var(--ipch-live-header-h, 70px) + 28px) !important;
  }

  .ipch-product-shell,
  .ipch-product-content-grid,
  .ipch-product-content-grid--reverse,
  .ipch-page-grid,
  .home-seo-editorial .seo-editorial-grid,
  .ipch-dark-band .ipch-page-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-grid,
  .hero-reference-grid,
  .hero-v2-grid,
  .devices-wrap,
  .bottom-grid {
    grid-template-columns: 1fr !important;
  }

  .ipch-product-visual,
  .ipch-product-summary,
  .ipch-product-main-copy,
  .ipch-product-side-card,
  .ipch-internal-links,
  .reviews-module,
  .ipch-page-card,
  .ipch-info-card,
  .ipch-side-card {
    max-width: 100%;
  }
}

@media (min-width: 681px) and (max-width: 1180px) {
  .pricing-grid-v1341,
  .ipch-offers-grid,
  .ipch-plan-grid,
  .ipch-product-use-grid,
  .ipch-product-faq-grid,
  .ipch-related-products,
  .ipch-internal-links-grid,
  .ipch-info-grid,
  .ipch-signal-grid,
  .ipch-local-grid,
  .ipch-proof-grid,
  .ipch-feature-grid,
  .ipch-content-grid,
  .ipch-universe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .reviews-grid,
  .reviews-track {
    --ipch-tablet-card-w: min(46vw, 390px);
  }
}

@media (max-width: 680px) {
  :root {
    --ipch-header-h: 68px;
    --ipch-header-h-scrolled: 68px;
  }

  .container {
    width: min(100% - 24px, var(--container)) !important;
  }

  .topbar.ipch-command-header .brand-plate,
  .topbar.ipch-command-header.is-scrolled .brand-plate {
    width: max(152px, calc(var(--ipch-logo-mobile) + 20px)) !important;
    height: 70px !important;
    border-bottom-right-radius: 36px !important;
  }

  .topbar.ipch-command-header .nav.ipch-command-nav,
  .topbar.ipch-command-header.is-scrolled .nav.ipch-command-nav {
    padding-left: max(130px, calc(var(--ipch-logo-mobile) + 12px)) !important;
  }

  .topbar.ipch-command-header .brand.brand-elegant,
  .topbar.ipch-command-header.is-scrolled .brand.brand-elegant {
    left: 12px !important;
  }

  .ipch-mobile-panel__inner {
    width: min(100% - 18px, 510px);
    max-height: calc(100dvh - 12px - var(--ipch-safe-bottom));
    margin-top: max(6px, var(--ipch-safe-top));
    border-radius: 26px;
    padding: calc(var(--ipch-live-header-h, 68px) + 14px) 10px 12px;
  }

  .ipch-mobile-panel__head strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .ipch-mobile-offers {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
  }

  .ipch-mobile-offers a {
    min-height: 66px;
    padding: 10px 7px;
    border-radius: 16px;
  }

  .ipch-mobile-offers strong {
    font-size: 12px;
  }

  .ipch-mobile-offers small {
    font-size: 10px;
  }

  .hero-title,
  .hero h1,
  .section-title,
  .ipch-product-summary h1,
  .ipch-product-main-copy h2,
  .ipch-internal-links-head h2,
  .ipch-seo-hero h1 {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .pricing-grid-v1341,
  .ipch-offers-grid,
  .ipch-plan-grid,
  .ipch-product-use-grid,
  .ipch-product-faq-grid,
  .ipch-related-products,
  .ipch-internal-links-grid,
  .ipch-info-grid,
  .ipch-signal-grid,
  .ipch-local-grid,
  .ipch-proof-grid,
  .ipch-feature-grid,
  .ipch-content-grid,
  .ipch-universe-grid,
  .ipch-product-feature-grid,
  .ipch-product-visual-grid,
  .reviews-summary,
  .ipch-page-actions,
  .hero-actions {
    grid-template-columns: 1fr !important;
  }

  .hero-actions,
  .ipch-page-actions,
  .ipch-product-actions {
    display: grid !important;
    gap: 10px;
  }

  .hero-actions .btn,
  .ipch-page-actions .btn,
  .ipch-product-actions .btn,
  .ipch-product-cta {
    width: 100%;
    justify-content: center;
  }

  .ipch-product-buybox {
    grid-template-columns: 1fr !important;
  }

  .ipch-product-screen,
  .ipch-product-screen img {
    min-height: 235px !important;
  }

  .ipch-product-side-price strong {
    font-size: 36px;
  }
}

@media (max-width: 390px) {
  .topbar.ipch-command-header .brand-plate,
  .topbar.ipch-command-header.is-scrolled .brand-plate {
    width: 138px !important;
  }

  .topbar.ipch-command-header .nav.ipch-command-nav,
  .topbar.ipch-command-header.is-scrolled .nav.ipch-command-nav {
    padding-left: 118px !important;
  }

  .ipch-mobile-offers {
    grid-template-columns: 1fr;
  }

  .ipch-mobile-links a,
  .ipch-mobile-hero-cta {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipch-mobile-panel,
  .ipch-mobile-panel__inner,
  .ipch-mobile-links a,
  .ipch-mobile-offers a,
  .ipch-mobile-toggle[aria-expanded="true"] {
    transition: none !important;
    animation: none !important;
  }
}
