.fvc {
  position: relative;
  overflow: hidden;
  --fvc-cols: 4;
  --fvc-cols-tablet: 2;
  --fvc-cols-mobile: 1;
  --fvc-gap: 18px;
  --fvc-gap-tablet: 16px;
  --fvc-gap-mobile: 12px;
}

.fvc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.fvc__heading {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
}

.fvc__subheading {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
}


.fvc[data-compact-align="center"].fvc--compact .fvc__header {
  justify-content: center;
}

.fvc[data-compact-align="center"].fvc--compact .fvc__header-inner,
.fvc[data-compact-align="center"].fvc--compact .fvc__header,
.fvc[data-compact-align="center"].fvc--compact .fvc__subheading {
  text-align: center;
}

.fvc[data-compact-align="right"].fvc--compact .fvc__header {
  justify-content: flex-end;
}

.fvc[data-compact-align="right"].fvc--compact .fvc__header-inner,
.fvc[data-compact-align="right"].fvc--compact .fvc__subheading {
  text-align: right;
}

.fvc-card__poster {
  opacity: 1;
  transition: opacity .2s ease;
  z-index: 0;
}

.fvc-card.is-playing.is-ready .fvc-card__poster {
  opacity: 0;
}

.fvc__see-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease;
}

.fvc__see-all:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.fvc__viewport {
  position: relative;
}

.fvc__overflow {
  overflow: hidden;
}

.fvc__track {
  display: flex;
  gap: var(--fvc-gap);
  transition: transform .35s ease;
  will-change: transform;
}

.fvc__track.is-compact[data-align="left"] { justify-content: flex-start; }
.fvc__track.is-compact[data-align="center"] { justify-content: center; }
.fvc__track.is-compact[data-align="right"] { justify-content: flex-end; }

.fvc__track--equal .fvc-card {
  display: flex;
  flex-direction: column;
}

.fvc-card {
  flex: 0 0 calc((100% - (var(--fvc-gap) * (var(--fvc-cols) - 1))) / var(--fvc-cols));
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.fvc-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 0;
  padding: 0;
  width: 100%;
  background: #e9e9e9;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.fvc-card.is-loading .fvc-card__media::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.45);
  border-top-color: rgba(255,255,255,.95);
  z-index: 5;
  animation: fvc-spin .8s linear infinite;
}

.fvc-card__poster,
.fvc-card__player,
.fvc-card__player video,
.fvc-card__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fvc-card__poster {
  object-fit: cover;
  display: block;
}

.fvc-card__player {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
  background: #000;
}

.fvc-card.is-playing .fvc-card__player {
  pointer-events: auto;
}

.fvc-card.is-playing.is-ready .fvc-card__player,
.fvc-card__player.is-ready {
  opacity: 1;
}

.fvc-card__player video,
.fvc-card__player iframe {
  display: block;
  border: 0;
  background: #000;
}

.fvc-card__player video {
  object-fit: cover;
}

.fvc-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.fvc-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: opacity .22s ease, transform .22s ease;
}

.fvc-card.is-playing .fvc-card__play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.92);
}

.fvc-card__mute {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fvc-card__mute[hidden] {
  display: none !important;
}

.fvc-card__mute-icon--on,
.fvc-card.is-unmuted .fvc-card__mute-icon--off {
  display: none;
}

.fvc-card.is-unmuted .fvc-card__mute-icon--on {
  display: block;
}

.fvc-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fvc-card__title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.fvc-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fvc-card__creator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fvc-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.fvc-card__creator-name,
.fvc-card__duration {
  font-size: 14px;
  line-height: 1.2;
}

.fvc-card__creator-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fvc__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.06);
  background: rgba(255,255,255,.95);
  color: #111;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fvc__arrow:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}

.fvc__arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 24px;
  font-weight: 700;
  color: currentColor;
}

.fvc__arrow[disabled] {
  opacity: .45;
  cursor: default;
}

.fvc__arrow--prev { left: 10px; }
.fvc__arrow--next { right: 10px; }

.fvc__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.fvc__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  opacity: .85;
  transition: width .2s ease;
}

.fvc__dot.is-active {
  width: 18px;
}

@keyframes fvc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fvc-modal[hidden] {
  display: none !important;
}

.fvc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.fvc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.fvc-modal__dialog {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  margin: 4vh auto;
  z-index: 2;
}

.fvc-modal__close {
  position: absolute;
  right: 0;
  top: -42px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.fvc-modal__content {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.fvc-modal__content iframe,
.fvc-modal__content video {
  width: 100%;
  max-height: 88vh;
  aspect-ratio: 9 / 16;
  display: block;
  border: 0;
  background: #000;
}

.fvc-modal__content video {
  object-fit: contain;
}

@media (max-width: 1024px) {
  .fvc__track {
    gap: var(--fvc-gap-tablet);
  }

  .fvc-card {
    flex-basis: calc((100% - (var(--fvc-gap-tablet) * (var(--fvc-cols-tablet) - 1))) / var(--fvc-cols-tablet));
  }

  .fvc__heading {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .fvc__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fvc__heading {
    font-size: 28px;
  }

  .fvc__subheading {
    font-size: 16px;
  }

  .fvc__track {
    gap: var(--fvc-gap-mobile);
  }

  .fvc-card {
    flex-basis: calc((100% - (var(--fvc-gap-mobile) * (var(--fvc-cols-mobile) - 1))) / var(--fvc-cols-mobile));
  }

  .fvc__arrow {
    width: 42px;
    height: 42px;
  }
}
