/* New Profile Look (SFM 2026-11-25). Kim: like Facebook / TikTok / X - no covers, small text and icons, small counts,
   16:9 video grid with titles. Only the member profile page (#global_page_user-profile-index). */
#global_page_user-profile-index{--sfp-red:#cb2026;--sfp-mut:#65676b;--sfp-line:#e4e6eb;--sfp-soft:#f0f2f5}

/* ---- header: no cover ---- */
#global_page_user-profile-index .user_cover_image_wrapper,
#global_page_user-profile-index .user_cover_image_container{display:none!important}
#global_page_user-profile-index .user_cover_wrapper,
#global_page_user-profile-index .user_cover_main{background:#fff!important;border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
#global_page_user-profile-index .user_cover_information{position:static!important;background:none!important;padding:18px 20px 16px!important;margin:0!important;min-height:0!important}
#global_page_user-profile-index .user_cover_information:before,
#global_page_user-profile-index .user_cover_information:after{display:none!important}
#global_page_user-profile-index .user_cover_content{display:flex!important;align-items:flex-start!important;gap:18px!important;flex-direction:row!important;position:static!important;margin:0!important;padding:0!important;flex-wrap:nowrap!important;text-align:left!important}
#global_page_user-profile-index .user_cover_main_photo{position:static!important;margin:0!important;flex:none!important;width:112px!important;height:112px!important;transform:none!important;border:0!important;box-shadow:none!important;background:none!important;padding:0!important}
#global_page_user-profile-index .user_cover_main_photo .bg_item_photo,
#global_page_user-profile-index .user_cover_main_photo img{width:112px!important;height:112px!important;border-radius:50%!important;border:1px solid var(--sfp-line)!important;background-size:cover!important;background-position:center!important}
#global_page_user-profile-index .user_cover_info{flex:1!important;min-width:0!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;padding:2px 0 0!important;margin:0!important;color:#050505!important}
#global_page_user-profile-index .user_cover_info_left{min-width:0!important;flex:1 1 300px!important;padding:0!important;margin:0!important;color:#050505!important;text-align:left!important}
#global_page_user-profile-index .user_cover_title{font-size:22px!important;line-height:1.2!important;font-weight:700!important;color:#050505!important;margin:0 0 2px!important;text-shadow:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#global_page_user-profile-index .user_cover_info_stats{display:flex!important;flex-wrap:wrap!important;gap:0!important;margin:0!important;padding:0!important;font-size:13px!important;line-height:1.5!important;color:var(--sfp-mut)!important;justify-content:flex-start!important}
#global_page_user-profile-index .user_cover_info_stats>div{margin:0!important;padding:0!important;border:0!important;white-space:nowrap;width:auto!important;flex:none!important;display:block!important;text-align:left!important;justify-content:flex-start!important}
#global_page_user-profile-index .user_cover_info_stats>div+div:before{content:"·";margin:0 6px;color:var(--sfp-mut)}
#global_page_user-profile-index .user_cover_info_stats span,
#global_page_user-profile-index .user_cover_info_stats a{color:var(--sfp-mut)!important;font-size:13px!important;font-weight:400!important;text-shadow:none!important}
#global_page_user-profile-index .user_cover_info_status{font-size:13px!important;color:var(--sfp-mut)!important;margin:4px 0 0!important;text-shadow:none!important}
#global_page_user-profile-index .user_cover_info_status *{color:inherit!important;font-size:13px!important}

/* buttons: small, Facebook style */
#global_page_user-profile-index .user_cover_buttons{margin:0!important;padding:0!important;position:static!important}
#global_page_user-profile-index .user_cover_buttons>ul{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin:0!important;padding:0!important;justify-content:flex-end}
#global_page_user-profile-index .user_cover_buttons>ul>li{margin:0!important;padding:0!important;list-style:none}
#global_page_user-profile-index .user_cover_buttons>ul>li>.btn,
#global_page_user-profile-index .user_cover_buttons>ul>li>a,
#global_page_user-profile-index .user_cover_buttons>ul>li>button{display:inline-flex!important;align-items:center!important;gap:5px!important;height:32px!important;min-height:0!important;padding:0 12px!important;border-radius:6px!important;font-size:13px!important;font-weight:600!important;line-height:1!important;background:#e4e6eb!important;color:#050505!important;border:0!important;box-shadow:none!important;white-space:nowrap}
#global_page_user-profile-index .user_cover_buttons>ul>li:first-child>.btn{background:var(--sfp-red)!important;color:#fff!important}
#global_page_user-profile-index .user_cover_buttons i{font-size:14px!important}

