.hjws-root,
.hjws-root *,
.hjws-viewer,
.hjws-viewer * {
  box-sizing: border-box;
}

.hjws-root {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  color: inherit;
  overflow: hidden;
}

.hjws-section-title {
  margin: 0 0 16px;
  font: inherit;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.5;
  color: inherit;
}

.hjws-rail {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hjws-rail::-webkit-scrollbar {
  display: none;
}

.hjws-card {
  flex: 0 0 86px;
  width: 86px;
  min-width: 0;
  scroll-snap-align: start;
}

.hjws-trigger {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.hjws-ring {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, var(--hjws-accent, #d71920), #111 45%, var(--hjws-accent, #d71920));
  transition: transform .18s ease, filter .18s ease;
}

.hjws-ring img,
.hjws-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #171717;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.hjws-trigger:hover .hjws-ring,
.hjws-trigger:focus-visible .hjws-ring {
  transform: scale(1.04);
}

.hjws-trigger:focus-visible {
  outline: 2px solid var(--hjws-accent, #d71920);
  outline-offset: 4px;
  border-radius: 8px;
}

.hjws-trigger.is-viewed .hjws-ring {
  background: #a7a7a7;
  filter: saturate(.45);
}

.hjws-card-title {
  display: -webkit-box;
  width: 100%;
  min-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: balance;
}

.hjws-viewer[hidden] {
  display: none !important;
}

.hjws-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .92);
  font-family: inherit;
  direction: rtl;
  isolation: isolate;
  overscroll-behavior: contain;
  touch-action: none;
}

.hjws-stage {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  height: min(764px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 16px;
  background: #090909;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  color: #fff;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.hjws-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #090909;
  will-change: transform, opacity;
}

.hjws-media.is-entering-next {
  animation: hjws-enter-next .2s cubic-bezier(.2, .7, .3, 1);
}

.hjws-media.is-entering-previous {
  animation: hjws-enter-previous .2s cubic-bezier(.2, .7, .3, 1);
}

@keyframes hjws-enter-next {
  from {
    opacity: .65;
    transform: translate3d(24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hjws-enter-previous {
  from {
    opacity: .65;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hjws-media img,
.hjws-media video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  background: #090909;
}

.hjws-media img[data-fit="contain"],
.hjws-media video[data-fit="contain"] {
  object-fit: contain;
}

.hjws-media-status {
  position: relative;
  z-index: 2;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.hjws-shade {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  pointer-events: none;
}

.hjws-shade-top {
  top: 0;
  height: 145px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent);
}

.hjws-shade-bottom {
  bottom: 0;
  height: 260px;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}

.hjws-progress {
  position: absolute;
  z-index: 8;
  top: max(10px, env(safe-area-inset-top));
  inset-inline: 10px;
  display: flex;
  direction: ltr;
  gap: 4px;
  height: 3px;
}

.hjws-progress-track {
  flex: 1 1 0;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
}

.hjws-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.hjws-viewer-head {
  position: absolute;
  z-index: 9;
  top: max(22px, calc(env(safe-area-inset-top) + 12px));
  inset-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hjws-story-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.hjws-story-identity img,
.hjws-story-avatar-fallback {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #222;
  color: #fff;
  font-weight: 800;
}

.hjws-story-name {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .6);
  white-space: nowrap;
}

.hjws-viewer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.hjws-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .16);
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.hjws-icon-button:hover,
.hjws-icon-button:focus-visible {
  background: rgba(255, 255, 255, .18);
}

.hjws-icon-button:focus-visible,
.hjws-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hjws-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
}

.hjws-nav {
  position: absolute;
  z-index: 8;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(18, 18, 18, .34);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  transform: translateY(-50%);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.hjws-nav-prev {
  left: 14px;
}

.hjws-nav-next {
  right: 14px;
}

.hjws-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  pointer-events: none;
}

.hjws-nav:hover {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(18, 18, 18, .5);
  transform: translateY(-50%) scale(1.06);
}

.hjws-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hjws-content {
  position: absolute;
  z-index: 7;
  right: 20px;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  left: 20px;
  display: grid;
  justify-items: center;
  gap: 14px;
  pointer-events: none;
}

.hjws-caption {
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 750;
  line-height: 1.75;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
  text-wrap: balance;
  white-space: pre-line;
}

.hjws-caption:empty {
  display: none;
}

.hjws-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(260px, 90%);
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  pointer-events: auto;
  transition: transform .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hjws-cta:hover {
  transform: translateY(-1px);
  background: #fff;
  color: #111;
}

.hjws-cta[hidden] {
  display: none;
}

.hjws-admin-notice {
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 767px) {
  .hjws-card {
    flex-basis: 78px;
    width: 78px;
  }

  .hjws-ring {
    width: 70px;
    height: 70px;
  }

  .hjws-viewer {
    padding: 0;
    background: #000;
  }

  .hjws-stage {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .hjws-nav {
    width: 44px;
    height: 44px;
    background: rgba(15, 15, 15, .3);
  }

  .hjws-nav-prev {
    left: max(9px, env(safe-area-inset-left));
  }

  .hjws-nav-next {
    right: max(9px, env(safe-area-inset-right));
  }
}

@media (max-height: 500px) and (pointer: coarse) {
  .hjws-viewer {
    padding: 0;
    background: #000;
  }

  .hjws-stage {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hjws-ring,
  .hjws-cta,
  .hjws-nav {
    transition: none;
  }

  .hjws-media.is-entering-next,
  .hjws-media.is-entering-previous {
    animation: none;
  }
}
