/* Mobile immersive For You. Scoped to <=767px; #room and desktop stay untouched. */
.lov-mobile-feed-tabs,.lov-mobile-post-overlay{display:none}
@media(max-width:767px){
  html:has(body:not(.in-live-room) #main .feed #feed-posts),
  html body:not(.in-live-room):has(#main .feed #feed-posts){
    width:100%!important;height:100vh!important;height:100dvh!important;
    max-height:100dvh!important;overflow:hidden!important;overscroll-behavior:none!important;
    background:#0b1622!important;
  }
  html body:not(.in-live-room):has(#main .feed #feed-posts) :is(header.top,aside.sidebar){
    display:none!important;
  }
  html body:not(.in-live-room):has(#main .feed #feed-posts) :is(#app,.app-shell,main#main.container){
    width:100%!important;height:100dvh!important;min-height:0!important;
    max-width:none!important;max-height:100dvh!important;
    overflow:hidden!important;margin:0!important;padding:0!important;background:#0b1622!important;
  }
  html body:not(.in-live-room) #main .feed{
    position:fixed!important;inset:0!important;
    width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
    background:linear-gradient(160deg,#0b1622,#06111b)!important;
  }
  html body:not(.in-live-room) #main .feed :is(.headline,.page-title,.page-subtitle,.feed-title,.feed-subtitle,.lov-feed-create),
  html body:not(.in-live-room) #main .feed .lov-feed-toolbar > .ocean-tabs,
  html body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar .ocean-tabs{
    display:none!important;
  }
  html body:not(.in-live-room) #main .feed .lov-feed-toolbar{
    display:contents!important;padding:0!important;margin:0!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts{
    position:absolute!important;inset:0 auto auto 0!important;top:0!important;left:0!important;
    width:100vw!important;max-width:100vw!important;
    height:calc(100vh - 64px)!important;height:calc(100dvh - 64px)!important;
    min-height:0!important;max-height:calc(100dvh - 64px)!important;
    margin:0!important;padding:0!important;transform:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    scroll-snap-type:y mandatory!important;overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;scrollbar-width:none!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;background:#0b1622!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts::-webkit-scrollbar{display:none!important}
  html body:not(.in-live-room) #main .feed #feed-posts > article{
    display:block!important;position:relative!important;width:100vw!important;max-width:100vw!important;
    height:calc(100dvh - 64px)!important;min-height:calc(100dvh - 64px)!important;
    max-height:calc(100dvh - 64px)!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    scroll-snap-align:start!important;scroll-snap-stop:always!important;
    overflow:hidden!important;background:#0b1622!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts > article .post-media{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts > article .post-media :is(video,img){
    display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts > article .post-media::after{
    content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,#0b162280,transparent 22%,transparent 56%,#06111be0);
  }
  html body:not(.in-live-room) #main :is(.feed,.lov-live-feed) .lov-mobile-feed-tabs{
    position:fixed!important;top:12px!important;left:0!important;right:0!important;
    display:flex!important;justify-content:center!important;align-items:center!important;
    gap:clamp(7px,3vw,15px)!important;width:100%!important;z-index:50!important;
    margin:0!important;padding:env(safe-area-inset-top,0px) 8px 0!important;
    border:0!important;background:transparent!important;pointer-events:auto!important;
  }
  html body:not(.in-live-room) #main :is(.feed,.lov-live-feed) .lov-mobile-feed-tabs a{
    display:inline-flex!important;align-items:center;justify-content:center;
    height:36px;min-width:0;white-space:nowrap;padding:6px clamp(6px,2vw,11px);
    border:1px solid #7ddbec36;border-radius:999px;
    background:#0b162288;color:#e0f1f8;font-size:clamp(11px,3.2vw,13px);font-weight:700;
    text-shadow:0 1px 3px #0008;backdrop-filter:blur(10px);
  }
  html body:not(.in-live-room) #main :is(.feed,.lov-live-feed) .lov-mobile-feed-tabs a.active{
    background:#00d2ff30;color:#fff;border-color:#00d2ff9c;box-shadow:inset 0 -2px #00d2ff;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .post-card .actionbar{
    position:absolute!important;top:auto!important;left:auto!important;right:8px!important;
    bottom:110px!important;z-index:30!important;width:54px!important;
    max-width:54px!important;max-height:min(48dvh,290px)!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;gap:7px!important;
    margin:0!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;
    scrollbar-width:none!important;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .post-card .actionbar::-webkit-scrollbar{display:none!important}
  html body:not(.in-live-room) #main .feed #feed-posts .post-card .actionbar > :not(.ocean-action-avatar):not([data-action="like"]):not([data-action="comments"]):not([data-action="share-post"]){display:none!important}
  html body:not(.in-live-room) #main .feed #feed-posts .post-card .actionbar .ocean-action-avatar{
    display:grid!important;place-items:center!important;width:42px!important;height:42px!important;
    padding:0!important;margin:0!important;border:2px solid #00d2ff!important;border-radius:50%!important;overflow:hidden!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .post-card .actionbar .ocean-action-avatar .avatar{width:100%!important;height:100%!important}
  html body:not(.in-live-room) #main .feed #feed-posts .post-card .actionbar :is([data-action="like"],[data-action="comments"],[data-action="share-post"]){
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    width:52px!important;min-width:52px!important;min-height:44px!important;gap:2px!important;padding:4px 0!important;
    background:#0b162277!important;color:#fff!important;border:0!important;border-radius:12px!important;
    box-shadow:none!important;text-shadow:0 2px 5px #000!important;font-size:12px!important;line-height:1.25!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .post-card:has(.lov-mobile-post-overlay) > :is(.info,.caption){
    display:none!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .lov-mobile-post-overlay{
    position:absolute!important;bottom:14px!important;left:12px!important;right:75px!important;
    z-index:31!important;display:flex!important;flex-direction:column!important;
    align-items:flex-start!important;gap:5px!important;min-width:0!important;
    margin:0!important;padding:0!important;color:#fff;text-shadow:0 2px 5px #000b;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .lov-mobile-post-author{
    font-size:15px;font-weight:800;color:#fff;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .lov-mobile-post-date{
    font-size:11px;color:#bfd8e5;line-height:1.25;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .lov-mobile-post-description{
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    max-height:2.7em;overflow:hidden;margin:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .lov-mobile-post-follow{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-height:34px!important;margin:3px 0 0!important;padding:7px 12px!important;
    background:linear-gradient(135deg,#00d2ff,#10b981)!important;color:#041b26!important;
    font-size:12px!important;font-weight:800!important;text-shadow:none!important;
    border:0!important;border-radius:10px!important;box-shadow:0 4px 14px #0006!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .ocean-live-card .ocean-live-top{
    padding:calc(68px + env(safe-area-inset-top,0px)) 14px 8px!important;
  }
  html body:not(.in-live-room) #main .feed #feed-posts .ocean-live-card .ocean-live-bottom{
    padding:12px 14px 20px!important;background:linear-gradient(180deg,transparent,#0b1622ea);
  }
  html body:not(.in-live-room) #main .feed #feed-posts .ocean-live-card .ocean-enter-live{
    max-width:140px;min-height:38px;padding:9px 12px;border-radius:12px;
    background:linear-gradient(135deg,#00d2ff,#10b981)!important;color:#041b26!important;font-size:12px;
  }
  html body:not(.in-live-room) #main .feed #more-posts{display:none!important}
  /* Existing .phone-nav markup and styling deliberately unchanged. */
}
