/* public/css/snapfeed.css — Full-screen TikTok-style vertical snap scroll feed.
   Owns: snap feed layout, 4-layer architecture, nav arrows, action strip, creator info.
   Does NOT own: sidebar, modals, share/hire overlays. */

/* ── CSS Custom Properties (computed once, referenced everywhere) ─────── */

:root {
  --feed-item-height: 100vh;
  --feed-item-width: 100%;
  --engagement-icon-size: 30px;
  --sf-avatar-size: 48px;
  --sf-avatar-small-size: 36px;
}

/* ── Feed Tab Bar ─────────────────────────────────────────────────────── */

.feed-tab-bar {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.feed-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-tab:hover {
  color: rgba(255,255,255,0.85);
}

.feed-tab.active {
  background: #FF4D6D;
  color: #fff;
}

.feed-tab-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF4D6D;
  animation: live-dot-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Snap Feed Container ───────────────────────────────────────────────── */

.snapfeed {
  position: fixed;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 240px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #000;
  z-index: 1;
}

/* Hide scrollbar */
.snapfeed::-webkit-scrollbar { display: none; }
.snapfeed { scrollbar-width: none; -ms-overflow-style: none; }

/* ── Individual Snap Items — layout containment ──────────────────────── */

.snapfeed-item {
  position: relative;
  width: var(--feed-item-width);
  height: var(--feed-item-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* WHY: contain layout+paint+style prevents child reflows AND paint from propagating up the tree;
     paint containment also guarantees the element gets its own stacking context for compositor promotion */
  contain: layout paint style;
  /* WHY: content-visibility auto lets the browser skip layout/paint for off-screen items */
  content-visibility: auto;
  contain-intrinsic-size: var(--feed-item-width) var(--feed-item-height);
}

/* ── 4-Layer Architecture ─────────────────────────────────────────────── */
/* z-index stacking: video(0) → gesture(1) → engagement(2) → profile(3) → metadata(4)
   Each layer carries its own event scope — no cross-layer listener bleed */

.sf-layer {
  position: absolute;
  inset: 0;
}

.sf-layer--video {
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  pointer-events: none; /* WHY: no event listeners on video layer — gesture layer handles input */
  /* WHY: force compositor layer creation — video decode + paint stays on GPU, zero main-thread repaints during scroll */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.sf-layer--gesture {
  z-index: 1;
  pointer-events: auto; /* WHY: this layer catches all tap/swipe/long-press events */
}

.sf-layer--engagement {
  z-index: 2;
  pointer-events: none; /* WHY: disabled during swipe; re-enabled on pointerenter */
  inset: auto; /* WHY: engagement strip is positioned, not full-bleed */
  position: absolute;
  right: 80px;
  bottom: 120px;
  top: auto;
  left: auto;
  /* WHY: compositor layer for engagement strip — children animate on GPU without repainting parent */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* WHY: hydrate event listeners on first pointerenter */
.sf-layer--engagement[data-hydrated="true"] {
  pointer-events: auto;
}

/* WHY: CSS-only shell placeholder before hydration — icons render but have no listeners */
.sf-layer--engagement[data-hydrated="false"] .snapfeed-action-btn {
  pointer-events: none;
}

.sf-layer--profile {
  z-index: 3;
  pointer-events: none;
  inset: auto;
  position: absolute;
  right: 80px;
  bottom: 340px;
  top: auto;
  left: auto;
  /* WHY: compositor layer for profile overlay — avatar scale animation stays on GPU */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* WHY: profile overlay skips hydration until tap fires on profile layer */
.sf-layer--profile[data-hydrated="true"] {
  pointer-events: auto;
}

.sf-layer--profile[data-hydrated="false"] .snapfeed-action-avatar {
  pointer-events: none;
}

.sf-layer--metadata {
  z-index: 4;
  pointer-events: none;
  inset: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 120px;
  top: auto;
}

.sf-layer--metadata[data-hydrated="true"] {
  pointer-events: auto;
}

/* WHY: contain inline-size on text containers prevents text reflow from affecting parent */
.sf-layer--metadata .snapfeed-caption,
.sf-layer--metadata .snapfeed-hashtags {
  contain: inline-size;
}

/* ── Video / Iframe Container (now inside Layer 0) ───────────────────── */

/* WHY: .snapfeed-video-wrap removed — video sits directly in sf-layer--video */

.snapfeed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.snapfeed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Paused state — shows a play-icon overlay so users know the video is in the DOM */
.snapfeed-video-paused {
  opacity: 0.6;
}

.snapfeed-video-paused::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  /* Play triangle — matches TikTok's centred pause indicator */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 5;
}

.snapfeed-video-playing {
  opacity: 1;
}

.snapfeed-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

/* ── Right-side Action Strip (inside Layer 2 — engagement) ────────────── */

.snapfeed-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* WHY: no position/z-index here — parent .sf-layer--engagement handles positioning */
}

/* Creator avatar in action strip */
.snapfeed-action-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.snapfeed-action-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #FF4D6D;
  overflow: hidden;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  /* WHY: only transform + opacity are compositor-only; border-color triggers repaint so we replace it with opacity */
  transition: transform 0.2s, opacity 0.2s;
  /* WHY: pre-promote avatar to compositor layer for paint-free hover animations */
  will-change: transform;
}

.snapfeed-action-avatar-img:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.snapfeed-action-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snapfeed-action-initial {
  font-weight: 700;
  font-size: 1rem;
  color: #FF4D6D;
}

.snapfeed-follow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF4D6D;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -8px;
}

.snapfeed-follow-dot svg {
  width: 10px;
  height: 10px;
}

/* Action buttons */
.snapfeed-action-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #f0f0f0;
  /* WHY: only transform + opacity are compositor-only; color triggers repaint so we avoid transitioning it */
  transition: transform 0.15s, opacity 0.15s;
  padding: 4px;
  text-decoration: none;
  /* WHY: pre-promote each icon to its own compositor layer — eliminates paint on press/hover */
  will-change: transform, opacity;
}

