/* MiVids mobile revamp (MOBILE_REVAMP flag). Every rule is scoped to html.mv-m2, which the edge adds only when the flag is on.
   Layout/sizing only: brand colours, creator themes, the 18+ age check, staff/admin/owner pages and the new watch page (.mvw) are not restyled. */
html.mv-m2{-webkit-text-size-adjust:100%;text-size-adjust:100%;--m2-tab-h:58px;--m2-safe-b:env(safe-area-inset-bottom,0px);--m2-safe-t:env(safe-area-inset-top,0px);--m2-line:#2c3024;--m2-panel:#121310}
html.mv-m2 body{overflow-x:clip}
html.mv-m2 img,html.mv-m2 video{max-width:100%}
html.mv-m2 .m2-drawer,html.mv-m2 .m2-menu-btn{display:none}

/* iOS zooms into inputs under 16px: phones and tablets */
@media (max-width:1024px){
 html.mv-m2 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),html.mv-m2 select,html.mv-m2 textarea{font-size:16px!important}
}

/* ---------- Phones ---------- */
@media (max-width:720px){
 html.mv-m2 body{font-size:15px;line-height:1.5}
 html.mv-m2 body.member-experience .main{padding:14px 14px calc(var(--m2-tab-h) + 28px + var(--m2-safe-b))!important;min-width:0}
 html.mv-m2 h1{font-size:clamp(26px,7.4vw,32px);line-height:1.1;letter-spacing:-.01em}
 html.mv-m2 h2{font-size:clamp(19px,5.4vw,22px);line-height:1.2}
 html.mv-m2 h3{line-height:1.25}
 html.mv-m2 .eyebrow{font-size:11px;letter-spacing:.14em}
 html.mv-m2 .gold-btn,html.mv-m2 .outline-btn,html.mv-m2 .red-btn{min-height:44px;border-radius:12px;padding:10px 16px;font-size:15px;line-height:1.2}
 html.mv-m2 .text-btn{min-height:44px;font-size:14px}

 /* Header: [menu] [logo] [bell][avatar] */
 html.mv-m2 body.member-experience .sidebar{position:sticky!important;top:0;z-index:120;display:flex!important;flex-direction:row;align-items:center;gap:6px;height:auto!important;min-height:calc(56px + var(--m2-safe-t))!important;padding:var(--m2-safe-t) 8px 0!important;background:rgba(11,12,9,.92)!important;-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--m2-line)!important}
 html.mv-m2 body.member-experience .sidebar .portal-menu-toggle,html.mv-m2 body.member-experience .sidebar>.nav,html.mv-m2 body.member-experience .sidebar.portal-menu-open>.nav,html.mv-m2 body.member-experience .sidebar>.nav-label,html.mv-m2 body.member-experience .sidebar-bottom{display:none!important}
 html.mv-m2 body.member-experience .sidebar .brand{display:flex!important;position:absolute;left:50%;top:calc(var(--m2-safe-t) + 28px);transform:translate(-50%,-50%);margin:0!important;width:auto!important;height:auto!important;flex:none!important}
 html.mv-m2 body.member-experience .sidebar .brand-logo{width:92px!important;height:30px!important;max-width:92px!important;max-height:30px!important;object-fit:contain}
 html.mv-m2 body.member-experience .sidebar .brand-name{display:none!important}
 html.mv-m2 .m2-menu-btn{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:0;border-radius:12px;background:transparent;color:#f5f4ec;padding:0;font-size:0}
 html.mv-m2 .m2-menu-btn:active{background:#1d2017}
 html.mv-m2 .m2-menu-btn svg{width:24px;height:24px}
 html.mv-m2 body.member-experience .member-header-actions{margin-left:auto!important;display:flex!important;align-items:center;gap:2px!important;height:auto!important}
 html.mv-m2 body.member-experience .member-header-actions #auth-button{display:none!important}
 html.mv-m2 body.member-experience .member-header-actions .avatar,html.mv-m2 body.member-experience .member-header-actions .notification-bell{width:44px!important;height:44px!important;min-width:44px;min-height:44px;border-radius:50%;padding:0;display:grid;place-items:center;position:relative}
 html.mv-m2 body.member-experience .member-header-actions .avatar svg{width:22px;height:22px}
 html.mv-m2 body.member-experience .member-header-actions .notification-bell .nav-count{position:absolute;top:3px;right:3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:11px;line-height:18px}
 html.mv-m2 body.member-experience .member-header-actions .notification-bell{order:-1}

 /* Bottom tab bar */
 html.mv-m2 .member-mobile-nav{height:calc(var(--m2-tab-h) + var(--m2-safe-b));padding:4px 6px var(--m2-safe-b)!important;gap:0!important;background:rgba(14,15,12,.96)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--m2-line)!important;z-index:110!important}
 html.mv-m2 .member-mobile-nav button{min-height:50px!important;gap:2px!important;padding:4px 2px!important;border-radius:12px!important;background:transparent!important;color:#a7ab9d!important;font:600 11px/1.1 'DM Sans',sans-serif!important;letter-spacing:.01em}
 html.mv-m2 .member-mobile-nav button>span{display:grid;place-items:center;width:44px;height:28px;border-radius:14px;font-size:18px!important;line-height:1!important;transition:background .15s}
 html.mv-m2 .member-mobile-nav button.active{color:#f5f4ec!important;background:transparent!important}
 html.mv-m2 .member-mobile-nav button.active>span{background:var(--member-accent,#c8ff31);color:var(--member-ink,#11130b)}
 /* Hide the tab bar and floating Support pill whenever something modal is up (age check, sheets, drawer) */
 html.mv-m2.age-locked .member-mobile-nav,html.mv-m2.m2-overlay .member-mobile-nav,html.mv-m2:has(.modal-bg.open) .member-mobile-nav,html.mv-m2:has(#guest-support-modal) .member-mobile-nav,html.mv-m2:has(.mva-modal-bg) .member-mobile-nav{display:none!important}
 html.mv-m2 body>.service-float,html.mv-m2 body.member-experience>.service-float{display:none!important}

 /* Drawer */
 html.mv-m2 .m2-drawer{display:block;position:fixed;inset:0;z-index:300;visibility:hidden;pointer-events:none}
 html.mv-m2 .m2-drawer.open{visibility:visible;pointer-events:auto}
 html.mv-m2 .m2-drawer-scrim{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .2s}
 html.mv-m2 .m2-drawer.open .m2-drawer-scrim{opacity:1}
 html.mv-m2 .m2-drawer-panel{position:absolute;top:0;bottom:0;left:0;width:min(86vw,340px);background:#0f100d;border-right:1px solid var(--m2-line);transform:translateX(-102%);transition:transform .22s ease-out;display:flex;flex-direction:column;padding:calc(var(--m2-safe-t) + 8px) 0 calc(var(--m2-safe-b) + 12px);overflow-y:auto;overscroll-behavior:contain}
 html.mv-m2 .m2-drawer.open .m2-drawer-panel{transform:none}
 html.mv-m2 .m2-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px 8px 18px}
 html.mv-m2 .m2-drawer-head img{width:92px;height:30px;object-fit:contain}
 html.mv-m2 .m2-drawer-close{width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:#f5f4ec;font-size:26px;line-height:1}
 html.mv-m2 .m2-drawer-user{margin:4px 14px 10px;padding:14px;border:1px solid var(--m2-line);border-radius:14px;background:var(--m2-panel)}
 html.mv-m2 .m2-drawer-user p{margin:0 0 10px;color:#a7ab9d;font-size:13px;word-break:break-word}
 html.mv-m2 .m2-drawer-user strong{display:block;color:#f5f4ec;font-size:15px;margin-bottom:2px}
 html.mv-m2 .m2-drawer-user .m2-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 html.mv-m2 .m2-drawer-user .gold-btn,html.mv-m2 .m2-drawer-user .outline-btn{width:100%;font-size:14px;padding:8px 10px}
 html.mv-m2 .m2-drawer-section{padding:6px 8px;border-top:1px solid #1c1e17}
 html.mv-m2 .m2-drawer-section:first-of-type{border-top:0}
 html.mv-m2 .m2-drawer-label{padding:10px 12px 4px;color:#7f8475;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
 html.mv-m2 .m2-drawer-item{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:#ecede4;font:500 15px/1.25 'DM Sans',sans-serif;text-align:left;text-decoration:none}
 html.mv-m2 .m2-drawer-item:active,html.mv-m2 .m2-drawer-item.active{background:#1b1e15}
 html.mv-m2 .m2-drawer-item.active{color:#fff;box-shadow:inset 3px 0 var(--gold,#c8ff31)}
 html.mv-m2 .m2-drawer-item .m2-ico{width:22px;text-align:center;color:var(--gold,#c8ff31);font-size:17px}
 html.mv-m2 .m2-drawer-item .m2-count{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--gold,#c8ff31);color:#11130b;font-size:12px;font-weight:700;line-height:22px;text-align:center}
 html.mv-m2 .m2-drawer-legal{display:flex;flex-wrap:wrap;gap:0 4px;padding:8px 12px}
 html.mv-m2 .m2-drawer-legal a{display:inline-flex;align-items:center;min-height:40px;padding:0 8px;color:#a7ab9d;font-size:13px;text-decoration:none}
 html.mv-m2.m2-drawer-open,html.mv-m2.m2-drawer-open body{overflow:hidden}

 /* Section heads, chips, filters */
 html.mv-m2 .section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:6px 12px;margin:22px 0 12px}
 html.mv-m2 .section-head h2{margin:2px 0 0}
 html.mv-m2 .section-head p{font-size:13px;margin:4px 0 0;color:var(--muted)}
 html.mv-m2 .filters,html.mv-m2 .library-tabs,html.mv-m2 .feed-filters,html.mv-m2 .mv-chip-row{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px;margin-left:-14px;margin-right:-14px;padding:2px 14px 4px;scroll-padding:0 14px}
 html.mv-m2 .mv-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
 html.mv-m2 .mv-chips .mv-chip-row{display:contents}
 html.mv-m2 .filters::-webkit-scrollbar,html.mv-m2 .library-tabs::-webkit-scrollbar,html.mv-m2 .feed-filters::-webkit-scrollbar,html.mv-m2 .mv-chip-row::-webkit-scrollbar{display:none}
 html.mv-m2 .filters>*,html.mv-m2 .library-tabs>*,html.mv-m2 .feed-filters>*{flex:0 0 auto;white-space:nowrap;min-height:40px}
 html.mv-m2 .chip,html.mv-m2 .feed-filters button,html.mv-m2 .library-tabs button{min-height:40px;padding:8px 14px!important;border-radius:20px;font-size:14px!important}
 html.mv-m2 .mv-chip{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;font-size:13px;white-space:nowrap}
 html.mv-m2 .mv-feed-filterbar label,html.mv-m2 .feed-search{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);width:100%}
 html.mv-m2 .mv-feed-filterbar select,html.mv-m2 .feed-search input{width:100%;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid #33382a;background:#14150f;color:#f5f4ec}
 html.mv-m2 .mv-feed-filterbar select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#c8ff31 50%),linear-gradient(135deg,#c8ff31 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:36px}
 html.mv-m2 .member-feed-header{display:grid;gap:12px;margin:4px 0 8px}
 html.mv-m2 .member-feed-header h1{font-size:clamp(26px,7.4vw,32px)!important;margin:0 0 4px}
 html.mv-m2 .member-feed-header p{margin:0 0 10px;font-size:14px}

 /* Video cards: 2-up grid, 16:9 thumbs, compact meta */
 html.mv-m2 .videos,html.mv-m2 .video-grid,html.mv-m2 #profile-video-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 10px!important}
 html.mv-m2 .videos>.mv-ad-slot,html.mv-m2 .video-grid>.mv-ad-slot,html.mv-m2 #profile-video-grid>.mv-ad-slot{grid-column:1/-1}
 html.mv-m2 .video{position:relative;border-radius:12px;min-width:0}
 html.mv-m2 .video .thumb{height:auto!important;aspect-ratio:16/9;grid-row:auto!important}
 html.mv-m2 .video .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 html.mv-m2 .video .play{width:36px;height:36px;font-size:13px;opacity:.9}
 html.mv-m2 .video .tag{top:6px;left:6px;font-size:10px;padding:3px 6px;max-width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html.mv-m2 .video .duration{right:6px;bottom:6px;font-size:11px;padding:2px 6px}
 html.mv-m2 .video .p1-fav{top:2px!important;right:2px!important;width:40px!important;height:40px!important;font-size:17px!important;display:grid;place-items:center;background:rgba(9,9,8,.55)!important;border-radius:50%}
 html.mv-m2 .video-meta{padding:8px 10px 10px!important;min-width:0}
 html.mv-m2 .video-meta h3{font-size:14px!important;line-height:1.25;margin:0 0 4px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em;font-weight:700}
 html.mv-m2 .video-meta>p{font-size:12px!important;line-height:1.35;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.mv-m2 .video-meta>p.mv-card-creator{display:flex;align-items:center;gap:6px;min-width:0}
 html.mv-m2 .video-meta>p.mv-card-creator .mv-feed-avatar{width:22px!important;height:22px!important;flex:0 0 22px;font-size:11px}
 html.mv-m2 .video-meta .performer-credits{font-size:12px;line-height:1.3;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.mv-m2 .video-meta .performer-credits a{display:inline-block;padding:6px 0;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
 html.mv-m2 .video-meta .library-access-label{font-size:11px;margin:0 0 4px}
 html.mv-m2 .video-foot{margin-top:4px!important;padding-top:6px!important;font-size:11px!important;display:flex;gap:6px;align-items:center;padding-right:34px!important}
 html.mv-m2 .video-foot .lock{display:none}
 html.mv-m2 .video .content-info-button,html.mv-m2 .feed-post .content-info-button,html.mv-m2 .library-content-card .content-info-button{width:36px!important;height:36px!important;min-width:36px;border-radius:50%!important;font-size:14px!important;display:grid!important;place-items:center;padding:0!important}
 html.mv-m2 .video.content-info-card{padding-bottom:0!important}
 html.mv-m2 .video>.content-info-button{position:absolute!important;right:6px!important;bottom:6px!important;top:auto!important;left:auto!important}
 html.mv-m2 .video-foot{min-height:36px}
 html.mv-m2 .library-content-card.content-info-card{padding-bottom:0!important}
 html.mv-m2 .library-content-card>.content-info-button{position:absolute!important;right:8px!important;bottom:8px!important}
 html.mv-m2 .library-content-card .outline-btn{min-height:40px}

 /* Rows that scroll sideways (continue watching, favourites, membership releases, featured creators) */
 html.mv-m2 .p1-track,html.mv-m2 .membership-release-track,html.mv-m2 .featured-track{display:flex!important;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -14px;padding:2px 14px 6px;scroll-padding:0 14px;-webkit-overflow-scrolling:touch}
 html.mv-m2 .p1-track::-webkit-scrollbar,html.mv-m2 .membership-release-track::-webkit-scrollbar,html.mv-m2 .featured-track::-webkit-scrollbar{display:none}
 html.mv-m2 .p1-track>*,html.mv-m2 .membership-release-track>*,html.mv-m2 .featured-track>*{scroll-snap-align:start;flex:0 0 auto}
 html.mv-m2 .p1-tile{width:min(44vw,190px)!important;min-width:0}
 html.mv-m2 .p1-tile .th{aspect-ratio:16/9;height:auto!important;background-size:cover;background-position:center}
 html.mv-m2 .p1-tile b{display:block;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.mv-m2 .p1-row{margin:4px 0 18px}
 html.mv-m2 .p1-row h2{font-size:18px;margin:0 0 10px}
 html.mv-m2 .membership-release-track>.library-content-card{width:min(72vw,280px)!important}
 html.mv-m2 .membership-row-controls,html.mv-m2 .feature-arrows{display:none!important}
 html.mv-m2 .library-content-card .library-cover{aspect-ratio:16/9;height:auto!important;width:100%;padding:0;overflow:hidden}
 html.mv-m2 .library-content-card .library-cover img{width:100%;height:100%;object-fit:cover}

 /* Feed posts */
 html.mv-m2 .feed-posts{gap:16px!important}
 html.mv-m2 .feed-post{border-radius:16px;overflow:hidden;position:relative}
 html.mv-m2 .feed-post header{padding:12px 52px 10px 14px!important}
 html.mv-m2 .feed-post header strong{font-size:15px}
 html.mv-m2 .feed-post header small{font-size:12px}
 html.mv-m2 .feed-media{display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;overflow:hidden;background:#0b0b0a}
 html.mv-m2 .feed-media img{width:100%;height:100%;object-fit:cover}
 html.mv-m2 .feed-caption{padding:12px 14px 14px!important}
 html.mv-m2 .feed-caption h2{font-size:18px!important;margin:0 0 6px}
 html.mv-m2 .feed-caption p{font-size:14px;margin:0 0 10px}
 html.mv-m2 .feed-caption>.outline-btn{width:100%;margin-top:10px}
 html.mv-m2 .feed-post>.content-info-button{position:absolute!important;top:8px!important;right:8px!important}

 /* Performer cards (explore / directory) */
 html.mv-m2 .performer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html.mv-m2 .performer-tile{border-radius:14px;min-width:0}
 html.mv-m2 .performer-tile .performer-cover{height:auto!important;aspect-ratio:2/1;display:block}
 html.mv-m2 .performer-card-info{flex-direction:column;align-items:flex-start;gap:4px;padding:0 10px!important;margin-top:-24px!important}
 html.mv-m2 .performer-avatar{width:48px!important;height:48px!important;border-width:3px!important}
 html.mv-m2 .performer-card-info>div{min-width:0;max-width:100%}
 html.mv-m2 .performer-card-info h3{font-size:15px!important;margin:2px 0 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.mv-m2 .performer-card-info span{font-size:12px!important;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.mv-m2 .performer-tile p{padding:4px 10px 0!important;min-height:0!important;font-size:12px!important;line-height:1.4!important;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 html.mv-m2 .performer-view{padding:8px 10px 12px!important;font-size:13px!important}
 html.mv-m2 .featured-track>.performer-tile{width:min(78vw,300px)!important}
 html.mv-m2 .featured-track .performer-card-info{flex-direction:row;align-items:center;gap:10px}
 html.mv-m2 .featured-track .performer-card-info h3{margin-top:24px!important}
 html.mv-m2 .directory-hero h1,html.mv-m2 .performer-directory h1{font-size:clamp(30px,9vw,40px)!important}

 /* Public creator profile */
 html.mv-m2 .public-profile .public-cover{height:auto!important;aspect-ratio:2.6/1;max-height:180px;border-radius:14px}
 html.mv-m2 .public-profile-body{padding:0 4px!important}
 html.mv-m2 .public-profile .public-avatar{width:84px!important;height:84px!important;margin-top:-42px!important}
 html.mv-m2 .public-profile h1{font-size:clamp(28px,8.4vw,36px)!important;line-height:1.05;word-break:break-word}
 html.mv-m2 .public-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
 html.mv-m2 .profile-message-icon,html.mv-m2 .profile-x-icon{width:44px!important;height:44px!important;min-width:44px}
 html.mv-m2 .public-profile .service-actions{display:flex;flex-wrap:wrap;gap:8px!important}
 html.mv-m2 .public-profile .service-actions>*{flex:1 1 140px}
 html.mv-m2 .public-profile .service-actions>#profile-follow{flex:1 1 100%}
 html.mv-m2 .public-profile-body>p,html.mv-m2 .public-profile-body h3{font-size:15px}
 html.mv-m2 .profile-access-note{font-size:13px!important}

 /* Modals → bottom sheets (not the age gate; not the watch page) */
 html.mv-m2 .modal-bg:not(.mvw *){place-items:end center!important;padding:0!important;align-items:end}
 html.mv-m2 .modal-bg.open:not(.mvw *){display:grid!important;z-index:250}
 html.mv-m2 .modal-bg>.modal{position:relative;max-width:none!important;width:100%!important;max-height:92svh;overflow-y:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;padding:28px 18px calc(22px + var(--m2-safe-b))!important;animation:m2-sheet .22s ease-out}
 html.mv-m2 .modal-bg>.modal::before{content:'';position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#3d4232}
 @keyframes m2-sheet{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
 html.mv-m2 .modal-bg>.modal .close,html.mv-m2 .modal-bg>.modal [data-close],html.mv-m2 #auth-bg .close{position:absolute!important;top:10px!important;right:8px!important;width:44px!important;height:44px!important;display:grid!important;place-items:center;font-size:24px!important;padding:0!important;border-radius:12px}
 html.mv-m2 .modal-bg>.modal h2{padding-right:44px}
 html.mv-m2 .modal-bg>.modal .modal-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
 html.mv-m2 .modal-bg>.modal .modal-actions>*{width:100%;min-width:0;white-space:nowrap}
 html.mv-m2 .modal-bg>.modal .modal-actions>:first-child{grid-column:1/-1}
 html.mv-m2 .modal-bg>.modal .modal-actions>.content-info-button::after{content:'\00a0 Info & report';font:600 14px 'DM Sans',sans-serif}
 html.mv-m2 .modal-bg>.modal .modal-actions>.content-info-button,html.mv-m2 .modal-bg>.modal .modal-actions>.inline-report-button{grid-column:auto;width:100%!important;height:44px!important;border-radius:12px!important}
 html.mv-m2 .modal-bg>.modal form,html.mv-m2 .modal-bg>.modal fieldset{min-width:0;max-width:100%}
 html.mv-m2 .modal-bg>.modal label{display:block;max-width:100%}
 html.mv-m2 .modal-bg>.modal input:not([type=checkbox]):not([type=radio]),html.mv-m2 .modal-bg>.modal select,html.mv-m2 .modal-bg>.modal textarea{width:100%!important;max-width:100%!important;min-height:48px;box-sizing:border-box}
 html.mv-m2 .modal-bg>.modal input[type=checkbox],html.mv-m2 .modal-bg>.modal input[type=radio]{width:22px;height:22px;flex:0 0 22px}
 html.mv-m2 .modal-bg>.modal .gold-btn,html.mv-m2 .modal-bg>.modal .red-btn,html.mv-m2 .modal-bg>.modal .outline-btn{width:100%;min-height:48px}
 html.mv-m2 .modal-bg>.modal .text-btn{min-height:44px;padding:10px 4px}
 html.mv-m2 #auth-bg .modal{display:flex;flex-direction:column}
 html.mv-m2 #auth-bg #auth-account-settings{order:1}html.mv-m2 #auth-bg #auth-dashboard{order:2}html.mv-m2 #auth-bg #auth-signout{order:3}
 html.mv-m2 .signup-policy-choice{display:flex!important;gap:12px;align-items:flex-start;padding:10px 0;font-size:14px}
 /* Guest support + other fixed dialogs */
 html.mv-m2 #guest-support-modal{align-items:flex-end!important;padding:0!important}
 html.mv-m2 #guest-support-modal>*{width:100%!important;max-width:none!important;max-height:92svh;overflow-y:auto;border-radius:20px 20px 0 0!important;padding-bottom:calc(20px + var(--m2-safe-b))!important}
 html.mv-m2 #guest-support-modal button{min-height:44px}
 html.mv-m2 #notification-tray{position:fixed!important;left:8px!important;right:8px!important;top:calc(60px + var(--m2-safe-t))!important;width:auto!important;max-height:70svh;overflow-y:auto;z-index:130}

 /* Age check: same flow, just reachable on a phone */
 html.mv-m2 #age-gate{padding:calc(12px + var(--m2-safe-t)) 12px calc(12px + var(--m2-safe-b))!important}
 html.mv-m2 .age-panel{padding:24px 18px!important;border-radius:20px}
 html.mv-m2 .age-panel h1{font-size:clamp(30px,9vw,40px)}
 html.mv-m2 .age-panel .gold-btn,html.mv-m2 .age-panel .outline-btn,html.mv-m2 .age-provider-button{width:100%;min-height:48px}
 html.mv-m2 .age-footer{gap:0!important}
 html.mv-m2 .age-footer a,html.mv-m2 .age-panel .text-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px}

 /* Forms on member pages */
 html.mv-m2 .admin-box{padding:16px!important;border-radius:14px}
 html.mv-m2 body.member-experience .main form input:not([type=checkbox]):not([type=radio]):not([type=file]),html.mv-m2 body.member-experience .main form select,html.mv-m2 body.member-experience .main form textarea{width:100%;max-width:100%;min-height:46px;box-sizing:border-box}
 html.mv-m2 body.member-experience .main form .gold-btn,html.mv-m2 body.member-experience .main form .red-btn{width:100%}
 html.mv-m2 .member-note-card .gold-btn{width:100%}
 html.mv-m2 .member-id{font-size:clamp(22px,7vw,30px)!important;word-break:break-all}

 /* Footer */
 html.mv-m2 .site-footer{padding:20px 14px calc(var(--m2-tab-h) + 24px + var(--m2-safe-b))!important;font-size:13px!important;text-align:left}
 html.mv-m2 body.member-experience .main .site-footer{padding-bottom:20px!important}
 html.mv-m2 .site-footer nav{display:grid!important;grid-template-columns:1fr 1fr;gap:0 12px!important;margin:8px 0!important}
 html.mv-m2 .site-footer nav a,html.mv-m2 .site-footer nav button{display:flex;align-items:center;min-height:44px;font-size:14px!important;color:#c8ff31!important;text-decoration:none}
 html.mv-m2 .site-footer nav .usc2257-link{grid-column:1/-1;font-size:13px!important;color:#d9dbd1!important;text-decoration:underline}
 html.mv-m2 .site-footer nav .profile-help-button{grid-column:1/-1;justify-content:center;border-radius:12px}

 /* Ads: keep every slot, just fit it */
 html.mv-m2 .mv-ad-slot{max-width:100%;overflow:hidden;margin:16px auto!important;padding:8px 8px 10px!important}
 html.mv-m2 .mv-ad-slot .mv-ad-frame{max-width:100%!important}
 html.mv-m2 .mv-ad-slot iframe,html.mv-m2 .mv-ad-slot ins,html.mv-m2 .mv-ad-slot img{max-width:100%!important}
 html.mv-m2 .mv-ad-explore-leaderboard,html.mv-m2 .mv-ad-home-leaderboard{margin:4px auto 16px!important}

 /* Messages */
 html.mv-m2 .inbox-heading{display:flex;flex-wrap:wrap;gap:8px}
 html.mv-m2 .inbox-heading h2{margin:2px 0}
 html.mv-m2 .inbox-search{min-height:46px}
 html.mv-m2 .inbox-new{width:44px;height:44px}

 /* Toasts clear the tab bar */
 html.mv-m2 .toast{bottom:calc(var(--m2-tab-h) + 14px + var(--m2-safe-b))!important;left:14px!important;right:14px!important;max-width:none!important;text-align:center}
}
@media (max-width:359px){
 html.mv-m2 .videos,html.mv-m2 .video-grid,html.mv-m2 #profile-video-grid,html.mv-m2 .performer-grid{grid-template-columns:1fr!important}
}

/* ---------- Tablet sanity (721–1024) ---------- */
@media (min-width:721px) and (max-width:1024px){
 html.mv-m2 body.member-experience .sidebar .nav button{min-height:40px!important;height:40px!important;font-size:13px!important;padding:8px 12px!important}
 html.mv-m2 body.member-experience .sidebar .nav .nav-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;font-size:11px;line-height:18px;width:auto!important}
 html.mv-m2 body.member-experience .member-header-actions .avatar,html.mv-m2 body.member-experience .member-header-actions .notification-bell{width:40px!important;height:40px!important}
 html.mv-m2 .videos,html.mv-m2 .video-grid,html.mv-m2 #profile-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
 html.mv-m2 .video .thumb{height:auto!important;aspect-ratio:16/9}
 html.mv-m2 .video .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 html.mv-m2 .video-meta h3{font-size:14px!important}
 html.mv-m2 .video-meta>p,html.mv-m2 .video-meta .performer-credits,html.mv-m2 .video-foot{font-size:12px!important}
 html.mv-m2 .performer-tile .performer-cover{height:auto!important;aspect-ratio:2.2/1}
}

/* ---------- Static pages (welcome, policies, report, 2257, trust & safety, creator invite) ---------- */
@media (max-width:720px){
 html.mv-m2 body:not(.member-experience) main a:not([class]),html.mv-m2 body:not(.member-experience) footer a{padding-top:6px;padding-bottom:6px;display:inline-block}
 html.mv-m2 body:not(.member-experience) input[type=checkbox],html.mv-m2 body:not(.member-experience) input[type=radio]{width:22px!important;height:22px!important;flex:0 0 22px}
 html.mv-m2 body:not(.member-experience) button,html.mv-m2 body:not(.member-experience) .button,html.mv-m2 body:not(.member-experience) [type=submit]{min-height:44px}
 html.mv-m2 body:not(.member-experience) .skip-link:not(:focus),html.mv-m2 body:not(.member-experience) a[href="#main"]:not(:focus),html.mv-m2 body:not(.member-experience) a[href="#content"]:not(:focus){position:absolute;left:-9999px}
}
/* Public welcome page (/) */
@media (max-width:720px){
 html.mv-m2 body:not(.member-experience)>header.top{position:sticky;top:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 8px;padding:calc(8px + var(--m2-safe-t)) 14px 0;background:rgba(9,9,8,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 html.mv-m2 body:not(.member-experience)>header.top .brand img{height:30px;width:auto;display:block}
 html.mv-m2 body:not(.member-experience)>header.top .brand{grid-row:1;grid-column:1}
 html.mv-m2 body:not(.member-experience)>header.top .actions{grid-row:1;grid-column:2;justify-self:end;gap:6px}
 html.mv-m2 body:not(.member-experience)>header.top .actions .btn{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;font-size:14px;white-space:nowrap}
 html.mv-m2 body:not(.member-experience)>header.top nav{grid-row:2;grid-column:1/-1;order:0;display:flex;gap:4px;width:auto;margin:2px -8px 0;overflow-x:auto;scrollbar-width:none}
 html.mv-m2 body:not(.member-experience)>header.top nav a{display:inline-flex;align-items:center;min-height:40px;padding:0 8px;white-space:nowrap}
 html.mv-m2 body:not(.member-experience) .hero{padding:32px 0 24px}
 html.mv-m2 body:not(.member-experience) .cta{display:grid;grid-template-columns:1fr;gap:10px}
 html.mv-m2 body:not(.member-experience) .cta .btn{display:flex;align-items:center;justify-content:center;min-height:48px;font-size:15px}
 html.mv-m2 body:not(.member-experience) main{padding-left:16px;padding-right:16px}
 html.mv-m2 body:not(.member-experience) .grid{gap:12px;padding:24px 0}
 html.mv-m2 body:not(.member-experience) .foot a{display:inline-flex;align-items:center;min-height:40px;padding:0 6px}
 html.mv-m2 body:not(.member-experience) .safety-header a{display:inline-flex;align-items:center;min-height:44px}
}
@media (max-width:380px){html.mv-m2 body:not(.member-experience)>header.top .actions .btn{padding:8px 10px;font-size:13px}}
@media (prefers-reduced-motion:reduce){html.mv-m2 .m2-drawer-panel,html.mv-m2 .modal-bg>.modal{transition:none!important;animation:none!important}}
