/* 2.22 · Thank-you card after a vote (centred, over a soft scrim) and the periodic "Follow IPN TV" reminder (bottom card).
   One component for both themes and both modes; colours fall back to fixed values when the Prime tokens are absent. */
.vpop { --vp-bg: var(--p-surface, #fff); --vp-ink: var(--p-ink, #17122E); --vp-ink2: var(--p-ink-2, #4A4566); --vp-ink3: var(--p-muted, #7A7596);
  --vp-line: var(--p-line, rgba(23, 18, 46, .1)); --vp-soft: var(--p-surface-2, #F5F3FA); --vp-rose: #E11D48; --vp-rose2: #BE185D; --vp-gold: #F2B33D;
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; font-family: inherit; pointer-events: none; }
.vpop[hidden] { display: none !important; }
html[data-mode="dark"] .vpop { --vp-bg: #17132B; --vp-ink: #F1EEFB; --vp-ink2: #C9C3E3; --vp-ink3: #948DB5; --vp-line: rgba(255, 255, 255, .1); --vp-soft: #221C3D; }

.vpop__scrim { position: absolute; inset: 0; background: rgba(12, 8, 30, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; pointer-events: auto; }
.vpop.is-on .vpop__scrim { opacity: 1; }

.vpop__card { position: relative; pointer-events: auto; width: min(100%, 420px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--vp-bg); color: var(--vp-ink); border: 1px solid var(--vp-line); border-radius: 28px; padding: 30px 24px 20px; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(12, 8, 30, .6), 0 2px 0 rgba(255, 255, 255, .06) inset;
  opacity: 0; transform: translateY(18px) scale(.94); transition: opacity .3s, transform .45s cubic-bezier(.2, .9, .25, 1.15); }
.vpop.is-on .vpop__card { opacity: 1; transform: none; }
.vpop__card:focus { outline: none; }
/* a warm glow behind the photo */
.vpop--vote .vpop__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 170px; pointer-events: none; border-radius: 28px 28px 0 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(225, 29, 72, .16), transparent 62%), radial-gradient(60% 70% at 15% 10%, rgba(242, 179, 61, .18), transparent 70%); }

.vpop__x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--vp-line);
  background: var(--vp-bg); color: var(--vp-ink2); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.vpop__x:hover { background: var(--vp-soft); color: var(--vp-ink); }
.vpop__x .glyph { width: 16px; height: 16px; }

/* photo, ring, heart badge, one burst of sparks */
.vpop__hero { position: relative; width: 116px; height: 116px; margin: 0 auto 16px; }
.vpop__ring { position: absolute; inset: 0; border-radius: 50%; padding: 4px; background: conic-gradient(from 200deg, var(--vp-gold), var(--vp-rose), #8B5CF6, var(--vp-gold)); }
.vpop__ring img, .vpop__ph { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; border: 3px solid var(--vp-bg); background: var(--vp-soft); }
.vpop__ph { display: grid; place-items: center; color: var(--vp-ink3); }
.vpop__ph .glyph { width: 44px; height: 44px; }
.vpop__badge { position: absolute; inset-inline-end: -4px; bottom: 2px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #FB7185, var(--vp-rose) 55%, var(--vp-rose2)); color: #fff; border: 3px solid var(--vp-bg);
  box-shadow: 0 8px 18px -6px rgba(225, 29, 72, .7); transform: scale(0); }
.vpop .vpop__badge > .glyph { width: 20px !important; height: 20px !important; fill: currentColor; }
.vpop.is-on .vpop__badge { animation: vp-pop .55s .35s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.vpop__burst { position: absolute; inset: 0; pointer-events: none; }
.vpop__burst b { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; opacity: 0;
  background: var(--c, var(--vp-gold)); transform: rotate(calc(var(--i) * 36deg)) translateY(0); }
.vpop__burst b:nth-child(3n) { --c: var(--vp-rose); } .vpop__burst b:nth-child(3n+1) { --c: #8B5CF6; width: 5px; height: 5px; }
.vpop.is-on .vpop__burst b { animation: vp-spark .9s .4s ease-out forwards; }
@keyframes vp-pop { to { transform: scale(1); } }
@keyframes vp-spark { 0% { opacity: 1; transform: rotate(calc(var(--i) * 36deg)) translateY(-40px); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 36deg)) translateY(-84px) scale(.4); } }

.vpop h2 { position: relative; margin: 0 0 6px; font-size: 1.3rem; line-height: 1.45; font-weight: 800; color: var(--vp-ink); text-wrap: balance; }
.vpop__msg { margin: 0 auto; max-width: 40ch; color: var(--vp-ink2); font-size: .95rem; line-height: 1.7; }

/* follow block */
.vpop__follow { margin-top: 18px; }
.vpop--vote .vpop__follow { padding: 16px 14px 14px; border-radius: 20px; background: var(--vp-soft); border: 1px solid var(--vp-line); }
.vpop__sep { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px; font-weight: 800; font-size: .95rem; color: var(--vp-ink); }
.vpop__line { margin: 0 auto 14px; max-width: 40ch; color: var(--vp-ink2); font-size: .88rem; line-height: 1.75; }
.vpop__live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--vp-rose); color: #fff; font: 800 .72rem/1 system-ui, sans-serif; letter-spacing: .08em; direction: ltr; }
.vpop__live .glyph { width: 15px; height: 15px; }
.vpop__live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: vp-blink 1.4s ease-in-out infinite; }
.vpop__live--sm { padding: 4px 8px; font-size: .64rem; }
@keyframes vp-blink { 50% { opacity: .25; } }

.vpop__nets { display: flex; justify-content: center; gap: 4px; }
.vpop__net { flex: 0 1 72px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--vp-ink2); font-size: .74rem; font-weight: 700; }
.vpop__net span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpop__net i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--nb, #333);
  box-shadow: 0 10px 20px -10px var(--ns, rgba(0, 0, 0, .5)); transition: transform .2s, box-shadow .2s; }
