.mame-post-reactions {
  margin: 36px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mame-post-reactions__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.mame-post-reactions__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.72);
}

.mame-post-reactions__sub {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.42);
}

.mame-post-reactions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mame-post-reaction-btn,
.mame-post-reaction-add,
.mame-post-reaction-pick {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  font: inherit;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.mame-post-reaction-btn:hover,
.mame-post-reaction-add:hover,
.mame-post-reaction-pick:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.mame-post-reaction-btn:active,
.mame-post-reaction-add:active,
.mame-post-reaction-pick:active {
  transform: scale(0.98);
}

.mame-post-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.mame-post-reaction-btn__emoji {
  font-size: 20px;
  line-height: 1;
}

.mame-post-reaction-btn__count {
  min-width: 1.2em;
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.58);
}

.mame-post-reaction-add {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
}

.mame-post-reaction-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mame-post-reaction-pick {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
}

.mame-post-reactions__note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.42);
}

.mame-post-reaction-btn:disabled,
.mame-post-reaction-add:disabled,
.mame-post-reaction-pick:disabled {
  opacity: 0.52;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mame-post-reactions {
    margin-top: 28px;
    padding-top: 16px;
  }

  .mame-post-reactions__title {
    font-size: 12px;
  }

  .mame-post-reaction-btn {
    min-height: 40px;
    padding: 0 12px;
    gap: 7px;
  }

  .mame-post-reaction-btn__emoji {
    font-size: 18px;
  }

  .mame-post-reaction-btn__count {
    font-size: 12px;
  }

  .mame-post-reaction-add,
  .mame-post-reaction-pick {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.mame-post-reactions {
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mame-post-reactions__head {
  margin-bottom: 10px;
}

.mame-post-reactions__title {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.52);
}

.mame-post-reactions__sub {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.32);
}

.mame-post-reactions__buttons {
  gap: 8px;
}

.mame-post-reaction-btn {
  min-height: 36px;
  padding: 0 11px;
  gap: 6px;
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.mame-post-reaction-btn__emoji {
  font-size: 17px;
}

.mame-post-reaction-btn__count {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.46);
}

.mame-post-reaction-add {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.mame-post-reaction-picker {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.018);
  border: 1px solid rgba(0, 0, 0, 0.045);
}

.mame-post-reaction-pick {
  width: 38px;
  height: 38px;
  font-size: 18px;
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.mame-post-reactions__note {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.28);
}

.mame-post-reaction-picker[hidden] {
  display: none !important;
}


/* 横並びラッパー化 */
.mame-post-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* リアクション群 */
.mame-post-reactions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ハート（WP ULike）を箱に */
.wpulike {
  margin-left: 6px;
}

.wpulike .wp_ulike_btn {
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

/* ホバー時少しだけ浮く */
.wpulike .wp_ulike_btn:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

/* 共有ボタン */
.share-buttons,
.sns-share {
  opacity: 0.5;
  margin-left: 6px;
}

/* ホバー時だけ強調 */
.share-buttons:hover,
.sns-share:hover {
  opacity: 1;
}

.mame-post-reactions__head {
  width: 100%;
  margin-bottom: 6px;
}

.mame-post-reactions__note {
  width: 100%;
}

/* さらに確実に下まで覆う固定版 */
body.mame-session-stats-active .post_content::before,
body.mame-session-stats-active .post_content::after {
  position: fixed;
  inset: 90px 0 0 0;
}


/* ここだけ上書き */
body.mame-session-stats-active .post_content::before,
body.mame-session-stats-active .post_content::after {
  bottom: -50vh !important;
}