/* PHSPB Home Popular Interactions — normal homepage only.
 * Scoped presentation layer: no home data, lazy state, sorting or cache behavior. */

body.home .phspb-popular-interactions-ready .phlc-card {
  position: relative;
  isolation: isolate;
  will-change: transform;
  transition: transform 260ms cubic-bezier(.2,.72,.2,1), border-color 220ms ease, box-shadow 260ms ease, background-color 220ms ease;
}

body.home .phspb-popular-interactions-ready .phlc-thumb-wrap {
  overflow: hidden;
  border-radius: inherit;
}

body.home .phspb-popular-interactions-ready .phlc-thumb {
  transform: scale(1);
  transform-origin: center;
  transition: transform 360ms cubic-bezier(.2,.72,.2,1), filter 260ms ease;
  will-change: transform;
}

/* The follower reaction stays local to a single card. No counters or text move. */
body.home .phspb-popular-interactions-ready .phlc-home-metric-followers {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(219, 176, 255, .16);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

body.home .phspb-popular-interactions-ready .phlc-home-metric-followers::before {
  content: '♥';
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: #ff76ac;
  font-size: 12px;
  line-height: 1;
  transform: scale(.92);
}

body.home .phspb-popular-interactions-ready .phlc-home-metric-followers::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 7px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 105, 174, .72);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.3);
}

body.home .phspb-popular-interactions-ready .phlc-home-metric-followers .phlc-home-metric-copy {
  position: relative;
  z-index: 2;
}

body.home .phspb-popular-interactions-ready .phlc-badge-live > span {
  animation: phspb-popular-live-dot 2.65s ease-in-out var(--phspb-popular-dot-delay, 0ms) infinite;
  transform-origin: center;
}

@media (hover: hover) and (pointer: fine) {
  body.home .phspb-popular-interactions-ready .phlc-card:hover,
  body.home .phspb-popular-interactions-ready .phlc-card:focus-within {
    z-index: 2;
    transform: translateY(-3px);
    border-color: rgba(205, 132, 255, .45) !important;
    background-color: rgba(59, 24, 86, .54) !important;
    box-shadow: 0 16px 34px rgba(5, 0, 16, .28), inset 0 0 0 1px rgba(238, 172, 255, .07);
  }

  body.home .phspb-popular-interactions-ready .phlc-card:hover .phlc-thumb,
  body.home .phspb-popular-interactions-ready .phlc-card:focus-within .phlc-thumb {
    transform: scale(1.018);
    filter: saturate(1.035) brightness(1.025);
  }

  body.home .phspb-popular-interactions-ready .phlc-card:hover .phlc-name-link,
  body.home .phspb-popular-interactions-ready .phlc-card:focus-within .phlc-name-link {
    color: #fff !important;
  }

  body.home .phspb-popular-interactions-ready .phlc-card:hover .phlc-home-metric-followers,
  body.home .phspb-popular-interactions-ready .phlc-card:focus-within .phlc-home-metric-followers {
    border-color: rgba(252, 142, 204, .42);
    background: rgba(112, 42, 104, .34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 16px rgba(33, 4, 44, .22);
  }

  body.home .phspb-popular-interactions-ready .phlc-card:hover .phlc-home-metric-followers::before,
  body.home .phspb-popular-interactions-ready .phlc-card:focus-within .phlc-home-metric-followers::before {
    animation: phspb-popular-heart-double 470ms cubic-bezier(.24,.9,.24,1) both;
  }

  body.home .phspb-popular-interactions-ready .phlc-card:hover .phlc-home-metric-followers::after,
  body.home .phspb-popular-interactions-ready .phlc-card:focus-within .phlc-home-metric-followers::after {
    animation: phspb-popular-heart-ripple 560ms ease-out both;
  }
}

/* The rail gains depth without changing width, height, filters or navigation. */
body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet,
body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-chip-btn {
  position: relative;
  transform: translateX(0);
  transition: transform 210ms ease, background-color 210ms ease, border-color 210ms ease, box-shadow 210ms ease, color 210ms ease;
}

body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet .phspb-nav-count {
  transition: color 210ms ease, background-color 210ms ease, box-shadow 210ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet:hover,
  body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet:focus-visible,
  body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-chip-btn:hover,
  body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-chip-btn:focus-visible {
    transform: translateX(2px) !important;
    background: linear-gradient(90deg, rgba(160, 87, 226, .20), rgba(116, 54, 172, .09)) !important;
    border-color: rgba(209, 150, 255, .46) !important;
    box-shadow: inset 3px 0 0 rgba(255, 97, 183, .72), inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(19, 3, 34, .18);
  }

  body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet:hover .phspb-nav-count,
  body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet:focus-visible .phspb-nav-count {
    color: #fff !important;
    background: rgba(226, 168, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(238, 190, 255, .18);
  }
}

body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet[aria-current="page"],
body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet.is-active,
body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-chip-btn[aria-current="page"],
body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-chip-btn.is-active {
  background: linear-gradient(90deg, rgba(149, 67, 218, .28), rgba(107, 45, 159, .13)) !important;
  border-color: rgba(225, 151, 255, .52) !important;
  box-shadow: inset 3px 0 0 rgba(255, 102, 188, .82), inset 0 1px 0 rgba(255,255,255,.07);
}

body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-facet:active,
body.home .phspb-sidebar-left.phspb-category-rail-interactive .phspb-nav-chip-btn:active {
  transform: scale(.98) !important;
  transition-duration: 130ms !important;
}

@keyframes phspb-popular-live-dot {
  0%, 100% { opacity: .58; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes phspb-popular-heart-double {
  0% { transform: scale(1); }
  24% { transform: scale(1.12); }
  46% { transform: scale(.98); }
  68% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes phspb-popular-heart-ripple {
  0% { opacity: .66; transform: translateY(-50%) scale(.35); }
  100% { opacity: 0; transform: translateY(-50%) scale(3.4); }
}

@media (prefers-reduced-motion: reduce) {
  body.home .phspb-popular-interactions-ready .phlc-card,
  body.home .phspb-popular-interactions-ready .phlc-thumb,
  body.home .phspb-popular-interactions-ready .phlc-home-metric-followers,
  body.home .phspb-sidebar-left .phspb-nav-facet,
  body.home .phspb-sidebar-left .phspb-nav-chip-btn {
    transition: none !important;
  }

  body.home .phspb-popular-interactions-ready .phlc-badge-live > span,
  body.home .phspb-popular-interactions-ready .phlc-home-metric-followers::before,
  body.home .phspb-popular-interactions-ready .phlc-home-metric-followers::after {
    animation: none !important;
  }
}
