<style>
	/* =====================================================
   Medium Inline Actions – FINAL COMPLETE CSS
   ===================================================== */

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

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

/* =========================
   Action Bar 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 {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* =========================
   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;
}

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

.mcs-clap-btn {
  position: relative;
}

.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
   ========================= */

.mcs-count {
  font-size: 12px;
  min-width: 20px;
  color: #777;
  font-weight: 500;
}

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

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

/* =========================
   +N Bubble
   ========================= */

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

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

.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); }
}

/* =========================
   SHARE POPOVER (DESKTOP)
   ========================= */

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

.mcs-share-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 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;
}

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

/* Arrow */

.mcs-share-popover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

/* Share Links */

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

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

/* =====================================================
   BOOKMARKS – MEDIUM STYLE
   ===================================================== */

.mcs-bookmarks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

/* Card */

.mcs-bookmark-item {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ececec;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.mcs-bookmark-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.08);
}

/* Image 16:9 */

.mcs-bookmark-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f2f2f2;
  overflow: hidden;
}

.mcs-bookmark-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  transition: transform 0.45s ease;
}

.mcs-bookmark-item:hover .mcs-bookmark-thumb img {
  transform: scale(1.05);
}

/* Content */

.mcs-bookmark-content {
  padding: 16px 18px 18px;
}

.mcs-bookmark-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 6px;
}

.mcs-bookmark-title a {
  color: #242424;
  text-decoration: none;
}

.mcs-bookmark-excerpt {
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcs-bookmark-meta {
  font-size: 12px;
  color: #8a8a8a;
  display: flex;
  gap: 6px;
}

/* Remove */

.mcs-bookmark-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mcs-bookmark-item:hover .mcs-bookmark-remove {
  opacity: 1;
  transform: scale(1);
}

/* Remove animation */

.mcs-bookmark-item.mcs-removing {
  animation: mcs-bookmark-fade 0.3s ease forwards;
}

@keyframes mcs-bookmark-fade {
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* =====================================================
   MOBILE SHARE POPOVER (FIXED)
   ===================================================== */

@media (max-width: 768px) {

  .mcs-share-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 16px;
    top: auto;

    justify-content: center;
    padding: 12px;

    border-radius: 12px;
    transform: translateY(24px);
  }

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

  .mcs-share-popover::after {
    display: none;
  }
}

/* =========================
   Mobile Cards
   ========================= */

@media (max-width: 600px) {
  .mcs-bookmarks-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mcs-bookmark-thumb {
    aspect-ratio: 4 / 3;
  }

  .mcs-bookmark-title {
    font-size: 16px;
  }
}


</style>