.moemen-focus-rail {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: #0a0a0a;
  outline: none;
  user-select: none;
  isolation: isolate;
}

.moemen-focus-rail *,
.moemen-focus-rail *::before,
.moemen-focus-rail *::after {
  box-sizing: border-box;
}

.moemen-focus-rail__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.moemen-focus-rail__bg-img {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: .42;
  filter: blur(46px) saturate(1.65);
  transform: scale(1.08);
  transition: opacity .45s ease, transform .7s ease;
}

.moemen-focus-rail__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1), rgba(10,10,10,.58) 46%, rgba(10,10,10,.14));
}

.moemen-focus-rail__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.moemen-focus-rail__stage {
  position: relative;
  width: 100%;
  height: 360px;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
}

.moemen-focus-rail__stage.is-dragging {
  cursor: grabbing;
}

.moemen-focus-rail__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-top-color: rgba(255,255,255,.26);
  border-radius: 24px;
  overflow: hidden;
  background: #171717;
  box-shadow: 0 28px 80px rgba(0,0,0,.52);
  appearance: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition:
    transform .72s cubic-bezier(.19,1,.22,1),
    opacity .48s ease,
    filter .62s ease,
    box-shadow .48s ease;
  cursor: pointer;
  will-change: transform, opacity, filter;
}

.moemen-focus-rail__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.moemen-focus-rail__card-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(255,255,255,0) 36%, rgba(0,0,0,.18));
  pointer-events: none;
  mix-blend-mode: screen;
}

.moemen-focus-rail__card.is-active {
  box-shadow: 0 32px 98px rgba(255,255,255,.08), 0 34px 90px rgba(0,0,0,.56);
}

.moemen-focus-rail__card.is-hidden {
  pointer-events: none;
}

.moemen-focus-rail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 900px);
  margin: 46px auto 0;
}

.moemen-focus-rail__content {
  flex: 1 1 auto;
  min-height: 128px;
}

.moemen-focus-rail__content.is-changing {
  animation: moemen-focus-rail-content .34s ease;
}

@keyframes moemen-focus-rail-content {
  0% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.moemen-focus-rail__meta {
  margin-bottom: 8px;
  color: #34d399;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.moemen-focus-rail__title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
}

.moemen-focus-rail__description {
  max-width: 520px;
  margin-top: 12px;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 1.65;
}

.moemen-focus-rail__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.moemen-focus-rail__controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(23,23,23,.82);
  backdrop-filter: blur(12px);
}

.moemen-focus-rail__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.68);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.moemen-focus-rail__arrow svg {
  width: 21px;
  height: 21px;
}

.moemen-focus-rail__arrow:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.moemen-focus-rail__arrow:active {
  transform: scale(.94);
}

.moemen-focus-rail__arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.moemen-focus-rail__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  color: #a3a3a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1;
}

.moemen-focus-rail__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .25s ease, opacity .25s ease;
  white-space: nowrap;
}

.moemen-focus-rail__link svg {
  width: 17px;
  height: 17px;
  transition: transform .25s ease;
}

.moemen-focus-rail__link:hover {
  transform: scale(1.04);
}

.moemen-focus-rail__link:hover svg {
  transform: translate(2px, -2px);
}

.moemen-focus-rail__link.is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .moemen-focus-rail__card {
    width: min(260px, 54vw);
  }

  .moemen-focus-rail__footer {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .moemen-focus-rail {
    min-height: 620px;
  }

  .moemen-focus-rail__stage {
    height: 320px;
  }

  .moemen-focus-rail__card {
    width: min(230px, 68vw);
  }

  .moemen-focus-rail__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 32px;
  }

  .moemen-focus-rail__description {
    margin-left: auto;
    margin-right: auto;
  }

  .moemen-focus-rail__actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}
