/* Geatzo immersive video feed: isolated to Home and Explore. */
.geatzo-fullscreen-feed {
  display:flex!important; flex-direction:column!important; align-items:center;
  gap:0!important; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain;
  scroll-snap-type:y mandatory; scroll-padding:0; scrollbar-width:none;
  height:calc(100dvh - 96px); min-height:320px; width:100%;
  max-width:100%; margin:0 auto; -webkit-overflow-scrolling:touch;
}
.geatzo-fullscreen-feed::-webkit-scrollbar{display:none}
.geatzo-fullscreen-feed>.video-card,
.geatzo-fullscreen-feed>.loop-adsense-feed-card{
  position:relative; scroll-snap-align:start; scroll-snap-stop:always;
  flex:0 0 100%; width:min(100%,560px); max-width:100%; height:100%;
  min-height:0; margin:0 auto; display:block; overflow:hidden; background:#050509;
}
.geatzo-fullscreen-feed .video-stage {
  position:absolute; inset:0; width:100%!important; max-width:none!important;
  height:100%!important; min-height:0!important; max-height:none!important;
  aspect-ratio:auto!important; margin:0!important; border-radius:0!important;
  box-shadow:none!important; background:#000;
}
.geatzo-fullscreen-feed video.feed-video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.geatzo-fullscreen-feed .video-gradient{pointer-events:none}
.geatzo-fullscreen-feed .video-caption{left:16px;right:78px;bottom:38px;z-index:5;max-height:42%;overflow:auto;scrollbar-width:none}
.geatzo-fullscreen-feed .video-caption .creator{font-size:15px}
.geatzo-fullscreen-feed .video-caption p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.geatzo-fullscreen-feed .video-actions{
  position:absolute!important;z-index:10;right:9px;bottom:70px;top:auto;
  width:60px;min-width:0!important;display:flex;flex-direction:column;align-items:center;
  gap:4px;padding:0!important;color:#fff;text-shadow:0 2px 8px #000;
}
.geatzo-fullscreen-feed .video-actions .round-action{
  width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
  margin:0!important;background:rgba(0,0,0,.20)!important;border-radius:50%;
  font-size:28px;line-height:1;color:#fff;border:0;backdrop-filter:blur(2px);
}
.geatzo-fullscreen-feed .video-actions .round-action.is-liked{color:#ff4e93!important}
.geatzo-fullscreen-feed .video-actions .action-form{display:flex;flex-direction:column;align-items:center;margin:0}
.geatzo-fullscreen-feed .video-actions span{font-size:12px;font-weight:700;color:#fff}
.geatzo-fullscreen-feed .loop-not-interested{position:relative;z-index:12}
.geatzo-fullscreen-feed .loop-adsense-stage{height:100%;min-height:0;max-width:100%;width:100%;border-radius:0}
@media(max-width:720px){
 .geatzo-fullscreen-feed{height:calc(100dvh - 136px);min-height:300px}
 .geatzo-fullscreen-feed>.video-card,.geatzo-fullscreen-feed>.loop-adsense-feed-card{width:100%}
 .geatzo-fullscreen-feed .video-actions{right:5px;bottom:64px}
 .geatzo-fullscreen-feed .video-caption{bottom:20px;right:70px}
 .geatzo-fullscreen-feed .video-actions .round-action{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}
}
@media(prefers-reduced-motion:reduce){.geatzo-fullscreen-feed{scroll-behavior:auto}}

/* Only video/ad cards occupy snap slides; utility controls stay inside cards. */
.geatzo-fullscreen-feed > .video-card > .loop-not-interested {
  position:absolute;top:8px;left:8px;z-index:15;margin:0;
}
/* Collapse the story rail while watching videos instead of leaving it pinned above the feed. */
.loop-feed-stories.geatzo-stories-collapsed {display:none!important}

/* Explore: viewport-bound feed, search is a popover instead of a page-height header. */
.geatzo-explore-immersive {
  position:fixed!important; top:72px; bottom:0; left:238px; right:0;
  width:auto!important; max-width:none!important; height:auto!important;
  min-height:0!important; margin:0!important; padding:0!important;
  z-index:5; background:#050509;
}
.geatzo-explore-controls {position:fixed;top:82px;right:18px;z-index:25;}
.geatzo-explore-search {position:relative;}
.geatzo-explore-search>summary {
  list-style:none; cursor:pointer; border:1px solid #ffffff40; border-radius:24px;
  padding:9px 15px; color:#fff; font-weight:700; background:#171923e8;
  box-shadow:0 4px 18px #0009; user-select:none;
}
.geatzo-explore-search>summary::-webkit-details-marker{display:none}
.geatzo-explore-search[open]>summary{background:#a83ec2}
.geatzo-explore-search-panel {
  position:absolute;right:0;top:calc(100% + 10px);width:min(380px,calc(100vw - 24px));
  max-height:calc(100dvh - 175px);overflow-y:auto;padding:16px;
  border:1px solid #464052;border-radius:18px;background:#12131df7;
  box-shadow:0 16px 50px #000c;
}
.geatzo-explore-search-panel .page-heading {display:block;margin:0 0 12px}
.geatzo-explore-search-panel .page-heading h1 {font-size:24px;margin:0}
.geatzo-explore-search-panel .page-heading p {font-size:12px;margin:4px 0}
.geatzo-explore-search-panel .explore-search-bar {margin-bottom:12px}
.geatzo-explore-search-panel .explore-search-bar input[name=q] {flex-basis:100%}
.geatzo-explore-search-panel .explore-search-bar select {flex:1 1 110px}
.geatzo-explore-search-panel .explore-search-bar .button {flex:1 1 100px}
@media(max-width:720px){
  .geatzo-explore-immersive {top:58px;bottom:68px;left:0;right:0;height:auto!important;min-height:0!important}
  .geatzo-explore-controls {top:65px;right:10px}
  .geatzo-explore-search-panel {max-height:calc(100dvh - 155px)}
  .geatzo-explore-immersive .video-caption {bottom:28px}
}
