
.ugc-card{position:relative;border-radius:16px;overflow:hidden;background:#000;box-shadow:0 1px 4px rgba(0,0,0,.12);cursor:pointer;-webkit-tap-highlight-color:transparent}
.ugc-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.18)}
/* Shimmer runs a few cycles then stops (was `infinite` → perpetual main-thread
   repaints on every visible card during scroll). The poster/LQIP covers it once
   loaded; combined with content-visibility, off-screen cards don't animate at all. */
.ugc-video-container{position:relative;width:100%;aspect-ratio:9/16;background:linear-gradient(100deg,#ece9f5 30%,#f6f4fb 50%,#ece9f5 70%);background-size:200% 100%;animation:ugcShimmer 1.4s ease-in-out 4 both}
@keyframes ugcShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* Blur-up posters: a tiny LQIP shows instantly (blurred) under the lazy full-res poster,
   so cards never read as a dead black box during the image-load gap (Airbnb/Unsplash pattern). */
/* LQIP placeholder: a tiny 48px image upscaled — its natural softness reads as a
   blur with NO `filter:blur()` (that filter is one of the most expensive paint ops
   and, ×~15 visible cards during a fling, was a real paint cost). */
.ugc-poster-lqip{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.05)}
.ugc-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Mobile-only footer: creator avatar on the left, a wide "Contacter" button (icon + label)
   filling the rest → /brief/{gig}. Display name (#id) is hidden by request. */
.ugc-card-foot{display:none}
/* Avatar hidden on the mobile footer so the Contacter button can span the full width. */
.ugc-foot-id{display:none}
.ugc-foot-id img{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid #ECECEC;background:#f3f3f3}
.ugc-foot-id span{display:none}
.ugc-foot-contact{flex:1;width:100%;display:flex;align-items:center;justify-content:center;gap:7px;background:#7C3AED;color:#fff;border-radius:999px;padding:11px 14px;min-height:44px;font-size:13px;font-weight:700;text-decoration:none;transition:background .15s ease}
.ugc-foot-contact:hover,.ugc-foot-contact:active{background:#6B21A8}
.ugc-foot-contact svg{width:14px;height:14px;flex-shrink:0}
.ugc-foot-label{white-space:nowrap}
/* Mobile-only stats row inside the white footer: active status + rating + delivered count,
   mirroring the desktop video-overlay info (which is .ugc-hide-mobile). */
.ugc-foot-stats{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-bottom:8px;font-size:11.5px;line-height:1.25}
.ugc-foot-active{flex-basis:100%;display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px;color:#717171;font-weight:500;min-width:0}
.ugc-foot-active>.ugc-foot-time{white-space:nowrap}
.ugc-foot-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 4px rgba(34,197,94,.6);flex-shrink:0;animation:ugcOnlinePulse 1.3s ease-in-out infinite}
/* Blinking "live" dot for online creators — fades in/out, repeating. */
@keyframes ugcOnlinePulse{0%,100%{opacity:1}50%{opacity:.2}}
.ugc-online-dot{animation:ugcOnlinePulse 1.3s ease-in-out infinite}
.ugc-foot-rating{display:inline-flex;align-items:center;gap:3px;color:#1A1A1A;font-weight:600}
.ugc-foot-rating svg{width:12px;height:12px;color:#fbbf24;flex-shrink:0}
.ugc-foot-muted{color:#9B9590;font-weight:500}
.ugc-foot-delivered{display:inline-flex;align-items:center;gap:3px;color:#047A3B;font-weight:600;white-space:nowrap}
.ugc-foot-delivered svg{width:11px;height:11px;flex-shrink:0}
.ugc-foot-main{display:flex;align-items:center;gap:8px}
/* UGC STUDIO badge inside the video, bottom-left (mobile) — like the top-left badges but at the bottom */
.ugc-studio-bottom{display:none}
.ugc-stats-m{display:none}
@media(max-width:768px){.ugc-studio-bottom{display:inline-flex;position:absolute;left:10px;bottom:10px;z-index:13;pointer-events:none}}
@media(max-width:768px){.ugc-card-foot{display:block;padding:8px 16px 12px;background:#fff;border-top:1px solid #ECECEC}}
.ugc-play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:transparent}
.ugc-play-btn{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1.5px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,.2);transition:transform .2s,background .2s}
.ugc-play-overlay:hover .ugc-play-btn{transform:scale(1.08);background:rgba(255,255,255,.25)}
.ugc-play-btn svg{width:22px;height:22px;color:#fff;margin-left:3px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
.ugc-info-overlay{position:absolute;bottom:0;left:0;right:0;padding:24px 10px 10px;background:linear-gradient(to top,rgba(0,0,0,.6) 0%,rgba(0,0,0,.2) 70%,transparent);pointer-events:none}
.ugc-info-overlay>*{pointer-events:auto}
.ugc-fav-btn{position:absolute;top:10px;right:10px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:50%;color:#fff;border:none;cursor:pointer;z-index:5;transition:background .15s}
.ugc-fav-btn:hover{background:rgba(0,0,0,.6)}
.ugc-fav-btn.active{background:#ef4444}
.ugc-creator{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.ugc-avatar{width:32px;height:32px;border-radius:50%;border:2px solid #fff;object-fit:cover}
.ugc-creator-name{color:#fff;font-weight:600;font-size:13px;display:flex;align-items:center;gap:4px;text-decoration:none}
.ugc-creator-name:hover{text-decoration:underline}
.ugc-verified{width:14px;height:14px;color:#3b82f6}
.ugc-meta{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.8);font-size:11px}
.ugc-rating{display:flex;align-items:center;gap:2px;color:#fbbf24}
.ugc-cta{display:flex;gap:6px}
.ugc-cta-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 10px;border-radius:8px;font-size:11px;font-weight:600;text-decoration:none;border:none;cursor:pointer}
.ugc-cta-primary{background:#25D366;color:#fff}
.ugc-cta-primary:hover{opacity:.9;color:#fff}
.ugc-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.95);z-index:999999;display:flex;align-items:center;justify-content:center}
body.ugc-modal-open #seller-sidebar{display:none !important}
body.ugc-modal-open header{z-index:1 !important}
.ugc-modal-container{position:relative;width:100%;max-width:450px;height:100%;max-height:90vh;display:flex;flex-direction:column}
.ugc-modal-video-wrapper{position:relative;flex:1;background:#000;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.ugc-modal-video{width:100%;height:100%;max-height:80vh;object-fit:contain;background:#000}
.ugc-modal-close{position:absolute;top:20px;right:20px;width:44px;height:44px;border-radius:50%;background:rgba(30,30,30,.8);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:100;transition:background .15s}
.ugc-modal-close:hover{background:rgba(60,60,60,.9)}
.ugc-modal-counter{position:absolute;top:24px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.7);color:#fff;padding:6px 14px;border-radius:20px;font-size:13px;font-weight:600;z-index:15}
.ugc-modal-nav{position:absolute;right:20px;width:48px;height:48px;border-radius:50%;background:rgba(30,30,30,.7);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:100;transition:background .15s,transform .15s}
.ugc-modal-nav:hover:not(:disabled){background:rgba(60,60,60,.9);transform:scale(1.08)}
.ugc-modal-nav:disabled{opacity:.3;cursor:not-allowed}
.ugc-modal-nav-up{bottom:340px}
.ugc-modal-nav-down{bottom:276px}
.ugc-modal-info{position:absolute;bottom:0;left:0;right:0;padding:50px 16px 16px;background:linear-gradient(to top,rgba(0,0,0,.95) 0%,rgba(0,0,0,.7) 60%,transparent);z-index:5}
.ugc-modal-creator{display:flex;align-items:center;gap:12px}
.ugc-modal-avatar{width:48px;height:48px;border-radius:50%;border:3px solid #fff;object-fit:cover}
.ugc-modal-creator-info h3{color:#fff;font-size:16px;font-weight:700;margin:0 0 4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ugc-modal-creator-info p{color:rgba(255,255,255,.7);font-size:13px;margin:0}
.ugc-modal-side-actions{position:absolute;right:20px;bottom:160px;display:flex;flex-direction:column;gap:16px;z-index:100}
.ugc-modal-side-btn{width:48px;height:48px;border-radius:50%;background:rgba(30,30,30,.7);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
.ugc-modal-side-btn:hover{background:rgba(50,50,50,.85)}
.ugc-modal-side-btn.active{color:#ef4444}
.ugc-contact-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border:1px solid #fff;border-radius:20px;color:#fff;font-size:12px;font-weight:600;text-decoration:none;background:transparent;margin-left:8px;transition:background .15s}
.ugc-contact-btn:hover{background:rgba(255,255,255,.1);color:#fff}
.ugc-modal-sidebar{display:none}
/* Tabbed desktop sidebar (browse/profile): header + tabs fixed, only the tab body scrolls,
   price+CTA footer pinned at the bottom. CSS Grid (rows auto/auto/1fr/auto) reliably keeps
   the footer visible — the middle row uses minmax(0,1fr) so the video grid scrolls inside it
   instead of expanding and pushing the footer past the overflow:hidden edge. */
.ugc-sidebar-tabbed{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%;overflow:hidden!important;padding:0!important}
.ugc-sidebar-tabbed #ugc-info-body{scrollbar-width:thin;scrollbar-color:#e5e7eb transparent}
.ugc-sidebar-tabbed #ugc-info-body::-webkit-scrollbar{width:6px}
.ugc-sidebar-tabbed #ugc-info-body::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:3px}
.ugc-sidebar-tabbed #ugc-info-tabs button:hover{color:#7c3aed!important}
@media(min-width:769px){
.ugc-modal-container{flex-direction:row;max-width:880px;height:85vh;max-height:85vh}
.ugc-modal-video-wrapper{flex:3;border-radius:16px 0 0 16px}
.ugc-modal-sidebar{display:flex;flex:2;flex-direction:column;background:#fff;border-radius:0 16px 16px 0;padding:28px 24px;overflow-y:auto;min-width:280px;height:85vh}
.ugc-modal-info{display:none}
.ugc-modal-side-actions{display:none}
.ugc-modal-close{right:auto;left:20px}
.ugc-modal-nav{right:auto;left:20px;width:40px;height:40px;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.15)}
.ugc-modal-nav:hover:not(:disabled){background:rgba(255,255,255,.22)}
.ugc-modal-nav-up{bottom:auto;top:50%;transform:translateY(-60px)}
.ugc-modal-nav-down{bottom:auto;top:50%;transform:translateY(10px)}
.ugc-modal-nav:hover:not(:disabled){transform:scale(1.08)}
.ugc-modal-nav-up:hover:not(:disabled){transform:translateY(-60px) scale(1.08)}
.ugc-modal-nav-down:hover:not(:disabled){transform:translateY(10px) scale(1.08)}
}
@media(max-width:768px){
.ugc-modal-container{max-width:100%;max-height:100vh;border-radius:0}
.ugc-modal-video-wrapper{border-radius:0}
.ugc-modal-close{top:16px;right:16px;z-index:200}
.ugc-modal-info{padding:50px 16px 16px;z-index:10}
.ugc-modal-nav{width:44px;height:44px;right:16px;z-index:200}
.ugc-modal-nav-up{bottom:370px}
.ugc-modal-nav-down{bottom:310px}
.ugc-modal-side-actions{bottom:170px;right:16px;z-index:200}
.ugc-modal-side-btn{width:44px;height:44px}
.ugc-snap-scroller{display:flex;flex-direction:column}
.ugc-snap-scroller::-webkit-scrollbar{display:none}
.ugc-hide-mobile{display:none!important}
/* Price pill on mobile: bottom-left (Vinted/TikTok Shop pattern, thumb-zone). Label dropped, price only. */
.ugc-price-strip{padding:3px 9px!important;top:auto!important;bottom:8px!important;left:7px!important;box-shadow:0 2px 12px rgba(0,0,0,0.35)!important}
.ugc-price-strip__lbl{display:none!important}
.ugc-price-strip__val{font-size:12.5px!important;letter-spacing:-0.01em!important}
/* Tier + city badges reclaim the top area now that price moved down */
/* Mobile: tier badges collapse to icon-only chips (keep the colored bg, drop the label) */
.ugc-tier-txt{display:none!important}
.ugc-tier-badge{top:10px!important;gap:0!important;padding:5px!important;border-radius:7px!important}
.ugc-tier-badge svg{width:12px!important;height:12px!important}
.ugc-city-pill{top:10px!important}
.ugc-tier-badge ~ .ugc-city-pill{top:38px!important}
/* Mobile-only stats: rating + compact earnings — small, ONE line, bottom-right */
.ugc-stats-m{display:flex;position:absolute;right:7px;bottom:7px;z-index:13;pointer-events:none;max-width:calc(100% - 14px)}
.ugc-stat-pill{display:inline-flex;align-items:center;gap:2px;padding:2px 6px;background:linear-gradient(135deg,#111827,#0b1120);color:#fff;border-radius:6px;font-size:9px;font-weight:800;line-height:1;box-shadow:0 1px 5px rgba(0,0,0,.45);white-space:nowrap}
.ugc-stat-pill .ic{width:8.5px;height:8.5px;flex-shrink:0}
.ugc-stat-pill .cnt{color:#9ca3af;font-weight:600;font-size:8px;margin-left:1px}
.ugc-stat-pill .sep{width:1px;height:8px;background:rgba(255,255,255,.28);margin:0 2px;flex-shrink:0}
}
.ugc-sidebar-avatar{width:64px;height:64px;border-radius:50%;border:3px solid #e5e7eb;object-fit:cover}
.ugc-sidebar-name{color:#111;font-size:18px;font-weight:700;display:flex;align-items:center;gap:6px}
.ugc-sidebar-category{color:#6b7280;font-size:13px;margin-top:2px}
.ugc-sidebar-rating{display:flex;align-items:center;gap:4px;color:#fbbf24;font-size:14px;margin-top:8px}
.ugc-sidebar-rating span{color:#6b7280}
.ugc-sidebar-price{margin-top:20px;padding:16px;background:#f9fafb;border-radius:12px;border:1px solid #e5e7eb}
.ugc-sidebar-price-label{color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:.5px}
.ugc-sidebar-price-value{color:#111;font-size:28px;font-weight:800;margin-top:4px}
.ugc-sidebar-price-unit{color:#9ca3af;font-size:14px;font-weight:400}
.ugc-sidebar-cta{display:block;width:100%;padding:14px;border-radius:12px;font-size:15px;font-weight:700;text-align:center;text-decoration:none;border:none;cursor:pointer;transition:opacity .15s}
.ugc-sidebar-cta:hover{opacity:.9}
.ugc-sidebar-cta-primary{background:linear-gradient(135deg,#7c3aed,#6d28d9);color:#fff;margin-top:20px}
.ugc-sidebar-cta-secondary{background:transparent;color:#374151;border:1px solid #e5e7eb;margin-top:10px}
.ugc-sidebar-cta-secondary:hover{background:#f9fafb;color:#111}
.ugc-sidebar-divider{border:none;border-top:1px solid #e5e7eb;margin:20px 0}
.ugc-sidebar-gig-title{color:#374151;font-size:13px;line-height:1.5;margin-top:12px}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes ugcBriefGlow{0%,100%{box-shadow:0 2px 8px rgba(124,58,237,.3)}50%{box-shadow:0 0 20px rgba(124,58,237,.7),0 0 6px rgba(124,58,237,.4)}}
.ugc-brief-cta{opacity:1;transform:translateY(0);transition:transform .2s ease,opacity .2s ease}
.ugc-brief-cta.pulse{animation:ugcBriefGlow .7s ease 2}
.ugc-mobile-sheet{position:fixed;bottom:0;left:0;right:0;background:#fff;border-radius:16px 16px 0 0;padding:0 20px 24px;z-index:1000001;transform:translateY(100%);transition:transform .3s ease;box-shadow:0 -4px 20px rgba(0,0,0,.15);max-height:75vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.ugc-mobile-sheet.open{transform:translateY(0)}
.ugc-mobile-sheet-handle{width:40px;height:4px;background:#d1d5db;border-radius:2px;margin:10px auto 16px}
.ugc-mobile-sheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1000000;opacity:0;transition:opacity .3s;pointer-events:none}
.ugc-mobile-sheet-overlay.open{opacity:1;pointer-events:auto}

/* ── Smooth-scroll for ANY page listing these cards (browse, favorites, recommendations,
   profile, creator pages) ──────────────────────────────────────────────────────────
   While the page is scrolling, <html> gets .ugc-scrolling and each card :hover effect is
   reset to its RESTING value, so a card sliding under a stationary cursor produces NO
   visual delta → NO repaint. (Cards firing :hover repaints as they pass under the cursor
   made scrolling-over-cards ~4x slower than over empty space.) Full hover restored ~150ms
   after the last scroll. Do NOT use pointer-events:none here — it forces hit-test walks
   through the nested card and is actually slower. */
html.ugc-scrolling .ugc-card:hover{box-shadow:0 1px 4px rgba(0,0,0,.12)}
html.ugc-scrolling .ugc-play-overlay:hover .ugc-play-btn{transform:none;background:rgba(255,255,255,.15)}
html.ugc-scrolling .ugc-foot-contact:hover{background:#7C3AED}
html.ugc-scrolling .ugc-fav-btn:hover{background:rgba(0,0,0,.4)}
html.ugc-scrolling .ugc-creator-name:hover{text-decoration:none}

    /* /browse MOBILE: Airbnb-style white pay bar inside the video modal (match /r/ look) */
    @media (max-width: 768px) {
        body.browse-page .ugc-modal-info {
            background: #fff !important;
            padding: 0 !important;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
        }
        body.browse-page .ugc-modal-info .ugc-modal-creator {
            padding: 14px 16px 12px;
            border-bottom: 1px solid #ebe9e5;
        }
        body.browse-page .ugc-modal-info .ugc-modal-creator-info h3,
        body.browse-page .ugc-modal-info .ugc-modal-creator-info h3 a {
            color: #222 !important;
            font-size: 15px !important;
            font-weight: 700 !important;
        }
        body.browse-page .ugc-modal-info .ugc-modal-creator-info p,
        body.browse-page .ugc-modal-info .ugc-modal-creator-info div > span {
            color: #6a6560 !important;
        }
        /* Hide the duplicate price pill on the creator row (paybar below shows it) */
        body.browse-page .ugc-modal-info > .ugc-modal-creator > span:last-child {
            display: none !important;
        }
        body.browse-page .ugc-airbnb-paybar {
            margin: 10px -16px -16px !important;
            width: calc(100% + 32px) !important;
            box-sizing: border-box !important;
            border-top-left-radius: 0 !important;
            border-top-right-radius: 0 !important;
            border-top: 0 !important;
            box-shadow: none !important;
        }
        /* Side action icons (heart/share) — move to top-right like Airbnb */
        body.browse-page .ugc-modal-side-actions {
            top: 16px !important;
            bottom: auto !important;
            right: 16px !important;
            left: auto !important;
            flex-direction: row !important;
            gap: 8px !important;
        }
        body.browse-page .ugc-modal-side-btn {
            width: 38px !important;
            height: 38px !important;
            background: rgba(0,0,0,.45) !important;
        }
    }

