/* Vyral V6.5 — mobile polish, guest share mode, real live, marketplace, install banner */
html,body{max-width:100%;overflow-x:hidden}

/* Account Center — real single-column behavior on narrow phones/tablets. */
@media(max-width:760px){
  .vyral-account-page{width:100%!important;max-width:100%!important;margin:0!important;padding:8px 8px calc(96px + env(safe-area-inset-bottom))!important}
  .vyral-account-hero{padding:15px!important;border-radius:22px!important;gap:10px!important}
  .vyral-account-hero>div{gap:11px!important;min-width:0!important}
  .vyral-account-hero .vyral-official-logo{width:48px!important;height:48px!important;flex:0 0 48px!important}
  .vyral-account-hero h1{font-size:clamp(24px,7vw,34px)!important;line-height:1!important;overflow-wrap:anywhere}
  .vyral-account-hero p{font-size:11px!important;line-height:1.45!important}
  .vyral-settings-grid,.vyral-upload-grid{grid-template-columns:1fr!important}
  .vyral-control-wide{grid-column:auto!important}
  .vyral-section-heading{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:start!important}
  .vyral-section-heading>span:last-child{min-width:0!important;text-align:left!important}
  .vyral-section-heading h2{font-size:18px!important;line-height:1.08!important}
  .vyral-section-heading p{font-size:11px!important;line-height:1.4!important}
  .vyral-control input,.vyral-control textarea{font-size:16px!important}
}

/* iPhone profile: center avatar/identity and prevent the right-shift seen on 390px screens. */
@media(max-width:620px){
  .v7-profile-cover{height:180px!important;border-radius:0 0 26px 26px!important}
  .v7-profile-main{width:100%!important;max-width:100%!important;margin:0 auto!important;padding:0 14px calc(105px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
  .v7-profile-top{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:10px!important;margin-top:-64px!important;width:100%!important}
  .v7-avatar-frame{margin:0 auto!important;transform:none!important;flex:0 0 auto!important}
  .v7-profile-identity{width:100%!important;min-width:0!important;text-align:center!important}
  .v7-profile-identity h1{font-size:clamp(30px,9vw,42px)!important;line-height:1!important;max-width:100%!important;overflow-wrap:anywhere!important;margin-inline:auto!important}
  .v7-profile-identity p{max-width:100%!important;overflow-wrap:anywhere!important;text-align:center!important;font-size:13px!important}
  .v7-profile-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;margin-top:18px!important}
  .v7-profile-actions>.v7-btn{min-width:0!important;width:100%!important;min-height:54px!important;padding:10px!important;justify-content:center!important;font-size:14px!important;line-height:1.15!important}
  .v7-profile-actions>.vyral-profile-more{width:100%!important;min-width:0!important}
  .v7-profile-actions>[data-page="admin"]{grid-column:1/-1!important}
  .v7-profile-main>.v7-muted{text-align:center!important;line-height:1.5!important}
  .v7-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .v7-profile-stat{min-width:0!important}
  .profile-tabs{overflow-x:auto!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important;padding-bottom:4px!important}
  .profile-tabs::-webkit-scrollbar{display:none!important}
  .v7-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}
}

