/* MXH production UI R5: exact Custom publisher/filter/profile/Reels hooks.
   Layout only. Keep uploader, permissions, posts content and player handlers. */
body.mxh-extend-ui .publisher.mxh-nova-composer .publisher-message:not(.colored) {
  min-height:64px;
  padding:12px 14px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:start;
  column-gap:12px;
}
body.mxh-extend-ui .publisher.mxh-nova-composer .publisher-message:not(.colored)>.publisher-avatar {
  position:static;
  width:40px;
  height:40px;
  object-fit:cover;
  align-self:start;
  margin:0;
  transform:none;
}
body.mxh-extend-ui .publisher.mxh-nova-composer .publisher-message:not(.colored)>.colored-text-wrapper {
  min-width:0;
  min-height:40px;
  padding-block:4px;
}
body.mxh-extend-ui .publisher.mxh-nova-composer .publisher-message.no-avatar:not(.colored) {
  display:block;
}
/* The old float-only row collapsed when Custom CSS hid its title. */
body.mxh-extend-ui .posts-filter.mxh-nova-feed-filter {
  display:flow-root;
  min-height:40px;
  margin-bottom:16px;
}
/* Existing upload/crop/remove hooks keep their visibility states. */
body.mxh-extend-ui .profile-header .profile-cover-buttons {
  display:flex;
  align-items:center;
  gap:6px;
  max-width:calc(100% - 24px);
  top:12px;
  left:12px;
  opacity:1;
}
body.mxh-extend-ui .profile-header .profile-cover-buttons>div {
  float:none;
  flex:0 0 auto;
  width:36px;
  height:36px;
  margin:0;
  padding:0;
  background:rgba(17,24,39,.68);
  color:#fff;
}
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-change,
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-crop,
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-delete {
  width:32px;
  height:32px;
  padding:0;
  right:6px;
  opacity:1;
  color:#fff;
  background:rgba(17,24,39,.68);
}
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-change {bottom:6px;}
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-crop {bottom:42px;}
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-delete {bottom:78px;}
body.mxh-extend-ui .profile-header .profile-cover-buttons>div>i,
body.mxh-extend-ui .profile-header .profile-avatar-change>i,
body.mxh-extend-ui .profile-header .profile-avatar-crop>i,
body.mxh-extend-ui .profile-header .profile-avatar-delete>i {
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
body.mxh-extend-ui .profile-header .profile-cover-buttons>div:hover,
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-change:hover,
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-crop:hover,
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.profile-avatar-delete:hover {background:rgba(17,24,39,.88);}
/* Preserve x-hidden and the original reposition save/cancel display toggles. */
body.mxh-extend-ui .profile-header .profile-cover-buttons>.x-hidden,
body.mxh-extend-ui .profile-header .profile-avatar-wrapper>.x-hidden {display:none;}
@media(max-width:575.98px) {
  body.mxh-extend-ui .publisher.mxh-nova-composer .publisher-message:not(.colored) {
    margin:10px;
    padding:10px;
    column-gap:10px;
    min-height:60px;
  }
}
/* The original controls use <=768px while the caption used >=768px. */
body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .reaction-btn,
body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .reaction-btn-icon {
  display:flex;
  align-items:center;
  justify-content:center;
}
body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn .inline-emoji {width:30px;height:30px;}
body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn .inline-emoji .emoji {
  position:static;
  display:block;
  width:100%;
  height:100%;
  transform:none;
}
body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn .inline-emoji .emoji img {display:block;width:100%;height:100%;}
@media(max-width:768px) {
  body.mxh-extend-ui .mxh-r3-reel-player .reel-video-container .video-caption {
    right:90px;
  }
}
/* Keep actions in the visible player when the 420px comments pane is open. */
@media(min-width:768px) {
  body.mxh-extend-ui .reel-container.comments-shown .mxh-r3-reel-player .reel-video-container .video-controlls {
    right:16px;
  }
  body.mxh-extend-ui .reel-container.comments-shown .mxh-r3-reel-player .reel-video-container .video-caption {
    right:86px;
  }
  body.mxh-extend-ui .reel-container.comments-shown .mxh-r3-reel-player>.reel-prev-btn,
  body.mxh-extend-ui .reel-container.comments-shown .mxh-r3-reel-player>.reel-next-btn {
    left:12px;
    right:auto;
    bottom:auto;
    z-index:2;
  }
  body.mxh-extend-ui .reel-container.comments-shown .mxh-r3-reel-player>.reel-prev-btn {top:calc(50% - 52px);}
  body.mxh-extend-ui .reel-container.comments-shown .mxh-r3-reel-player>.reel-next-btn {top:calc(50% + 8px);}
}
/* A landscape phone must retain its whole action rail below the header. */
@media(max-height:600px) {
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions {gap:6px;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .post-avatar {margin-bottom:2px;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .post-avatar-picture {min-width:40px;min-height:40px;width:40px;height:40px;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn {width:40px;height:40px;padding:0;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn .inline-emoji {width:26px;height:26px;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .action-btn>.svg-container {width:26px!important;height:26px!important;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-actions .reaction-btn .reaction-btn-icon .far {font-size:26px;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-action-btn>span {font-size:12px;margin-top:2px;}
  body.mxh-extend-ui .mxh-r3-reel-player .reel-video-container .video-controlls {bottom:10px;}
}
