
/* V1388: Dating landing mobile polish, ad-carousel borders, and feed/reels comment-header spacing.
   Scoped to requested screens only; live reels layout unchanged. */

/* --- Dating landing page (not joined) --- */
.social-shell[data-f1387-dating-landing="1"] .f254-dating-start.f732-landing{
  max-width:900px!important;
  padding:14px 16px 118px!important;
}
.social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  margin:0 0 14px!important;
  padding:6px!important;
  border-radius:18px!important;
  background:var(--social-surface,#fff)!important;
  border:1px solid var(--social-border,#ece7f2)!important;
  box-shadow:none!important;
}
.social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs > span{
  flex:1 1 0!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:44px!important;
  padding:0 7px!important;
  border-radius:50px!important;
  font-size:clamp(10px,2.8vw,13px)!important;
  font-weight:750!important;
  color:var(--social-muted,#6e7486)!important;
  background:transparent!important;
  white-space:nowrap!important;
}
.social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs > span.is-active{
  color:#fff!important;
  background:#e72391!important;
}
.social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs .social-icon{
  width:18px!important;height:18px!important;flex:none!important;
}
.social-shell[data-f1387-dating-landing="1"] .f1387-dating-landing-actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  margin-top:18px!important;
}
.social-shell[data-f1387-dating-landing="1"] .f1387-dating-landing-actions > :is(button,a){
  flex:1 1 0!important;
  min-width:0!important;
  min-height:50px!important;
  padding:0 18px!important;
  border-radius:50px!important;
  font-size:14px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.social-shell[data-f1387-dating-landing="1"] .f1387-dating-start-button{
  background:#e72391!important;
  border-color:#ec57ad!important;
  box-shadow:none!important;
}
.social-shell[data-f1387-dating-landing="1"] .f1387-dating-exit-inline{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#cf2f78!important;
  background:rgba(255,84,159,.08)!important;
  border:1px solid rgba(234,88,145,.26)!important;
  box-shadow:none!important;
}
@media(max-width:767px){
  .social-shell[data-f1387-dating-landing="1"] :is(.social-topbar,.social-bottom-nav,.social-mobile-nav){display:none!important}
  .social-shell[data-f1387-dating-landing="1"] .social-layout{padding-top:0!important}
  .social-shell[data-f1387-dating-landing="1"] .social-column,
  .social-shell[data-f1387-dating-landing="1"] .social-main{padding-top:0!important}
  .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs{
    position:sticky!important;top:8px!important;z-index:12!important;
  }
  .social-shell[data-f1387-dating-landing="1"] .f1387-dating-landing-actions{
    position:sticky!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    padding:10px!important;
    margin:16px -4px 0!important;
    border-radius:20px!important;
    background:color-mix(in srgb, var(--social-surface,#fff) 92%, transparent)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    box-shadow:none!important;
  }
  .social-shell[data-f1387-dating-landing="1"] .f1387-dating-start-button,
  .social-shell[data-f1387-dating-landing="1"] .f1387-dating-exit-inline{min-height:50px!important}
}
@media(max-width:430px){
  .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs{gap:8px!important;padding:5px!important}
  .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs > span{font-size:clamp(10px,2.8vw,12px)!important;padding:0 4px!important;gap:4px!important}
  .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs .social-icon{width:15px!important;height:15px!important}
}
html[data-theme="dark"] .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs{
  background:#161920!important;border-color:#2a2f39!important;box-shadow:none!important;
}
html[data-theme="dark"] .social-shell[data-f1387-dating-landing="1"] .f1387-dating-exit-inline{
  background:rgba(255,84,159,.14)!important;border-color:rgba(255,101,170,.28)!important;color:#ff7db8!important;
}

/* --- Carousel ad borders on feeds: remove outer visible border, keep individual item borders. --- */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel,
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f837-carousel{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video),
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f837-carousel > :is(img,video){
  border:1px solid var(--social-border,#e3e8f1)!important;
}
html[data-theme="dark"] .social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video),
html[data-theme="dark"] .social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f837-carousel > :is(img,video){
  border-color:var(--social-border,#313844)!important;
}

/* --- Feed/repost/live/ad header spacing on feeds; do not touch reel live layout. --- */
.social-shell .social-post:not(.social-reel-post) > .social-post-top,
.social-shell .social-post:not(.social-reel-post) .f830-ad-header,
.social-shell .f254-quote-reposter-head{
  column-gap:10px!important;
  gap:10px!important;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-author,
.social-shell .social-post:not(.social-reel-post) .f830-ad-header .social-post-author,
.social-shell .f254-quote-reposter-head .f254-quote-reposter-details{
  min-width:0!important;
}

/* --- Reels comments popup: align cloned caption like Home feed, remove text shadows, tighten spacing. --- */
@media(max-width:899px){
  .social-shell .f1158-ui .f1158-feed-card .social-post-top{column-gap:10px!important;gap:10px!important}
  .social-shell .f1158-ui .f1158-feed-card > .social-post-text,
  .social-shell .f1158-ui .f1158-feed-card > .f254-reel-caption-wrap,
  .social-shell .f1158-ui .f1158-feed-card > .f254-repost-context,
  .social-shell .f1158-ui .f1158-feed-card > .f254-quoted-source{
    margin-left:53px!important;
    margin-top:4px!important;
    margin-bottom:6px!important;
    width:calc(100% - 53px)!important;
    max-width:calc(100% - 53px)!important;
  }
  .social-shell .f1158-ui .f1158-feed-card .social-post-byline{gap:4px!important}
  .social-shell .f1158-ui .f1158-feed-card .social-post-author > a{margin:0!important}
  .social-shell .f1158-ui .f1158-feed-card .social-post-text,
  .social-shell .f1158-ui .f1158-feed-card .f254-reel-caption-preview{max-height:none!important;overflow:visible!important}
  .social-shell .f1158-ui :is(.social-post-text,.social-comment-text,.f254-reel-caption-preview,.f254-reel-caption-wrap) :is(a,span,strong,small,em),
  .social-shell .f1158-ui :is(.social-post-text,.social-comment-text,.f254-reel-caption-preview,.f254-reel-caption-wrap){
    text-shadow:none!important;
    box-shadow:none!important;
    filter:none!important;
  }
  .social-shell .f1158-ui .f1158-sheet > .social-comment-list{padding:2px 14px 10px!important}
  .social-shell .f1158-ui .f1158-sheet > .social-comment-form{padding:8px 12px max(10px,env(safe-area-inset-bottom))!important}
}

/* --- Ad comment rows: same clean author spacing, compact time style. --- */
.f864-ad-sheet .f864-comment-author{gap:6px!important}
.f864-ad-sheet .f864-comment-author small{
  margin:0!important;
  color:var(--social-muted)!important;
  font-size:11px!important;
  line-height:1.2!important;
}

/* V1388: responsive equal-width landing tabs; align with notification header edges. */
@media (max-width:767px){
 .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs {box-sizing:border-box!important;overflow:hidden!important;gap:4px!important;}
 .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs > span {flex:1 1 0!important;width:0!important;min-width:0!important;white-space:nowrap!important;letter-spacing:-.015em!important;}
 .social-shell[data-f1387-dating-landing="1"] .f1387-dating-landing-actions {z-index:15!important;}
}
@media (max-width:360px){
 .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs > span{font-size:10px!important;gap:3px!important;padding:0 2px!important}
 .social-shell[data-f1387-dating-landing="1"] .f732-landing-tabs .social-icon{width:13px!important;height:13px!important}
 .social-shell[data-f1387-dating-landing="1"] .f1387-dating-landing-actions > :is(button,a){font-size:12px!important;padding:0 8px!important;}
}
/* The outer ad scrollport is frameless; each media item carries its own border.
   Preserve every existing item corner-radius and all current object-fit rules. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel{
 outline:0!important;border:0!important;box-shadow:none!important;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video){
 box-sizing:border-box!important;outline:0!important;border:1px solid var(--social-border,#e3e8f1)!important;
}
/* Reels comment-card text must not inherit the old hashtag/mention glow.
   Do not change video, Reels Live or ordinary feed caption styling. */
@media(max-width:899px){
 .social-shell .f1158-ui .f1158-feed-card .social-post-text,
 .social-shell .f1158-ui .f1158-feed-card .social-post-text :is(a,span,strong,em,small),
 .social-shell .f1158-ui .f1158-feed-card .social-post-byline,
 .social-shell .f1158-ui .f1158-feed-card .social-post-byline :is(a,span,time),
 .social-shell .f1158-ui .f1158-feed-card :is(.f254-reel-caption-wrap,.f254-reel-caption-preview),
 .social-shell .f1158-ui .f1158-feed-card :is(.f254-reel-caption-wrap,.f254-reel-caption-preview) :is(a,span,strong,em,small){
   text-shadow:none!important;filter:none!important;box-shadow:none!important;
 }
 .social-shell .f1158-ui .f1158-feed-card > .social-post-text {margin-left:53px!important;margin-top:4px!important;margin-bottom:6px!important;max-width:calc(100% - 53px)!important;}
}
