/* 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: 1.875rem;
  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: 5.5rem;
  height: 5.5rem;
  translate: -50% -50%;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 0.25rem 1.5rem 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: 1rem 0 1rem 1.625rem;
  border-color: transparent transparent transparent var(--color-navy-700);
}

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

@media (width < 48rem) {
  .youtube-player { border-radius: 1.125rem; }
  .youtube-player .play { width: 4rem; height: 4rem; }
  .youtube-player .play::after { border-width: 0.75rem 0 0.75rem 1.1875rem; }
}

.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 a blue thumb.
   The comp's thumb is 29.5px; at a 125% / 175% display scale that is a fractional number of device pixels, which
   Chrome and Firefox snap to one more pixel across than down (37x36 at 125%: user, 16 Nov 2026, "isn't a true
   circle"; 30px fares no better, 38x37). 28px is a whole number of device pixels at every common scale (28 / 35 /
   42 / 49 / 56 / 84), so it always paints as a circle; the thumb overhangs the track by (28 - 9.5) / 2 either way. */
.oly-calendar-slider {
  appearance: none;
  height: 1.75rem;
  background: transparent;
  cursor: pointer;

  &::-webkit-slider-runnable-track {
    height: 0.59375rem;
    border-radius: 9999px;
    background: #e5e6e8;
  }
  &::-moz-range-track {
    height: 0.59375rem;
    border-radius: 9999px;
    background: #e5e6e8;
  }
  &::-webkit-slider-thumb {
    appearance: none;
    box-sizing: border-box;
    margin-top: -0.578125rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: #266692;
  }
  &::-moz-range-thumb {
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: #266692;
  }
}

