.hwstories-scope {
  --hwstories-accent: var(--story-accent, #0057b8);
  --hwstories-danger: #e71818;
  --hwstories-gold: #f5c84c;
  --hwstories-pink: #e64191;
  --hwstories-ink: #0f172a;
  --hwstories-muted: #64748b;
  box-sizing: border-box;
  color: var(--hwstories-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hwstories-scope *,
.hwstories-scope *::before,
.hwstories-scope *::after {
  box-sizing: border-box;
}

.hwstories-scope a {
  color: inherit;
}

.hwstories-scope.web-stories {
  max-width: 1480px;
  margin: 0 auto;
}

.hwstories-scope .web-stories__header {
  display: grid;
  gap: 4px;
  margin: 0 0 26px;
}

.hwstories-scope .web-stories__title {
  margin: 0;
  color: var(--story-accent, var(--hwstories-accent));
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hwstories-scope .web-stories__subtitle {
  margin: 0;
  color: #293548;
  font-size: 0.96rem;
  font-weight: 650;
}

.hwstories-scope .web-stories__rail-wrap {
  position: relative;
}

.hwstories-scope .web-stories__rail {
  display: grid;
  grid-auto-columns: minmax(170px, 195px);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.hwstories-scope .web-stories__rail::-webkit-scrollbar {
  height: 8px;
}

.hwstories-scope .web-stories__rail::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.hwstories-scope .web-stories__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
}

.hwstories-scope .web-stories__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.hwstories-scope .web-stories__nav--prev {
  left: -18px;
}

.hwstories-scope .web-stories__nav--next {
  right: -18px;
}

.hwstories-scope .story-card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 295px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1e293b;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  isolation: isolate;
  scroll-snap-align: start;
}

.hwstories-scope .story-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0) 38%, rgba(2, 6, 23, 0.85) 100%),
    var(--story-cover, linear-gradient(140deg, #0057b8, #e71818));
  background-position: center;
  background-size: cover;
  content: "";
  transition: transform 220ms ease;
}

.hwstories-scope .story-card:hover::before,
.hwstories-scope .story-card:focus-visible::before {
  transform: scale(1.04);
}

.hwstories-scope .story-card:focus-visible,
.hwstories-scope .web-stories__nav:focus-visible,
.hwstories-scope.story-viewer button:focus-visible,
.hwstories-scope.story-viewer a:focus-visible {
  outline: 3px solid rgba(245, 200, 76, 0.95);
  outline-offset: 3px;
}

.hwstories-scope .story-card__hot {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--hwstories-danger);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
  font-size: 18px;
}

.hwstories-scope .story-card__icon {
  position: absolute;
  right: 22px;
  bottom: 54px;
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(var(--hwstories-gold), var(--hwstories-pink), #33c7cc, var(--hwstories-gold)) border-box;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
  object-fit: cover;
  padding: 3px;
}

.hwstories-scope .story-card__copy {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0 14px 15px;
  text-align: left;
}

.hwstories-scope .story-card__eyebrow {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hwstories-scope .story-card__title {
  max-width: 100%;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(2, 6, 23, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.hwstories-scope .story-card.is-viewed {
  opacity: 0.72;
}

.hwstories-scope .story-card--video {
  min-height: 320px;
  background: #000;
}

.hwstories-scope .story-card--video::before {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0) 55%, rgba(2, 6, 23, 0.72) 88%, rgba(2, 6, 23, 0.92) 100%);
  transition: opacity 220ms ease;
}

.hwstories-scope .story-card--video:hover::before,
.hwstories-scope .story-card--video:focus-visible::before {
  opacity: 0.7;
}

.hwstories-scope .story-card__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
  pointer-events: none;
}

.hwstories-scope .story-card--video .story-card__copy {
  gap: 4px;
  padding: 0 12px 18px;
  text-align: center;
  justify-items: center;
}

.hwstories-scope .story-card--video .story-card__eyebrow {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.hwstories-scope .story-card--video .story-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  overflow: hidden;
  white-space: normal;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hwstories-scope .story-card__play {
  position: absolute;
  bottom: 86px;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 3px solid var(--hwstories-danger);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  color: var(--hwstories-danger);
  transform: translateX(-50%);
  transition: transform 220ms ease;
}

.hwstories-scope .story-card--video:hover .story-card__play,
.hwstories-scope .story-card--video:focus-visible .story-card__play {
  transform: translateX(-50%) scale(1.06);
}

.hwstories-scope.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: grid;
  place-items: center;
  padding: 22px clamp(12px, 3vw, 40px);
  color: #fff;
  background: linear-gradient(115deg, rgba(4, 4, 11, 0.98), rgba(45, 0, 18, 0.96)), #07070b;
}

.hwstories-scope.story-viewer[hidden] {
  display: none;
}

.hwstories-scope .story-viewer__top {
  position: fixed;
  top: 18px;
  left: clamp(18px, 3vw, 40px);
  right: clamp(18px, 3vw, 40px);
  z-index: 3;
  display: grid;
  gap: 10px;
}

.hwstories-scope .story-viewer__topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.hwstories-scope .story-viewer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}

.hwstories-scope .story-viewer__avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.hwstories-scope .story-viewer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hwstories-scope .story-viewer__avatar--text {
  background: var(--hwstories-danger);
}

.hwstories-scope .story-viewer__meta-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hwstories-scope .story-viewer__meta-title {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.hwstories-scope .story-viewer__meta-label {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hwstories-scope .story-viewer__meta-label:empty {
  display: none;
}

.hwstories-scope .story-progress {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 8px;
}

.hwstories-scope .story-progress__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hwstories-scope .story-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hwstories-scope .story-progress__bar.is-done .story-progress__fill {
  transform: scaleX(1);
}

.hwstories-scope .story-progress__bar.is-active .story-progress__fill {
  transform: scaleX(var(--story-progress, 0));
}

.hwstories-scope .story-viewer__actions {
  display: flex;
  gap: 10px;
}

.hwstories-scope .story-icon-btn,
.hwstories-scope .story-side-btn {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.hwstories-scope .story-icon-btn {
  width: 38px;
  height: 38px;
}

.hwstories-scope .story-icon-btn:hover,
.hwstories-scope .story-side-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hwstories-scope .story-icon-btn:active {
  transform: scale(0.94);
}

.hwstories-scope .story-icon-btn--close {
  background: rgba(255, 255, 255, 0.18);
}

.hwstories-scope .story-icon-btn.is-flash {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--hwstories-accent, #0057b8);
}

.hwstories-scope .story-icon-btn__flash {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hwstories-scope .story-side-btn {
  width: 44px;
  height: 44px;
}

.hwstories-scope .story-viewer__layout {
  display: grid;
  grid-template-columns: auto minmax(280px, 438px) minmax(190px, 262px) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 52px);
  width: min(1180px, 100%);
}

.hwstories-scope .story-phone {
  position: relative;
  display: grid;
  align-items: end;
  width: min(438px, 86vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  isolation: isolate;
}

.hwstories-scope .story-phone.is-clean-video {
  background: #000;
}

.hwstories-scope .story-phone.has-click-url {
  cursor: pointer;
}

.hwstories-scope .story-phone__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #111827;
  object-fit: cover;
}

.hwstories-scope .story-phone.is-clean-video .story-phone__media {
  z-index: 0;
}

.hwstories-scope .story-phone__media--embed {
  border: 0;
  background: #fff;
  object-fit: initial;
}

.hwstories-scope .story-phone::after {
  position: absolute;
  inset: 35% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.9));
  content: "";
}

.hwstories-scope .story-phone.is-clean-video::after {
  display: none;
}

.hwstories-scope .story-phone.is-embed::after {
  inset: 62% 0 0;
}

.hwstories-scope .story-phone.is-embed .story-phone__brand {
  display: none;
}

.hwstories-scope .story-phone__brand {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--hwstories-danger);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.22);
  font-size: 28px;
  font-weight: 900;
}

