/* ---------- Action row layout (like + star + comments) ---------- */
.action-row{
  display:flex;
  align-items:center;
  gap:.9rem;
}

/* ---------- light‑box ---------- */
  #lightbox-overlay{
    position:fixed;top:0;left:0;width:100%;height:100%;
    background:rgba(0,0,0,.9);display:flex;align-items:center;
    justify-content:center;z-index:1100;cursor:zoom-out}
  #lightbox-overlay img{max-width:100%;max-height:100%;object-fit:contain}

  /* --- disable controls while AJAX is running --- */
.like-btn.busy,
.comment-box button.busy {
  pointer-events: none;   /* znemožní další kliky */
  opacity: .5;            /* lehce zšedne */
  cursor: progress;       /* kolečko „loading“ */
}

/* ---------- Stars (paid likes) + 5s UNDO (shared look with fanclub) ---------- */
.star-btn{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  cursor:pointer;
  user-select:none;
  color:#f2b01e;
}
.star-btn svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
}
.star-btn.active svg{
  fill:currentColor !important;
  fill-opacity:1;
}
.star-count{ font-weight:600; }

.star-undo{
  margin-left:.35rem;
  cursor:pointer;
  user-select:none;
  --p: 1;                 /* progress 0..1 – nastavuje JS */
}

/* když se undo objeví, krátce “popne” jako CTA */
.star-undo.is-visible .undo-pill{
  animation: undo-pop .38s cubic-bezier(.2,.9,.2,1);
}
@keyframes undo-pop{
  0%   { transform: translateY(2px) scale(.96); opacity: 0; }
  60%  { transform: translateY(-1px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.star-undo .undo-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.42rem .72rem .42rem .52rem;
  border-radius:999px;
  line-height:1;

  --prim-rgb: var(--c-primary-rgb, 13,110,253);
  --prim: var(--c-primary, rgb(var(--prim-rgb)));

  color:#fff;
  border:1px solid rgba(255,255,255,.38);
  background: linear-gradient(
    135deg,
    rgba(var(--prim-rgb), .98),
    rgba(var(--prim-rgb), .84)
  );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 14px 34px rgba(0,0,0,.22),
    0 0 0 1px rgba(0,0,0,.04) inset,
    0 1px 0 rgba(255,255,255,.18) inset;

  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  position: relative;
}
.star-undo:hover .undo-pill{
  transform: translateY(-1px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 18px 42px rgba(0,0,0,.26),
    0 1px 0 rgba(255,255,255,.22) inset;
}
.star-undo:active .undo-pill{
  transform: translateY(0);
  box-shadow:
    0 14px 34px rgba(0,0,0,.24),
    0 1px 0 rgba(255,255,255,.18) inset;
}
.star-undo .undo-pill:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(var(--prim-rgb), .28),
    0 18px 42px rgba(0,0,0,.26),
    0 1px 0 rgba(255,255,255,.22) inset;
}

.undo-icon{
  display:inline-flex;
  width:18px;
  height:18px;
  color: rgba(255,255,255,.95);
}
.undo-icon svg{ width:18px; height:18px; display:block; }

.undo-label{ display:flex; flex-direction:column; gap:.12rem; min-width:150px; }
.undo-top{ display:flex; align-items:center; gap:.5rem; }
.undo-cta{
  font-size:.64rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:.18rem .42rem;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.95);
  white-space:nowrap;
}
.undo-title{ font-weight:800; font-size:.80rem; letter-spacing:.01em; color: rgba(255,255,255,.98); }
.undo-meta{ display:flex; align-items:center; gap:.35rem; font-size:.74rem; color: rgba(255,255,255,.82); }
.undo-count{ font-weight:600; color: rgba(255,255,255,.92); }
.undo-time{ font-variant-numeric: tabular-nums; font-weight:900; color: rgba(255,255,255,.98); }
.undo-sep{ opacity:.65; }

.undo-ring{
  width:22px;height:22px;border-radius:50%;
  position:relative;flex:0 0 22px;
  background: conic-gradient(rgba(255,255,255,.95) calc(var(--p) * 1turn), rgba(255,255,255,.25) 0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.undo-ring__fill{
  position:absolute; inset:3px; border-radius:50%;
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.star-btn.busy{ opacity:.75; }
.star-btn.sending{
  pointer-events:none;
  opacity:.5;
  cursor: progress;
}
.star-btn.sending + .star-undo .undo-pill{
  opacity:.88;
  filter:saturate(.95);
}
/* -------- Featuring chips (co-performers) — compact like fanclub -------- */
.co-performers{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin-top:.2rem}
.co-performers .label{font-size:.72em;opacity:.65;margin-right:.2rem}
.co-chip{
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.14rem .42rem;border:1px solid var(--brand-border);
  border-radius:999px;text-decoration:none;font-size:.72em;line-height:1
}
.co-chip img{width:16px;height:16px;border-radius:50%;object-fit:cover}
.co-chip:hover{background:rgba(0,0,0,.02)}