.snapfeed-action-btn:hover {
  /* WHY: scale(1.3) for like parity; compositor-only transform — no positional change, no repaint */
  transform: scale(1.3);
  opacity: 0.85;
}

.snapfeed-action-btn:active {
  /* WHY: pointerdown scale(0.9) — compositor-only, no repaint */
  transform: scale(0.9);
}

.snapfeed-action-btn .sf-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.snapfeed-action-btn .sf-count {
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Like state */
.snapfeed-like-btn.liked {
  color: #FF4D6D;
}

.snapfeed-like-btn.liked .sf-icon {
  fill: #FF4D6D;
  stroke: #FF4D6D;
}

/* Hire button cyan accent */
.snapfeed-hire-btn .sf-icon {
  stroke: #00F2EA;
}

.snapfeed-hire-btn .sf-count {
  color: #00F2EA;
}

/* ── Bottom-left Creator Info Strip (inside Layer 4 — metadata) ──────── */

.snapfeed-footer {
  padding: 20px 24px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9));
  /* WHY: no position/z-index — parent .sf-layer--metadata handles positioning */
}

.snapfeed-creator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.snapfeed-creator-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e1e1e;
  border: 1.5px solid #00F2EA;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.snapfeed-creator-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snapfeed-creator-initial-small {
  font-weight: 700;
  font-size: 0.85rem;
  color: #00F2EA;
}