.hwstories-scope .story-phone__body {
  display: grid;
  gap: 10px;
  padding: 0 28px 30px;
  text-align: center;
}

.hwstories-scope .story-badge {
  justify-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hwstories-scope .story-phone__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2.2rem);
  line-height: 0.98;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.7);
}

.hwstories-scope .story-phone__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
}

.hwstories-scope .story-phone__cta {
  justify-self: center;
  min-width: min(100%, 260px);
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--hwstories-danger);
  box-shadow: 0 10px 26px rgba(231, 24, 24, 0.34);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.hwstories-scope .story-phone__tray {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 20px 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hwstories-scope .story-phone__tray > * {
  pointer-events: auto;
}

.hwstories-scope .story-phone__tray-handle {
  display: grid;
  width: 38px;
  height: 22px;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  animation: hwstories-bounce 1.6s ease-in-out infinite;
}

@keyframes hwstories-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hwstories-scope .story-phone__cta--clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--hwstories-accent, #0057b8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hwstories-scope .story-phone__cta--clean:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.hwstories-scope .story-mini {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 468px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  opacity: 0.72;
}

.hwstories-scope .story-mini[hidden] {
  display: none;
}

.hwstories-scope .story-mini::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mini-cover) center / cover;
  content: "";
}

.hwstories-scope .story-mini::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.86));
  content: "";
}

.hwstories-scope .story-mini__brand {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--hwstories-danger);
  font-weight: 900;
}

.hwstories-scope .story-mini__copy {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.hwstories-scope .story-mini__title {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.08;
}

.hwstories-scope .story-mini__cta {
  padding: 9px 12px;
  border-radius: 999px;
  color: #e71818;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.hwstories-scope .story-viewer__footer {
  position: fixed;
  right: clamp(18px, 3vw, 40px);
  bottom: 18px;
  left: clamp(18px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  pointer-events: none;
}

.hwstories-scope .story-jump {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(270px, 100%);
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  pointer-events: auto;
}

.hwstories-scope .story-jump--next {
  justify-self: end;
}

.hwstories-scope .story-jump__thumb {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.hwstories-scope .story-jump__label {
  display: block;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hwstories-scope .web-stories__rail {
    grid-auto-columns: minmax(128px, 42vw);
    gap: 14px;
  }

  .hwstories-scope .web-stories__nav,
  .hwstories-scope .story-side-btn,
  .hwstories-scope .story-mini,
  .hwstories-scope .story-viewer__footer {
    display: none;
  }

  .hwstories-scope .story-card {
    min-height: 248px;
  }

  .hwstories-scope .story-card__icon {
    right: 16px;
    bottom: 48px;
    width: 64px;
    height: 64px;
  }

  .hwstories-scope.story-viewer {
    padding: 16px 8px;
  }

  .hwstories-scope .story-viewer__top {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .hwstories-scope .story-viewer__layout {
    display: block;
    width: auto;
  }

  .hwstories-scope .story-phone {
    width: min(96vw, 438px);
    max-height: calc(100vh - 76px);
  }

  .hwstories-scope .story-phone__body {
    padding: 0 20px 22px;
  }
}

@media (max-width: 520px) {
  .hwstories-scope .web-stories__subtitle {
    font-size: 0.86rem;
  }

  .hwstories-scope .story-card__title {
    font-size: 0.88rem;
  }

  .hwstories-scope .story-phone__brand {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .hwstories-scope .story-phone__text {
    font-size: 0.9rem;
  }
}
