/* The YouTube block (Views/Partials/blocklist/Components/videoRow.cshtml): a 16:9 frame with the comp's 30px corners,
   the thumbnail filling it, and a play button in the site's colours (a white disc, navy triangle) until it is clicked. */
.youtube-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: var(--color-navy-700);
  isolation: isolate;
}

.youtube-player > div {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.youtube-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}

.youtube-player > div:hover img {
  filter: brightness(85%);
}

.youtube-player .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  translate: -50% -50%;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.25);
  transition: scale 0.2s;
}

.youtube-player .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -35% -50%;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--color-navy-700);
}

.youtube-player > div:hover .play {
  scale: 1.08;
}

@media (width < 48rem) {
  .youtube-player { border-radius: 18px; }
  .youtube-player .play { width: 64px; height: 64px; }
  .youtube-player .play::after { border-width: 12px 0 12px 19px; }
}

.feature-offers-content {
  .loading {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 85, 135, 0.75);
  }
}

/* The Departure Calendar's slider (DepartureCalendar.jsx): the comp's 9.5px light grey track and 29.5px blue thumb. */
.oly-calendar-slider {
  appearance: none;
  height: 29.5px;
  background: transparent;
  cursor: pointer;

  &::-webkit-slider-runnable-track {
    height: 9.5px;
    border-radius: 9999px;
    background: #e5e6e8;
  }
  &::-moz-range-track {
    height: 9.5px;
    border-radius: 9999px;
    background: #e5e6e8;
  }
  &::-webkit-slider-thumb {
    appearance: none;
    margin-top: -10px;
    width: 29.5px;
    height: 29.5px;
    border: 0;
    border-radius: 9999px;
    background: #266692;
  }
  &::-moz-range-thumb {
    width: 29.5px;
    height: 29.5px;
    border: 0;
    border-radius: 9999px;
    background: #266692;
  }
}

