/* Shared horizontal shelf scroller — hide scrollbars, overlay nav buttons */

.mfc-shelf-track:not(.mfc-shelf-track--grid),
.mfc-carousel,
.sfx-shelf-track:not(.sfx-shelf-track--wrap),
.anx-shelf__track,
.ent-xp-shelf__track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mfc-shelf-track:not(.mfc-shelf-track--grid)::-webkit-scrollbar,
.mfc-carousel::-webkit-scrollbar,
.sfx-shelf-track:not(.sfx-shelf-track--wrap)::-webkit-scrollbar,
.anx-shelf__track::-webkit-scrollbar,
.ent-xp-shelf__track::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.fe-shelf-scroller,
.sfx-shelf-scroller,
.anx-shelf-scroller {
  position: relative;
}

.fe-shelf-scroller--static .fe-shelf-arrow {
  display: none;
}

.fe-shelf-arrow,
.sfx-shelf-arrow,
.anx-shelf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 18, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}

.fe-shelf-arrow--prev,
.sfx-shelf-arrow--prev,
.anx-shelf-arrow--prev { left: 0.35rem; }

.fe-shelf-arrow--next,
.sfx-shelf-arrow--next,
.anx-shelf-arrow--next { right: 0.35rem; }

.fe-shelf-arrow:hover,
.sfx-shelf-arrow:hover,
.anx-shelf-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.fe-shelf-arrow.is-hidden,
.sfx-shelf-arrow.is-hidden,
.anx-shelf-arrow.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fe-shelf-scroller .mfc-shelf-track,
.fe-shelf-scroller .sfx-shelf-track,
.fe-shelf-scroller .anx-shelf__track,
.fe-shelf-scroller .mfc-carousel,
.sfx-shelf-scroller .sfx-shelf-track,
.anx-shelf-scroller .anx-shelf__track {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

@media (hover: none), (max-width: 900px) {
  .fe-shelf-arrow:not(.is-hidden),
  .sfx-shelf-arrow:not(.is-hidden),
  .anx-shelf-arrow:not(.is-hidden) {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfc-shelf-track,
  .mfc-carousel,
  .sfx-shelf-track,
  .anx-shelf__track,
  .ent-xp-shelf__track {
    scroll-behavior: auto;
  }
}
