
/* Phase56xt: real fullscreen cleanup + group cover radius 0 */

/* Disable the Phase53 custom fake overlay and keep native ShortVid fullscreen path only */
.sv-p53FsOverlay{ display:none !important; }

/* Group cover must be square */
.group-cover,
.group-cover img,
.group-cover-wrapper,
.group-header-cover,
body.single-sv_group #sv-group-head .sv-ghCover,
.sv-gFbCover,
.sv-gFbCover img{
  border-radius:0 !important;
  overflow:hidden !important;
}

/* Native fullscreen overlays: no extra top/bottom bars, no padding, no fake side chrome */
.sv-p28fsOverlay,
.sv-p42Overlay,
.sv-p29player{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  background:#000 !important;
  overflow:hidden !important;
}

.sv-p28fsStage,
.sv-p42Stage,
.sv-p29playerStage,
.sv-p28fsStage.is-portrait,
.sv-p28fsStage.is-landscape,
.sv-p42Overlay .sv-p28fsStage,
.sv-p42Overlay .sv-p42Stage{
  width:100vw !important;
  height:100dvh !important;
  max-width:100vw !important;
  max-height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#000 !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.sv-p28FsLockCtx,
.sv-p42Overlay .sv-p28FsLockCtx,
.sv-p42Overlay .sv-p28fsLockedInner,
.sv-p28fsLockedPoster,
.sv-p28fsVideo,
.sv-p42Video,
.sv-p29playerVideo,
.sv-p28fsFrame,
.sv-p53FsVideo,
.sv-p53FsFrame{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  object-fit:contain !important;
  background:#000 !important;
}

/* remove oversized bars / controls chrome that were causing imbalance */
.sv-p42TopBar,
.sv-p42BottomBar,
.sv-p42Mute,
.sv-p42TimelineWrap,
.sv-p42CtlGroup,
.sv-p49FsCenterUnlock,
.sv-p53FsMeta,
.sv-p53FsHint,
.sv-p53FsBackdrop,
.sv-p53FsShade{
  display:none !important;
}

.sv-p28fsClose,
.sv-p42Close,
.sv-p29playerClose{
  position:fixed !important;
  top:max(8px, env(safe-area-inset-top)) !important;
  right:max(8px, env(safe-area-inset-right)) !important;
  width:36px !important;
  height:36px !important;
  min-height:36px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background:rgba(0,0,0,.28) !important;
  color:#fff !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  z-index:2147483647 !important;
}

/* stop fullscreen vibration from extra transitions/transforms */
.sv-p28fsOverlay *,
.sv-p42Overlay *,
.sv-p29player *{
  animation:none !important;
}
.sv-p28fsOverlay,
.sv-p42Overlay,
.sv-p29player,
.sv-p28fsStage,
.sv-p42Stage,
.sv-p29playerStage,
.sv-p28fsVideo,
.sv-p42Video,
.sv-p29playerVideo,
.sv-p28fsFrame{
  transform:none !important;
  transition:none !important;
}

body.sv-p53FsOpen,
body:has(.sv-p28fsOverlay),
body:has(.sv-p42Overlay){
  overflow:hidden !important;
}