.snapfeed-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.snapfeed-handle {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snapfeed-handle:hover {
  color: #00F2EA;
}

.snapfeed-verified {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.snapfeed-follow-btn {
  background: #FF4D6D;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.snapfeed-follow-btn:hover {
  opacity: 0.85;
}

.snapfeed-follow-btn.following {
  background: transparent;
  border: 1px solid #FF4D6D;
  color: #FF4D6D;
}

.snapfeed-caption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snapfeed-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.snapfeed-hashtag {
  color: #00F2EA;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── Save button ──────────────────────────────────────────────────────── */

.snapfeed-save-btn.saved {
  color: #00F2EA;
}

.snapfeed-save-btn.saved .sf-icon {
  fill: #00F2EA;
  stroke: #00F2EA;
}

/* ── Double-tap heart burst ───────────────────────────────────────────── */

.snapfeed-like-burst {
  position: absolute;
  pointer-events: none;
  animation: sf-heart-pop 0.6s ease-out forwards;
  z-index: 100;
}

@keyframes sf-heart-pop {
  0%   { transform: scale(0.5); opacity: 1; }
  60%  { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ── LIVE reaction floating emoji ────────────────────────────────────── */

.live-reaction-float {
  position: absolute;
  bottom: 120px;
  font-size: 1.8rem;
  pointer-events: none;
  animation: lrf-float 1.2s ease-out forwards;
  z-index: 50;
}

@keyframes lrf-float {
  0%   { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-200px); opacity: 0; }
}

/* ── Comment Drawer ───────────────────────────────────────────────────── */

.comment-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
}

.comment-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.comment-drawer-box {
  position: relative;
  background: #111;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.comment-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #222;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.comment-drawer-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.comment-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 16px;
}

.comment-item {
  border-bottom: 1px solid #1a1a1a;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-compose {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #222;
  background: #0d0d0d;
}

.comment-input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.comment-input::placeholder {
  color: #555;
}

.comment-submit {
  background: #FF4D6D;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.comment-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── DM share option ─────────────────────────────────────────────────── */

.share-platform-dm .share-platform-icon {
  background: #FF4D6D;
}

/* ── Up/Down Navigation Arrows ─────────────────────────────────────────── */

.snapfeed-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.snapfeed-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* WHY: background triggers repaint; replaced with opacity (compositor-only) for hover feedback */
  transition: transform 0.15s, opacity 0.15s;
  backdrop-filter: blur(8px);
  will-change: transform;
}

.snapfeed-nav-btn:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

.snapfeed-nav-btn:active {
  transform: scale(0.92);
}

.snapfeed-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.snapfeed-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Post counter between arrows */
.snapfeed-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── Empty State ───────────────────────────────────────────────────────── */

.snapfeed-empty {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.snapfeed-empty svg {
  color: #00F2EA;
  opacity: 0.5;
}

.snapfeed-empty h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0f0f0;
}

.snapfeed-empty p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

.snapfeed-empty a {
  color: #00F2EA;
}

/* ── LIVE Badge ───────────────────────────────────────────────────────── */

.snapfeed-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  width: fit-content;
}

.snapfeed-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live-dot-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── LIVE Player ────────────────────────────────────────────────────────── */

.snapfeed-live-player {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.snapfeed-live-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.snapfeed-live-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 0, 0, 0.7);
  animation: live-pulse-ring 1.5s ease-out infinite;
}

@keyframes live-pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Product Pin ───────────────────────────────────────────────────────── */

.snapfeed-product-pin {
  position: absolute;
  bottom: 28px;
  right: 0;
}

.snapfeed-product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #00F2EA;
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.snapfeed-product-link:hover {
  opacity: 0.85;
}

/* ── Expandable Caption ────────────────────────────────────────────────── */

.snapfeed-caption--truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snapfeed-caption-toggle {
  background: none;
  border: none;
  color: #00F2EA;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
  text-align: left;
}

.snapfeed-caption-toggle:hover {
  text-decoration: underline;
}

@media (min-width: 769px) and (max-width: 1080px) {
  .snapfeed {
    left: 72px;
  }

  .feed-tab-bar {
    left: 72px;
  }
}

/* ── Playback Controls ──────────────────────────────────────────────────────── */

/* Progress bar */
.sf-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
  cursor: pointer;
}

.sf-progress-fill {
  height: 100%;
  background: #FF4D6D;
  /* GPU-composited: no layout reflow on scrub */
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Buffering spinner */
.sf-buffering::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #FF4D6D;
  border-radius: 50%;
  animation: sf-spin 0.8s linear infinite;
  z-index: 15;
}

@keyframes sf-spin {
  to { transform: rotate(360deg); }
}

/* Controls overlay (tap-to-show, auto-hides) */
.sf-controls-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sf-controls-overlay.sf-controls-visible {
  opacity: 1;
}

/* Mute badge */
.sf-mute-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  z-index: 20;
}

.sf-mute-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Speed badge */
.sf-speed-badge {
  position: absolute;
  bottom: 10px;
  right: 16px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 20;
  pointer-events: auto;
  transition: background 0.15s;
  user-select: none;
}

.sf-speed-badge:hover {
  background: rgba(255,77,109,0.7);
}

/* LIVE items: hide speed badge and progress bar */
.snapfeed-item[data-feed-type="live"] .sf-speed-badge,
.snapfeed-item[data-feed-type="live"] .sf-progress-wrap {
  display: none;
}

/* Entitlement paywall overlay */
.sf-entitlement-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  gap: 14px;
  backdrop-filter: blur(6px);
}

.sf-entitlement-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FF4D6D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-entitlement-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.sf-entitlement-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.sf-entitlement-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 260px;
  line-height: 1.5;
}

.sf-entitlement-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF4D6D;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sf-entitlement-cta:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .feed-tab-bar {
    left: 0;
    top: 52px;
  }

  .snapfeed {
    left: 0;
    top: 104px;
  }

  .snapfeed-item {
    --feed-item-height: calc(100vh - 104px);
    height: var(--feed-item-height);
    contain-intrinsic-size: var(--feed-item-width) var(--feed-item-height);
  }

  .sf-layer--engagement {
    right: 12px;
    bottom: 100px;
  }

  .sf-layer--profile {
    right: 12px;
    bottom: 320px;
  }

  .snapfeed-nav {
    right: 12px;
  }

  .sf-layer--metadata {
    right: 70px;
  }

  .snapfeed-footer {
    padding: 16px 16px 20px;
  }
}
