.profile-reel {
  position: relative;
  isolation: isolate;
  flex: none;
  width: 366px;
  height: 376px;
}

.profile-reel__match-hint {
  margin: 8px 0 0;
  color: var(--color-gold);
  font-size: 15px;
  text-align: center;
}

.profile-reel__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
  padding: 17px 18px 18px;
  clip-path: inset(17px 0 18px);
}

.profile-reel__column {
  position: relative;
  display: grid;
  grid-template-rows: 48px 234px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  background: #16110c;
  overflow: hidden;
}

.profile-reel__column--empty {
  background: linear-gradient(110deg, #120e0a, #302316 50%, #100d09);
}

.profile-reel__preview {
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.profile-reel__preview > .reel-card {
  height: 234px;
  filter: blur(5px);
  opacity: 0.65;
}

.profile-reel__preview[data-reel-neighbor="previous"] > .reel-card {
  transform: translate3d(0, -186px, 0);
}

.profile-reel__frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profile-reel__frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.reel-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  margin-inline: 2px;
  border: 1px solid var(--color-gold);
  border-radius: 10px;
  color: #eee9df;
  background: #100d09;
  isolation: isolate;
}

.profile-reel__column:nth-child(2) {
  overflow: visible;
}

.profile-reel__column:nth-child(2) > .reel-card {
  z-index: 4;
  border-color: #d9bba3;
}

.profile-reel__column:nth-child(2) > .reel-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border: 1.5px solid #fff4ee;
  border-radius: 10px;
  box-shadow:
    0 0 2px 1px #ffb0c0,
    0 0 5px 2px #ff3d68,
    0 0 10px 3px rgb(255 36 86 / 65%),
    inset 0 0 3px 1px #ff6383,
    inset 0 0 8px 2px rgb(255 36 86 / 35%);
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0 12%,
    transparent 36% 64%,
    #000 88% 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0 12%,
    transparent 36% 64%,
    #000 88% 100%
  );
  -webkit-mask-size: calc(100% + 24px) calc(100% + 24px);
  mask-size: calc(100% + 24px) calc(100% + 24px);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-clip: no-clip;
  mask-clip: no-clip;
  pointer-events: none;
}

.reel-card__photo,
.reel-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.reel-card__photo {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.reel-card::after {
  content: "";
  z-index: -1;
  background: linear-gradient(
    transparent 45%,
    rgb(5 6 5 / 40%) 65%,
    #050605 100%
  );
}

.reel-card__details {
  width: 100%;
  padding: 0 4px 8px;
}
.reel-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px 3px;
}
.reel-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.05;
}
.reel-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-gold);
  font-size: 7px;
  line-height: 1;
}
.reel-card__badge img {
  width: 10px;
  height: 10px;
}
.reel-card__badge--new {
  color: var(--color-new);
}
.reel-card__meta {
  margin: 2px 0 3px;
  font-size: 12px;
  line-height: 1.1;
}
.reel-card__location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 1px;
}
.reel-card__city {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1.2;
}
.reel-card__city img {
  width: 9px;
  height: 11px;
}
.reel-card__online {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  font-size: 8px;
  line-height: 1;
}
.reel-card__online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-online);
  box-shadow: 0 0 2px var(--color-online);
}
.reel-card__seen {
  position: absolute;
  top: 4px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid var(--color-gold);
  border-radius: 5px;
  background: rgb(5 6 5 / 85%);
  color: var(--color-gold);
  font-size: 10px;
  line-height: 1;
  box-shadow: inset 0 0 2px var(--color-gold);
}
.profile-reel__empty {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 30px;
  right: 30px;
  margin: 0;
  padding: 15px 8px;
  transform: translateY(-50%);
  border: 1px solid var(--color-gold-subtle);
  border-radius: 8px;
  background: rgb(5 6 5 / 95%);
  color: var(--color-gold);
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
}
.reel-card:focus-visible {
  outline-offset: -4px;
}
.reel-card:active {
  filter: brightness(0.9);
}