/* headline lines */
#global_page_user-profile-index .sfp-head{font-size:13px;line-height:1.45;color:#050505;margin-top:3px}
#global_page_user-profile-index .sfp-roles{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#global_page_user-profile-index .sfp-meta{display:flex;flex-wrap:wrap;gap:0 12px;color:var(--sfp-mut)}
#global_page_user-profile-index .sfp-meta span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#global_page_user-profile-index .sfp-meta a{color:var(--sfp-red)!important}
#global_page_user-profile-index .sfp-i{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#global_page_user-profile-index .sfp-mut{display:flex;align-items:center;margin-top:6px;font-size:12px;color:var(--sfp-mut)!important;white-space:nowrap;min-width:0;text-decoration:none}
#global_page_user-profile-index .sfp-mut img{width:20px;height:20px;border-radius:50%;border:2px solid #fff;margin-right:-7px;object-fit:cover;flex:none}
#global_page_user-profile-index .sfp-mut img:last-of-type{margin-right:6px}
#global_page_user-profile-index .sfp-mut span{overflow:hidden;text-overflow:ellipsis}
#global_page_user-profile-index .sfp-gbtns{display:flex;gap:6px;align-self:flex-start}
#global_page_user-profile-index .sfp-b{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:6px;font-size:13px;font-weight:600;background:#e4e6eb;color:#050505!important;text-decoration:none;white-space:nowrap}
#global_page_user-profile-index .sfp-b.sfp-red{background:var(--sfp-red);color:#fff!important}
#global_page_user-profile-index .sfp-b .sfp-i{width:15px;height:15px}
/* before the script moves it up, keep the headline tidy under the header */
#global_page_user-profile-index .layout_sfmprofile_headline{margin:0;padding:0 20px}
html.sfp-ready #global_page_user-profile-index .layout_sfmprofile_headline{display:none}

