/*Basic*/
body.tag_header_top_p {
  padding-top: 56px;
}

body.tag_header_top_p .container {
  max-width: 1050px;
}

body.tag_header_top_p .chat-container {
  top: 56px;
  height: calc(100% - 56px);
}

body.tag_header_top_p .tag_home_filters.home {
  top: 56px;
}

body.tag_header_top_p .tag_prods_slidr_prnt {
  max-width: 1040px;
}

body.tag_header_top_p .tag_games_left_pane {
  height: calc(100vh - 176px);
}

body.tag_header_top_p .wow_games {
  max-height: calc(100vh - 249px);
}

body.tag_header_top_p .tag_game_play {
  height: calc(100vh - 151px);
}

body.tag_header_top_p .wow_frnd_map,
body.tag_header_top_p .tag_onboarding_upprnt,
body.tag_header_top_p .tag_onboarding_prnt {
  height: calc(100vh - 146px);
}

body.tag_header_top_p .tag_show_fnd_bottom {
  left: 250px;
}

body.tag_header_top_p .tag_fake_ad {
  max-width: 249px;
}

body.tag_header_top_p .tag_hdr_top_sett {
  margin-left: 90px;
}

body.tag_header_top_p .tag_hdr_top_sett .tag_sett_sidebar {
  top: 56px;
  padding: 10px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.tag_header_top_p .wow_go_live_cont {
  height: calc(100vh - 56px);
}

body.tag_header_top_p .tag_live_sidebar {
  top: 56px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Day/light mode header defaults */
.tag_navbar_top {
  position: fixed;
  z-index: 1045;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  height: 56px;
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tag_navbar_top .tag_header .tag_logo,
.tag_navbar_top .tag_header .tag_logo a,
.tag_navbar_top .header-brand .tag_logo {
  color: #111111;
}

.tag_hdr_droptoggle,
.tag_hdr_droptoggle svg,
.tag_hdr_droptoggle i,
.tag_navbar_top_right .tag_hdr_right a,
.tag_navbar_top_right .tag_hdr_right button,
.tag_navbar_top_right .tag_hdr_right .tag_hdr_droptoggle,
.tag_navbar_top_right .tag_hdr_right svg,
.tag_navbar_top_right .tag_hdr_right i,
.tag_navbar_top_right .tag_hdr_right span:not(.new-update-alert),
.tag_hdr_right a,
.tag_hdr_right button,
.tag_hdr_right svg,
.tag_hdr_right i,
.tag_hdr_right span:not(.new-update-alert),
.tag_hdr_user_dropdown > li > a,
.tag_hdr_user_dropdown > li > a svg,
.tag_hdr_user_submenu a,
.tag_hdr_user_submenu a svg {
  color: #111111;
}

.tag_navbar_top .search-input {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tag_navbar_top .search-input::placeholder {
  color: #666666;
}

.tag_navbar_top .tag_toggle_sidebar svg,
.tag_navbar_top .tag_toggle_sidebar_top svg {
  color: #111111;
}

.tag_navbar_top .tag_toggle_sidebar,
.tag_navbar_top_right .tag_footer_mobi {
  display: block;
}

.tag_navbar_top .header-brand,
.tag_navbar_top .tag_header>.search-container {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.tag_navbar_top .header-brand,
.tag_navbar_top .header-brand img {
  background: transparent;
  box-shadow: none;
}

.tag_navbar_top .header-brand img {
  max-width: 130px;
  max-height: 40px;
  transform: translateZ(0px);
}

.tag_prem {
  background-color: #ff7043;
  background: linear-gradient(-90deg, #efb34e 0%, #ff7043 45%, #ff7043 55%, #efb34e 100%);
  background-size: 300% 300%;
  animation: tag_prem_animation 1.7s ease;
  color: white;
  height: 30px;
  line-height: 30px;
  margin: 0 16px;
  padding: 0 16px;
  font-weight: 500;
  position: relative;
  border-radius: 8px;
  transform: skewX(-25deg);
  transition: all .15s ease-in-out;
  display: inline-block;
  letter-spacing: 0.3px;
}

.tag_prem span {
  transform: skewX(25deg);
  display: block;
}

.tag_prem:hover,
.tag_prem:focus {
  animation: tag_prem_animation 1.7s ease infinite;
  color: white;
}

.tag_navbar_top .tag_header>.search-container {
  margin: 0 auto 0 10px;
  width: 420px;
}

.tag_navbar_top_right .tag_hdr_right>.dropdown .dropdown-menu,
.tag_navbar_top .tag_header>.search-container .dropdown-menu {
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  width: 100%;
  min-width: 350px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 3px 10px;
  position: absolute;
  top: 100%;
  bottom: auto;
  left: auto;
  border-radius: 8px;
  background: #fff;
}

.tag_navbar_top .tag_header>.search-container>form {
  margin: 0 8px;
  z-index: 1;
}

.tag_navbar_top .tag_header>.search-container.show .search-input {
  background: rgb(0 0 0 / 0.08);
  color: #252525;
}

.tag_navbar_top .tag_header>.search-container.show .search-input::placeholder {
  color: #252525;
}

.tag_navbar_top .tag_header>.search-container .dropdown-menu {
  min-width: 100%;
  padding-top: 51px;
  top: -8px;
  z-index: auto;
}

.tag_navbar_top_right .tag_hdr_user_droptoggle,
.tag_navbar_top_right .tag_hdr_user_droptoggle:before {
  border-radius: 2em;
}

.tag_navbar_top_right .tag_hdr_user_droptoggle span {
  font-weight: 500;
  padding: 0 14px 0 5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  display: inline-block;
  vertical-align: middle;
}

.tag_navbar_top_right .tag_hdr_right>.dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  border-color: #fff;
}

.tag_navbar_top .tag_srch_recent,
.tag_navbar_top_right .tag_hdr_right>.dropdown .dropdown-menu .empty_state,
.tag_navbar_top_right .notification-list .notification-text>span,
.tag_navbar_top_right .tag_hdr_user_dropdown>li>a,
.tag_navbar_top_right .tag_hdr_user_dropdown>li>a:hover,
.tag_navbar_top_right .tag_hdr_user_dropdown>li>a:active,
.tag_navbar_top_right .tag_hdr_user_dropdown>li>a:focus,
.tag_navbar_top_right .turn-off-sound,
.tag_navbar_top_right .notification-list .notification-text>span a,
.tag_navbar_top_right .notification-list .ajax-time,
.tag_navbar_top_right .user-request-list .user-info .user-lastseen,
.tag_navbar_top_right .user-request-list .user-info>a,
.tag_navbar_top_right .tag_footer,
.tag_navbar_top_right .tag_footer .tag_footer_links a,
.tag_navbar_top_right .tag_hdr_user_submenu a,
.tag_navbar_top_right .tag_footer .tag_footer_cright .dropup .dropdown-toggle,
.tag_navbar_top_right .notification-list,
.tag_navbar_top_right .user-request-list,
.tag_navbar_top_right .messages-list,
.tag_navbar_top_right .show-message-link,
.tag_navbar_top .search-advanced-container a,
.tag_navbar_top .search-dropdown-result a,
.tag_navbar_top .hashtag-search-result a,
.tag_navbar_top_right .notification-list .notification-text>span {
  color: #252525;
}

.tag_navbar_top_right .tag_hdr_right>.dropdown .dropdown-menu .tag_switch_noti>li>a {
  color: #000;
}

.tag_navbar_top_right .tag_hdr_right>.dropdown .dropdown-menu .tag_switch_noti {
  background: #ecf0f5;
  color: #212529;
}

.tag_navbar_top .tag_header_shadow {
  visibility: visible;
  opacity: 1;
}

@keyframes tag_prem_animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.tag_navbar_top_right .tag_hdr_right {
  left: auto;
  width: auto;
  right: 0;
  z-index: 1045;
  top: 0;
  padding: 9px 15px;
}

/*Sidebar*/
.tag_navbar_top_side {
  max-height: 100%;
  bottom: 0;
  height: calc(100% - 56px);
  position: fixed;
  left: 0;
  top: 56px;
  width: 250px;
  z-index: 99;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dcdcdc;
  background: var(--body-bg);
}

.tag_navbar_top_side .sidebar_innr,
.tag_navbar_top_side_all .sidebar_innr {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 8px;
}

.tag_navbar_top_side .sidebar_innr>.btn {
  line-height: 40px;
  min-height: 45px;
  margin-top: 4px;
  padding: 8px;
  text-align: inherit;
  border-radius: 8px;
}

.tag_navbar_top_side .sidebar_innr>.btn:hover {
  background: rgb(0 0 0 / 0.04);
}

.tag_navbar_top_side .sidebar_innr>.btn svg {
  margin: 0;
  width: 40px;
  height: 40px;
  /* Default chip for uncolored items (See all, Explore, Forum…) — Fresh/sunshine muted, not white */
  background: #eceff1;
  border-radius: 50%;
  padding: 9px;
}

.tag_navbar_top_side .sidebar_innr>.btn span {
  padding: 0 10px;
}

.tag_navbar_top_side .sidebar_innr>.btn.home svg {
  background: #ff9800;
  background: linear-gradient(145deg, #ffb74d 0%, #ff9800 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.albums svg {
  background: #4CAF50;
  background: linear-gradient(145deg, #A5D6A7 0%, #4CAF50 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.watch svg,
.tag_navbar_top_side .sidebar_innr>.btn.reels svg {
  background: #EC407A;
  background: linear-gradient(145deg, #F48FB1 0%, #EC407A 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.watch svg path,
.tag_navbar_top_side .sidebar_innr>.btn.watch svg rect,
.tag_navbar_top_side .sidebar_innr>.btn.reels svg path,
.tag_navbar_top_side .sidebar_innr>.btn.reels svg rect {
  fill: none !important;
  stroke: #fff;
}

.tag_navbar_top_side .sidebar_innr>.btn.saved svg {
  background: #fd3a84;
  background: linear-gradient(145deg, #ffa68d 0%, #fd3a84 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.ads svg {
  background: #d226ff;
  background: linear-gradient(145deg, #eca1ff 0%, #d226ff 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.events svg {
  background: #E91E63;
  background: linear-gradient(145deg, #F48FB1 0%, #E91E63 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.market svg {
  background: #00BCD4;
  background: linear-gradient(145deg, #80DEEA 0%, #00BCD4 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.blogs svg {
  background: #2196F3;
  background: linear-gradient(145deg, #90CAF9 0%, #2196F3 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.pages svg {
  background: #FF9800;
  background: linear-gradient(145deg, #FFCC80 0%, #FF9800 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.groups svg {
  background: #3F51B5;
  background: linear-gradient(145deg, #9FA8DA 0%, #3F51B5 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.nnubia {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.tag_navbar_top_side .sidebar_innr>.btn.nnubia svg {
  display: block;
  margin: 0 auto;
  background: #e40d0d;
  background: linear-gradient(145deg, #ff4d4d 0%, #e40d0d 55%, #8b0000 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.nnubia svg path {
  fill: none !important;
  stroke: #fff;
}

.tag_navbar_top_side .sidebar_innr>.btn.nnubia.is-pop svg {
  animation: nbFabDockPop 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* See all / more — muted chip like Fresh (not a bright white disc) */
.tag_navbar_top_side .sidebar_innr>.btn.see_all svg {
  background: #e4e6eb;
  background: linear-gradient(145deg, #f0f2f5 0%, #e4e6eb 100%);
}

.tag_navbar_top_side .sidebar_innr>.btn.see_all svg path {
  fill: #636F7E;
}

/*Header More*/
body.side_open {
  overflow: hidden;
  overscroll-behavior-y: contain;
}

.tag_toggle_sidebar_top {
  opacity: 0;
  position: fixed;
  top: 10px;
  left: 10px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
  padding: 6px;
  will-change: opacity;
  pointer-events: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
}

body.side_open .tag_toggle_sidebar_top {
  opacity: 1;
  pointer-events: auto;
  z-index: 1046;
}

.tag_navbar_top_side_all {
  position: fixed;
  top: 66px;
  left: 10px;
  box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  padding: 0;
  transform: rotateX(-15deg);
  -webkit-transform-origin: 50% -50px;
  transform-origin: 50% -50px;
  opacity: 0;
  transition: 250ms;
  transition-property: transform, -webkit-transform;
  will-change: transform, opacity;
  pointer-events: none;
}

body.side_open .tag_navbar_top_side_all {
  opacity: 1;
  transform: rotateX(0deg);
  pointer-events: auto;
  z-index: 1046;
}

.tag_navbar_top_side_all_arrow {
  position: absolute;
  top: -18px;
  left: 12px;
  width: 12px;
  height: 12px;
  transform: translateY(12px) rotate(45deg);
  border-radius: 3px 0 0 0;
  background-color: #fff;
  box-shadow: -3px -3px 5px rgba(82, 95, 127, .04);
  z-index: 2;
}

.tag_navbar_top_side_all .sidebar_innr {
  padding: 0 26px 26px;
  max-height: calc(100vh - 200px);
}

.tag_navbar_top_side_all_heading {
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 13px;
  text-transform: uppercase;
  margin: 26px 0 6px;
}

.tag_navbar_top_side_all_sec {
  display: inline-grid;
  grid: auto/repeat(2, 1fr);
  gap: 22px;
}

.tag_navbar_top_side_all_sec a {
  display: block;
  min-width: 180px;
  text-align: inherit;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
  border-radius: 8px;
  line-height: 46px;
  padding: 0 8px;
}

.tag_navbar_top_side_all_sec a svg,
.tag_navbar_top_side_all_sec a img {
  width: 28px;
  height: 28px;
  color: #636F7E;
}

.tag_navbar_top_side_all_sec a:hover {
  background: rgb(0 0 0 / 4%);
}

/*Calls*/
.video-con,
.remote-media video {
  height: calc(100vh - 56px);
  height: calc(var(--vh, 1vh) * 100 - 56px);
}

/*New Code For Overridding SideBar Collepse On All Screen Size*/
.tag_header_top_m {
  margin-left: 90px;
}

.tag_navbar_top_side {
  width: 90px;
}

.tag_navbar_top_side .sidebar_innr,
.tag_navbar_top_side .sidebar_innr>.btn {
  overflow: visible;
}

.tag_navbar_top_side .sidebar_innr>.btn svg {
  margin: 0 auto;
}

.tag_navbar_top_side .sidebar_innr>.btn span {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(40px);
  background: #444;
  color: #fff;
  white-space: nowrap;
  border-radius: 4px;
  line-height: 30px;
  transition: all 0.2s ease;
  visibility: hidden;
  opacity: 0;
}

.tag_navbar_top_side .sidebar_innr>.btn:hover span {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(50px);
}


@media (max-width:1500px) {
  .tag_header_top_m {
    margin-left: 90px;
  }

  .tag_navbar_top_side {
    width: 90px;
  }

  .tag_navbar_top_side .sidebar_innr,
  .tag_navbar_top_side .sidebar_innr>.btn {
    overflow: visible;
  }

  .tag_navbar_top_side .sidebar_innr>.btn svg {
    margin: 0 auto;
  }

  .tag_navbar_top_side .sidebar_innr>.btn span {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(40px);
    background: #444;
    color: #fff;
    white-space: nowrap;
    border-radius: 4px;
    line-height: 30px;
    transition: all 0.2s ease;
    visibility: hidden;
    opacity: 0;
  }

  .tag_navbar_top_side .sidebar_innr>.btn:hover span {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(50px);
  }

  body.tag_header_top_p .tag_show_fnd_bottom {
    left: 90px;
  }

  body.tag_header_top_p .tag_fake_ad {
    display: none;
  }

  body.tag_header_top_p .tag_hdr_top_sett {
    margin-left: 260px;
  }
}

@media (max-width: 1350px) {
  .tag_navbar_top .tag_header {
    padding-right: 0;
    padding-left: 0;
  }

  .tag_navbar_top_right .tag_hdr_user_droptoggle span {
    max-width: 220px;
  }

  .tag_navbar_top .tag_header>.search-container .dropdown-menu {
    right: auto;
  }

  body.tag_header_top_p {
    padding-top: 56px !important;
  }

  body.tag_header_top_p .tag_hdr_top_sett {
    margin-left: 160px;
  }

  .video-con,
  .remote-media video {
    height: calc(100vh - 56px);
    height: calc(var(--vh, 1vh) * 100 - 56px);
  }
}

@media (max-width: 1200px) {
  body.tag_header_top_p .tag_games_left_pane {
    height: 100%;
  }

  body.tag_header_top_p .wow_frnd_map {
    height: 300px;
  }
}

@media (max-width: 1150px) {
  .tag_navbar_top_side,
  .tag_prem {
    display: none;
  }

  .tag_header_top_m {
    margin-left: 0;
  }

  .tag_navbar_top_right .tag_hdr_user_droptoggle span {
    display: none;
  }

  body.tag_header_top_p .tag_show_fnd_bottom {
    left: 0;
  }

  body.tag_header_top_p .tag_hdr_top_sett {
    margin-left: 0;
  }

  body.tag_header_top_p .tag_hdr_top_sett .tag_sett_sidebar {
    top: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
  }
}

@media (max-width:768px) {
  .tag_navbar_top_side_all {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
    transition: none;
    transform: translateY(-105%);
  }

  .tag_navbar_top_side_all_arrow {
    display: none;
  }

  .tag_navbar_top_side_all .sidebar_innr {
    max-height: 100%;
    padding: 0 15px 15px;
  }

  body.side_open .tag_toggle_sidebar_top {
    z-index: 1047;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
  }

  body.side_open .tag_navbar_top_side_all {
    padding: 60px 0 0;
    transform: none;
  }

  .tag_navbar_top_side_all_sec {
    gap: 15px;
  }

  .tag_navbar_top_side_all_sec a {
    min-width: 50%;
    line-height: normal;
    padding: 13px;
  }

  .tag_navbar_top_side_all_sec a svg,
  .tag_navbar_top_side_all_sec a img {
    display: block;
    margin: 0 0 7px;
  }

  body.tag_header_top_p .tag_home_filters.home {
    top: auto;
  }

  .tag_navbar_top .tag_header>.search-container {
    width: 100%;
  }

  .tag_navbar_top .tag_header>.search-container>form {
    z-index: auto;
  }

  .tag_navbar_top_right .tag_hdr_right {
    position: fixed;
    top: auto;
    right: 0;
    left: 120px;
    padding: 0;
  }

  .tag_navbar_top_right .tag_hdr_right>.dropdown .dropdown-menu {
    position: fixed;
    top: 0;
    bottom: 45px;
    left: 0;
    border-radius: 0;
    max-height: calc(100% - 45px);
    box-shadow: none;
    padding: 6px 10px;
  }

  .tag_navbar_top .tag_header>.search-container .dropdown-menu {
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 15px 15px;
  }

  .tag_navbar_top .tag_header>.search-container.show .search-input {
    background: rgb(0 0 0 / 0.08);
    color: #252525;
  }

  .tag_navbar_top .tag_header>.search-container.show .search-input::placeholder {
    color: #252525;
  }

  .video-con,
  .remote-media video {
    height: calc(100vh - 101px);
    height: calc(var(--vh, 1vh) * 100 - 101px);
  }
}

@media (max-width: 520px) {
  .tag_navbar_top .tag_header>.search-container {
    margin: 0;
  }

  .tag_navbar_top .tag_header>.search-container .dropdown-menu {
    margin: 0;
    box-shadow: none;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 56px;
    border-radius: 0;
    max-height: 100%;
    padding: 5px 12px 15px;
  }

  .tag_navbar_top_right .tag_hdr_right.low {
    z-index: -1;
  }

  .tag_navbar_top .tag_expand_search.tag_header>.search-container.show {
    padding: 5px 10px;
  }

  .tag_navbar_top_right .tag_hdr_right {
    left: 100px;
  }

  body.tag_header_top_p .tag_hdr_top_sett .tag_sett_sidebar {
    top: 56px;
  }

  .video-con,
  .remote-media video,
  body.tag_header_top_p .tag_onboarding_upprnt,
  body.tag_header_top_p .tag_onboarding_prnt {
    height: 100%;
  }

  body.tag_header_top_p .wow_frnd_map {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .tag_navbar_top_right .tag_hdr_right {
    left: 80px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Timeline Infinite Scroll Performance — CSS Rendering Containment
   Technique used by Facebook, Instagram, Twitter for long feeds.

   content-visibility: auto
     Tells the browser: "if this element is off-screen, skip its layout,
     paint, and composite phases entirely." Off-screen posts cost near-zero
     GPU/CPU time regardless of how many are in the DOM.

   contain-intrinsic-size
     Provides a stable estimated height so $(document).height() /
     document.documentElement.scrollHeight stays accurate even while posts
     are skipped. 600px is a safe over-estimate for an average post.
     Without this, the document would collapse as posts are skipped,
     causing the IntersectionObserver sentinel to fire incorrectly.

   Supported by all modern browsers (Chrome 85+, Firefox 113+, Safari 17+).
   Older browsers silently ignore it — zero degradation.
   ───────────────────────────────────────────────────────────────────────────── */

/* On mobile the estimated post height is slightly smaller (no sidebar content) */
@media (max-width: 768px) {
  .post-container {
    margin-bottom: 1px !important;
    contain-intrinsic-size: auto 480px;
  }
}

/* Sentinel element created by IntersectionObserver scroll logic.
   transform: translateZ(0) forces it to its own compositor layer so the
   browser can detect intersection without triggering a full document reflow. */
#wo-scroll-sentinel {
  transform: translateZ(0);
  will-change: transform;
}

/* The placeholder sits above the posts that are about to arrive. Removing it
   must not drag the page — scroll anchoring treats that gap as a jump. */
#posts .loading-status {
  overflow-anchor: none;
}

/* Two loading cards, the same placeholder the original feed draws. */
#wo-feed-skeleton {
  overflow-anchor: none;
}

/* Classic Timeline V2: a short compositor-only reveal after a page lands. */
.post-container.wo-feed-entering {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 220ms ease-out, transform 260ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.post-container.wo-feed-entering.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .post-container.wo-feed-entering,
  .post-container.wo-feed-entering.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Data Saver keeps feedback immediate but avoids decorative compositor work. */
html.wo-data-saver .post-container.wo-feed-entering,
html.wo-data-saver .post-container.wo-feed-entering.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Profile, page, and group sidebars. Theia rewrote the column height whenever
   the skeleton cards changed size, so the feed vibrated. Pin once instead. */
@media (min-width: 833px) {
  .row > .custom-fixed-side {
    align-self: flex-start;
    position: relative;
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
  }
  .tag_profile_side_pin {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-anchor: none;
    scrollbar-width: none;
  }
  .tag_profile_side_pin.is-pinned {
    position: fixed;
    top: 66px;
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
    max-height: calc(100dvh - 82px);
    z-index: 3;
  }
  .tag_profile_side_pin::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

#wo-scroll-sentinel-top {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

#wo-timeline-spacer-top {
  width: 100%;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

html.wo-home-feed:not(.wo-new-timeline),
html.wo-home-feed:not(.wo-new-timeline) body {
  /* none, not contain: iOS Safari's native pull-to-refresh is a full reload. */
  overscroll-behavior-y: none;
}

/* Feed YouTube players stay one layer. Night mode otherwise fades every iframe
   and sets color-scheme:dark, and Chrome flashes that dark canvas while scrolling.
   The autoplay facade still waits for .is-yt-ready before it is shown. */
#posts .post-youtube > iframe,
#posts .wo-feed-youtube > iframe {
  pointer-events: none;
}
#posts .post-youtube.is-media-interactive > iframe,
#posts .wo-feed-youtube.is-media-interactive > iframe {
  pointer-events: auto;
}
#posts .post-youtube > iframe {
  background-color: #000 !important;
  color-scheme: normal;
  opacity: 1 !important;
  transition: none !important;
}
#posts .wo-feed-youtube > iframe.wo-feed-yt-frame {
  background-color: #000 !important;
  color-scheme: normal;
  transition: none !important;
}

.wo-scroll-retry {
  margin: 8px 10px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--header-background, #fff);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  /* Do not promote #posts — a giant transformed layer tears / Jetsams on iOS. */

  /* Disable excessive backdrop filters on mobile to save GPU/Battery */
  *,
  *::before,
  *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ── BUG 2 fix: Enable native scroll anchoring ────────────────────────────
   Chrome 56+, Firefox 66+, Safari 17+ handle scroll position compensation
   natively when DOM nodes above the viewport are removed (pruning).
   This replaces manual scrollBy() compensation on modern browsers. */
/* Chrome & Firefox handle native scroll anchoring perfectly */
body,
.main-content,
#posts {
  overflow-anchor: auto;
}

/* iOS Safari overrides: WebKit's native anchor recalculation crashes on large DOM prunes.
   Disabling it forces the JS engine to use our manual safe scroll compensation and prevents upward blinking. */
@supports (-webkit-touch-callout: none) {

  body,
  .main-content,
  #posts {
    overflow-anchor: none !important;
  }
}

/* Pre-allocates layout space before lazy images load to stop scrollbar blinking */
.post-container .photo-data,
.post-file {
  position: relative;
  width: 100%;
  /* Removed forced aspect-ratio — was causing black/empty flash before images rendered */
  overflow: hidden;
}

.post-container .photo-data img,
.post-container img.post-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(85vh, 1100px);
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* Single uploaded photos fill the card at their real aspect ratio.
   No height cap and no object-fit crop — that is how Wondertag draws them. */
.post-container .tag_post_full_img picture {
  display: block;
  width: 100%;
  max-width: 100%;
}

.post-container .tag_post_full_img img,
.post-container .tag_post_full_img .image-file {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  object-fit: fill;
}

/* Known file size: the img width/height and inline aspect-ratio hold the box. */
.post-container img.post-image[width][height] {
  width: 100%;
  height: auto;
}

.post-container .tag_post_full_img img[width][height] {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: fill;
}

.wo-feed-poster {
  padding: 0;
}
.wo-feed-poster > .panel {
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 10px;
}
.wo-feed-poster .wo-feed-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 15px 15px 0;
}
.wo-feed-poster .wo-feed-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.wo-feed-poster .tag_post_section_indicator_link {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin: 0 0 0 6px;
  position: relative;
  top: 0;
  text-decoration: none !important;
  vertical-align: middle;
}
.wo-feed-poster .tag_post_section_indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px 1px 6px;
  background: #f3f3f3;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  white-space: nowrap;
}
.wo-feed-poster .tag_post_section_dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e10600;
  flex: 0 0 5px;
}
.wo-feed-poster .tag_post_section_badge {
  color: #444444;
  font-family: 'Readex Pro', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}
body.night_mode .wo-feed-poster .tag_post_section_indicator,
.night_mode .wo-feed-poster .tag_post_section_indicator {
  background: rgb(255 255 255 / 8%);
  border-color: #3d3d3d;
}
body.night_mode .wo-feed-poster .tag_post_section_badge,
.night_mode .wo-feed-poster .tag_post_section_badge {
  background: transparent;
  color: #f0f0f0;
}
body.night_mode .wo-feed-poster .tag_post_section_dot,
.night_mode .wo-feed-poster .tag_post_section_dot {
  background: #38bdf8;
}
.wo-feed-poster .wo-feed-name-line .verified-color {
  display: inline-flex;
  margin-left: 4px;
}
.wo-feed-poster .wo-feed-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 12px;
}
.wo-feed-poster .wo-feed-sub .time,
.wo-feed-poster .wo-feed-sub .middot {
  font-weight: 400;
  opacity: 0.7;
}
.wo-feed-poster .wo-feed-head .tag_post_hdr_menu {
  margin-left: auto;
}
.wo-feed-poster .wo-feed-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wo-feed-poster .wo-feed-name-line {
  display: block;
  line-height: 1.4;
}
.wo-feed-poster .wo-feed-name-line .wo-feed-name,
.wo-feed-poster .wo-feed-name-line .wo-feed-kind,
.wo-feed-poster .wo-feed-name-line .wo-feed-shared,
.wo-feed-poster .wo-feed-name-line .verified-color {
  display: inline;
  vertical-align: middle;
}
.wo-feed-poster .wo-feed-name {
  color: inherit;
  text-decoration: none;
}
.wo-feed-poster .wo-feed-shared,
.wo-feed-poster .wo-feed-kind {
  font-weight: 400;
  font-size: 14px;
}
.wo-feed-poster .wo-feed-product .wow_post_prod {
  margin: 12px 0 0;
}
.wo-feed-poster .wow_post_prod_infos,
.wo-feed-poster .product-name {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.wo-feed-poster .tag_post_prods_btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
}
.wo-feed-poster .tag_post_prods_btns > .btn,
.wo-feed-poster .tag_post_prods_btns > .btn-success {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
}
.wo-feed-poster .artwork-vote-block--feed {
  margin: 12px 0 0;
}
.wo-feed-poster .artwork-vote-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wo-feed-poster .artwork-vote-chevron {
  font-weight: 500;
  opacity: 0.7;
  font-size: 13px;
}
.wo-feed-poster .artwork-vote-chevron::before {
  content: "·";
  margin-right: 8px;
  font-weight: 400;
  opacity: 1;
}
.wo-feed-poster .artwork-vote-avg {
  color: #ffb33e;
}
.wo-feed-poster .artwork-vote-details[hidden] {
  display: none !important;
}
.wo-feed-poster .artwork-vote-details {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.wo-feed-poster .wo-feed-vote-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.wo-feed-poster .wo-feed-vote-row span {
  color: #ffb33e;
  white-space: nowrap;
}
.wo-feed-poster .pr_stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}
.wo-feed-poster .pr_stars .star {
  width: 16px;
  height: 16px;
}
.wo-feed-poster .wo-feed-offer {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 15px;
  background: #e10600;
  color: #fff;
  font-size: 12px;
}
.wo-feed-poster .wo-feed-audio {
  display: block;
  margin: 12px 0 0;
}
.wo-feed-poster .wo-feed-audio audio {
  display: block;
  width: 100%;
}
.wo-feed-poster .wo-feed-audio-name,
.wo-feed-poster .wo-feed-file {
  display: block;
  margin: 0 0 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.wo-feed-poster .wo-feed-file {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.wo-feed-poster .wo-feed-sticker {
  display: block;
  max-width: 240px;
  max-height: 240px;
  margin: 12px 0 0;
}
.wo-feed-poster .postCategory {
  display: inline-block;
  margin: 0 0 6px;
}
.wo-feed-poster .wo-event-cover {
  position: relative;
  display: block;
}
.wo-feed-poster .wo-event-date {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-block;
  padding: 8px 10px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  text-align: center;
  line-height: 1.1;
}
.wo-feed-poster .wo-event-date span,
.wo-feed-poster .wo-event-date b {
  display: block;
  margin: 0;
}
.wo-feed-poster .wo-feed-time {
  margin-left: 0;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}
.wo-feed-poster .wo-feed-body {
  padding: 8px 15px 12px;
}
.wo-feed-poster .wo-feed-link {
  display: block;
  margin: 8px -15px 0;
  overflow: hidden;
}
.wo-feed-poster .wo-feed-link-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: fill;
}
.wo-feed-poster .post-fetched-url,
.wo-feed-poster .post-fetched-url > a {
  display: block;
}
.wo-feed-poster .post-fetched-url {
  margin: 8px -15px 0;
}
.wo-feed-poster .post-fetched-url .post-youtube {
  margin: 0;
}
.wo-feed-poster .fetched-url-text {
  margin: 8px 15px 0;
}
.wo-feed-poster .tri-oembed-card {
  margin: 8px 0 0;
  color: inherit;
  text-decoration: none;
}
.wo-feed-poster .tri-oembed-card:hover,
.wo-feed-poster .tri-oembed-card:focus {
  color: inherit;
  text-decoration: none;
}
.wo-feed-poster .wo-feed-link strong,
.wo-feed-poster .wo-feed-link span {
  display: block;
  margin: 8px 15px 0;
}
.wo-feed-poster .wo-feed-photo,
.wo-feed-poster .wo-feed-album,
.wo-feed-poster .wo-feed-video-poster,
.wo-feed-poster .youtube-facade {
  display: block;
  position: relative;
  margin: 8px -15px 0;
  background: transparent;
  overflow: hidden;
}
.wo-feed-poster .wo-feed-video-poster,
.wo-feed-poster .youtube-facade,
.wo-feed-poster .wo-feed-youtube {
  min-height: 220px;
  background: #111;
}
.wo-feed-poster .wo-feed-youtube {
  position: relative;
  overflow: hidden;
}
.wo-feed-poster .wo-feed-youtube > iframe.wo-feed-yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  z-index: 1;
}
.wo-feed-poster .wo-feed-youtube.is-yt-ready > iframe.wo-feed-yt-frame {
  opacity: 1;
}
.wo-feed-poster .wo-feed-youtube.is-yt-ready > .wo-feed-play {
  visibility: hidden;
}
.wo-feed-poster .wo-feed-video {
  display: block;
  position: relative;
  margin: 8px -15px 0;
  background: #000;
  overflow: hidden;
}
.wo-feed-poster video.wo-feed-inline-video,
.wo-feed-poster video.tp-inline-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #000;
}
.wo-feed-poster .wo-feed-video.is-portrait {
  aspect-ratio: 4 / 5;
}
.wo-feed-poster .wo-feed-video.is-square {
  aspect-ratio: 1 / 1;
}
.wo-feed-poster .wo-feed-body > .wo-feed-video.is-reel {
  width: calc(100% + 30px);
  min-width: calc(100% + 30px);
  max-width: none;
  margin-left: -15px;
  margin-right: -15px;
}
.wo-feed-poster .wo-feed-body > .tp-reel-cta-row {
  margin-left: -15px;
  margin-right: -15px;
  width: calc(100% + 30px);
}
.wo-feed-poster .wo-feed-reel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.wo-feed-poster .wo-feed-video.is-portrait video.wo-feed-inline-video,
.wo-feed-poster .wo-feed-video.is-square video.wo-feed-inline-video,
.wo-feed-poster .wo-feed-video.is-landscape video.wo-feed-inline-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wo-feed-poster .wo-feed-video.is-portrait video.wo-feed-inline-video,
.wo-feed-poster .wo-feed-video.is-square video.wo-feed-inline-video {
  object-fit: cover;
}
@media (max-width: 768px) {
  .wo-feed-poster .wo-feed-video.is-portrait {
    aspect-ratio: 9 / 16;
    max-height: 80vh;
  }
}
.wo-feed-poster .post-youtube > .wo-feed-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.wo-feed-poster .post-youtube > .wo-feed-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wo-feed-poster .wo-feed-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.wo-feed-poster .wo-feed-video-play svg {
  width: 32px;
  height: 32px;
  margin-left: 3px;
  fill: currentColor;
}
.wo-feed-poster .wo-feed-video.is-playing .wo-feed-video-play {
  opacity: 0;
  pointer-events: none;
}
.wo-feed-poster .wo-feed-video.is-playing:hover .wo-feed-video-play,
.wo-feed-poster .wo-feed-video.is-playing.is-chrome .wo-feed-video-play,
.wo-feed-poster .wo-feed-video.is-playing:focus-within .wo-feed-video-play {
  opacity: 1;
  pointer-events: auto;
}
.wo-feed-poster .wo-feed-video.is-playing .wo-feed-video-play svg {
  margin-left: 0;
}
.wo-feed-poster .wo-feed-video-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}
.wo-feed-poster .wo-feed-video-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.wo-feed-poster .wo-feed-video-progress-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #fff;
}
.wo-feed-poster .wo-feed-video-tools {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.wo-feed-poster .wo-feed-video-time {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  opacity: 0;
}
.wo-feed-poster .wo-feed-video:hover .wo-feed-video-time,
.wo-feed-poster .wo-feed-video.is-chrome .wo-feed-video-time,
.wo-feed-poster .wo-feed-video:not(.is-playing) .wo-feed-video-time,
.wo-feed-poster .wo-feed-video:focus-within .wo-feed-video-time {
  opacity: 1;
}
.wo-feed-poster .wo-feed-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  pointer-events: auto;
}
.wo-feed-poster .wo-feed-mute {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
}
.wo-feed-poster .wo-feed-mute svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wo-feed-poster .wo-feed-volume-range {
  width: 0;
  height: 18px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  accent-color: #fff;
  touch-action: none;
}
.wo-feed-poster .wo-feed-volume:hover .wo-feed-volume-range,
.wo-feed-poster .wo-feed-volume:focus-within .wo-feed-volume-range,
.wo-feed-poster .wo-feed-video.is-chrome .wo-feed-volume-range {
  width: 78px;
  opacity: 1;
  pointer-events: auto;
}
.wo-feed-poster .avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.wo-feed-poster .wo-feed-text {
  margin: 0 0 8px;
}
.wo-feed-poster .wo-feed-copy {
  position: relative;
}
.wo-feed-poster .wo-feed-more-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wo-feed-poster .wo-feed-text.wo-feed-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
  margin-bottom: 0;
}
.wo-feed-poster .wo-feed-more-state:checked + .wo-feed-text.wo-feed-clamped {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.wo-feed-poster .wo-feed-more {
  display: inline-block;
  margin: 4px 0 8px;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wo-feed-poster .wo-feed-more::before {
  content: attr(data-more);
}
.wo-feed-poster .wo-feed-more-state:checked ~ .wo-feed-more::before {
  content: attr(data-less);
}
.wo-feed-poster .wo-feed-feeling {
  display: inline;
  margin-left: 6px;
  font-weight: 400;
  opacity: 0.8;
}
.wo-feed-poster .wo-feed-color {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 8px -15px 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  background-position: center;
}
.wo-feed-poster .wo-feed-color.is-long {
  display: block;
}
.wo-feed-poster .wo-feed-color.is-long .wo-feed-text {
  margin-bottom: 0;
  line-height: 1.35;
}
.wo-feed-poster .wo-feed-color .wo-feed-more {
  display: block;
  margin-top: 12px;
  text-align: center;
}
.wo-feed-poster .wo-feed-share-card {
  display: block;
  margin: 8px 0 4px;
  padding: 12px 12px 0;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 12px;
  overflow: hidden;
}
.wo-feed-poster .wo-feed-quote-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: inherit;
  font-weight: 600;
}
.wo-feed-poster .wo-feed-quote-author > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.wo-feed-poster .wo-feed-quote-author .avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
}
.wo-feed-poster .wo-feed-share-card .wo-feed-link,
.wo-feed-poster .wo-feed-share-card .wo-feed-photo,
.wo-feed-poster .wo-feed-share-card .wo-feed-album,
.wo-feed-poster .wo-feed-share-card .wo-feed-video-poster,
.wo-feed-poster .wo-feed-share-card .youtube-facade {
  margin-left: -12px;
  margin-right: -12px;
}
.wo-feed-poster .tag_post_actions {
  margin-top: 12px;
}
.wo-feed-poster img {
  max-width: 100%;
  height: auto;
}
.wo-feed-poster .wo-feed-counts,
.wo-feed-poster .wo-feed-blog,
.wo-feed-poster .wo-feed-video-poster,
.wo-feed-poster .wo-feed-album,
.wo-feed-poster .wo-feed-photo {
  display: block;
}
.wo-feed-poster .wo-feed-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: transparent;
  font-size: 0;
}
.wo-feed-poster .wo-feed-play::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 22px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

/* Unknown size: a fixed skeleton. Do not guess 16/9. */
.post-container img.post-image.wo-media-unsized,
.post-container .tag_post_full_img img.wo-media-unsized {
  width: 100%;
  height: 240px;
  max-height: 240px;
  object-fit: contain;
  background: rgba(127, 127, 127, 0.12);
}






/* Facebook Layout Replication: Native feed rhythm overrides */

/* 1. Facebook specifically lacks padding below the action buttons when there are no comments */
.post .post-footer {
    padding-bottom: 5px !important;
}

/* Original Wondertag puts the gap on .panel (20px, 10px below 520px).
   The card margin is zeroed so that 20px is not added twice. */
.post .panel {
    margin-bottom: 0px !important; 
}
.post_wrapper {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

#posts .post-container,
.saved-posts .post-container,
#posts .tag_sidebar_widget.wow_content {
    margin-bottom: 20px !important;
    margin-top: 0px !important;
}

/* Each feed card is its own box. The pause after a post is padding, so it
   cannot collapse into the next card the way a margin on .post-container can.
   .post_wrapper and .panel are forced to margin 0 above. */
#posts .posts-container-root > .promoted-post,
#posts .posts-container-root .post_wrapper,
.saved-posts .post_wrapper {
    display: flow-root;
    position: relative;
    z-index: 0;
    clear: both;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
#posts .posts-container-root .post_wrapper,
.saved-posts .post_wrapper {
    padding-bottom: 20px !important;
}
#posts .posts-container-root .post-container,
.saved-posts .post_wrapper .post-container {
    margin-bottom: 0 !important;
}
#posts .posts-container-root .wo-feed-head,
#posts .posts-container-root .post-heading,
.saved-posts .wo-feed-head,
.saved-posts .post-heading {
    position: relative;
    margin-top: 0;
}

/* Profile Timeline V2: real cards keep site .panel / feed margins — zero under results.
   Spacing between posts is owned by #ptv2-results flex gap (REF), not Facebook 15px. */
#ptv2-results .post-container,
#ptv2-results .post_wrapper,
#ptv2-results .post .panel,
#ptv2-results .panel {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Mobile timeline post rendering: match fresh.tribbbal.com native WonderTag rules */
@media (max-width: 520px) {
  .post:not(.wo_imagecombo_lbox),
  .tag_pub_box_bg {
    margin-left: -10px !important;
    margin-right: -10px !important;
  }
  .post .panel,
  .tag_pub_box_bg,
  .tag_page_side_no_m,
  .tag_post_skel {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .post .panel {
    margin-bottom: 10px !important;
  }
  #posts .posts-container-root .post_wrapper,
  .saved-posts .post_wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  #posts .post-container,
  .saved-posts .post-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }
  #posts .tag_sidebar_widget.wow_content {
    margin-bottom: 15px !important;
  }
}

.tag_home_filters.home > .filterby {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.tag_home_post_order .btn-mat.has-date {
  color: var(--main);
  padding: 0 12px 0 8px;
}

.tag_home_post_order .wo-feed-when-label {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}

.tag_home_post_order .wo-feed-when-label[hidden] {
  display: none !important;
}

.tag_home_post_order .dropdown-menu .divider {
  margin: 6px 8px;
  background-color: rgba(128, 128, 128, 0.35);
}

.wo-feed-when-item {
  padding: 0 !important;
}

.wo-feed-when-menu {
  margin: 0;
  padding: 4px 18px 10px;
}

.wo-feed-when-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
}

.wo-feed-when-menu label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.wo-feed-when-menu select {
  display: block;
  width: 100%;
  margin-top: 4px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(128, 128, 128, 0.15);
  color: inherit;
}

.wo-feed-when-clear {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

/* One unified home-feed filter: ordering, date and advanced post fields. */
.tag_home_post_order .dropdown-menu { width: min(390px, calc(100vw - 28px)); }
.tag_home_post_order .home-advanced-filter-item { padding: 0 !important; }
.tag_home_post_order .home-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tag_home_post_order .home-filter-check { display: flex !important; align-items: center; gap: 7px; margin: 2px 0 14px !important; }
.tag_home_post_order .home-filter-check input { margin: 0; }
.tag_home_post_order .home-filter-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; opacity: .7; }
.tag_home_post_order .home-filter-types { display: flex; flex-wrap: wrap; gap: 7px; }
.tag_home_post_order .home-filter-types label { margin: 0 !important; }
.tag_home_post_order .home-filter-types input { position: absolute; opacity: 0; pointer-events: none; }
.tag_home_post_order .home-filter-types span { display: block; padding: 6px 10px; border-radius: 18px; background: rgba(128,128,128,.16); font-size: 12px; cursor: pointer; }
.tag_home_post_order .home-filter-types input:checked + span { background: var(--main); color: #fff; }
.tag_home_post_order .home-filter-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(128,128,128,.25); }
.tag_home_post_order .home-filter-actions .btn-mat { min-width: 82px; line-height: 34px; padding: 0 16px; }
.tag_home_post_order #wo-feed-when-menu select {
  color-scheme: dark;
  appearance: auto;
  -webkit-appearance: menulist;
  background-color: #3b3b3b;
  color: #f4f4f4;
  border: 1px solid #505050;
}
.tag_home_post_order #wo-feed-when-menu select option {
  background-color: #2d2d2d;
  color: #f4f4f4;
}
.tag_home_post_order #wo-feed-when-menu select:disabled {
  background-color: #303030;
  color: #888;
  opacity: 1;
}
.tag_home_post_order .home-filter-types span {
  background: #414141;
  color: #ededed;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tag_home_post_order .home-filter-types label:hover span { border-color: var(--main); }
.tag_home_post_order .home-filter-types input:focus-visible + span { outline: 2px solid var(--main); outline-offset: 2px; }
.tag_home_post_order .home-filter-types input:checked + span { background: var(--main); color: #fff; }
.tag_home_post_order .home-filter-actions #home-filter-clear {
  color: #f2f2f2;
  padding: 8px 4px;
}
.tag_home_post_order .home-filter-actions #home-filter-clear:hover { color: var(--main); }
.tag_home_post_order .home-filter-actions #home-filter-apply.btn-mat {
  background: var(--main) !important;
  color: #fff !important;
  border-radius: 22px;
  box-shadow: 0 3px 10px rgba(238, 25, 30, .25);
}
.tag_home_post_order .home-filter-actions #home-filter-apply.btn-mat:hover { filter: brightness(1.08); }
@media (max-width: 480px) {
  .tag_home_post_order .dropdown-menu {
    position: fixed !important;
    top: 68px !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    width: auto;
    max-height: calc(100vh - 142px);
    max-height: calc(100dvh - 142px);
    overflow-y: auto;
    transform: none !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .tag_home_post_order .home-filter-grid { grid-template-columns: 1fr; }
}
