/* -----------------------------------------------------------------------------
 * Scroll strip — prev/next arrows + edge fades for horizontal scrollers.
 * Applied by public/js/scroll-strip.js to any [data-scroll-strip] element.
 * Shown on every device: desktop mouse users have no other way to reach
 * hidden-scrollbar rows, and the arrows double as an overflow cue on touch.
 *
 * Per-strip options (data attributes on the scroller):
 *   data-scroll-strip-label="players"   accessible name for the buttons
 *   data-scroll-strip-size="sm"         compact arrows for tab/pill rows
 *   data-scroll-strip-fade="none"       no gradient (rounded pill containers)
 *   --scroll-strip-bg                   fade colour; defaults to page surface
 * -------------------------------------------------------------------------- */
.scroll-strip {
  position: relative;
  --scroll-strip-size: 36px;
  --scroll-strip-fade-width: 72px;
  --scroll-strip-inset: 6px;
}
.scroll-strip--sm {
  --scroll-strip-size: 28px;
  --scroll-strip-fade-width: 44px;
  --scroll-strip-inset: 4px;
}
.scroll-strip__track { scroll-behavior: smooth; }

.scroll-strip::before,
.scroll-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--scroll-strip-fade-width);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.scroll-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--scroll-strip-bg, var(--color-page-background, #161616)) 25%, transparent);
}
.scroll-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--scroll-strip-bg, var(--color-page-background, #161616)) 25%, transparent);
}
.scroll-strip.can-scroll-prev::before,
.scroll-strip.can-scroll-next::after { opacity: 1; }
.scroll-strip--no-fade::before,
.scroll-strip--no-fade::after { display: none; }

.scroll-strip__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: var(--scroll-strip-size);
  height: var(--scroll-strip-size);
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: #262626;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.scroll-strip__nav svg {
  width: 55%;
  height: 55%;
  display: block;
}
.scroll-strip__nav:hover:not(:disabled) {
  background: #303030;
  border-color: rgba(205, 177, 64, 0.6);
}
.scroll-strip__nav:active:not(:disabled) { background: #3a3a3a; }
.scroll-strip__nav:focus-visible {
  outline: 2px solid #cdb140;
  outline-offset: 2px;
}
.scroll-strip__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.scroll-strip__nav[hidden] { display: none !important; }
.scroll-strip__nav--prev { left: var(--scroll-strip-inset); }
.scroll-strip__nav--next { right: var(--scroll-strip-inset); }

@media (max-width: 768px) {
  .scroll-strip {
    --scroll-strip-size: 32px;
    --scroll-strip-fade-width: 48px;
  }
  .scroll-strip--sm {
    --scroll-strip-size: 26px;
    --scroll-strip-fade-width: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-strip__track { scroll-behavior: auto; }
}
