/* AbibitumiTV: Abibinnwom polish layer (loads last).
   Carbon fibre visible, consistent corners, phone header,
   install/notification sheet, plus extra hardware details. */

/* -------------------------------- let the hex carbon show through */
html body#pt-body :is(#container_content, .content_main_wrapper,
  .home-container, .main-content, #main-container, .top-video,
  .video-player-page, .pt_hmpg_contanr, .new_left_right) {
  background-color: transparent !important;
  background-image: none !important;
}
html:has(link.night-mode-css) body#pt-body {
  background:
    radial-gradient(ellipse 120% 90% at 100% 0%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,.9) 100%),
    var(--abn-tex-carbon) 0 0 / 448px 448px,
    #050506 !important;
  background-attachment: fixed !important;
}
html:not(:has(link.night-mode-css)) body#pt-body {
  background:
    radial-gradient(ellipse 120% 90% at 100% 0%, rgba(226,228,231,.55) 0%, rgba(206,209,213,.72) 50%, rgba(192,195,199,.82) 100%),
    var(--abn-tex-carbon) 0 0 / 448px 448px,
    #c4c7cb !important;
  background-attachment: fixed !important;
}
html:has(link.night-mode-css) body#pt-body::before { opacity: .85 !important; }
@media (max-width: 767px), (hover: none) {
  html body#pt-body { background-attachment: scroll !important; }
}

/* ----------------------------------- watch page panels = metal cards */
html body#pt-body .top-video .content {
  background: var(--abn-card-bg) !important;
  border: 1px solid var(--abn-card-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

/* --------------------------------------------- one corner language */
html body#pt-body :is(.video-thumb, .video-list-image, .pt_vid_fixed_height,
  .video-wrapper .thumbnail) {
  border-radius: 12px !important;
  overflow: hidden !important;
}
html body#pt-body .video-list :is(.video-list-image, .pt_vid_fixed_height) {
  border-radius: 0 !important;
}
html body#pt-body :is(.video-thumb, .video-list-image) img { border-radius: 0 !important; }
html body#pt-body .video-duration { border-radius: 6px !important; }
html body#pt-body .view_more_link,
html body#pt-body .view_more_link a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body#pt-body .view_more_link a {
  padding: 3px 10px !important;
  border-radius: 999px !important;
  border: 1px solid var(--abn-card-border) !important;
}

/* ---------------------------------------- shorts cards: light titles */
html body#pt-body .video-list-title :is(h4, a, span) {
  color: #f4f5f6 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}

/* ------------------------------------------------------ phone header */
html body#pt-body .yp_slide_menu { background: transparent !important; }
@media (max-width: 767px) {
  html body#pt-body .abn-mode-li { display: none !important; }
}

/* ------------------------- install / notification / update bottom sheet */
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner) {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  transform: none !important;
  border: 1px solid var(--abn-card-border) !important;
  border-radius: 18px !important;
  background: var(--abn-card-bg) !important;
  font-family: "Inter", system-ui, sans-serif !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.55) !important;
}
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner).abib-visible {
  bottom: calc(14px + env(safe-area-inset-bottom)) !important;
}
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner) .abib-banner-inner {
  background: transparent !important;
  padding: 16px 16px 14px !important;
  gap: 12px !important;
}
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner) .abib-banner-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner) :is(strong) {
  font-family: var(--abn-font-display) !important;
  font-size: 1rem !important;
  color: var(--color-text) !important;
}
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner) span {
  font-size: .82rem !important;
  color: var(--color-neutral-400) !important;
}
html body#pt-body :is(#abib-install-banner, #abib-push-banner, #abib-update-banner) button {
  min-height: 40px;
  padding: 0 16px !important;
  font-size: .88rem !important;
}

/* ------------------------------------------------ more hardware detail */
/* chrome lettering on section titles (dark) */
html:has(link.night-mode-css) body#pt-body :is(.home-page-categories > .title h4, .pt_home_vid_content > .title h4, .abv-row-head :is(h2, h3, h4)) {
  background: linear-gradient(180deg, #ffffff 0%, #eef0f2 40%, #9ca1a8 55%, #e4e6e9 72%, #c3c7cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
html:has(link.night-mode-css) body#pt-body .view_more_link a { -webkit-text-fill-color: #a9b0b7; }
/* graphite lettering (light) */
html:not(:has(link.night-mode-css)) body#pt-body :is(.home-page-categories > .title h4, .pt_home_vid_content > .title h4, .abv-row-head :is(h2, h3, h4)) {
  background: linear-gradient(180deg, #3b4047 0%, #1d2126 45%, #5a6069 58%, #23272c 78%, #3a3f46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.55));
}
html:not(:has(link.night-mode-css)) body#pt-body .view_more_link a { -webkit-text-fill-color: #4a5058; }

/* eyebrow label with chrome hairlines ("FEATURED VIDEO") */
html body#pt-body .feature_wrap > h4 {
  display: inline-flex !important;
  align-items: center;
  gap: .7rem;
}
html body#pt-body .feature_wrap > h4 svg { display: none; }
html body#pt-body .feature_wrap > h4::before,
html body#pt-body .feature_wrap > h4::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-neutral-400));
}
html body#pt-body .feature_wrap > h4::after { background: linear-gradient(90deg, var(--color-neutral-400), transparent); }

/* red / black / green rail slides in under a card on hover */
html body#pt-body .video-list::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 4;
  background: linear-gradient(90deg, #b0102a, #e01e37 33%, #0a0a0b 33% 66%, #00a651 66%, #007a3d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
html body#pt-body .video-list:hover::before { transform: scaleX(1); }

/* the Watch button breathes a soft green edge light */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-abn-lite="on"]) body#pt-body .button_watch {
    animation: abn-breathe 3.2s ease-in-out infinite;
  }
  @keyframes abn-breathe {
    0%, 100% { box-shadow: var(--abn-edge-affirm); }
    50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 -1px 0 rgba(0,0,0,.6), 0 0 0 1px rgba(73,248,96,.85), 0 0 16px rgba(73,248,96,.35), 0 4px 12px rgba(0,0,0,.52); }
  }
}

/* amber flare where the header rail meets the page */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-abn-lite="on"]) body#pt-body #header_change::after {
    content: "";
    position: absolute;
    bottom: -9px;
    width: clamp(110px, 22vw, 300px);
    height: 18px;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 4;
    background:
      radial-gradient(ellipse 16% 14% at 46% 50%, #fff9e5 0%, #ffda96 38%, transparent 100%),
      radial-gradient(ellipse 46% 26% at 51% 50%, #ffc675 0%, #ee770e 28%, transparent 100%);
    animation: abn-flare 20s ease-in-out infinite alternate;
  }
  @keyframes abn-flare { 0% { left: 4%; opacity: .6; } 55% { opacity: 1; } 100% { left: 78%; opacity: .7; } }
}
html[data-abn-lite="on"] body#pt-body .video-list::before { transition: none; }
