.frvc-carousel {
  width: 100%;
  overflow: hidden;
  contain: layout paint;
  container-type: inline-size;
}

.frvc-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.frvc-viewport::-webkit-scrollbar {
  display: none;
}

.frvc-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  padding: 8px 2px 12px;
}

.frvc-card {
  --frvc-card-width: 220px;
  flex: 0 0 var(--frvc-card-width);
  width: var(--frvc-card-width);
  min-width: 0;
}

.frvc-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
}

.frvc-video,
.frvc-media iframe,
.frvc-embed-trigger,
.frvc-embed-trigger img,
.frvc-poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.frvc-poster,
.frvc-media iframe {
  position: absolute;
  inset: 0;
}

.frvc-video {
  opacity: 0;
}

.frvc-media.is-video-active .frvc-video {
  opacity: 1;
}

.frvc-media.is-video-active .frvc-poster {
  opacity: 0;
}

.frvc-media iframe {
  z-index: 2;
  background: #111;
}

.frvc-video,
.frvc-embed-trigger {
  cursor: pointer;
}

.frvc-embed-trigger {
  position: relative;
  padding: 0;
  appearance: none;
  border: 0;
  background: #111;
  color: #fff;
}

.frvc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 17, 17, .78);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}

.frvc-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  transform: translate(-42%, -50%);
}

.frvc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.frvc-name {
  display: inline-block;
  min-width: 0;
  max-width: calc(100% - 50px);
  overflow: hidden;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111;
  font: 600 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frvc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 30px;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #111;
}

.frvc-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.frvc-missing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  color: #fff;
  font: 600 12px/1.4 system-ui, sans-serif;
  text-align: center;
  transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
  .frvc-track {
    gap: 12px;
    padding: 6px 0 10px;
  }

  .frvc-card {
    --frvc-card-width: clamp(120px, 38vw, 160px);
  }

  .frvc-media {
    border-radius: 18px;
  }

  .frvc-name {
    padding: 7px 9px;
    font-size: 10px;
  }

  .frvc-logo {
    flex-basis: 38px;
    width: 38px;
    height: 27px;
  }
}

@supports (width: 1cqw) {
  @media (max-width: 767px) {
    .frvc-card {
      --frvc-card-width: calc((100cqw - 24px) / 2.5);
    }
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .frvc-card {
    --frvc-card-width: 190px;
  }

  .frvc-media {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frvc-carousel {
    --frvc-reduced-motion: 1;
  }
}
