/* IPTV Charleroi v1.3.65 — Premium menu buttons 2026
   Scope: desktop/tablet header menu buttons and primary action buttons.
   Goal: sharper, more premium, more tactile navigation without changing menu structure. */

@media (min-width: 981px) {
  .topbar.ipch-command-header {
    --ipch-menu-red: #f01520;
    --ipch-menu-red-dark: #a80009;
    --ipch-menu-glass: rgba(255,255,255,.065);
    --ipch-menu-border: rgba(255,255,255,.125);
    --ipch-menu-text: rgba(255,255,255,.90);
    --ipch-menu-muted: rgba(255,255,255,.62);
    backdrop-filter: saturate(1.12) blur(18px);
    -webkit-backdrop-filter: saturate(1.12) blur(18px);
  }

  .topbar.ipch-command-header .ipch-command-nav {
    gap: clamp(14px, 1.4vw, 24px);
  }

  .topbar.ipch-command-header .ipch-primary-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .topbar.ipch-command-header .ipch-primary-menu {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    padding: 5px;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.078), rgba(255,255,255,.035)),
      radial-gradient(circle at 18% 0%, rgba(237,13,18,.12), transparent 38%);
    border: 1px solid var(--ipch-menu-border);
    box-shadow:
      0 18px 42px rgba(0,0,0,.18),
      inset 0 1px 0 rgba(255,255,255,.085),
      inset 0 -1px 0 rgba(0,0,0,.18);
  }

  .topbar.ipch-command-header .ipch-primary-menu::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
    pointer-events: none;
  }

  .topbar.ipch-command-header .ipch-primary-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .topbar.ipch-command-header .ipch-primary-menu a {
    position: relative;
    min-height: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(13px, 1.05vw, 18px);
    border-radius: 999px;
    color: var(--ipch-menu-text);
    font-size: clamp(11px, .82vw, 12.5px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    transform: translateZ(0);
    transition:
      color .2s ease,
      background .2s ease,
      border-color .2s ease,
      box-shadow .2s ease,
      transform .2s ease;
  }

  .topbar.ipch-command-header .ipch-primary-menu a::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--ipch-menu-red), transparent);
    opacity: 0;
    transition: left .22s ease, right .22s ease, opacity .22s ease;
  }

  .topbar.ipch-command-header .ipch-primary-menu a:hover,
  .topbar.ipch-command-header .ipch-primary-menu a:focus-visible {
    color: #fff;
    background:
      linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055));
    border-color: rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.14);
    transform: translateY(-1px);
  }

  .topbar.ipch-command-header .ipch-primary-menu a:hover::before,
  .topbar.ipch-command-header .ipch-primary-menu a:focus-visible::before {
    left: 22%;
    right: 22%;
    opacity: .9;
  }

  .topbar.ipch-command-header .ipch-primary-menu .current-menu-item > a,
  .topbar.ipch-command-header .ipch-primary-menu .current_page_item > a,
  .topbar.ipch-command-header .ipch-primary-menu a[aria-current="page"] {
    color: #fff;
    background:
      radial-gradient(circle at 28% 18%, rgba(255,255,255,.18), transparent 34%),
      linear-gradient(135deg, rgba(237,13,18,.82), rgba(154,0,8,.72));
    border-color: rgba(255, 74, 82, .36);
    box-shadow:
      0 12px 28px rgba(237,13,18,.22),
      inset 0 1px 0 rgba(255,255,255,.16);
  }

  .topbar.ipch-command-header .ipch-primary-menu .current-menu-item > a::before,
  .topbar.ipch-command-header .ipch-primary-menu .current_page_item > a::before,
  .topbar.ipch-command-header .ipch-primary-menu a[aria-current="page"]::before {
    left: 24%;
    right: 24%;
    opacity: 1;
    background: rgba(255,255,255,.72);
  }

  .ipch-nav-actions {
    gap: 10px;
  }

  .ipch-nav-secondary,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test {
    height: 46px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 12px;
    letter-spacing: -.01em;
    transform: translateZ(0);
    transition:
      transform .22s ease,
      box-shadow .22s ease,
      border-color .22s ease,
      background .22s ease,
      color .22s ease;
  }

  .ipch-nav-secondary {
    min-width: 112px;
    color: #fff;
    background:
      radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.13);
    box-shadow:
      0 14px 30px rgba(0,0,0,.16),
      inset 0 1px 0 rgba(255,255,255,.08);
  }

  .ipch-nav-secondary i,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test i {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    font-size: 12px;
  }

  .ipch-nav-secondary i {
    color: #fff;
    background: rgba(255,255,255,.095);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
  }

  .ipch-nav-secondary:hover,
  .ipch-nav-secondary:focus-visible {
    color: #fff;
    background:
      radial-gradient(circle at 22% 0%, rgba(255,255,255,.16), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
    border-color: rgba(255,255,255,.24);
    box-shadow:
      0 18px 36px rgba(0,0,0,.20),
      inset 0 1px 0 rgba(255,255,255,.12);
    transform: translateY(-2px);
  }

  .topbar.ipch-command-header .nav-cta.ipch-nav-test {
    min-width: 146px;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    background:
      radial-gradient(circle at 24% 0%, rgba(255,255,255,.24), transparent 34%),
      linear-gradient(135deg, #ff2931 0%, #e00612 52%, #950008 100%) !important;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
      0 18px 38px rgba(237,13,18,.33),
      0 0 0 1px rgba(237,13,18,.18),
      inset 0 1px 0 rgba(255,255,255,.18);
  }

  .topbar.ipch-command-header .nav-cta.ipch-nav-test i {
    color: #fff;
    background: rgba(255,255,255,.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  }

  .topbar.ipch-command-header .nav-cta.ipch-nav-test::before {
    content: "";
    position: absolute;
    inset: -55% auto -55% -70%;
    width: 44%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.50), transparent);
    transform: rotate(18deg);
    opacity: .7;
    transition: left .55s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
  }

  .topbar.ipch-command-header .nav-cta.ipch-nav-test:hover::before,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test:focus-visible::before {
    left: 130%;
  }

  .topbar.ipch-command-header .nav-cta.ipch-nav-test:hover,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test:focus-visible {
    transform: translateY(-2px);
    box-shadow:
      0 24px 48px rgba(237,13,18,.40),
      0 0 0 1px rgba(255,255,255,.10),
      inset 0 1px 0 rgba(255,255,255,.24);
  }
}

@media (min-width: 981px) and (max-width: 1220px) {
  .topbar.ipch-command-header .ipch-primary-menu a {
    padding-inline: 10px;
    font-size: 11px;
  }

  .ipch-nav-secondary,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test {
    padding-inline: 14px;
    min-width: auto;
  }

  .ipch-nav-secondary span,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test span {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar.ipch-command-header .ipch-primary-menu a,
  .ipch-nav-secondary,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test {
    transition: none !important;
  }

  .topbar.ipch-command-header .nav-cta.ipch-nav-test::before {
    display: none;
  }
}
