/*
 * AbibitumiTV: Abibinnwom effects layer (loads after abibinnwom-skin.css)
 * Moving light on metal, lit carbon, edge-lit controls, fire-trail progress,
 * scroll reveals and the header Dark/Light switch. Decoration only: in
 * Lite mode (html[data-abn-lite="on"], set by abibinnwom-fx.js on slow
 * connections, Data Saver or low-end devices) and with reduced motion the
 * effects stop and everything still works.
 */

:root {
  --abn-glint: radial-gradient(ellipse closest-side, #fffbea, #ffd087 20%, #f37f19 43%, transparent 100%);
  --abn-spill: radial-gradient(ellipse closest-side, rgba(255,170,72,.4), rgba(245,120,20,.16) 49%, transparent 100%);
  --abn-travel: 20s;
}

/* ------------------------------------------- lit carbon (dark mode only) */
html:has(link.night-mode-css) body#pt-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--abn-tex-carbon) 0 0 / 448px 448px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(45% 40% at 100% 0%, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 45%, transparent 80%);
  mask-image: radial-gradient(45% 40% at 100% 0%, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 45%, transparent 80%);
}
html:has(link.night-mode-css) body#pt-body { position: relative; z-index: 0; }

/* ------------------------- chrome shelf under the header, glints travelling */
html body#pt-body nav.header-layout:not(.search-bar)::after {
  height: 4px !important;
  bottom: -4px !important;
  background:
    var(--abn-glint) 10% center / min(16%, 170px) 100% no-repeat,
    var(--abn-glint) 79% center / min(13%, 135px) 100% no-repeat,
    linear-gradient(180deg, #f9f4ea, #757679 42%, #26282b 75%, #aaa69d),
    var(--abn-tex-metal) center / 600px 120px !important;
  background-blend-mode: normal, normal, multiply, normal;
  box-shadow: 0 2px 8px rgba(255,137,24,.25) !important;
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-abn-lite="on"]) body#pt-body nav.header-layout:not(.search-bar)::after {
    animation: abn-rail var(--abn-travel) ease-in-out infinite alternate;
  }
  @keyframes abn-rail {
    0%   { background-position: 6% center, 70% center, 0 0, center; }
    100% { background-position: 92% center, 18% center, 0 0, center; }
  }
}

/* ------------------------------- edge-lit metal controls (Abibinnwom ring) */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  html body#pt-body :is(.btn-main, .btn-primary, .btn-success, .btn-subscribe, .button_watch, .abib-btn-primary, .abn-mode-btn)::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(90deg, transparent, var(--abn-edge, #49f860), transparent) 24% top / 43% 2px no-repeat,
      linear-gradient(90deg, transparent, var(--abn-edge, #49f860), transparent) 75% bottom / 38% 2px no-repeat,
      linear-gradient(135deg, rgba(255,255,255,.38), transparent 25% 64%, rgba(73,248,96,.28));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}

/* --------------------------------------- cards: chrome rim catches the light */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  html body#pt-body .video-list { position: relative; }
  html body#pt-body .video-list::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
      var(--abn-glint) 30% top / 40% 3px no-repeat,
      linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,0) 30% 70%, rgba(255,170,72,.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .35;
    transition: opacity .4s ease;
  }
  html body#pt-body .video-list:hover::after { opacity: 1; }
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-abn-lite="on"]) body#pt-body .video-list:hover::after {
      animation: abn-rim 2.4s ease-in-out infinite alternate;
    }
    @keyframes abn-rim { from { background-position: 10% top, 0 0; } to { background-position: 90% top, 0 0; } }
  }
}
/* play glyph on hover */
html body#pt-body .video-list .video-list-image a { position: relative; display: block; }
html body#pt-body .video-list .video-list-image a::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  z-index: 2;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23f0f2f4' d='M9 7l9 5-9 5z'/></svg>") center / 26px no-repeat,
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(20,22,24,.85) 60%);
  box-shadow: 0 0 0 1px rgba(73,248,96,.62), 0 0 12px rgba(73,248,96,.25), 0 6px 16px rgba(0,0,0,.6);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .25s ease;
}
html body#pt-body .video-list:hover .video-list-image a::before { opacity: 1; transform: scale(1); }

/* ------------------------------------------- hero: chrome headline shimmer */
@media (prefers-reduced-motion: no-preference) {
  html:has(link.night-mode-css):not([data-abn-lite="on"]) body#pt-body .feature_text_title a {
    background: linear-gradient(90deg, #8d939a 0%, #d9dde2 35%, #ffffff 50%, #c3c8ce 65%, #7c838b 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: abn-shimmer 8s linear infinite;
  }
  @keyframes abn-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
}
/* diagonal brushed-metal seam with a travelling glint (wide screens) */
@media (min-width: 992px) {
  html body#pt-body .feature_image_main .pt_hmpg_contanr { position: relative; }
  html body#pt-body .feature_image_main .pt_hmpg_contanr::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0; bottom: 0;
    left: 54%;
    width: 7px;
    transform: skewX(-12deg);
    pointer-events: none;
    background:
      var(--abn-glint) center 30% / 7px 90px no-repeat,
      linear-gradient(90deg, #e6e1d6, #26272a 35%, #fff7dc 55%, #121219 80%, #d3d0c3),
      var(--abn-tex-metal) center / 580px 350px;
    box-shadow: 0 0 18px rgba(255,137,24,.25);
    opacity: .9;
  }
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-abn-lite="on"]) body#pt-body .feature_image_main .pt_hmpg_contanr::after {
      animation: abn-seam var(--abn-travel) ease-in-out infinite alternate;
    }
    @keyframes abn-seam {
      0%   { background-position: center 10%, 0 0, center; }
      100% { background-position: center 92%, 0 0, center; }
    }
  }
}

