.player-carousel__pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: .75rem 0 1rem;
}

.player-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 35%);
  cursor: pointer;
  transition: all .2s ease;
}

.player-carousel__dot:hover {
  background: rgb(255 255 255 / 60%);
}

.player-carousel__dot.is-active {
  width: 22px;
  background: #fff;
}

.player-carousel-shell {
  margin-block: 2rem;
}

.player-carousel {
  padding-block: 1.25rem;
  background: #151515;
  box-shadow: 0 0 0 100vmax #151515;
  clip-path: inset(0 -100vmax);
}

.player-carousel__header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.player-carousel .player-carousel__heading {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-bottom: 0;
  color: #fff;
}

.player-carousel .player-carousel__heading .player-carousel__heading-extra {
  display: none;
  font: inherit;
  color: inherit;
}

.player-carousel__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-sizing: border-box;
  width: auto;
  min-width: 148px;

  padding: 8px 16px;

  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow:
          0 3px 1px -2px rgb(0 0 0 / 20%),
          0 2px 2px rgb(0 0 0 / 14%),
          0 1px 5px rgb(0 0 0 / 12%);

  color: #000 !important;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.63px;
  text-decoration: none !important;
  white-space: nowrap;

  transition:
          background-color 250ms cubic-bezier(.4, 0, .2, 1),
          box-shadow 250ms cubic-bezier(.4, 0, .2, 1);
}

.player-carousel__cta:hover {
  background: #f5f5f5;
  box-shadow:
          0 2px 4px -1px rgb(0 0 0 / 20%),
          0 4px 5px rgb(0 0 0 / 14%),
          0 1px 10px rgb(0 0 0 / 12%);
}

.player-carousel__cta:active {
  box-shadow:
          0 5px 5px -3px rgb(0 0 0 / 20%),
          0 8px 10px 1px rgb(0 0 0 / 14%),
          0 3px 14px 2px rgb(0 0 0 / 12%);
}

.player-carousel__cta:focus-visible {
  outline: 2px solid #948fff;
  outline-offset: 2px;
}

.player-carousel__cta img {
  width: auto;
  max-width: 110px;
  height: 24px;
  filter: brightness(0);
  object-fit: contain;
}

.player-carousel__frame {
  position: relative;
}

.player-carousel__track {
  display: flex;
  gap: .75rem;

  margin-inline: -.5rem;
  padding: 1rem .5rem .75rem;

  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: .5rem;
  scroll-snap-type: x mandatory;

  /* Hide scrollbar while keeping scrolling enabled */
  -ms-overflow-style: none;   /* IE/Edge */
  scrollbar-width: none;      /* Firefox */
}

.player-carousel__track::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Edge */
}

.player-carousel__card {
  display: block;
  position: relative;
  overflow: hidden;

  flex: 0 0 clamp(200px, 60vw, 220px);
  height: clamp(112px, 34vw, 124px);

  border-radius: 12px;

  scroll-snap-align: start;
  text-decoration: none !important;

  transition:
          transform .15s ease,
          box-shadow .15s ease;
}

.player-carousel__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 4px;
  background: #948fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s .1s;
}

.player-carousel__card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 8px #fff;
}

.player-carousel__card:hover::after,
.player-carousel__card:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.player-carousel__card:first-child {
  transform-origin: left center;
}

.player-carousel__card:last-child {
  transform-origin: right center;
}

.player-carousel__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-carousel__title {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;

  padding: .75rem;

  background: linear-gradient(
          179.62deg,
          rgb(21 21 21 / 0%) 32%,
          rgb(21 21 21 / 65%) 61%
  );

  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;

  pointer-events: none;
}

.player-carousel__title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          179.62deg,
          rgb(21 21 21 / 0%) 10%,
          rgb(21 21 21 / 15%) 40%,
          rgb(21 21 21 / 60%) 70%,
          rgb(21 21 21 / 85%) 100%
  );
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

.player-carousel__card:hover .player-carousel__title::before,
.player-carousel__card:focus-visible .player-carousel__title::before {
  opacity: 1;
}

.player-carousel__title-text {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.player-carousel__fade {
  position: absolute;
  inset-block: 0;
  width: 3.5rem;
  z-index: 1;

  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}

.player-carousel__fade.is-visible {
  opacity: .9;
}

.player-carousel__fade--left {
  left: -.5rem;
  width: 4rem;
  background: linear-gradient(to right, #151515 10%, rgb(21 21 21 / 80%) 35%, transparent);
}

.player-carousel__fade--right {
  right: -.5rem;
  width: 4rem;
  background: linear-gradient(to left, #151515 10%, rgb(21 21 21 / 80%) 35%, transparent);
}

@media (min-width: 768px) {

  .player-carousel__track {
    gap: 1rem;
    margin-inline: -.5rem;
    padding-inline: .5rem;
    scroll-padding-inline: .5rem;
  }

  .player-carousel__card {
    flex: 0 0 250px;
    height: 140px;
  }

  .player-carousel__fade {
    width: 5rem;
  }

  .player-carousel__fade--left {
    left: -.5rem;
    width: 5.5rem;
  }

  .player-carousel__fade--right {
    right: -.5rem;
    width: 5.5rem;
  }
}

@media (min-width: 1024px) {

  .player-carousel .player-carousel__heading .player-carousel__heading-extra {
    display: inline;
  }
}
