<style>
/* =====================================================
   Medium Inline Actions – FIXED (Bubble Anchoring)
   ===================================================== */

/* =========================
   Base Reset
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   Layout
   ========================= */

.mcs-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 5px 0;
  user-select: none;
}

.mcs-left,
.mcs-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mcs-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* =========================
   Icon Buttons
   ========================= */

.mcs-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #3a3a3a;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mcs-btn:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.mcs-btn:active {
  transform: scale(0.92);
}

.mcs-btn svg {
  pointer-events: none;
}

/* 🔑 REQUIRED FOR BUBBLE + BURST */
.mcs-clap-btn {
  position: relative;
}

/* =========================
   Clap States
   ========================= */

.mcs-clap-btn.mcs-clapped {
  color: #242424;
}

.mcs-clap-btn.mcs-pumping {
  animation: mcs-pump 0.25s cubic-bezier(0.36,0.07,0.19,0.97);
}

@keyframes mcs-pump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* =========================
   Count Labels
   ========================= */

.mcs-count {
  font-size: 14px;
  line-height: 1;
  min-width: 20px;
  color: #777;
	font-weight: 500;
}

.mcs-count.mcs-active {
  color: #777;
  font-weight: 500;
}
	
.mcs-action-bar a .qs{
	color:#2c3e50;
	margin-top:5px;
	
}

/* =========================
   Separator
   ========================= */

.mcs-sep {
  width: 1px;
  height: 20px;
  background: #f2f2f2;
}

/* =========================
   Bookmark
   ========================= */

.mcs-bookmark-btn.mcs-saved svg path {
  fill: #242424;
}

	
	
	.mcs-bookmark-remove {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  outline: none;
  color: #242424;
  -webkit-tap-highlight-color: transparent;
}
.mcs-bookmark-remove:hover {
  background: #f2f2f2;
  border-color: #242424;
  transform: scale(1.08);
}
.mcs-bookmark-remove:active {
  transform: scale(0.95);
}
.mcs-bookmark-remove svg {
  pointer-events: none;
}
.mcs-bookmark-remove svg path {
  fill: #242424;
}

/* Removing animation */
.mcs-bookmark-item.mcs-removing {
  animation: mcs-fade-out 0.3s ease forwards;
}
	
	
/* =========================
   Floating +N Bubble
   ========================= */

.mcs-bubble-wrap {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.mcs-bubble {
  background: #39f213;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  opacity: 0;
  white-space: nowrap;
}

.mcs-bubble.mcs-bubble-active {
  animation: mcs-bubble-float 1.2s cubic-bezier(0.22,0.61,0.36,1) forwards;
}

@keyframes mcs-bubble-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
  80%  { opacity: 1; transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.9); }
}

/* =========================
   Burst Particles
   ========================= */

.mcs-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mcs-burst-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #242424;
  opacity: 0;
  position: absolute;
}

.mcs-burst-dot.mcs-fire {
  animation: mcs-burst-out 0.55s ease-out forwards;
}

@keyframes mcs-burst-out {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx,0), var(--ty,0)) scale(0.3); }
}

/* =========================
   Share Popover
   ========================= */

.mcs-share-wrap {
  position: relative;
}

/*.mcs-share-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
	padding: 2px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.14),
    0 16px 32px rgba(0,0,0,0.10);
  transition: opacity 0.18s ease,
              transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999;
}

.mcs-share-popover.mcs-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}*/
	
	
	/* =====================================================
   SHARE POPOVER – ALL IN ONE (MEDIUM STYLE)
   ===================================================== */

/* ---------- Wrapper ---------- */

.mcs-share-wrap {
  position: relative;
}

/* ---------- Popover Base ---------- */

.mcs-share-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px;
  background: #ffffff;
  border-radius: 6px;

  opacity: 0;
  pointer-events: none;

  box-shadow:
    0 4px 10px rgba(0,0,0,0.14),
    0 16px 32px rgba(0,0,0,0.10);

  transition:
    opacity 0.18s ease,
    transform 0.18s cubic-bezier(0.34,1.56,0.64,1);

  z-index: 9999;
}

/* ---------- Open State ---------- */

.mcs-share-popover.mcs-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   TOOLTIP ARROW
   ===================================================== */

.mcs-share-popover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

/* =====================================================
   RIGHT SIDE (DEFAULT)
   ===================================================== */

.mcs-share-popover.is-right {
  left: calc(100% + 12px);
  bottom: 50%;
  transform: translateY(50%) translateX(6px);
}

.mcs-share-popover.is-right.mcs-open {
  transform: translateY(50%) translateX(0);
}

.mcs-share-popover.is-right::after {
  left: -6px;
  bottom: 50%;
  transform: translateY(50%);

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #ffffff;
  border-left: none;
}

/* =====================================================
   LEFT SIDE
   ===================================================== */

.mcs-share-popover.is-left {
  right: calc(100% + 12px);
  left: auto;
  bottom: 50%;
  transform: translateY(50%) translateX(-6px);
}

.mcs-share-popover.is-left.mcs-open {
  transform: translateY(50%) translateX(0);
}

.mcs-share-popover.is-left::after {
  right: -6px;
  left: auto;
  bottom: 50%;
  transform: translateY(50%);

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #ffffff;
  border-right: none;
}

/* =====================================================
   MOBILE – TOUCH OPTIMIZED FULL WIDTH
   ===================================================== */

@media (max-width: 768px) {
  .mcs-share-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 16px;
    top: auto;

    justify-content: center;
    border-radius: 10px;

    transform: translateY(24px);
  }

  .mcs-share-popover.mcs-open {
    transform: translateY(0);
  }

  /* Remove arrow on mobile */
  .mcs-share-popover::after {
    display: none;
  }
}

	
	
	


.mcs-share-link {
  background: transparent;
  border: none;
  padding: 6px;
  color: #3a3a3a;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mcs-share-link:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* =========================
   Toast
   ========================= */

.mcs-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #242424;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease,
              transform 0.22s cubic-bezier(0.34,1.3,0.64,1);
}

.mcs-toast.mcs-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   Dark Mode
   ========================= */

@media (prefers-color-scheme: dark) {

  .mcs-btn,
  .mcs-share-link {
    color: #777;
  }

  .mcs-count {
    color: #777;
  }

  .mcs-count.mcs-active {
    color: #777;
  }

  .mcs-sep {
    background: #f2f2f2;
  }

  .mcs-share-popover {
    background: #fff;
  }

  .mcs-burst-dot,
  .mcs-bubble {
    background: #ffffff;
    color: #777;
  }

  .mcs-toast {
    background: #e6e6e6;
    color: #121212;
  }
}

/* =========================
   Mobile Fine-Tuning
   ========================= */

@media (max-width: 600px) {

  .mcs-left,
  .mcs-right {
    gap: 14px;
  }

  .mcs-count {
    font-size: 12px;
  }
	.mcs-bookmark-remove {
    top: 12px;
    right: 12px;
  }
}


</style>