/* ------------------------------------------- player: fire-trail progress */
html body#pt-body .mejs__time-total { background: rgba(255,255,255,.14) !important; border-radius: 3px; }
html body#pt-body .mejs__time-loaded { background: rgba(255,255,255,.22) !important; }
html body#pt-body .mejs__time-current {
  background: linear-gradient(90deg, #120202 0%, #3b0503 30%, #7a0c04 60%, #c42306 85%, #ff7a12 97%, #ffd07a 100%) !important;
  box-shadow: 0 0 6px rgba(255,70,0,.55), 0 0 18px rgba(170,20,0,.45);
}
html body#pt-body .mejs__time-handle-content {
  border-color: #ffd07a !important;
  background: radial-gradient(circle, #fff8e5, #ffb347 45%, #e2560b 100%) !important;
  box-shadow: 0 0 10px rgba(255,120,20,.9);
}
html body#pt-body .mejs__controls {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)) !important;
}

/* ------------------------------------------- page-load bar: kente sweep */
html body#pt-body #bar_loading {
  background: linear-gradient(90deg, #a3122a, #e01e37 33%, #0a0a0b 33% 66%, #00a651 66%, #007a3d) !important;
  box-shadow: 0 0 10px rgba(255,137,24,.45);
  height: 3px !important;
}

/* ------------------------------------------- header Dark / Light switch */
html body#pt-body .abn-mode-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 6px;
  padding: 0;
  border-radius: 50% !important;
  background-color: #2c2e30 !important;
  background-image: var(--abn-metal-control) !important;
  background-size: var(--abn-metal-control-size) !important;
  border: 1px solid rgba(0,0,0,.88) !important;
  box-shadow: var(--abn-edge-neutral) !important;
  color: #f0f2f4 !important;
  cursor: pointer;
  vertical-align: middle;
  --abn-edge: #feaf1e;
}
html body#pt-body .abn-mode-btn:hover { filter: brightness(1.1); }
html body#pt-body .abn-mode-btn:focus-visible { outline: 2px solid #feaf1e; outline-offset: 3px; }
html body#pt-body .abn-mode-btn svg { width: 18px; height: 18px; display: block; filter: drop-shadow(0 0 4px rgba(254,175,30,.55)); }
html body#pt-body .abn-mode-btn .abn-sun { display: none; }
html:has(link.night-mode-css) body#pt-body .abn-mode-btn .abn-sun { display: block; }
html:has(link.night-mode-css) body#pt-body .abn-mode-btn .abn-moon { display: none; }
html body#pt-body.abn-mode-anim * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease !important;
}

/* ------------------------------------------------------- scroll reveals */
html.abn-js body#pt-body .abn-reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(.99);
  filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter .9s ease;
}
html.abn-js body#pt-body .abn-reveal.abn-in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------ metal scrollbars */
html { scrollbar-color: #6b7178 transparent; }
html body#pt-body ::-webkit-scrollbar { width: 11px; height: 11px; }
html body#pt-body ::-webkit-scrollbar-track { background: transparent; }
html body#pt-body ::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: linear-gradient(90deg, #4a4e54, #c9ccd1 45%, #7c8086) padding-box;
}

/* --------------------------------------------- nav icons: amber on hover */
html body#pt-body .header-layout :is(a, button):hover svg { filter: drop-shadow(0 0 5px rgba(254,175,30,.7)); }
html body#pt-body .yp_side_drawer ul.sections li > a:hover { background: rgba(255,255,255,.05) !important; }

/* ------------------------------------------------ lite mode / calm motion */
html[data-abn-lite="on"] { --abn-tex-carbon: none; }
html[data-abn-lite="on"] body#pt-body *,
html[data-abn-lite="on"] body#pt-body *::before,
html[data-abn-lite="on"] body#pt-body *::after { animation: none !important; }
html[data-abn-lite="on"] body#pt-body .abn-reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.abn-js body#pt-body .abn-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html body#pt-body .video-list .video-list-image a::before { transition: none; }
}

/* ---------------------------------------- header category pills: metal */
html body#pt-body .sec_lay_hdr > li > a {
  background: var(--abn-card-bg) !important;
  border: 1px solid var(--abn-card-border) !important;
  border-radius: 999px !important;
  color: var(--abn-bar-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.35) !important;
}
html body#pt-body .sec_lay_hdr > li > a:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(254,175,30,.45), 0 0 8px rgba(254,175,30,.25) !important;
}