.profile-reel__crossfade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reel-motion-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.profile-reel__column.is-moving > :not(.reel-motion-viewport) {
  visibility: hidden;
}
.reel-track {
  display: flex;
  flex-direction: column;
  will-change: transform, filter;
}
.reel-blur-definitions {
  position: absolute;
  pointer-events: none;
}
.reel-track__item {
  display: grid;
  flex: 0 0 var(--reel-step);
  height: var(--reel-step);
  min-height: 0;
}
.reel-track__item .reel-card {
  height: 100%;
}
.profile-reel__column:nth-child(2) .reel-track .reel-card::before {
  content: none;
}

.reel-result-glow {
  position: absolute;
  z-index: 5;
  border: 1.5px solid #ffe8df;
  border-radius: 10px;
  box-shadow:
    0 0 3px 1px #ffb6c9,
    0 0 10px 3px rgb(255 75 115 / 85%),
    0 0 18px 5px rgb(255 75 115 / 40%),
    inset 0 0 5px rgb(255 130 155 / 50%);
  pointer-events: none;
}
@media (hover: hover) {
  .reel-card:hover .reel-card__name {
    color: var(--color-gold);
  }
}

@media (min-width: 900px) {
  .profile-reel__empty {
    left: 51px;
    right: 51px;
  }

  .profile-reel {
    width: 620px;
  }

  .profile-reel__columns {
    gap: 26px;
    padding: 34px 50px 40px;
    clip-path: inset(34px 0 40px);
  }

  .profile-reel__column {
    grid-template-rows: minmax(0, 1fr);
    border-radius: 12px;
  }

  .profile-reel__preview,
  .reel-card__seen {
    display: none;
  }

  .reel-card {
    margin-inline: 0;
    border: 0;
    border-radius: 12px;
  }

  .profile-reel__column:nth-child(2) > .reel-card::before {
    content: none;
  }

  .profile-reel:has(.profile-reel__column:nth-child(2) .reel-card)::after {
    content: "";
    position: absolute;
    z-index: 4;
    top: 35px;
    bottom: 41px;
    left: 234px;
    width: 151px;
    border-inline: 1.5px solid #ffe2d9;
    border-radius: 10px;
    box-shadow:
      0 0 2px 1px #ff9ba9,
      0 0 6px 2px rgb(255 75 115 / 95%),
      0 0 12px 3px rgb(255 65 105 / 50%),
      inset 0 0 6px 1px rgb(255 117 141 / 70%);
    -webkit-mask-image: linear-gradient(
      transparent 2%,
      rgb(0 0 0 / 40%) 15%,
      #000 30%,
      #000 62%,
      rgb(0 0 0 / 60%) 80%,
      transparent 98%
    );
    mask-image: linear-gradient(
      transparent 2%,
      rgb(0 0 0 / 40%) 15%,
      #000 30%,
      #000 62%,
      rgb(0 0 0 / 60%) 80%,
      transparent 98%
    );
    -webkit-mask-size: calc(100% + 48px) 100%;
    mask-size: calc(100% + 48px) 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-clip: no-clip;
    mask-clip: no-clip;
    pointer-events: none;
  }

  .reel-card__details {
    padding: 0 10px 10px;
  }
  .reel-card__heading {
    gap: 3px 6px;
  }
  .reel-card__name {
    font-size: 20px;
  }
  .reel-card__badge {
    gap: 3px;
    font-size: 11px;
  }
  .reel-card__badge img {
    width: 15px;
    height: 15px;
  }
  .reel-card__meta {
    margin: 3px 0 4px;
    font-size: 16px;
  }
  .reel-card__city {
    gap: 4px;
    font-size: 13px;
  }
  .reel-card__city img {
    width: 12px;
    height: 15px;
  }
  .reel-card__online {
    gap: 3px;
    padding: 3px 5px;
    font-size: 11px;
  }
  .reel-card__online-dot {
    width: 6px;
    height: 6px;
  }
}