/* ---- tabs: plain text, red underline (Facebook) ---- */
html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt li a{font-size:14px!important;font-weight:600!important;padding:11px 12px 9px!important;background:none!important;border-radius:0!important;color:#65676b!important;box-shadow:none!important}
html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt li a span{color:inherit!important;font-weight:400!important;margin-left:3px}
html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt li.active a{color:var(--sfp-red)!important;box-shadow:inset 0 -3px 0 var(--sfp-red)!important;background:none!important}
html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt li{background:none!important;border:0!important;margin:0!important}

/* ---- left column cards ---- */
#global_page_user-profile-index .sfp-cards{display:flex;flex-direction:column;gap:12px}
#global_page_user-profile-index .sfp-card{background:#fff;border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.08);padding:12px 14px;font-size:13px;line-height:1.4;color:#050505}
#global_page_user-profile-index .sfp-card h4{margin:0 0 6px;font-size:15px;font-weight:700;color:#050505;border:0;padding:0;text-transform:none;letter-spacing:0}
#global_page_user-profile-index .sfp-row{display:flex;gap:9px;align-items:flex-start;padding:4px 0}
#global_page_user-profile-index .sfp-row .sfp-i{width:16px;height:16px;color:var(--sfp-mut);margin-top:1px}
#global_page_user-profile-index .sfp-row a{color:var(--sfp-red)!important}
#global_page_user-profile-index .sfp-row b{font-weight:600}
#global_page_user-profile-index .sfp-open .sfp-i{color:#1f7a4a}
#global_page_user-profile-index .sfp-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#global_page_user-profile-index .sfp-more{display:inline-block;margin:2px 0 0 25px;font-size:12px;font-weight:600;color:var(--sfp-red)!important}
#global_page_user-profile-index .sfp-links span{display:flex;flex-wrap:wrap;gap:0 4px}
#global_page_user-profile-index .sfp-links i{font-style:normal;color:var(--sfp-mut)}

/* ---- videos: 16:9 grid with titles; tall (phone) videos sit centred on black, never cropped ---- */
#global_page_user-profile-index .layout_video_profile_videos .grid_listing{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px 10px!important;margin:0!important}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;flex:none!important}
#global_page_user-profile-index .layout_video_profile_videos article{background:none!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_thumb{position:relative!important;aspect-ratio:16/9!important;height:auto!important;border-radius:8px!important;overflow:hidden!important;background:#111!important}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_thumb a,
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_thumb .bg_item_photo{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:#111!important;border-radius:0!important}
#global_page_user-profile-index .layout_video_profile_videos .item_length{position:absolute!important;right:6px!important;bottom:6px!important;left:auto!important;top:auto!important;z-index:2;background:rgba(0,0,0,.78)!important;color:#fff!important;font-size:11px!important;font-weight:600!important;padding:1px 5px!important;border-radius:4px!important;line-height:1.5!important}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_info{padding:6px 0 0!important}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_title a{font-size:13px!important;font-weight:600!important;line-height:1.35!important;color:#050505!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_owner{font-size:12px!important;color:var(--sfp-mut)!important;display:flex!important;gap:8px;flex-wrap:wrap;margin-top:2px}
#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_owner>span:first-child{display:none!important}

/* ---- phone ---- */
@media (max-width:640px){
  #global_page_user-profile-index .user_cover_information{padding:14px 14px 12px!important}
  #global_page_user-profile-index .user_cover_content{gap:14px!important}
  #global_page_user-profile-index .user_cover_main_photo,
  #global_page_user-profile-index .user_cover_main_photo .bg_item_photo,
  #global_page_user-profile-index .user_cover_main_photo img{width:76px!important;height:76px!important}
  #global_page_user-profile-index .user_cover_title{font-size:19px!important}
  #global_page_user-profile-index .user_cover_info{display:block!important}
  #global_page_user-profile-index .user_cover_buttons>ul,
  #global_page_user-profile-index .sfp-gbtns{justify-content:flex-start;margin-top:10px!important}
  #global_page_user-profile-index .layout_video_profile_videos .grid_listing{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 8px!important}
}
#global_page_user-profile-index .user_cover_info_left{order:1}
#global_page_user-profile-index .user_cover_info>.sfp-gbtns,#global_page_user-profile-index .user_cover_info>.user_cover_buttons{order:2;margin-left:auto!important}
@media (max-width:640px){#global_page_user-profile-index .user_cover_info>.sfp-gbtns{margin-left:0!important}}
/* phone fixes (v4) */
@media (max-width:640px){
  html body#global_page_user-profile-index .user_cover_title,
  html body#global_page_user-profile-index .user_cover_info_left,
  html body#global_page_user-profile-index .user_cover_info_status{text-align:left!important;justify-content:flex-start!important}
  html body#global_page_user-profile-index .user_cover_info_stats{gap:0 10px!important}
  html body#global_page_user-profile-index .user_cover_info_stats>div+div:before{content:none!important}
  html body#global_page_user-profile-index .layout_video_profile_videos article{display:block!important}
  html body#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_thumb{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  html body#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_info{width:auto!important;padding:6px 0 0!important}
  html body#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_owner{flex-direction:row!important;flex-wrap:wrap!important}
  html body#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_owner>span{display:inline-flex!important;margin:0!important;padding:0!important}
  html body#global_page_user-profile-index .layout_video_profile_videos .grid_listing_item_owner>span:before{content:none!important}
  html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt>ul{flex-wrap:nowrap!important;overflow:visible!important}
}
html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt li a{white-space:nowrap!important}
html body#global_page_user-profile-index .user_cover_info_status,html body#global_page_user-profile-index .user_cover_info_status ._status{text-align:left!important;justify-content:flex-start!important;margin-left:0!important;padding-left:0!important}
@media (max-width:640px){html body#global_page_user-profile-index .layout_core_container_tabs .tabs_alt li a{padding:11px 8px 9px!important;font-size:13px!important}}
/* v7: Kim - no BIG buttons, few buttons; thin profiles keep two columns on PC (Details left, tabs right) */
html body#global_page_user-profile-index .user_cover_buttons>ul>li>.btn,
html body#global_page_user-profile-index .user_cover_buttons>ul>li>a{height:30px!important;padding:0 10px!important;font-size:13px!important;font-weight:600!important;border-radius:6px!important;background:#e4e6eb!important;color:#050505!important;gap:5px!important}
html body#global_page_user-profile-index .user_cover_buttons>ul>li.sfp-first>a{background:var(--sfp-red)!important;color:#fff!important}
html body#global_page_user-profile-index .user_cover_buttons>ul>li:first-child:not(.sfp-first)>a{background:#e4e6eb!important;color:#050505!important}
html body#global_page_user-profile-index .user_cover_buttons li.sfp-hide{display:none!important}
html body#global_page_user-profile-index .user_cover_buttons i,html body#global_page_user-profile-index .user_cover_buttons svg{font-size:13px!important;width:14px!important;height:14px!important}
html body#global_page_user-profile-index .user_cover_buttons .dropdown-menu .dropdown-item{height:auto!important;background:none!important;padding:7px 12px!important;font-size:13px!important}
@media (min-width:900px){
  html.sfm-thin body#global_page_user-profile-index .layout_page_user_profile_index>.layout_main{display:grid!important;grid-template-columns:330px minmax(0,1fr)!important;gap:16px!important;align-items:start!important}
  html.sfm-thin body#global_page_user-profile-index .layout_page_user_profile_index>.layout_main>.layout_left{order:0!important;width:auto!important;padding:0!important;grid-column:1;grid-row:1}
  html.sfm-thin body#global_page_user-profile-index .layout_page_user_profile_index>.layout_main>.layout_middle{width:auto!important;grid-column:2;grid-row:1;min-width:0}
  html.sfm-thin body#global_page_user-profile-index .layout_page_user_profile_index>.layout_main>.layout_left>.theiaStickySidebar{display:flex!important;flex-direction:column;gap:12px}
  html.sfm-thin body#global_page_user-profile-index .layout_page_user_profile_index>.layout_main>.layout_left>.theiaStickySidebar>.generic_layout_container{padding:0!important;background:none!important}
}
/* v8: feed filter (All Updates / name) as small pills, like Facebook "Posts | Filters" */
html body#global_page_user-profile-index .activity_feed_profile_filters{margin:0 0 10px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body#global_page_user-profile-index .activity_feed_profile_filters ul.activity_filter_tabs{display:flex!important;gap:6px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;width:auto!important}
html body#global_page_user-profile-index .activity_feed_profile_filters li.activity_filter_tabsli{flex:none!important;width:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
html body#global_page_user-profile-index .activity_feed_profile_filters li.activity_filter_tabsli>a{height:28px!important;padding:0 11px!important;font-size:12px!important;font-weight:600!important;border-radius:999px!important;background:#e4e6eb!important;color:#050505!important;display:inline-flex!important;align-items:center!important;gap:5px!important;border:0!important;box-shadow:none!important;line-height:1!important}
html body#global_page_user-profile-index .activity_feed_profile_filters li.activity_filter_tabsli.active>a{background:var(--sfp-red)!important;color:#fff!important}
html body#global_page_user-profile-index .activity_feed_profile_filters li.activity_filter_tabsli>a i{font-size:12px!important}
/* v10: drop-down menus closed until clicked (Bootstrap adds .show) */
html body#global_page_user-profile-index .user_cover_buttons .dropdown-menu:not(.show){display:none!important}
html body#global_page_user-profile-index .user_cover_buttons .dropdown-menu.show{display:block!important;z-index:50}
html body#global_page_user-profile-index .user_cover_buttons .dropdown-menu li{display:block!important;margin:0!important}
html body#global_page_user-profile-index .user_cover_buttons .dropdown-menu .dropdown-item{display:flex!important;align-items:center;gap:6px;height:auto!important;background:none!important;color:#050505!important;padding:7px 12px!important;font-size:13px!important;font-weight:500!important;border-radius:6px!important;white-space:nowrap}
html body#global_page_user-profile-index .user_cover_buttons .dropdown-menu .dropdown-item:hover{background:#f0f2f5!important}
