.fx-product-stories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.18rem, 1.5vw, .8rem);
  width: min(100%, 31rem);
  margin-inline: auto;
  padding: .7rem 0 .2rem;
}
body .fx-product-stories button {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .33rem;
  min-width: 0;
  min-height: 44px;
  padding: .12rem 0;
  border: 0;
  border-radius: .5rem;
  background: none;
  box-shadow: none;
  color: #fff;
  text-align: center;
  font: 750 clamp(.66rem, 2.85vw, .88rem)/1.15 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
}
.fx-story-icon {
  position: relative;
  display: block;
  width: min(94%, 4.55rem);
  aspect-ratio: 1;
  isolation: isolate;
  border-radius: 50%;
  box-shadow: 0 .15rem .7rem #f9459b40;
}
.fx-story-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.fx-story-icon::after {
  content: '';
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 25% 12%, #fff8, transparent 43%);
  pointer-events: none;
}
.fx-story-label small { display: block; margin-top: .18em; font-size: .78em; }
.fx-story-seen .fx-story-icon { box-shadow: none; }
.fx-story-seen .fx-story-icon img { filter: saturate(.65); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fx-story-icon { transition: transform .18s ease, filter .18s ease; }
  .fx-product-stories button:hover .fx-story-icon { transform: translateY(-2px); filter: brightness(1.16); }
}
.fx-story-open { overflow: hidden; }
body dialog.fx-story-player {
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: .9rem;
  width: min(100vw, 26rem, 57dvh);
  max-height: 100dvh;
  overflow: hidden;
  background: #101018;
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.fx-story-player::backdrop { background: #08080ce8; }
.fx-story-stage { position: relative; isolation: isolate; aspect-ratio: 9 / 16; }
.fx-story-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-story-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0009, transparent 20%, transparent 57%, #08080bea 91%);
}
.fx-story-top, .fx-story-bottom { position: absolute; z-index: 1; inset-inline: .8rem; }
.fx-story-top { top: max(.65rem, env(safe-area-inset-top)); display: grid; justify-items: end; gap: .3rem; }
.fx-story-progress { display: flex; width: 100%; gap: .25rem; }
.fx-story-progress span { flex: 1; height: .19rem; background: #fff6; border-radius: 1rem; overflow: hidden; }
.fx-story-progress i { display: block; height: 100%; background: white; transform: scaleX(0); transform-origin: left; }
body .fx-story-player button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: .25rem .65rem;
  border: 1px solid #ffffff45;
  border-radius: 99rem;
  background: #101018d9;
  color: #fff;
  box-shadow: none;
  font: 700 .875rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
body .fx-story-player button[hidden] { display: none; }
body .fx-story-player [data-story-close], body .fx-story-player [data-story-prev], body .fx-story-player [data-story-next] { font-size: 1.5rem; }
.fx-story-player [data-story-prev], .fx-story-player [data-story-next] { position: absolute; z-index: 1; top: 45%; }
.fx-story-player [data-story-prev] { left: .45rem; }
.fx-story-player [data-story-next] { right: .45rem; }
.fx-story-player button:disabled { visibility: hidden; }
.fx-story-bottom { bottom: max(.85rem, env(safe-area-inset-bottom)); }
.fx-story-bottom p, .fx-story-bottom h2 { margin: 0 0 .4rem; color: #fff; }
.fx-story-bottom p { font-size: .78rem; }
.fx-story-bottom h2 { font: 760 clamp(1.1rem, 4vw, 1.55rem)/1.16 'DM Sans', system-ui, sans-serif; }
.fx-story-bottom > div { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.fx-story-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: 99rem;
  background: #fff;
  color: #15121d;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}
.fx-product-stories button:focus-visible, .fx-story-player :is(a, button):focus-visible {
  outline: 3px solid #75e7f4;
  outline-offset: 2px;
}
@media (max-width: 480px) and (orientation: portrait) {
  body dialog.fx-story-player { width: 100vw; max-width: none; border-radius: 0; }
  .fx-story-stage { height: min(100dvh, 177.78vw); }
}

.fx-story-stage { touch-action: pan-y; }
body .fx-story-player :is([data-story-prev], [data-story-next]) {
  top: 16%;
  bottom: 28%;
  width: 50%;
  padding: 0 .4rem;
  justify-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body .fx-story-player [data-story-prev] { left: 0; }
body .fx-story-player [data-story-next] { right: 0; justify-content: end; }
.fx-story-player :is([data-story-prev], [data-story-next]) span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #101018af;
}
.fx-story-bottom { pointer-events: none; }
.fx-story-bottom :is(button, a) { pointer-events: auto; }
.fx-story-bottom [data-story-feedback] { overflow-wrap: anywhere; }
.fx-story-bottom [data-story-feedback]:empty { display: none; }
body .fx-story-social { margin-top: .45rem; gap: .3rem; }
body .fx-story-social button { font-size: .75rem; padding-inline: .53rem; }
body .fx-story-social button[aria-pressed="true"] { background: #bd3c78; border-color: #ffd2ea; }
.fx-story-comments {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: grid;
  gap: .55rem;
  max-height: 78%;
  padding: .75rem .85rem max(.8rem, env(safe-area-inset-bottom));
  background: #171522;
  border-radius: 1rem 1rem 0 0;
  color: #fff;
  overflow: auto;
  overscroll-behavior: contain;
}
.fx-story-comments[hidden] { display: none; }
.fx-story-comments header { display: flex; justify-content: space-between; align-items: center; }
.fx-story-comments :is(h3,p,ul) { margin: 0; color: inherit; }
.fx-story-comments p:empty, .fx-story-comments ul:empty { display: none; }
.fx-story-comments ul { list-style: none; padding: 0; }
.fx-story-comments li { padding: .5rem 0; border-bottom: 1px solid #fff2; overflow-wrap: anywhere; }
.fx-story-comments form { display: grid; gap: .4rem; margin: 0; }
body .fx-story-comments textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: .5rem;
  border: 1px solid #aaa0bc;
  border-radius: .45rem;
  background: #282437;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.fx-story-comments form button { justify-self: end; }

.fx-product-stories { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.4rem, 3vw, 1rem); }
body .fx-product-stories button { flex: 0 1 5.5rem; font-size: clamp(.75rem, 3vw, .9rem); }
.fx-story-icon { border: 2px solid #fba3df; }
.fx-story-rail img, .fx-story-icon img { object-fit: cover; }
.fx-story-bottom a[data-story-buy] { background: #ddfb61; color: #151221; }
.fx-story-disclosure { font-size: .75rem; color: #fbf7ff; }
.fx-story-links a, .fx-story-report { color: #f5dcff; text-decoration: underline; background: transparent; }
.fx-story-links a[hidden], .fx-story-progress span[hidden] { display: none; }

.fx-shell-inner .fx-product-stories {
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: clamp(.3rem, 2.2vw, .9rem);
  width: 100%;
  overflow-x: auto;
  padding: .35rem .25rem .2rem;
}
body .fx-shell-inner .fx-product-stories button {
  flex: 0 0 clamp(4rem, 19vw, 6.25rem);
  font-size: .78rem;
}
.fx-shell-inner .fx-story-icon { width: clamp(2.5rem, 11vw, 3.45rem); }
