.kr-story-viewer[hidden] {
  display: none !important;
}

.kr-story-viewer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(10, 8, 18, .92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.kr-story-viewer__dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  aspect-ratio: 9 / 16;
  max-height: min(840px, calc(100vh - 48px));
  border-radius: 26px;
  overflow: hidden;
  background: #0b0914;
  box-shadow: 0 34px 100px rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ==========================================================================
   Native Web Story Player
   ========================================================================== */
.kr-story-player {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0914;
}

.kr-story-player__progress {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  gap: 5px;
  height: 3px;
}

.kr-story-player__bar {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
}

.kr-story-player__bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
}

.kr-story-player__bar.is-passed .kr-story-player__bar-fill {
  width: 100% !important;
}

.kr-story-player__topbar {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kr-story-player__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kr-story-player__logo {
  color: #ffffff;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.kr-story-player__badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  text-transform: uppercase;
}

.kr-story-player__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

.kr-story-player__sound,
.kr-story-viewer__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(20,16,30,.75);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
  z-index: 15;
  padding: 0;
  outline: none;
}

.kr-story-viewer__close {
  font: 600 20px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
}

.kr-story-player__sound:hover,
.kr-story-player__sound:focus-visible,
.kr-story-viewer__close:hover,
.kr-story-viewer__close:focus-visible {
  transform: scale(1.08);
  background: #3b2a59;
}

.kr-story-player__viewport {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.kr-story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 76px;
  opacity: 1;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.kr-story-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 7s ease-out;
  z-index: 1;
}

.kr-story-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.kr-story-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.4) 0%, rgba(11, 9, 20, 0.12) 35%, rgba(11, 9, 20, 0.65) 60%, rgba(11, 9, 20, 0.98) 95%) !important;
  pointer-events: none;
  z-index: 2;
}

.kr-story-slide__content {
  position: relative;
  z-index: 5;
  max-width: 100%;
  pointer-events: none;
}

.kr-story-slide__eyebrow {
  display: inline-block;
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.kr-story-slide__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(1.4rem, 4.4vw, 1.88rem) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,0.9) !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.kr-story-slide__body {
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  text-shadow: 0 1px 5px rgba(0,0,0,0.9) !important;
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

/* Tap Zones */
.kr-story-player__tap {
  position: absolute;
  top: 60px;
  bottom: 68px;
  width: 46%;
  z-index: 8;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kr-story-player__tap--prev { left: 0; }
.kr-story-player__tap--next { right: 0; }

/* Bottom Footer */
.kr-story-player__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(11, 9, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.kr-story-player__counter {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.kr-story-player__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kr-story-player__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6);
}

.kr-story-viewer__label {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font: 600 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing: .03em;
  white-space: nowrap;
}

body.kr-story-viewer-open {
  overflow: hidden !important;
  touch-action: none !important;
}

@media (max-width: 768px) {
  .kr-story-viewer {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #0b0914 !important;
  }

  .kr-story-viewer__dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .kr-story-player {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }

  .kr-story-slide {
    padding: 76px 20px 84px !important;
  }

  .kr-story-slide__title {
    font-size: clamp(1.35rem, 5.2vw, 1.8rem) !important;
    line-height: 1.2 !important;
  }

  .kr-story-slide__body {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }

  .kr-story-player__footer {
    height: 68px !important;
    padding: 0 18px env(safe-area-inset-bottom, 16px) !important;
  }

  .kr-story-player__topbar {
    top: max(16px, env(safe-area-inset-top, 16px)) !important;
    left: 14px !important;
    right: 14px !important;
  }

  .kr-story-player__progress {
    top: max(8px, env(safe-area-inset-top, 8px)) !important;
  }

  .kr-story-viewer__close {
    top: max(14px, env(safe-area-inset-top, 14px)) !important;
    right: 14px !important;
    background: rgba(15,12,24,.75) !important;
  }

  .kr-story-viewer__label {
    display: none !important;
  }
}
