/* Super Thanks + Merch shelf — shared across desktop and mobile watch pages. */

/* ---------------------------------------------------------- Thanks pill */
.vh-thanks-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, rgba(255,90,140,.16), rgba(255,182,72,.12));
    color: #ff5a8c; border: 1px solid rgba(255,90,140,.35);
}
.vh-thanks-pill:hover { background: linear-gradient(135deg, rgba(255,90,140,.26), rgba(255,182,72,.2)); transform: translateY(-1px); }

/* ---------------------------------------------------------- Merch shelf */
.vh-merch-shelf { margin: 18px 0; }
.vh-merch-shelf-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vh-merch-shelf-heading span { font-size: 18px; }
.vh-merch-shelf-heading h3 { margin: 0; font-size: 15px; font-weight: 700; }
.vh-merch-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
}
.vh-merch-row::-webkit-scrollbar { height: 6px; }
.vh-merch-row::-webkit-scrollbar-thumb { background: rgba(128,128,128,.4); border-radius: 3px; }
.vh-merch-card {
    flex: 0 0 auto;
    width: 150px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(128,128,128,.25);
    background: color-mix(in srgb, currentColor 4%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vh-merch-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.25); border-color: rgba(255,90,140,.5); }
.vh-merch-card-media { width: 100%; aspect-ratio: 1/1; background: rgba(128,128,128,.12); overflow: hidden; }
.vh-merch-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vh-merch-card:hover .vh-merch-card-media img { transform: scale(1.06); }
.vh-merch-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; opacity: .5; }
.vh-merch-card-body { padding: 9px 10px; }
.vh-merch-card-body strong { display: block; font-size: 12.5px; line-height: 1.3; margin-bottom: 3px; }
.vh-merch-card-body span { display: block; font-size: 12px; font-weight: 700; color: #ff5a8c; }

/* Narrower rail placement (desktop sidebar, above "Up next") */
.vh-merch-shelf-sidebar:empty { display: none; }
.vh-merch-shelf-sidebar .vh-merch-shelf { margin: 0 0 16px; padding: 0 12px; }
.vh-merch-shelf-sidebar .vh-merch-card { width: 128px; }

/* ---------------------------------------------------------- Thanks trigger emphasis */
#thanksMenuBtn, #mThanksBtn { position: relative; }

/* ---------------------------------------------------------- Modal */
.vh-thanks-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vhThanksFadeIn .18s ease;
}
@keyframes vhThanksFadeIn { from { opacity: 0; } to { opacity: 1; } }
.vh-thanks-modal {
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: #17181f;
    color: #f2f3f7;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 26px;
    position: relative;
    box-shadow: 0 30px 80px -20px rgba(255,60,120,.35), 0 10px 40px rgba(0,0,0,.5);
    animation: vhThanksPopIn .22s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes vhThanksPopIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.vh-thanks-modal h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; background: linear-gradient(135deg, #ff5a8c, #ffb648); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vh-thanks-sub { margin: 0 0 18px; font-size: 13px; color: #9a9db0; }
.vh-thanks-close {
    position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.06); border: none; color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.vh-thanks-close:hover { background: rgba(255,255,255,.14); }
.vh-thanks-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.vh-thanks-tier {
    padding: 11px 6px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04); color: #f2f3f7; font-weight: 700; font-size: 14px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.vh-thanks-tier:hover { transform: translateY(-1px); }
.vh-thanks-tier.active { border-color: #ff5a8c; background: linear-gradient(135deg, rgba(255,90,140,.22), rgba(255,182,72,.16)); }
.vh-thanks-field { display: block; font-size: 12px; font-weight: 600; color: #9a9db0; margin-bottom: 12px; }
.vh-thanks-field input, .vh-thanks-field textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #f2f3f7; font-size: 13.5px; font-family: inherit;
}
.vh-thanks-field input:focus, .vh-thanks-field textarea:focus { outline: none; border-color: #ff5a8c; }
.vh-thanks-gateways { display: flex; gap: 8px; margin-bottom: 14px; }
.vh-thanks-gateway-tab {
    flex: 1; padding: 10px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04); color: #9a9db0; font-weight: 700; font-size: 13px; cursor: pointer;
}
.vh-thanks-gateway-tab.active { border-color: #ff5a8c; color: #fff; background: rgba(255,90,140,.14); }
.vh-thanks-loading { color: #9a9db0; font-size: 13px; text-align: center; padding: 14px 0; }
.vh-thanks-pay-btn {
    width: 100%; padding: 13px 18px; border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #ff5a8c, #ffb648); color: #1a0a10; font-weight: 800; font-size: 14.5px;
    box-shadow: 0 14px 32px -10px rgba(255,90,140,.6);
    transition: transform .12s ease;
}
.vh-thanks-pay-btn:hover { transform: translateY(-1px); }
.vh-thanks-pay-btn:disabled { opacity: .6; cursor: default; transform: none; }
.vh-thanks-error { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255,80,80,.12); color: #ff8080; font-size: 12.5px; }
.vh-thanks-error[hidden] { display: none; }

/* ---------------------------------------------------------- Celebration effect */
.vh-thanks-celebrate {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10500;
    pointer-events: none;
    animation: vhThanksBannerIn .4s cubic-bezier(.2,.9,.3,1.3);
}
.vh-thanks-celebrate-out { animation: vhThanksBannerOut .5s ease forwards; }
@keyframes vhThanksBannerIn { from { opacity: 0; transform: translate(-50%, -24px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes vhThanksBannerOut { to { opacity: 0; transform: translate(-50%, -14px) scale(.96); } }
.vh-thanks-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(92vw, 420px);
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff5a8c, #ff8a5a 55%, #ffb648);
    color: #1a0a10;
    box-shadow: 0 20px 50px -12px rgba(255,90,140,.55), 0 4px 18px rgba(0,0,0,.3);
}
.vh-thanks-banner-icon {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: 17px;
    animation: vhThanksHeartbeat 1s ease-in-out infinite;
}
@keyframes vhThanksHeartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.vh-thanks-banner strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.vh-thanks-banner p { margin: 3px 0 0; font-size: 12.5px; font-weight: 600; opacity: .85; }

.vh-thanks-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}
.vh-thanks-particle {
    position: absolute;
    top: 0;
    display: inline-block;
    animation: vhThanksParticleRise 1.6s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes vhThanksParticleRise {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.4); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--drift, 0px), -140px) rotate(var(--rot, 20deg)) scale(1); }
}

@media (max-width: 560px) {
    .vh-thanks-modal { max-width: 100%; border-radius: 16px; padding: 22px; }
    .vh-thanks-celebrate { top: 10px; }
    .vh-thanks-banner { padding: 12px 14px; }
}
