@import url("/desi-scene-member.css?v=20260902a");

:root {
  color-scheme: dark;
  --scene-bg: #09090b;
  --scene-bg-soft: #0f1115;
  --scene-surface: rgba(24, 24, 27, 0.96);
  --scene-surface-solid: #18181b;
  --scene-surface-muted: #27272a;
  --scene-text: #fafafa;
  --scene-muted: #a1a1aa;
  --scene-border: rgba(244, 244, 245, 0.1);
  --scene-border-strong: rgba(244, 244, 245, 0.18);
  --scene-purple: #6d28d9;
  --scene-purple-bright: #7c3aed;
  --scene-pink: #db2777;
  --scene-orange: #ea580c;
  --scene-selected-bg: rgba(234, 88, 12, 0.14);
  --scene-selected-bg-strong: rgba(234, 88, 12, 0.22);
  --scene-selected-border: rgba(251, 146, 60, 0.3);
  --scene-selected-text: #fed7aa;
  --scene-green: #34d399;
  --scene-red: #f87171;
  --scene-yellow: #fbbf24;
  --scene-focus: #60a5fa;
  --scene-shadow-sm: 0 9px 30px rgba(0, 0, 0, 0.28);
  --scene-shadow-lg: 0 26px 76px rgba(0, 0, 0, 0.5);
  --scene-radius-sm: 12px;
  --scene-radius: 20px;
  --scene-radius-lg: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--scene-bg);
  color: var(--scene-text);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.24), transparent 34rem),
    linear-gradient(180deg, #111016 0, var(--scene-bg) 58%, #0f1115 100%);
  color: var(--scene-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y pinch-zoom;
}
body:has(dialog[open]),
body.scene-media-viewer-open,
body.scene-navigation-drawer-open { overflow: hidden; }
button, input, textarea, select, summary, a { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.scene-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.scene-shell {
  width: min(820px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    max(16px, env(safe-area-inset-top))
    clamp(12px, 3vw, 24px)
    max(42px, env(safe-area-inset-bottom));
}

.scene-compose-trigger,
.scene-feed,
.scene-app-cta {
  transform: translate3d(var(--scene-view-x, 0), 0, 0);
  opacity: var(--scene-view-opacity, 1);
}
.scene-view-gesture-active .scene-compose-trigger,
.scene-view-gesture-active .scene-feed,
.scene-view-gesture-active .scene-app-cta { will-change: transform, opacity; }
.scene-view-gesture-settling .scene-compose-trigger,
.scene-view-gesture-settling .scene-feed,
.scene-view-gesture-settling .scene-app-cta {
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease-out;
  will-change: transform, opacity;
}

.scene-enabled { min-width: 0; }
.scene-disabled {
  margin: min(15vh, 120px) auto 0;
  padding: clamp(24px, 6vw, 42px);
  text-align: center;
  border: 1px solid var(--scene-border);
  border-radius: var(--scene-radius-lg);
  background: var(--scene-surface);
  box-shadow: var(--scene-shadow-lg);
}
.scene-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--scene-purple-bright), var(--scene-pink) 56%, var(--scene-orange));
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.28);
}

.scene-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: calc(-1 * max(16px, env(safe-area-inset-top))) calc(-1 * clamp(12px, 3vw, 24px)) 0;
  padding: max(8px, env(safe-area-inset-top)) clamp(12px, 3vw, 24px) 8px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--scene-bg-soft) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.scene-back,
