@keyframes lp-shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
@keyframes lp-spin {
  to { transform: rotate(360deg); }
}

.lp-skel {
  display: block;
  background: var(--c-border-soft, #dedede);
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  background-size: 200% 100%;
  border-radius: var(--radius-sm, 4px);
  animation: lp-shimmer 1.2s ease-in-out infinite;
}

.lp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--c-border-soft, #dedede);
  border-top-color: var(--c-brand, #379ccb);
  border-radius: 50%;
  animation: lp-spin .7s linear infinite;
  vertical-align: middle;
}

.hdr-search__skeleton {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  min-height: 44px;
}
.hdr-search__skeleton .lp-skel--thumb {
  flex: none;
  width: 36px;
  height: 36px;
}
.hdr-search__skeleton .lp-skel--line {
  flex: 1 1 auto;
  height: 14px;
}

#content.pf-loading {
  position: relative;
  pointer-events: none;
}
#content.pf-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  background-size: 200% 100%;
  animation: lp-shimmer 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lp-skel,
  #content.pf-loading::after {
    animation: none;
  }
  .lp-spinner {
    animation-duration: 1.4s;
  }
}