/* Public shared content is intentionally read-only. */
body.vyral-guest-share .bottom-nav,
body.vyral-guest-share .desktop-sidebar,
body.vyral-guest-share #sidePanel,
body.vyral-guest-share .video-actions,
body.vyral-guest-share .v7-action-stack,
body.vyral-guest-share [data-action="like"],
body.vyral-guest-share [data-action="comment"],
body.vyral-guest-share [data-action="open-comments"],
body.vyral-guest-share [data-action="save"],
body.vyral-guest-share [data-action="repost"],
body.vyral-guest-share [data-action="follow"],
body.vyral-guest-share [data-action="message"],
body.vyral-guest-share [data-action="subscribe"],
body.vyral-guest-share [data-action="block-user"],
body.vyral-guest-share [data-action="profile-more"],
body.vyral-guest-share .v7-profile-actions{display:none!important}
body.vyral-guest-share .app-shell{grid-template-columns:1fr!important}
body.vyral-guest-share #feed{max-width:760px!important;margin:0 auto!important}
body.vyral-guest-share.v65-guest-profile .v7-profile-tile{pointer-events:none!important;cursor:default!important}
body.vyral-guest-share.v65-guest-profile .v7-profile-tile:after{content:"Sign in to open";position:absolute;inset:auto 5px 5px;padding:4px 6px;border-radius:8px;background:rgba(0,0,0,.72);font-size:8px;font-weight:900;color:#fff;opacity:0;transition:.2s}
body.vyral-guest-share.v65-guest-profile .v7-profile-tile:hover:after{opacity:1}
.v65-guest-bar{position:fixed;z-index:99990;left:50%;top:max(10px,env(safe-area-inset-top));transform:translateX(-50%);width:min(720px,calc(100% - 20px));display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(10,11,17,.92);backdrop-filter:blur(22px);box-shadow:0 16px 50px rgba(0,0,0,.4)}
.v65-guest-bar>span{min-width:0;flex:1}.v65-guest-bar b,.v65-guest-bar small{display:block}.v65-guest-bar small{color:rgba(255,255,255,.55);margin-top:2px}.v65-guest-bar button{min-height:40px;padding:0 14px;border:0;border-radius:12px;background:linear-gradient(120deg,#ff2d67,#ff6259);color:#fff;font-weight:900}

/* Live discovery and studio */
.v65-live-rail{display:grid;gap:10px;margin:12px 0 18px}.v65-live-rail-head{display:flex;align-items:center;gap:9px;padding:0 4px}.v65-live-rail-head .live-dot{width:9px;height:9px;border-radius:50%;background:#ff335f;box-shadow:0 0 0 6px rgba(255,51,95,.12);animation:v65pulse 1.6s infinite}@keyframes v65pulse{50%{box-shadow:0 0 0 11px rgba(255,51,95,0)}}
.v65-live-list{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}.v65-live-list::-webkit-scrollbar{display:none}.v65-live-chip{flex:0 0 220px;min-height:128px;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:radial-gradient(circle at 100% 0,rgba(255,45,103,.2),transparent 42%),rgba(255,255,255,.04);color:#fff;text-align:left;position:relative;overflow:hidden}.v65-live-chip .badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#ff2d5c;font-size:9px;font-weight:1000;letter-spacing:.08em}.v65-live-chip h3{margin:21px 0 4px;font-size:18px}.v65-live-chip small{color:rgba(255,255,255,.55)}
.v65-live-studio{display:grid;gap:14px;padding:14px}.v65-live-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(270px,.7fr);gap:14px}.v65-live-preview{position:relative;min-height:420px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:26px;background:radial-gradient(circle at 70% 15%,rgba(32,216,255,.14),transparent 30%),#080a0f}.v65-live-preview video{width:100%;height:100%;min-height:420px;object-fit:contain;background:#020306}.v65-live-empty{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:12px;text-align:center;padding:24px;color:rgba(255,255,255,.55)}.v65-live-empty svg{width:44px;height:44px;color:#27dcff}.v65-live-overlay{position:absolute;left:14px;right:14px;top:14px;display:flex;align-items:center;gap:8px;pointer-events:none}.v65-live-badge{padding:7px 10px;border-radius:999px;background:#ff315d;color:#fff;font-size:10px;font-weight:1000}.v65-live-viewers{padding:7px 10px;border-radius:999px;background:rgba(0,0,0,.65);font-size:10px;font-weight:900}.v65-live-panel{display:grid;gap:10px;align-content:start;padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:rgba(255,255,255,.035)}.v65-live-panel h1{font-size:clamp(28px,4vw,44px);letter-spacing:-.055em}.v65-live-panel p{color:rgba(255,255,255,.58);line-height:1.55}.v65-live-panel input,.v65-live-panel select{width:100%;min-height:48px;padding:0 13px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#151721;color:#fff}.v65-live-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v65-live-controls button{min-height:48px}.v65-live-chat{display:grid;grid-template-rows:auto minmax(180px,1fr) auto;min-height:320px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(255,255,255,.03);overflow:hidden}.v65-live-chat-head{padding:13px 15px;border-bottom:1px solid rgba(255,255,255,.08);font-weight:900}.v65-live-chat-list{padding:12px;overflow:auto;display:grid;gap:8px;align-content:start}.v65-live-msg{padding:9px 10px;border-radius:13px;background:rgba(255,255,255,.045);font-size:12px;line-height:1.4}.v65-live-msg b{color:#61e8ff}.v65-live-chat-send{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.08)}.v65-live-chat-send input{min-width:0;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:#13151e;color:#fff;padding:0 12px}.v65-live-eligibility{padding:13px;border:1px solid rgba(255,196,80,.22);border-radius:15px;background:rgba(255,190,50,.06);color:#ffd986;font-size:12px;line-height:1.5}.v65-live-viewer{position:fixed;z-index:99995;inset:0;background:#030407;display:grid;grid-template-columns:minmax(0,1fr) 330px}.v65-live-viewer-main{position:relative;display:grid;place-items:center;min-width:0}.v65-live-viewer video{width:100%;height:100%;object-fit:contain;background:#000}.v65-live-viewer-close{position:absolute;z-index:3;top:max(14px,env(safe-area-inset-top));left:14px;width:44px;height:44px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(0,0,0,.65);color:#fff}.v65-live-side{min-width:0;padding:14px;background:#0c0d13;border-left:1px solid rgba(255,255,255,.08);display:grid;grid-template-rows:auto 1fr}.v65-live-meta{padding:8px 2px 14px}.v65-live-meta h2{margin-top:5px}.v65-live-meta small{color:rgba(255,255,255,.55)}
@media(max-width:820px){.v65-live-hero{grid-template-columns:1fr}.v65-live-preview,.v65-live-preview video{min-height:280px}.v65-live-viewer{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 300px}.v65-live-side{border-left:0;border-top:1px solid rgba(255,255,255,.08);padding-bottom:calc(14px + env(safe-area-inset-bottom))}}

/* Marketplace v6.5 */
.v65-shop{display:grid;gap:18px;padding:14px max(12px,calc((100% - 1180px)/2)) 100px}.v65-shop-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:34px;border:1px solid rgba(255,255,255,.12);border-radius:30px;background:radial-gradient(circle at 85% 5%,rgba(35,220,255,.18),transparent 30%),radial-gradient(circle at 10% 100%,rgba(255,45,103,.18),transparent 36%),#0e1018}.v65-shop-hero h1{font-size:clamp(38px,7vw,78px);letter-spacing:-.07em;line-height:.92;max-width:780px}.v65-shop-hero p{max-width:620px;margin-top:15px;color:rgba(255,255,255,.6);line-height:1.6}.v65-shop-tabs{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.v65-shop-tabs button{white-space:nowrap;padding:10px 14px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.04);color:#fff;font-weight:900}.v65-shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v65-product{display:grid;grid-template-rows:auto 1fr auto;gap:13px;min-height:290px;padding:20px;border:1px solid rgba(255,255,255,.1);border-radius:23px;background:rgba(255,255,255,.035);overflow:hidden}.v65-product.featured{grid-column:span 2;background:radial-gradient(circle at 100% 0,rgba(255,45,103,.2),transparent 34%),rgba(255,255,255,.04)}.v65-product-media{height:110px;margin:-20px -20px 4px;background:linear-gradient(135deg,#31142c,#153f58);display:grid;place-items:center;overflow:hidden}.v65-product-media img{width:100%;height:100%;object-fit:cover}.v65-product h2{font-size:24px}.v65-product p{color:rgba(255,255,255,.55);line-height:1.5}.v65-product-buy{display:flex;align-items:center;gap:10px}.v65-product-buy b{font-size:24px}.v65-product-buy button,.v65-product-buy a{margin-left:auto}.v65-sponsored-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v65-sponsored-offer{display:flex;align-items:center;gap:15px;padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(255,255,255,.03)}.v65-sponsored-offer .brand{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#ff2d67,#20d9ff);font-weight:1000}.v65-sponsored-offer span{flex:1;min-width:0}.v65-sponsored-offer small{display:block;color:#83edff;font-size:9px;font-weight:1000;text-transform:uppercase}.v65-sponsored-offer p{color:rgba(255,255,255,.55);font-size:12px;margin-top:4px}.v65-sponsored-offer a{white-space:nowrap}.v65-shop-empty{padding:30px;border:1px dashed rgba(255,255,255,.15);border-radius:22px;text-align:center;color:rgba(255,255,255,.55)}
@media(max-width:860px){.v65-shop-grid{grid-template-columns:1fr 1fr}.v65-product.featured{grid-column:1/-1}.v65-sponsored-strip{grid-template-columns:1fr}}@media(max-width:560px){.v65-shop{padding-inline:10px}.v65-shop-hero{grid-template-columns:1fr;padding:24px 18px}.v65-shop-grid{grid-template-columns:1fr}.v65-product.featured{grid-column:auto}.v65-sponsored-offer{align-items:flex-start;flex-wrap:wrap}.v65-sponsored-offer a{width:100%;justify-content:center}}

/* Install app banner. Browser decides whether the native prompt can be shown. */
.v65-install-banner{position:fixed;z-index:99996;left:50%;top:max(8px,env(safe-area-inset-top));transform:translate(-50%,-130%);opacity:0;width:min(720px,calc(100% - 18px));display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(13,14,20,.94);backdrop-filter:blur(24px);box-shadow:0 20px 70px rgba(0,0,0,.48);transition:.35s cubic-bezier(.2,.8,.2,1)}.v65-install-banner.show{transform:translate(-50%,0);opacity:1}.v65-install-banner img{width:46px;height:46px;border-radius:13px}.v65-install-banner span{min-width:0}.v65-install-banner b,.v65-install-banner small{display:block}.v65-install-banner small{color:rgba(255,255,255,.5);margin-top:2px}.v65-install-banner .install{min-height:38px;padding:0 13px;border:0;border-radius:12px;background:#fff;color:#090a0e;font-weight:1000}.v65-install-banner .dismiss{width:36px;height:36px;border:0;border-radius:11px;background:rgba(255,255,255,.06);color:#fff}.v65-ios-guide{display:grid;gap:12px;margin-top:18px}.v65-ios-guide div{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.035)}
body.vyral-guest-share .vyral-guest-banner{display:none!important}