.scene-icon-button,
.scene-account-button,
.scene-dialog-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--scene-border);
  border-radius: 999px;
  background: var(--scene-surface);
  box-shadow: var(--scene-shadow-sm);
  cursor: pointer;
}
.scene-back {
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
}
.scene-title-block { min-width: 0; }
.scene-eyebrow {
  margin: 0 0 2px;
  color: var(--scene-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scene-header h1,
.scene-header h2,
h1, h2, h3, p { margin-top: 0; }
.scene-header h1 {
  margin-bottom: 1px;
  font-size: clamp(24px, 5.5vw, 36px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.scene-tagline {
  margin: 0;
  overflow: hidden;
  color: var(--scene-muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scene-header-actions { display: flex; align-items: center; gap: 7px; }
.scene-icon-button { position: relative; padding: 0 12px; font-size: 20px; }
.scene-notification-icon {
  display: block;
  width: 21px;
  height: 21px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022 23.848 23.848 0 0 0 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022 23.848 23.848 0 0 0 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0'/%3E%3C/svg%3E");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}
.scene-sound-control {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--scene-border);
  border-radius: 50%;
  background: transparent;
  color: var(--scene-muted);
  cursor: pointer;
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.scene-sound-control:hover { color: var(--scene-text); background: var(--scene-surface-muted); }
.scene-sound-control:active { scale: .96; }
.scene-sound-control[aria-pressed="true"] {
  border-color: var(--scene-selected-border);
  color: var(--scene-selected-text);
  background: var(--scene-selected-bg-strong);
}
.scene-sound-control .scene-action-icon {
  width: 20px;
  height: 20px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 8.25 11.47 4.7a.75.75 0 0 1 1.28.53v13.54a.75.75 0 0 1-1.28.53l-4.72-3.55H4.5A1.5 1.5 0 0 1 3 14.25v-4.5a1.5 1.5 0 0 1 1.5-1.5h2.25Zm9.71.04a5.25 5.25 0 0 1 0 7.42m2.65-10.07a9 9 0 0 1 0 12.72'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 8.25 11.47 4.7a.75.75 0 0 1 1.28.53v13.54a.75.75 0 0 1-1.28.53l-4.72-3.55H4.5A1.5 1.5 0 0 1 3 14.25v-4.5a1.5 1.5 0 0 1 1.5-1.5h2.25Zm9.71.04a5.25 5.25 0 0 1 0 7.42m2.65-10.07a9 9 0 0 1 0 12.72'/%3E%3C/svg%3E");
}
.scene-sound-control:is([data-sound-state="muted"], [data-sound-state="error"]) .scene-action-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 8.25 11.47 4.7a.75.75 0 0 1 1.28.53v13.54a.75.75 0 0 1-1.28.53l-4.72-3.55H4.5A1.5 1.5 0 0 1 3 14.25v-4.5a1.5 1.5 0 0 1 1.5-1.5h2.25Zm9.75 1.5 4.5 4.5m0-4.5-4.5 4.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 8.25 11.47 4.7a.75.75 0 0 1 1.28.53v13.54a.75.75 0 0 1-1.28.53l-4.72-3.55H4.5A1.5 1.5 0 0 1 3 14.25v-4.5a1.5 1.5 0 0 1 1.5-1.5h2.25Zm9.75 1.5 4.5 4.5m0-4.5-4.5 4.5'/%3E%3C/svg%3E");
}
.scene-account-button {
  max-width: 150px;
  padding: 0 15px;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
  background: var(--scene-text);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scene-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--scene-surface-solid);
  border-radius: 50%;
  background: #ef4444;
}

.scene-member-status,
.scene-form-status,
.scene-upload-status {
  min-height: 0;
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid var(--scene-border);
  border-radius: var(--scene-radius-sm);
  background: var(--scene-surface);
  color: var(--scene-muted);
  font-size: 14px;
  line-height: 1.45;
}
.scene-member-status:empty,
.scene-form-status:empty,
.scene-upload-status:empty { display: none; }
[data-kind="success"] { color: var(--scene-green); border-color: color-mix(in srgb, var(--scene-green) 28%, transparent); background: color-mix(in srgb, #ecfdf3 88%, transparent); }
[data-kind="warning"] { color: var(--scene-yellow); border-color: color-mix(in srgb, #f59e0b 35%, transparent); background: color-mix(in srgb, #fffbeb 90%, transparent); }
[data-kind="error"] { color: var(--scene-red); border-color: color-mix(in srgb, #ef4444 30%, transparent); background: color-mix(in srgb, #fef2f2 90%, transparent); }

.scene-tabs {
  position: sticky;
  z-index: 25;
  top: calc(max(16px, env(safe-area-inset-top)) + 74px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 8px;
  padding: 2px;
  border: 1px solid var(--scene-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--scene-surface-solid) 84%, transparent);
  box-shadow: var(--scene-shadow-sm);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, opacity 180ms ease;
  will-change: transform;
}
.scene-tabs.is-hidden {
  transform: translateY(calc(-100% - max(8px, env(safe-area-inset-top))));
  opacity: 0;
  pointer-events: none;
}
.scene-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--scene-muted);
  font-weight: 800;
  cursor: pointer;
}
.scene-tabs button.active {
  color: var(--scene-selected-text);
  background: var(--scene-selected-bg);
  box-shadow: inset 0 0 0 1px var(--scene-selected-border);
}

.scene-badge,
.scene-sponsored,
.scene-post-market,
.scene-status-pill,
.scene-linked-entity {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: capitalize;
}
.scene-badge { background: rgba(255,255,255,0.2); text-transform: uppercase; }
.scene-sponsored { background: #fff7ed; color: #9a3412; }
.scene-post-market { background: #f3e8ff; color: #6d28d9; }
.scene-status-pill { background: #fef3c7; color: #92400e; }
.scene-linked-entity { margin: 14px 0 0; background: var(--scene-surface-muted); color: var(--scene-purple); }

.scene-compose-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 7px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.scene-compose-trigger strong { color: inherit; font-size: 13px; }
.scene-compose-avatar,
.scene-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--scene-purple-bright), var(--scene-orange));
  color: #fff;
  font-weight: 900;
}
.scene-compose-avatar { width: 22px; height: 22px; font-size: 17px; }
.scene-compose-kind {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--scene-border);
  border-radius: 999px;
  background: var(--scene-surface-muted);
}
.scene-compose-kind button {
  min-height: 40px;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--scene-muted);
  font-weight: 850;
}
.scene-compose-kind button[aria-selected="true"] { background: var(--scene-text); color: var(--scene-surface-solid); }
.scene-reel-preview {
  display: grid;
  gap: 10px;
  width: min(100%, 260px);
  margin: 10px auto 16px;
  padding: 10px;
  border: 1px solid var(--scene-border);
  border-radius: 16px;
  background: #050506;
  color: #fff;
}
.scene-reel-preview[hidden] { display: none; }
.scene-reel-preview video { width: 100%; max-height: 52svh; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 11px; background: #000; }
.scene-reel-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scene-reel-preview strong { font-size: 12px; font-weight: 750; }
.scene-reel-preview button { min-height: 40px; padding: 7px 11px; }
.scene-reel-preview-actions { display: inline-flex; align-items: center; gap: 6px; }
.scene-reel-preview p { margin: 0; color: #d4d4d8; font-size: 12px; line-height: 1.4; }
.scene-profile-avatar { width: 58px; height: 58px; }
.scene-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.scene-feed {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  outline: none;
}
.scene-post,
.scene-detail-card,
.scene-owner-post-card,
.scene-empty-card,
.scene-app-cta {
  border: 1px solid var(--scene-border);
  border-radius: var(--scene-radius-lg);
  background: var(--scene-surface);
  box-shadow: var(--scene-shadow-sm);
}
.scene-post { min-width: 0; padding: clamp(14px, 3vw, 20px); }
.scene-post.is-sponsored { border-color: rgba(234, 88, 12, 0.24); }
.scene-post-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.scene-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--scene-purple-bright), var(--scene-orange));
  font-weight: 900;
  text-decoration: none;
}
.scene-avatar img { width: 100%; height: 100%; object-fit: cover; }
.scene-post-identity { display: grid; min-width: 0; }
.scene-post-primary { display: inline-flex; align-items: center; max-width: 100%; gap: 5px; text-decoration: none; }
.scene-post-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-post-meta { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 2px; overflow: hidden; color: var(--scene-muted); font-size: 12px; line-height: 1.35; white-space: nowrap; }
.scene-post-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.scene-post-meta a { flex: 0 0 auto; text-decoration: none; }
.scene-verified { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--scene-purple-bright); color: #fff; font-size: 11px; }
.scene-edited { flex: 0 0 auto; }
.scene-edited::before { content: "·"; margin-right: 4px; }
.scene-owned-disclosure { display: inline-flex; align-items: center; min-width: 0; gap: 4px; color: var(--scene-muted); font-size: 11px; font-weight: 700; line-height: 1.3; }
.scene-owned-copy { min-width: 0; overflow-wrap: anywhere; }
.scene-owned-badge { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 20px; padding: 2px 6px; border: 1px solid rgba(124,58,237,.24); border-radius: 999px; background: rgba(124,58,237,.09); color: #5b21b6; font-size: 9px; font-weight: 900; letter-spacing: .015em; }
.scene-owned-theme { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.scene-owned-theme::before { content: "·"; margin-right: 4px; }
.scene-post-identity > .scene-owned-disclosure { margin-top: 1px; font-size: 9px; line-height: 1.2; white-space: normal; }
.scene-post-context { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.scene-post-body { margin: 10px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.5; }
.scene-owned-provenance { margin: 7px 0 0; color: var(--scene-muted); font-size: 11px; line-height: 1.35; }
.scene-post-images,
.scene-detail-images,
.scene-owner-post-media { margin-top: 10px; overflow: hidden; border-radius: 14px; background: #050505; }
.scene-post-images,
.scene-detail-images { position: relative; }
.scene-post-images > .scene-sound-control,
.scene-detail-images > .scene-sound-control,
.scene-post-carousel > .scene-sound-control {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.62);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.scene-post-images > .scene-sound-control[aria-pressed="true"],
.scene-detail-images > .scene-sound-control[aria-pressed="true"],
.scene-post-carousel > .scene-sound-control[aria-pressed="true"] {
  border-color: var(--scene-selected-border);
  background: rgba(154, 52, 18, 0.86);
  color: var(--scene-selected-text);
}
.scene-post-image-link { display: block; min-width: 0; overflow: hidden; background: #050505; }
.scene-post-images img,
.scene-detail-images img,
.scene-owner-post-media > img,
.scene-owner-post-media > video,
.scene-owner-post-media > iframe { display: block; width: 100%; height: auto; max-height: 74svh; object-fit: contain; background: #050505; }
.scene-owner-post-media > iframe { aspect-ratio: 9 / 16; border: 0; }
.scene-owner-post-media > img { max-height: none; cursor: zoom-in; }
.scene-post-images-1.is-tall img { height: auto; max-height: none; object-fit: contain; }
.scene-post-image-link:hover img { opacity: .98; }
.scene-profile-post-tile.is-visual-editorial img { background: #050505; }
.scene-detail-actions button { background: var(--scene-surface-muted); }

.scene-post-carousel {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 14px;
  background: #050505;
}
.scene-post-carousel-track {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 0;
  padding-right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.scene-post-carousel-track::-webkit-scrollbar { display: none; }
.scene-post-carousel-slide {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #050505;
}
.scene-post-carousel-slide img,
.scene-post-carousel-slide video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  background: #050505;
  transform: translate3d(var(--scene-parallax-x, 0%), 0, 0) scale(var(--scene-parallax-scale, 1));
  will-change: transform;
}
.scene-post-carousel-dots {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  box-shadow: 0 6px 20px rgba(0,0,0,.26);
  transform: translate3d(-50%, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.scene-post-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.54);
  cursor: pointer;
}
.scene-post-carousel-dots button[aria-current="true"] {
  width: 9px;
  height: 9px;
  background: #fff;
}
.scene-post-carousel-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translate3d(0, -50%, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.scene-post-carousel-nav.is-previous { left: 10px; }
.scene-post-carousel-nav.is-next { right: 10px; }
.scene-post-carousel-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (pointer: coarse) {
  .scene-post-carousel-nav { display: none; }
}

.scene-media-viewer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  overflow: hidden;
  background: transparent;
  color: #fff;
  overscroll-behavior: contain;
  touch-action: none;
  isolation: isolate;
  --scene-viewer-opacity: 0;
}
.scene-media-viewer[hidden] { display: none; }
.scene-media-viewer-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  opacity: var(--scene-viewer-opacity);
  transition: opacity 280ms ease-out;
}
.scene-media-viewer.is-gesture-active .scene-media-viewer-backdrop,
.scene-media-viewer.is-gesture-active .scene-media-viewer-toolbar,
.scene-media-viewer.is-gesture-active .scene-media-viewer-nav { transition: none; }
.scene-media-viewer-toolbar {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  opacity: var(--scene-viewer-opacity);
  pointer-events: none;
  transition: opacity 180ms ease-out;
}
.scene-media-viewer-close,
.scene-media-viewer-nav {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(20,20,20,.66);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  font-size: 26px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.scene-media-viewer-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  pointer-events: auto;
}
.scene-media-viewer-count {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20,20,20,.58);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.scene-media-viewer-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  opacity: var(--scene-viewer-opacity);
  transform: translate3d(0, -50%, 0);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.scene-media-viewer-nav.is-previous { left: max(8px, env(safe-area-inset-left)); }
.scene-media-viewer-nav.is-next { right: max(8px, env(safe-area-inset-right)); }
.scene-media-viewer-nav:disabled { visibility: hidden; }
.scene-media-viewer-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.scene-media-viewer-stage:active { cursor: grabbing; }
.scene-media-viewer-canvas {
  position: absolute;
  overflow: hidden;
  transform-origin: center;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.scene-media-viewer-canvas.is-gesture-active { transition: none; }
.scene-media-viewer-adjacent-canvas {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.scene-media-viewer-adjacent-canvas.is-swipe-visible {
  visibility: visible;
  opacity: 1;
}
.scene-media-viewer-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
@keyframes scene-viewer-enter-next {
  from { opacity: .45; transform: translate3d(28px, 0, 0) scale(.985); }
}
@keyframes scene-viewer-enter-previous {
  from { opacity: .45; transform: translate3d(-28px, 0, 0) scale(.985); }
}
.scene-media-viewer-canvas.is-entering-right { animation: scene-viewer-enter-next 240ms cubic-bezier(.22, 1, .36, 1); }
.scene-media-viewer-canvas.is-entering-left { animation: scene-viewer-enter-previous 240ms cubic-bezier(.22, 1, .36, 1); }

@media (hover: none), (pointer: coarse) {
  .scene-media-viewer-nav { display: none; }
}

.scene-post-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 4px;
  margin-top: 9px;
  padding-top: 6px;
  border-top: 1px solid var(--scene-border);
}
.scene-post-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--scene-muted);
  cursor: pointer;
}
.scene-post-action:hover { background: var(--scene-surface-muted); color: var(--scene-text); }
.scene-post-action[aria-pressed="true"] { color: var(--scene-selected-text); background: var(--scene-selected-bg); }
.scene-view-action { cursor: default; font-variant-numeric: tabular-nums; }
.scene-view-action:hover { background: transparent; color: var(--scene-muted); }
.scene-action-icon { width: 21px; height: 21px; background: currentColor; mask-repeat: no-repeat; mask-position: center; mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }
.scene-view-action .scene-action-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 12s3.5-6 9.75-6 9.75 6 9.75 6-3.5 6-9.75 6-9.75-6-9.75-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.75'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 12s3.5-6 9.75-6 9.75 6 9.75 6-3.5 6-9.75 6-9.75-6-9.75-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.75'/%3E%3C/svg%3E"); }
.scene-like-action .scene-action-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21.435 4.965c-1.54-1.68-4.04-1.68-5.58 0L12 9.17 8.145 4.965c-1.54-1.68-4.04-1.68-5.58 0-1.54 1.681-1.54 4.406 0 6.087L12 21.35l9.435-10.298c1.54-1.681 1.54-4.406 0-6.087Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21.435 4.965c-1.54-1.68-4.04-1.68-5.58 0L12 9.17 8.145 4.965c-1.54-1.68-4.04-1.68-5.58 0-1.54 1.681-1.54 4.406 0 6.087L12 21.35l9.435-10.298c1.54-1.681 1.54-4.406 0-6.087Z'/%3E%3C/svg%3E"); }
.scene-comment-action .scene-action-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 9.75h6.75m-6.75 3h4.5M21 12c0 4.556-4.03 8.25-9 8.25a9.75 9.75 0 0 1-4.555-1.1L3 20.25l1.5-3.56A7.78 7.78 0 0 1 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 9.75h6.75m-6.75 3h4.5M21 12c0 4.556-4.03 8.25-9 8.25a9.75 9.75 0 0 1-4.555-1.1L3 20.25l1.5-3.56A7.78 7.78 0 0 1 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z'/%3E%3C/svg%3E"); }
.scene-save-action .scene-action-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21l-7.5-4.5L4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21l-7.5-4.5L4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z'/%3E%3C/svg%3E"); }
.scene-share-action .scene-action-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.303.283.657.283 1.033 0 .418-.127.806-.344 1.128m.061-2.161 8.566-4.94m-8.627 7.101 8.627 4.98m0 0a2.25 2.25 0 1 0 2.25-3.897 2.25 2.25 0 0 0-2.25 3.897Zm0-12.081a2.25 2.25 0 1 0 2.25-3.897 2.25 2.25 0 0 0-2.25 3.897Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.303.283.657.283 1.033 0 .418-.127.806-.344 1.128m.061-2.161 8.566-4.94m-8.627 7.101 8.627 4.98m0 0a2.25 2.25 0 1 0 2.25-3.897 2.25 2.25 0 0 0-2.25 3.897Zm0-12.081a2.25 2.25 0 1 0 2.25-3.897 2.25 2.25 0 0 0-2.25 3.897Z'/%3E%3C/svg%3E"); }

.scene-post-menu { position: relative; }
.scene-post-menu summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; list-style: none; font-weight: 900; }
.scene-post-menu summary::-webkit-details-marker { display: none; }
.scene-post-menu[open] summary { background: var(--scene-surface-muted); }
.scene-post-menu-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: min(250px, calc(100vw - 38px));
  overflow: hidden;
  border: 1px solid var(--scene-border);
  border-radius: 15px;
  background: var(--scene-surface-solid);
  box-shadow: var(--scene-shadow-lg);
}
.scene-post-menu-popover button,
.scene-post-menu-popover a { min-height: 44px; padding: 11px 14px; text-align: left; text-decoration: none; border: 0; border-bottom: 1px solid var(--scene-border); background: transparent; cursor: pointer; }
.scene-post-menu-popover > :last-child { border-bottom: 0; }
.scene-post-menu-popover button:hover,
.scene-post-menu-popover a:hover { background: var(--scene-surface-muted); }

.scene-empty-card { padding: clamp(25px, 6vw, 44px); text-align: center; }
.scene-empty-icon { margin-bottom: 10px; color: var(--scene-purple); font-size: 42px; }
.scene-empty-card h2 { margin-bottom: 8px; font-size: clamp(22px, 5vw, 29px); }
.scene-empty-card p,
.scene-app-cta p,
.scene-disabled p,
.scene-help { color: var(--scene-muted); line-height: 1.62; }
.scene-restricted-card { border-color: rgba(180, 83, 9, 0.25); }
.scene-app-cta { margin-top: 16px; padding: 21px; }
.scene-app-cta strong { display: block; margin-bottom: 5px; }
.scene-app-cta p { margin-bottom: 0; }

.scene-button,
.scene-link-button,
.scene-comment-form button,
.scene-search-form button,
.scene-code-row button,
.scene-actions-stack button,
.scene-list-item button,
.scene-account-footer button,
.scene-subtabs button,
.scene-dialog-header button {
  min-height: 44px;
  border: 1px solid var(--scene-border-strong);
  border-radius: 13px;
  background: var(--scene-surface-solid);
  color: var(--scene-text);
  font-weight: 800;
  cursor: pointer;
}
.scene-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 18px;
  color: #fff;
  border-color: transparent;
  background: var(--scene-text);
  text-decoration: none;
}
.scene-wide { width: 100%; }
.scene-feed-sentinel { width: 100%; height: 1px; pointer-events: none; }
.scene-link-button { padding: 8px 12px; color: var(--scene-purple); border-color: transparent; background: transparent; }
button.danger,
.danger { color: #fff !important; border-color: var(--scene-red) !important; background: var(--scene-red) !important; }
button:disabled { cursor: not-allowed; opacity: 0.52; }

.scene-feed-skeleton { display: grid; gap: 16px; }
.scene-feed-skeleton article { padding: 22px; border: 1px solid var(--scene-border); border-radius: var(--scene-radius-lg); background: var(--scene-surface); }
.scene-feed-skeleton span { display: block; height: 16px; margin: 10px 0; border-radius: 999px; background: linear-gradient(90deg, rgba(148,163,184,0.16), rgba(148,163,184,0.34), rgba(148,163,184,0.16)); background-size: 220% 100%; animation: scene-shimmer 1.35s linear infinite; }
.scene-feed-skeleton span:first-child { width: 44%; }
.scene-feed-skeleton span:nth-child(2) { width: 92%; }
.scene-feed-skeleton span:last-child { width: 72%; }
.scene-spinner { width: 34px; height: 34px; margin: 0 auto 14px; border: 4px solid rgba(124, 58, 237, 0.18); border-top-color: var(--scene-purple-bright); border-radius: 50%; animation: scene-spin 0.78s linear infinite; }
@keyframes scene-spin { to { transform: rotate(360deg); } }
@keyframes scene-shimmer { to { background-position: -220% 0; } }

.scene-navigation-drawer {
  position: fixed;
  z-index: 900;
  inset: 0;
  --scene-drawer-progress: 0;
  --scene-drawer-x: -100%;
}
.scene-navigation-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0,0,0,.72);
  opacity: var(--scene-drawer-progress);
  transition: opacity 280ms ease-out;
}
.scene-navigation-drawer-sheet {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(82vw, 360px);
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--scene-border);
  background: rgba(15,17,21,.98);
  box-shadow: 24px 0 64px rgba(0,0,0,.46);
  transform: translate3d(var(--scene-drawer-x), 0, 0);
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}
.scene-navigation-drawer.is-dragging .scene-navigation-drawer-backdrop,
.scene-navigation-drawer.is-dragging .scene-navigation-drawer-sheet { transition: none; }
.scene-navigation-drawer-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 20px; }
.scene-navigation-drawer-sheet header div { display: grid; gap: 3px; }
.scene-navigation-drawer-sheet header span { color: var(--scene-orange); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.scene-navigation-drawer-sheet header strong { font-size: 23px; letter-spacing: -.025em; }
.scene-navigation-drawer-sheet header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--scene-border);
  border-radius: 50%;
  background: var(--scene-surface);
  color: var(--scene-text);
  font-size: 24px;
}
.scene-navigation-drawer-sheet nav { display: grid; gap: 5px; }
.scene-navigation-drawer-sheet nav a,
.scene-navigation-drawer-sheet nav button {
  display: flex;
  min-height: 50px;
  align-items: center;
  width: 100%;
  padding: 10px 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--scene-text);
  font-weight: 780;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.scene-navigation-drawer-sheet nav a:hover,
.scene-navigation-drawer-sheet nav button:hover,
.scene-navigation-drawer-sheet nav a:focus-visible,
.scene-navigation-drawer-sheet nav button:focus-visible { background: var(--scene-surface-muted); outline: none; }

dialog.scene-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease-out, display 220ms allow-discrete, overlay 220ms allow-discrete;
}
dialog.scene-dialog[open] {
  display: grid;
  place-items: center;
  opacity: 1;
}
dialog.scene-dialog::backdrop {
  background: rgba(0,0,0,.74);
  opacity: 0;
  transition: opacity 220ms ease-out, display 220ms allow-discrete, overlay 220ms allow-discrete;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
dialog.scene-dialog[open]::backdrop { opacity: 1; }
dialog.scene-dialog .scene-dialog-frame {
  width: min(620px, 100%);
  max-height: min(86svh, 840px);
  margin: 0;
  transform: translate3d(0, 24px, 0) scale(.985);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease-out;
  will-change: transform, opacity;
}
dialog.scene-dialog[open] .scene-dialog-frame { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
@starting-style {
  dialog.scene-dialog[open],
  dialog.scene-dialog[open]::backdrop { opacity: 0; }
  dialog.scene-dialog[open] .scene-dialog-frame { transform: translate3d(0, 24px, 0) scale(.985); opacity: 0; }
}


/* Desi Scene mobile-first shell: the title scrolls away, feed controls stay available. */
.scene-header {
  position: relative;
  top: auto;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  border-bottom-color: transparent;
}
.scene-title-block {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
}
.scene-header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.scene-tabs {
  top: max(0px, env(safe-area-inset-top));
  grid-template-columns: 46px repeat(4, minmax(0, 1fr)) 46px;
  margin-top: 8px;
  padding: 2px;
}
.scene-tabs .scene-tab-control {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
}
.scene-tabs .scene-back {
  font-size: 28px;
}
.scene-tabs .scene-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--scene-muted);
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}
.scene-tabs .scene-icon-button::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.scene-tabs .scene-icon-button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(7px, 7px) rotate(45deg);
}
.scene-tabs .scene-compose-trigger[hidden] { display: none; }
@media (max-width: 620px) {
  .scene-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .scene-title-block {
    grid-column: 1;
    justify-self: start;
    overflow: hidden;
    text-align: left;
  }
  .scene-title-block h1 { white-space: nowrap; }
  .scene-header-actions { grid-column: 2; max-width: 130px; }
  .scene-account-button { max-width: 84px; padding-inline: 10px; }
}
@media (max-width: 430px) {
  .scene-tabs button {
    min-width: 0;
    padding-inline: 3px;
    overflow: hidden;
    font-size: 11px;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 390px) {
  .scene-tabs { grid-template-columns: 42px repeat(4, minmax(0, 1fr)) 42px; }
  .scene-tabs .scene-compose-avatar { display: none; }
}
.scene-feed {
  gap: 6px;
}
@media (max-width: 600px) {
  .scene-shell {
    padding-right: max(3px, env(safe-area-inset-right));
    padding-left: max(3px, env(safe-area-inset-left));
  }
  .scene-header {
    margin-right: calc(-1 * max(3px, env(safe-area-inset-right)));
    margin-left: calc(-1 * max(3px, env(safe-area-inset-left)));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  .scene-feed {
    margin-right: 0;
    margin-left: 0;
  }
  .scene-post {
    --scene-post-inline-padding: 9px;
    border: 1px solid var(--scene-border);
    border-radius: 14px;
    padding: 10px var(--scene-post-inline-padding);
    box-shadow: none;
  }
  .scene-detail-card {
    --scene-detail-inline: 9px;
    padding: 10px var(--scene-detail-inline);
    border: 1px solid var(--scene-border);
    border-radius: 14px;
    box-shadow: none;
  }
  .scene-detail-card.is-owned-channel {
    border: 1px solid rgba(124,58,237,.24);
    border-radius: 14px;
  }
  .scene-post-images,
  .scene-post-carousel {
    width: calc(100% + var(--scene-post-inline-padding) + var(--scene-post-inline-padding));
    max-width: none;
    margin-right: calc(-1 * var(--scene-post-inline-padding));
    margin-left: calc(-1 * var(--scene-post-inline-padding));
    border-radius: 12px;
  }
  .scene-detail-images {
    width: calc(100% + var(--scene-detail-inline) + var(--scene-detail-inline));
    margin-right: calc(-1 * var(--scene-detail-inline));
    margin-left: calc(-1 * var(--scene-detail-inline));
    border-radius: 12px;
  }
  .scene-feed-skeleton {
    gap: 8px;
  }
  .scene-feed-skeleton article {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 18px clamp(14px, 4vw, 20px);
  }
  dialog.scene-dialog {
    padding: max(12px, env(safe-area-inset-top)) 3px max(3px, env(safe-area-inset-bottom));
    place-items: end stretch;
  }
  dialog.scene-dialog .scene-dialog-frame {
    width: 100%;
    max-height: min(92svh, 900px);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    transform: translate3d(0, 48px, 0) scale(.99);
  }
  @starting-style {
    dialog.scene-dialog[open] .scene-dialog-frame { transform: translate3d(0, 48px, 0) scale(.99); opacity: 0; }
  }
}

@media screen {
  .scene-tabs button.active,
  .scene-subtabs button.active {
    color: var(--scene-selected-text);
    background: var(--scene-selected-bg);
    box-shadow: inset 0 0 0 1px var(--scene-selected-border);
  }
  .scene-account-button,
  .scene-button { color: #111827; background: #f8fafc; }
  .scene-post-market { color: #ddd6fe; background: rgba(124,58,237,.22); }
  .scene-sponsored { color: #fed7aa; background: rgba(234,88,12,.18); }
  .scene-linked-entity { color: #ddd6fe; }
  .scene-post-action[aria-pressed="true"] { color: var(--scene-selected-text); background: var(--scene-selected-bg); }
  .scene-list-item.unread { background: rgba(124,58,237,.12); }
  [data-kind="success"] { background: rgba(4,120,87,.14); }
  [data-kind="warning"] { background: rgba(146,64,14,.18); }
  [data-kind="error"] { background: rgba(180,35,24,.17); }
  body:has(#scene-search-dialog[open]) .scene-tabs .scene-icon-button {
    color: var(--scene-selected-text);
    background: var(--scene-selected-bg);
    box-shadow: inset 0 0 0 1px var(--scene-selected-border);
  }
  .scene-owned-badge { color: #ddd6fe; border-color: rgba(196,181,253,.26); background: rgba(124,58,237,.2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-tabs,
  .scene-compose-trigger,
  .scene-feed,
  .scene-app-cta,
  .scene-post-carousel-slide img,
  .scene-post-carousel-slide video,
  .scene-media-viewer-backdrop,
  .scene-media-viewer-toolbar,
  .scene-media-viewer-nav,
  .scene-media-viewer-canvas,
  .scene-navigation-drawer-backdrop,
  .scene-navigation-drawer-sheet,
  dialog.scene-dialog,
  dialog.scene-dialog::backdrop,
  dialog.scene-dialog .scene-dialog-frame {
    animation: none !important;
    transition: none !important;
  }
  .scene-post-carousel-slide img,
  .scene-post-carousel-slide video { transform: none; }
}
/* Desi Scene Reels (#1696, #1809): full-width post media with native playback controls. */
body.scene-reel-fullscreen-open { overflow: hidden; }
body.scene-reel-fullscreen-open .scene-feed {
  transform: none;
  opacity: 1;
  transition: none;
  will-change: auto;
}

body.scene-reel-fullscreen-open #homeFeedSection,
body.scene-reel-fullscreen-open #mobileHomeDesiSceneBoundary,
body.scene-reel-fullscreen-open #mobileHomeDesiSceneMount {
  overflow: visible !important;
}

body.scene-reel-fullscreen-open #mobileHomeDesiSceneBoundary,
body.scene-reel-fullscreen-open #mobileHomeDesiSceneMount {
  contain: none !important;
}

body.scene-reel-fullscreen-open #mobileHomeDesiSceneMount .scene-feed {
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
  will-change: auto !important;
}

.scene-reel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  overflow: hidden;
  border-radius: 14px;
  background: #050506;
  color: #fff;
  isolation: isolate;
}

.scene-reel-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: var(--scene-reel-ratio, 9 / 16);
  overflow: hidden;
  background: #050506;
  cursor: pointer;
}

.scene-reel-unavailable {
  display: grid;
  min-height: min(48svh, 32rem);
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.scene-reel-unavailable p { max-width: 24rem; }

.scene-reel-poster,
.scene-reel-player,
.scene-reel-player video,
.scene-reel-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.scene-reel-poster {
  z-index: 1;
  object-fit: contain;
  background: #050506;
}

.scene-reel-player video,
.scene-reel-player iframe { display: block; object-fit: contain; background: #000; }

.scene-reel-status {
  position: absolute;
  left: 50%;
  bottom: 4.25rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 62%);
  font-size: .75rem;
  line-height: 1.3;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.scene-reel.has-error .scene-reel-status,
.scene-reel.is-loading .scene-reel-status,
.scene-reel.is-buffering .scene-reel-status,
.scene-reel.is-playback-blocked .scene-reel-status { opacity: 1; }

.scene-reel-tap {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.scene-reel-tap:focus-visible {
  outline: 3px solid #f8c95c;
  outline-offset: -5px;
}

.scene-reel.is-fullscreen .scene-reel-tap { touch-action: none; }

.scene-reel-controls {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  left: .75rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.scene-reel-controls-start {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.scene-reel-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 999px;
  background: rgb(0 0 0 / 68%);
  color: #fff;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  pointer-events: auto;
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.scene-reel-controls button:active { scale: .96; }

.scene-reel-playback-control > span {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.2v13.6a1 1 0 0 0 1.55.83l9.8-6.8a1 1 0 0 0 0-1.66l-9.8-6.8A1 1 0 0 0 8 5.2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.2v13.6a1 1 0 0 0 1.55.83l9.8-6.8a1 1 0 0 0 0-1.66l-9.8-6.8A1 1 0 0 0 8 5.2Z'/%3E%3C/svg%3E");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 20px 20px;
  -webkit-mask-size: 20px 20px;
}

.scene-reel-playback-control[data-playback-state="playing"] > span {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 5.5A1.25 1.25 0 0 1 8 4.25h1.5a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 9.5 19.75H8a1.25 1.25 0 0 1-1.25-1.25v-13Zm6.5 0a1.25 1.25 0 0 1 1.25-1.25H16a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 16 19.75h-1.5a1.25 1.25 0 0 1-1.25-1.25v-13Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 5.5A1.25 1.25 0 0 1 8 4.25h1.5a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 9.5 19.75H8a1.25 1.25 0 0 1-1.25-1.25v-13Zm6.5 0a1.25 1.25 0 0 1 1.25-1.25H16a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 16 19.75h-1.5a1.25 1.25 0 0 1-1.25-1.25v-13Z'/%3E%3C/svg%3E");
}

.scene-reel-playback-control[data-playback-state="loading"] > span { opacity: .72; }

.scene-reel-controls .scene-reel-sound-control {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}

.scene-reel-controls button:focus-visible {
  outline: 3px solid #f8c95c;
  outline-offset: 3px;
}

.scene-reel.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  transform: translate3d(0, 0, 0);
}

.scene-reel.is-fullscreen.scene-reel-fullscreen-next {
  z-index: 10001;
  transform: translate3d(0, 100%, 0);
}

body.scene-reel-fullscreen-transition .scene-reel.is-fullscreen.scene-reel-fullscreen-current,
body.scene-reel-fullscreen-transition .scene-reel.is-fullscreen.scene-reel-fullscreen-next {
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

body.scene-reel-fullscreen-transition .scene-reel.is-fullscreen.scene-reel-fullscreen-current {
  transform: translate3d(0, -100%, 0);
}

body.scene-reel-fullscreen-transition .scene-reel.is-fullscreen.scene-reel-fullscreen-next {
  transform: translate3d(0, 0, 0);
}

.scene-reel.is-fullscreen .scene-reel-stage {
  place-self: center;
  width: min(100%, var(--scene-reel-fullscreen-width, 100vw));
  height: auto;
  max-height: 100%;
  margin: auto;
  aspect-ratio: var(--scene-reel-ratio, 9 / 16);
  border-radius: 0;
  background: #000;
}

.scene-reel.is-fullscreen .scene-reel-poster,
.scene-reel.is-fullscreen .scene-reel-player video {
  object-fit: contain;
  object-position: 50% 50%;
  background: #000;
}

/* The unified feed stylesheet loads after this shared file. Extra specificity
   keeps its control bar while preserving the source-shaped fullscreen frame. */
body .scene-reel.is-fullscreen.scene-reel-controls-unified {
  justify-items: center;
}

body .scene-reel.is-fullscreen.scene-reel-controls-unified .scene-reel-stage {
  place-self: center;
  align-self: center;
  width: min(100%, var(--scene-reel-fullscreen-width, 100vw));
  height: auto;
  max-height: 100%;
  margin: 0;
  aspect-ratio: var(--scene-reel-ratio, 9 / 16);
}

body .scene-reel.is-fullscreen.scene-reel-controls-unified .scene-reel-controls {
  width: min(100%, var(--scene-reel-fullscreen-width, 100vw));
}

body .scene-reel.is-fullscreen.scene-reel-controls-unified .scene-reel-poster,
body .scene-reel.is-fullscreen.scene-reel-controls-unified .scene-reel-player video {
  object-fit: contain;
  object-position: 50% 50%;
  background: #000;
}

.scene-reel-fullscreen-transport { display: none; }

.scene-reel.is-fullscreen .scene-reel-fullscreen-transport {
  position: fixed;
  top: 75%;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 42%);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.scene-reel.is-fullscreen .scene-reel-fullscreen-transport.is-visible { opacity: 1; }

.scene-reel-fullscreen-transport .scene-reel-transport-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  cursor: pointer;
}

.scene-reel.is-fullscreen .scene-reel-fullscreen-transport.is-visible .scene-reel-transport-button { pointer-events: auto; }

.scene-reel-fullscreen-transport .scene-reel-transport-button:active { scale: .96; }

.scene-reel-fullscreen-transport .scene-reel-transport-button:focus-visible {
  outline: 3px solid #f8c95c;
  outline-offset: 3px;
}

.scene-reel-fullscreen-transport .scene-reel-transport-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.scene-reel-fullscreen-transport .scene-reel-transport-seek .scene-reel-transport-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.scene-reel-fullscreen-transport .scene-reel-transport-rewind .scene-reel-transport-icon {
  border-left-color: transparent;
}

.scene-reel-fullscreen-transport .scene-reel-transport-forward .scene-reel-transport-icon {
  border-right-color: transparent;
}

.scene-reel-fullscreen-transport .scene-reel-transport-seek .scene-reel-transport-icon::before {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  content: '';
}

.scene-reel-fullscreen-transport .scene-reel-transport-rewind .scene-reel-transport-icon::before {
  left: -2px;
  border-left: 2px solid currentColor;
  transform: rotate(-18deg);
}

.scene-reel-fullscreen-transport .scene-reel-transport-forward .scene-reel-transport-icon::before {
  right: -2px;
  border-right: 2px solid currentColor;
  transform: rotate(18deg);
}

.scene-reel-fullscreen-transport .scene-reel-transport-toggle .scene-reel-transport-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.2v13.6a1 1 0 0 0 1.55.83l9.8-6.8a1 1 0 0 0 0-1.66l-9.8-6.8A1 1 0 0 0 8 5.2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.2v13.6a1 1 0 0 0 1.55.83l9.8-6.8a1 1 0 0 0 0-1.66l-9.8-6.8A1 1 0 0 0 8 5.2Z'/%3E%3C/svg%3E");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 18px 18px;
  -webkit-mask-size: 18px 18px;
}

.scene-reel-fullscreen-transport .scene-reel-transport-toggle[data-playback-state="playing"] .scene-reel-transport-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 5.5A1.25 1.25 0 0 1 8 4.25h1.5a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 9.5 19.75H8a1.25 1.25 0 0 1-1.25-1.25v-13Zm6.5 0a1.25 1.25 0 0 1 1.25-1.25H16a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 16 19.75h-1.5a1.25 1.25 0 0 1-1.25-1.25v-13Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 5.5A1.25 1.25 0 0 1 8 4.25h1.5a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 9.5 19.75H8a1.25 1.25 0 0 1-1.25-1.25v-13Zm6.5 0a1.25 1.25 0 0 1 1.25-1.25H16a1.25 1.25 0 0 1 1.25 1.25v13A1.25 1.25 0 0 1 16 19.75h-1.5a1.25 1.25 0 0 1-1.25-1.25v-13Z'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  body.scene-reel-fullscreen-transition .scene-reel.is-fullscreen.scene-reel-fullscreen-current,
  body.scene-reel-fullscreen-transition .scene-reel.is-fullscreen.scene-reel-fullscreen-next {
    transition: none;
  }
  .scene-reel.is-fullscreen .scene-reel-fullscreen-transport { transition: none; }
}

.scene-profile-post-reel {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 2;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
}

@media (max-width: 640px) {
  .scene-reel {
    width: 100%;
    border-radius: .8rem;
  }
}

@media (max-width: 600px) {
  .scene-post > .scene-reel {
    width: calc(100% + var(--scene-post-inline-padding) + var(--scene-post-inline-padding));
    margin-right: calc(-1 * var(--scene-post-inline-padding));
    margin-left: calc(-1 * var(--scene-post-inline-padding));
  }
  .scene-detail-card > .scene-reel {
    width: calc(100% + var(--scene-detail-inline) + var(--scene-detail-inline));
    margin-right: calc(-1 * var(--scene-detail-inline));
    margin-left: calc(-1 * var(--scene-detail-inline));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-reel-status { transition: none; }
}
