.fc-aif {
  --aif-card-w: clamp(156px, 18vw, 224px);
  --aif-step: clamp(112px, 15vw, 196px);
  --aif-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --aif-chip: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 1px color-mix(in srgb, var(--text-main) 6%, transparent);
  position: relative;
  z-index: 1;
  max-width: var(--lp-container);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  overflow-x: clip;
}

.fc-aif-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.fc-aif-head {
  width: 100%;
  margin-bottom: 2rem;
}

.fc-aif-title {
  width: 100%;
  margin: 0;
  font-size: clamp(2.15rem, 5.4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text-main);
  text-wrap: balance;
}

.fc-aif-em {
  display: block;
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-main) 42%, transparent);
}

.fc-aif-sub {
  max-width: 620px;
  margin: 1.25rem auto 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: balance;
}

.fc-aif-picker {
  width: 100%;
}

.fc-aif-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  margin: 0 auto 1.75rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-main) 6.5%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}

.fc-aif-tabs::-webkit-scrollbar {
  display: none;
}

.fc-aif-tab {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  margin: 0;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.fc-aif-tab:hover {
  color: var(--text-main);
}

.fc-aif-tab.is-active {
  background: var(--bg-0);
  color: var(--text-main);
  box-shadow: var(--aif-chip);
}

html[data-theme="dark"] .fc-aif-tab.is-active {
  background: #18181b;
}

.fc-aif-tab:focus-visible,
.fc-aif-nav:focus-visible,
.fc-aif-chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text-main) 50%, transparent);
  outline-offset: 3px;
}

.fc-aif-panel[hidden] {
  display: none;
}

.fc-aif-panel.is-entering .fc-aif-stage,
.fc-aif-panel.is-entering .fc-aif-chips {
  animation: fcAifPanel 0.5s var(--aif-ease);
}

@keyframes fcAifPanel {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.fc-aif-stage {
  position: relative;
  height: calc(var(--aif-card-w) * 4 / 3 + 1.5rem);
  margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.fc-aif-floor {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: calc(var(--aif-card-w) * 1.6);
  height: 1.4rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--text-main) 12%, transparent) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.fc-aif-card {
  --off: 0;
  --scale: 1;
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--aif-card-w);
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--fc-card);
  border: 1px solid color-mix(in srgb, var(--text-main) 8%, transparent);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.12);
  cursor: pointer;
  transform: translateX(calc(-50% + var(--off) * var(--aif-step))) scale(var(--scale));
  transform-origin: 50% 100%;
  transition:
    transform 0.6s var(--aif-ease),
    opacity 0.45s ease,
    filter 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  will-change: transform;
}

.fc-aif-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  transform: scale(1.12);
  pointer-events: none;
}

.fc-aif-panel[data-kind="portrait"] .fc-aif-card img {
  object-position: 50% 30%;
  transform: none;
}

.fc-aif-panel[data-kind="object"] .fc-aif-card img {
  object-fit: contain;
  transform: scale(0.82);
}

.fc-aif-panel[data-kind="figure"] .fc-aif-card img {
  object-fit: contain;
  object-position: 50% 100%;
  transform: none;
  padding: 0.55rem 0.4rem 0.3rem;
  box-sizing: border-box;
}

.fc-aif-card[data-dist="1"] {
  opacity: 0.78;
  filter: saturate(0.75);
}

.fc-aif-card[data-dist="2"] {
  opacity: 0.4;
  filter: saturate(0.5);
}

.fc-aif-card[data-dist="3"] {
  opacity: 0;
  pointer-events: none;
}

.fc-aif-card:not(.is-active):hover {
  opacity: 1;
  filter: none;
}

.fc-aif-card.is-active {
  cursor: default;
  border-color: color-mix(in srgb, var(--text-main) 12%, transparent);
  box-shadow:
    var(--aif-chip),
    0 18px 40px rgb(0 0 0 / 0.16);
}

.fc-aif-card-check {
  display: none;
}

.fc-aif-current-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 1.1rem;
}

.fc-aif-current-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
}

.fc-aif-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--text-main) 7%, transparent);
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fc-aif-nav svg {
  width: 1.05rem;
  height: 1.05rem;
}

.fc-aif-nav:hover {
  background: color-mix(in srgb, var(--text-main) 12%, transparent);
}