.vpop .vpop__net i > .glyph { width: 26px !important; height: 26px !important; fill: currentColor; stroke: none; }
.vpop__net:hover { color: var(--vp-ink); }
.vpop__net:hover i { transform: translateY(-3px); box-shadow: 0 14px 24px -10px var(--ns, rgba(0, 0, 0, .55)); }
.vpop__net:focus-visible { outline: none; }
.vpop__net:focus-visible i { outline: 3px solid var(--vp-gold); outline-offset: 2px; }
.vpop__net--youtube { --nb: #FF0000; --ns: rgba(255, 0, 0, .55); }
.vpop__net--instagram { --nb: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); --ns: rgba(214, 36, 159, .55); }
.vpop__net--facebook { --nb: #1877F2; --ns: rgba(24, 119, 242, .55); }
.vpop__net--telegram { --nb: #229ED9; --ns: rgba(34, 158, 217, .55); }
.vpop__net--x, .vpop__net--tiktok { --nb: #0F0F14; --ns: rgba(0, 0, 0, .5); }
html[data-mode="dark"] .vpop__net--x i, html[data-mode="dark"] .vpop__net--tiktok i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }

/* actions */
.vpop__acts { display: grid; gap: 8px; margin-top: 18px; }
.vpop__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .95rem; border: 1px solid var(--vp-line); background: var(--vp-bg); color: var(--vp-ink); transition: filter .2s, background .2s; }
.vpop__btn .glyph { width: 18px; height: 18px; }
.vpop__btn:hover { background: var(--vp-soft); }
.vpop__btn--main { border: 0; color: #fff; background: linear-gradient(135deg, #FB7185, var(--vp-rose) 50%, var(--vp-rose2)); box-shadow: 0 14px 28px -14px rgba(225, 29, 72, .8); }
.vpop__btn--main:hover { background: linear-gradient(135deg, #FB7185, var(--vp-rose) 50%, var(--vp-rose2)); filter: brightness(1.06); }
.vpop__btn:focus-visible, .vpop__x:focus-visible, .vpop__done:focus-visible { outline: 3px solid var(--vp-gold); outline-offset: 2px; }
.vpop__btn.is-copied { color: #15803D; border-color: rgba(21, 128, 61, .4); }
.vpop__done { justify-self: center; margin-top: 2px; padding: 6px 10px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; color: var(--vp-ink3); display: inline-flex; align-items: center; gap: 6px; }
.vpop__done:hover { color: var(--vp-ink); }
.vpop__done .glyph { width: 15px; height: 15px; }

/* 2.23 · the periodic reminder: the same centred card, with an animated YouTube mark on top */
.vpop--remind .vpop__card { padding-top: 28px; }
.vpop--remind .vpop__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none; border-radius: 28px 28px 0 0;
  background: radial-gradient(110% 90% at 50% 0%, rgba(255, 0, 0, .14), transparent 62%); }
.vpop--remind h2 { margin-top: 10px; }
.vpop__yt { position: relative; width: 84px; height: 84px; margin: 0 auto 12px; display: grid; place-items: center; }
.vpop__yt > span { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: #FF0000; box-shadow: 0 16px 30px -14px rgba(255, 0, 0, .8); }
.vpop .vpop__yt > span > .glyph { width: 38px !important; height: 38px !important; fill: currentColor; stroke: none; }
.vpop__yt-ring { position: absolute; inset: 6px; border-radius: 24px; border: 2px solid rgba(255, 0, 0, .45); opacity: 0; }
.vpop.is-on .vpop__yt-ring { animation: vp-ring 2.4s .3s ease-out infinite; }
.vpop.is-on .vpop__yt-ring--2 { animation-delay: 1.5s; }
@keyframes vp-ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.45); } }

/* 2.23 · YouTube: the one big, full-width button; the others small and round under it */
.vpop__ytbtn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border-radius: 16px; text-decoration: none;
  color: #fff; background: linear-gradient(180deg, #FF2A2A, #E00000); box-shadow: 0 16px 30px -16px rgba(255, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, filter .2s; text-align: start; }
.vpop__ytbtn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.vpop__ytbtn:focus-visible { outline: 3px solid var(--vp-gold); outline-offset: 2px; }
.vpop__ytbtn > i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #FF0000; }
.vpop .vpop__ytbtn > i > .glyph { width: 26px !important; height: 26px !important; fill: currentColor; stroke: none; }
.vpop__ytbtn > span { display: grid; gap: 2px; min-width: 0; }
.vpop__ytbtn b { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.vpop .vpop__ytbtn small, .vpop .vpop__ytbtn b { color: #fff !important; } .vpop__ytbtn small { font-size: .78rem; opacity: .9; }
.vpop__ytbtn + .vpop__nets { margin-top: 12px; }
.vpop .vpop__net { flex: 0 0 auto; }
.vpop .vpop__net i { width: 42px; height: 42px; border-radius: 50%; }
.vpop .vpop__net i > .glyph { width: 20px !important; height: 20px !important; }
.vpop__nets { gap: 10px; }

@media (max-width: 420px) {
  .vpop__card { padding: 26px 16px 16px; border-radius: 24px; }
  .vpop--vote .vpop__follow { padding: 14px 8px 12px; }
  .vpop h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vpop__card, .vpop__scrim { transition: none; }
  .vpop.is-on .vpop__badge { animation: none; transform: none; }
  .vpop.is-on .vpop__yt-ring { animation: none; }
  .vpop__burst { display: none; }
  .vpop__live i { animation: none; }
}
