/* type_status — polished rendering for status/plain + status/story */

/* Small intro row (mood + quick links) */
.post-content-status .status-intro{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin: 0 0 10px 0;
}

/* Chips (mood, links, story meta) */
.post-content-status .status-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  line-height:1.2;
  text-decoration:none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}

.post-content-status .status-chip i{
  opacity:.9;
}

.post-content-status .status-chip-emoji{
  font-size:14px;
}

.post-content-status .status-chip-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}

/* Links group */
.post-content-status .status-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Story meta row */
.post-content-status .status-story-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0 0 10px 0;
}

/* Story hero */
.post-content-status .status-story-hero{
  position:relative;
  width:100%;
  border-radius:16px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  min-height:220px;
  margin: 0 0 12px 0;
}

.post-content-status .status-story-hero.story-ori-vertical{
  min-height:360px;
}

.post-content-status .status-story-hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

.post-content-status .status-story-caption{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.95);
  font-size:14px;
  line-height:1.35;
  max-height: 50%;
  overflow:hidden;
}

/* Optional: make story text a bit tighter below hero */
.post-content-status.post-subtype-story .post-text{
  margin-top: 4px;
}

/* =====================================================================
   STORY MODE (status/story)
   ===================================================================== */

/* make body container “edge-to-edge” inside post-content */
.post-content-status.post-subtype-story{
  padding: 0 !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.post-content-status.post-subtype-story:hover{
  background: transparent;
}

.post-content-status.post-subtype-story .kp-story{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.post-content-status.post-subtype-story .kp-story-top{
  position: absolute;
  z-index: 6;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.post-content-status.post-subtype-story .kp-story-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.post-content-status.post-subtype-story .kp-story-badges .status-chip{
  pointer-events: auto;
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.14);
}

.post-content-status.post-subtype-story .kp-story-progress{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  height: 3px;
}

.post-content-status.post-subtype-story .kp-story-seg{
  display: block;
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
}

.post-content-status.post-subtype-story .kp-story-seg::after{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p, 0%);
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
}

.post-content-status.post-subtype-story .kp-story-seg.is-active{
  background: rgba(255,255,255,0.75);
  --p: 0%;
}

.post-content-status.post-subtype-story .kp-story-seg.is-done{
  background: rgba(255,255,255,0.50);
  --p: 100%;
}

.post-content-status.post-subtype-story .kp-story-stage{
  position: relative;
  width: 100%;
  display: block;
}

.post-content-status.post-subtype-story .kp-story-stage.story-ori-vertical{
  aspect-ratio: 9 / 16;
  max-height: 640px;
}

.post-content-status.post-subtype-story .kp-story-stage.story-ori-horizontal{
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.post-content-status.post-subtype-story .kp-story-empty,
.post-content-status.post-subtype-story .kp-story-empty-bg{
  position: absolute;
  inset: 0;
}

.post-content-status.post-subtype-story .kp-story-empty-bg{
  background:
    radial-gradient(600px 380px at 20% 20%, rgba(0, 200, 255, 0.18), transparent 55%),
    radial-gradient(520px 320px at 80% 30%, rgba(255, 107, 53, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

.post-content-status.post-subtype-story .kp-story-slides{
  position: absolute;
  inset: 0;
}

.post-content-status.post-subtype-story .kp-story-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 220ms ease, transform 260ms ease;
  pointer-events: none;
}

.post-content-status.post-subtype-story .kp-story-slide.is-active{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.post-content-status.post-subtype-story .kp-story-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.55;
}

.post-content-status.post-subtype-story .kp-story-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.post-content-status.post-subtype-story .kp-story-video{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}

.post-content-status.post-subtype-story .kp-story-iframe,
.post-content-status.post-subtype-story .kp-story-video-el{
  width: 100%;
  height: 100%;
  border: 0;
}

.post-content-status.post-subtype-story .kp-story-caption{
  position: absolute;
  z-index: 7;
  left: 12px;
  right: 12px;
  bottom: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.96);
  font-size: 14px;
  line-height: 1.35;
  max-height: 46%;
  overflow: auto;
}

.post-content-status.post-subtype-story .kp-story-nav{
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}

.post-content-status.post-subtype-story .kp-story-nav.-prev{ left: 12px; }
.post-content-status.post-subtype-story .kp-story-nav.-next{ right: 12px; }

.post-content-status.post-subtype-story .kp-story-nav:hover{
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.03);
}

.post-content-status.post-subtype-story .kp-story-dots{
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.post-content-status.post-subtype-story .kp-story-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.post-content-status.post-subtype-story .kp-story-dot.is-active{
  background: rgba(255,255,255,0.9);
}

.post-content-status.post-subtype-story .kp-story-bottom{
  padding: 10px 12px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

@media (max-width: 520px){
  .post-content-status.post-subtype-story .kp-story-stage.story-ori-vertical{ max-height: 520px; }
  .post-content-status.post-subtype-story .kp-story-caption{ bottom: 38px; font-size: 13px; }
  .post-content-status.post-subtype-story .kp-story-top{ top: 8px; left: 8px; right: 8px; }
}

/* story progress fill */

.post-content-status.post-subtype-story .kp-story.is-paused .kp-story-seg.is-active::after{
  opacity: 0.55;
}