.fc-aif-nav:active {
  transform: scale(0.96);
}

.fc-aif-current-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.fc-aif-current-name {
  min-width: 8.5rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
  color: var(--text-main);
}

.fc-aif-current-name.is-swap {
  animation: fcAifName 0.45s var(--aif-ease) both;
}

@keyframes fcAifName {
  from { opacity: 0; filter: blur(6px); transform: translateY(6px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.fc-aif-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: none;
}

.fc-aif-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2rem;
  padding: 0 0.75rem 0 0.2rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-main) 6.5%, transparent);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.fc-aif-chip:hover {
  color: var(--text-main);
}

.fc-aif-chip:active {
  transform: none;
}

.fc-aif-chip.is-active {
  background: var(--bg-0);
  color: var(--text-main);
  box-shadow: var(--aif-chip);
}

html[data-theme="dark"] .fc-aif-chip.is-active {
  background: #18181b;
}

.fc-aif-chip-thumb {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-0);
}

.fc-aif-chip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: scale(2.4);
  transform-origin: 50% 22%;
}

.fc-aif-panel[data-kind="portrait"] .fc-aif-chip-thumb img {
  transform: scale(1.35);
  transform-origin: 50% 30%;
}

.fc-aif-panel[data-kind="object"] .fc-aif-chip-thumb img {
  object-fit: contain;
  transform: scale(0.9);
  transform-origin: 50% 50%;
}

.fc-aif-hint {
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.fc-aif-show {
  --aif-clip-h: clamp(300px, 36vw, 400px);
  width: 100%;
  margin-top: 2.75rem;
}

.fc-aif-show-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.fc-aif-show-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.fc-aif-show-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-main);
}

.fc-aif-show-sub {
  margin: 0;
  max-width: 620px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: balance;
}

.fc-aif-rail {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0 -1.5rem;
  padding: 0.25rem 1.5rem 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.5rem;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}

.fc-aif-rail::-webkit-scrollbar {
  display: none;
}

.fc-aif-clip {
  position: relative;
  flex: none;
  height: var(--aif-clip-h);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #09090b;
  border: 1px solid color-mix(in srgb, var(--text-main) 8%, transparent);
  scroll-snap-align: start;
}

.fc-aif-clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.fc-aif-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.fc-aif-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
}

.fc-aif.is-visible .fc-aif-reveal {
  animation: fcAifReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes fcAifReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

html:not(.js) .fc-aif-reveal {
  opacity: 1;
  filter: none;
  transform: none;
}

@media (max-width: 760px) {
  .fc-aif {
    --aif-card-w: min(52vw, 210px);
    --aif-step: min(36vw, 150px);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .fc-aif-card[data-dist="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .fc-aif-show {
    --aif-clip-h: min(110vw, 380px);
  }

  .fc-aif-show-lead .fc-aif-nav {
    display: none;
  }

  .fc-aif-rail {
    margin: 0 -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
  }

  .fc-aif-clip[data-wide] {
    --aif-clip-h: min(56vw, 230px);
    align-self: center;
  }

  .fc-aif-chips {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .fc-aif-tabs {
    display: flex;
    justify-content: flex-start;
    width: calc(100% + 2.5rem);
    max-width: none;
    margin: 0 -1.25rem 1.75rem;
    padding: 0.15rem 1.25rem;
    overflow-x: auto;
    background: transparent;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
  }

  .fc-aif-tab {
    background: color-mix(in srgb, var(--text-main) 6.5%, transparent);
  }

  .fc-aif-tab.is-active {
    background: var(--bg-0);
  }

  .fc-aif-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100% + 2.5rem);
    margin: 0 -1.25rem;
    padding: 0.15rem 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
  }

  .fc-aif-chips::-webkit-scrollbar {
    display: none;
  }

  .fc-aif-chip {
    flex: none;
    scroll-snap-align: center;
    white-space: nowrap;
    background: color-mix(in srgb, var(--text-main) 6.5%, transparent);
  }

  .fc-aif-chip.is-active {
    background: var(--bg-0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-aif-reveal {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .fc-aif-card {
    transition-duration: 0.01ms;
  }

  .fc-aif-current-name.is-swap,
  .fc-aif-panel.is-entering .fc-aif-stage,
  .fc-aif-panel.is-entering .fc-aif-chips {
    animation: none;
  }
}
