/* ScaTube watch page: Tastes good / Gag votes, same look and motion as Pearlo (pearlo/app.css "Vote burst"). */
.st-watch-page { --st-gag: #a6cc2e; --st-gag-soft: #1e2a08; --st-taste-soft: #33102a; }

/* Video vote pill */
.st-vote .st-vote__btn.act { position: relative; }
.st-vote__btn.act.l:hover { color: var(--st-accent-text); background: var(--st-taste-soft); }
.st-vote__btn.act.g:hover { color: var(--st-gag); background: var(--st-gag-soft); }
.st-vote__btn.act.l.on { color: var(--st-accent-text); }
.st-vote__btn.act.g.on { color: var(--st-gag); }
.st-watch__actions .st-vote__btn > span:empty { display: none; }

/* Comment votes */
.st-comment__act.act { position: relative; }
.st-comment__act.act.l:hover, .st-comment__act.act.l.on { color: var(--st-accent-text); }
.st-comment__act.act.l:hover { background: var(--st-taste-soft); }
.st-comment__act.act.g:hover, .st-comment__act.act.g.on { color: var(--st-gag); }
.st-comment__act.act.g:hover { background: var(--st-gag-soft); }

/* Shared: outline poop, fills in when on */
.act.l .st-ico, .act.g .st-ico { fill: transparent; transition: fill .2s .12s; }
.act.l.on .st-ico, .act.g.on .st-ico { fill: currentColor; }
.act.fx-taste .st-ico { transform-origin: 50% 90%; animation: stTasteJelly .6s cubic-bezier(.3,.7,.4,1); }
.act.fx-gag .st-ico { animation: stGagRetch .6s ease-in-out; }

/* Burst on the icon centre (padding-left + half the icon) */
.act .burst { position: absolute; left: 26px; top: 50%; width: 0; height: 0; pointer-events: none; color: inherit; }
.st-vote__btn.act.g .burst { left: 24px; }
.st-comment__act.act .burst { left: 16px; }
.act .burst.taste::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid currentColor; opacity: 0; animation: stVoteRing .5s ease-out forwards; }
.act .burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; --d: 21px; }
.act .burst.taste i { animation: stVoteSpark .62s .06s cubic-bezier(.15,.75,.35,1) forwards; }
.act .burst.taste i:nth-child(even) { width: 3px; height: 3px; left: -1.5px; top: -1.5px; --d: 17px; background: #ff7fd3; }
.act .burst i:nth-child(1) { --a: 0deg; } .act .burst i:nth-child(2) { --a: 45deg; } .act .burst i:nth-child(3) { --a: 90deg; } .act .burst i:nth-child(4) { --a: 135deg; }
.act .burst i:nth-child(5) { --a: 180deg; } .act .burst i:nth-child(6) { --a: 225deg; } .act .burst i:nth-child(7) { --a: 270deg; } .act .burst i:nth-child(8) { --a: 315deg; }
.act .burst.gag i { width: 3px; height: 5px; left: -1.5px; top: -2.5px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; animation: stVoteSpray .7s .08s cubic-bezier(.2,.6,.4,1) forwards; }
.act .burst.gag i:nth-child(1) { --a: 104deg; --d: 18px; } .act .burst.gag i:nth-child(2) { --a: 134deg; --d: 22px; } .act .burst.gag i:nth-child(3) { --a: 160deg; --d: 17px; }
.act .burst.gag i:nth-child(4) { --a: 180deg; --d: 23px; } .act .burst.gag i:nth-child(5) { --a: 200deg; --d: 17px; } .act .burst.gag i:nth-child(6) { --a: 226deg; --d: 22px; }
.act .burst.gag i:nth-child(7) { --a: 256deg; --d: 18px; }
@keyframes stTasteJelly { 0% { transform: none; } 18% { transform: translateY(2px) scale(1.32, .68); } 42% { transform: translateY(-6px) scale(.84, 1.26); } 62% { transform: translateY(0) scale(1.14, .9); } 80% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@keyframes stGagRetch { 0% { transform: none; } 14% { transform: translateX(-2px) rotate(-16deg) scale(1.18); } 28% { transform: translateX(2px) rotate(14deg) scale(1.18); } 42% { transform: translateX(-2px) rotate(-11deg) scale(1.12); } 56% { transform: translateX(1px) rotate(8deg) scale(1.06); } 72% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes stVoteRing { 0% { opacity: .9; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.3); border-width: 0; } }
@keyframes stVoteSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-10px) scale(1); } 12%, 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.3); } }
@keyframes stVoteSpray { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-9px) rotate(calc(var(--a) * -1)) translateY(0); } 12% { opacity: 1; }
  55% { opacity: 1; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(calc(var(--a) * -1)) translateY(1px); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1.1)) rotate(calc(var(--a) * -1)) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .act .burst { display: none; } .act.fx-taste .st-ico, .act.fx-gag .st-ico { animation: none; } }

/* Small leftovers of the old page, restyled with the design system */
.st-watch-page .st-sub-nudge { position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: none; align-items: center; gap: 12px; width: min(380px, calc(100vw - 24px)); padding: 12px 14px; transform: translateX(-50%); border: 1px solid var(--st-line-strong); border-radius: var(--st-radius-lg); background: var(--st-surface-2); box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.st-watch-page .st-sub-nudge.is-open { display: flex; }
.st-sub-nudge__copy { flex: 1; min-width: 0; font-size: var(--st-text-xs); color: var(--st-text-2); line-height: 1.35; }
.st-sub-nudge__copy strong { display: block; margin-bottom: 2px; color: var(--st-text); font-size: var(--st-text-sm); }
.st-sub-nudge__actions { display: flex; flex-direction: column; gap: 4px; }
.st-policy { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.78); }
.st-policy.is-open { display: flex; }
.st-policy__box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--st-line-strong); border-radius: var(--st-radius-lg); background: var(--st-surface-1); box-shadow: 0 16px 48px rgba(0,0,0,.7); }
.st-policy__box h2 { margin: 0 0 10px; font: 400 26px/1 var(--st-font-display); letter-spacing: .04em; color: var(--st-accent-text); }
.st-policy__box p { margin: 0 0 14px; color: var(--st-text-2); font-size: var(--st-text-sm); line-height: 1.55; }
.st-policy__box ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--st-text-sm); color: var(--st-text); }
.st-policy__box li { display: flex; gap: 8px; align-items: flex-start; }
.st-policy__box li .st-ico { color: var(--st-danger, #ff5c7a); margin-top: 1px; }
.st-policy__box li.is-ok { color: var(--st-text-3); }
.st-policy__box li.is-ok .st-ico { color: var(--st-success, #5ad27e); }
.st-policy__box a { color: var(--st-accent-text); }
.st-policy__agree { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; color: var(--st-text-2); font-size: var(--st-text-sm); cursor: pointer; }
.st-policy__agree input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--st-accent); flex: none; }
.st-policy__close { position: absolute; top: 10px; right: 10px; }
.st-policy .st-btn { width: 100%; justify-content: center; }
.st-comment__ctx .st-ico, .st-comment__pin .st-ico { vertical-align: -3px; }
@media (max-width: 600px) {
  #msgBtn { padding: 0 10px; }
  #msgBtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
