.stories {
  width: min(100%, 315px);
  height: auto;
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: visible;
  padding: 0;
  background: #081f14;
  box-shadow: 0 16px 38px #10251a33;
}
.stories-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.stories-top, .stories-bottom {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  color: #fff7e6;
  padding: 16px;
  font-size: 13px;
}
.stories-top {
  top: 0;
  background: linear-gradient(#081f14ed, transparent);
  border-radius: 16px 16px 0 0;
}
.stories-heading, .stories-actions, .stories-progress { display: flex; justify-content: space-between; gap: 6px; }
.stories-progress { margin-bottom: 11px; }
.stories-progress span { flex: 1; height: 3px; background: #ffffff66; border-radius: 4px; overflow: hidden; }
.stories-progress i { display: block; height: 100%; width: 0; background: #ecd398; }
.stories-bottom {
  bottom: 0;
  padding-top: 36px;
  background: linear-gradient(transparent, #081f14f5);
  border-radius: 0 0 16px 16px;
}
.stories button { font: inherit; cursor: pointer; }
.stories [hidden], .stories-status:empty { display: none; }
.stories-play, .stories-sound {
  min-height: 44px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #ecd398;
}
.stories .stories-status { color: #fff7e6; font-size: 13px; margin: 0; }
.stories .stories-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid #ded4c0;
  border-radius: 50%;
  background: #faf6ed;
  color: #142b20;
  font-size: 24px;
}
.stories-prev { left: -22px; }
.stories-next { right: -22px; }
@media (max-width: 760px) {
  .stories { width: min(calc(100% - 44px), 300px); }
}
