/* V2K Social – phone-first feed layout + TikTok-style overlays */

body.page-feed {
  margin: 0;
  background: #000;
  overflow-x: hidden;
}

/* Main feed column */
.page-feed .feed-container {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-type: y mandatory;
}

/* Each post = 9:16 frame centered, scroll-snapped */
.page-feed .post {
  position: relative;
  width: min(100vw, 420px);
  max-height: calc(100vh - 96px); /* leave room for bottom nav */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

/* media wrapper keeps the 9:16 shape */
.page-feed .post-media-wrap {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-feed .post-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- RIGHT ACTION STACK (like / chat / share / save / delete) --- */
.page-feed .post-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.page-feed .post-actions button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* tighter text on the heart count */
.page-feed .post-actions .like-btn {
  flex-direction: column;
  font-size: 14px;
}

/* --- BOTTOM LEFT: CREATOR / CAPTION / VIEWS --- */
.page-feed .post-footer {
  position: absolute;
  left: 12px;
  bottom: 16px;
  z-index: 9;
  max-width: 65%;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.page-feed .post-footer .username {
  font-weight: 600;
  margin-bottom: 4px;
}

.page-feed .post-footer .caption {
  font-size: 0.9rem;
  line-height: 1.25;
}

/* kill any extra spacing above first post */
.page-feed .post:first-child {
  margin-top: 0;
}
