/* MoviesVibe 52 — native, GPU-friendly scrolling and accessible notifications/Reels. */
:root{scrollbar-gutter:auto}
html{scroll-behavior:smooth;overscroll-behavior-x:none}
body{overflow-x:clip;overscroll-behavior-x:none;-webkit-overflow-scrolling:touch}
#content .mv-scroll-track32,#content .horizontal-list,#content .mv46-search-track,#content .mv48-related-feed .mv-scroll-track32,
#content .mv45-rank-track,#content .mv-resume-track34,#content .genre-tiles-grid26{
 scroll-behavior:smooth;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;

}
#content .mv-scroll-track32 .movie-card,#content .horizontal-list .movie-card{scroll-snap-align:start}
#content .movie-cover img,#content .art img{transform:translateZ(0);backface-visibility:hidden}
#content .mv-scroll-track32.mv-dragging36{scroll-snap-type:none!important;scroll-behavior:auto!important}
.mv52-header-notif{position:relative;display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:11px;background:#ffffff0c;color:var(--text,#fff);border:1px solid #c6d4ff22;cursor:pointer}
.mv52-header-notif:hover{background:#91aafa27}
.mv52-notif-badge,.mv52-nav-badge{display:flex;justify-content:center;align-items:center;position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;padding:1px 4px;border-radius:30px;background:#fb526c;color:#fff;font:800 10px/1 system-ui;pointer-events:none;box-shadow:0 2px 5px #08091677}
.mv52-nav-badge{top:0;right:10%;font-size:9px}
.mv52-notif-badge[hidden],.mv52-nav-badge[hidden]{display:none!important}
.mv52-install-tag{display:inline-block;color:#b9bce8;font-size:11px;white-space:nowrap}
.mv52-cron-copy{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:9px 0}
.mv52-cron-copy code{display:block;flex:1 1 320px;min-width:0;padding:12px;border-radius:12px;background:#161f32;color:#c1ecff;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #aebdeb33;font-size:12px;user-select:all}
.mv52-cron-label{color:#c5d3e8;font-weight:650}
/* Inbox is an SPA route; items are not reloaded when opening another notification. */
.mv52-notifications{width:min(950px,100%);margin:0 auto;min-height:70vh;padding:12px 0 45px}
.mv52-notif-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:8px 0 14px}
.mv52-notif-header h1{margin:0;font:850 clamp(21px,2.1vw,30px)/1.2 system-ui;color:var(--text,#fff)}
.mv52-notif-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mv52-notif-actions button{min-height:36px;border-radius:9px;padding:7px 10px;font-size:12px}
.mv52-notif-list{display:flex;flex-direction:column;gap:6px}
.mv52-notif-item{display:flex;align-items:center;gap:8px;border:1px solid #9ba9d124;background:#ffffff07;border-radius:12px;padding:9px;color:var(--text,#fafaff)}
.mv52-notif-item.unread{background:#6389e61c;border-color:#9faeff55}
.mv52-notif-item button{border:0;background:transparent;color:inherit;cursor:pointer;flex:none}
.mv52-notif-select{width:30px;height:32px;border-radius:8px!important;color:#99b8f2!important}
.mv52-notif-select[aria-pressed=true]{background:#86aaf12d;color:#fff!important}
.mv52-notif-open{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:12px;text-align:left;padding:3px}
.mv52-notif-open span:last-child{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px}
.mv52-notif-open strong{font:820 13px/1.3 system-ui;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.mv52-notif-open small{color:var(--soft,#bec7d9);line-height:1.35;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mv52-notif-open time{font:600 10px/1.3 system-ui;color:var(--soft,#b6c5da)}
.mv52-notif-poster{width:47px;height:65px;object-fit:cover;border-radius:8px;flex:none;filter:none!important;opacity:1!important}
.mv52-notif-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#91a5f329;color:#b6d8ff;flex:none}
.mv52-notif-item>[data-mode=delete]{height:32px;width:32px;border-radius:8px;color:#ee9ba7}
.mv52-notif-more{display:block;margin:15px auto}
.mv52-notif-more[hidden]{display:none}
.mv52-notif-empty{padding:40px 10px;color:#b8c8df;text-align:center}
.mv52-permission{display:flex;flex-direction:column;align-items:center;gap:15px;text-align:center;padding:8px 5px}
.mv52-permission h2,.mv52-permission p{margin:0}.mv52-notify-icon{color:#7bd4ff}
/* Reels is a mobile-first portrait preview; background is black, one YT player lives at a time. */
.mv52-reels-open{background:#000!important}
.mv52-reels-open .topbar,.mv52-reels-open .footer,.mv52-reels-open #player-root{display:none!important}
.mv52-reels-open .layout,.mv52-reels-open .app-column,.mv52-reels-open .content{padding:0!important;margin:0!important;max-width:none!important;width:100%!important;background:#000!important;min-height:100dvh!important}
.mv52-reel-shell{position:relative;inset:0;height:100dvh;width:100%;background:#000;overflow:hidden;isolation:isolate}
.mv52-reel-track{height:100%;width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;scroll-snap-type:y mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.mv52-reel-track::-webkit-scrollbar{display:none}
.mv52-reel-slide{height:100dvh;min-height:100dvh;width:100%;position:relative;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;background:#000;color:#fff;isolation:isolate}
.mv52-reel-backdrop{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#06060d}
.mv52-reel-backdrop img{width:100%;height:100%;object-fit:cover;filter:brightness(.52) blur(15px)!important;opacity:.85!important}
.mv52-reel-player{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.mv52-reel-player iframe{position:absolute!important;height:100%!important;width:max(100%,177.78dvh)!important;max-width:none!important;left:50%!important;top:0!important;transform:translateX(-50%)!important;border:0!important;pointer-events:none!important}
.mv52-reel-center{position:absolute;inset:0;display:grid;place-items:center;background:transparent;z-index:2;border:0;color:#fff;cursor:pointer;text-shadow:0 1px 8px #000b}
.mv52-reel-center img{height:52px;width:52px;filter:drop-shadow(0 2px 5px #0008)!important}
.mv52-reel-slide.playing .mv52-reel-center>img,.mv52-reel-slide.playing .mv52-reel-center>svg{opacity:0}
.mv52-reel-caption{position:absolute;z-index:3;left:14px;right:80px;bottom:calc(82px + env(safe-area-inset-bottom));color:#fff;pointer-events:none;display:flex;align-items:flex-start;flex-direction:column;gap:8px}
.mv52-reel-caption strong{font:850 clamp(18px,4.7vw,26px)/1.18 system-ui;letter-spacing:-.02em;text-shadow:0 2px 7px #000}
.mv52-reel-badges{font:650 12px/1.3 system-ui;color:#d9e2ef;text-shadow:0 1px 4px #000}
.mv52-reel-caption>*{pointer-events:auto}
.mv52-reel-watch{padding:10px 18px;border-radius:9px;display:inline-flex;align-items:center;gap:6px}
.mv52-reel-side{position:absolute;right:14px;bottom:140px;z-index:4;display:grid;gap:15px}
.mv52-reel-side button{width:40px;height:40px;border-radius:50%;border:1px solid #e3ebfa66;background:#10182766;color:#fff;display:grid;place-items:center;transform:rotate(-90deg);cursor:pointer}
.mv52-reel-exit{position:fixed;z-index:30;top:calc(12px + env(safe-area-inset-top));right:15px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #fff5;border-radius:50%;background:#0808087a;color:#fff;cursor:pointer}
.mv52-reel-status{position:fixed;left:0;right:0;top:55px;z-index:5;text-align:center;color:#ccd4e1;font-size:12px;pointer-events:none}
.mv52-reel-custom{font:650 12px system-ui;max-width:100%;color:#fff;pointer-events:none}
.mv52-trailer-modal{display:flex;flex-direction:column;gap:12px;min-height:0;height:100%;max-width:100%;padding:35px 8px 5px}
.mv52-trailer-modal h2{font:800 clamp(16px,2vw,24px)/1.2 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.mv52-trailer-video{position:relative;flex:1;min-height:0;display:grid;place-items:center}
.mv52-trailer-video iframe{display:block;width:100%;height:100%;border:0}
.modal-scrim:has(.mv52-trailer-modal){padding:0!important;z-index:3000!important}
.modal-scrim:has(.mv52-trailer-modal) .modal-panel{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:10px 20px!important;background:#05070c!important}
.modal-scrim:has(.mv52-trailer-modal) .modal-x{position:absolute;z-index:6;top:10px;right:15px;color:#fff}
@media(min-width:761px){.mv52-reel-shell{width:min(460px,100%);margin:0 auto}.mv52-reels-open .mobile-nav{display:none!important}}
@media(max-width:760px){
 .mv52-reels-open .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:22;background:#07070a;border-top:1px solid #ffffff21;color:#fff;padding-bottom:env(safe-area-inset-bottom)}
 .mv52-reels-open .mobile-nav .nav-item:not([data-view=reels]){opacity:.65}
 .mv52-reels-open .mobile-nav .nav-item[data-view=reels]{color:#fff;opacity:1}
 .mv52-reel-caption{bottom:calc(105px + env(safe-area-inset-bottom));right:68px}
 .mv52-reel-side{bottom:calc(160px + env(safe-area-inset-bottom));right:9px}
 .mv52-notifications{padding:12px 8px 70px}
 .mv52-notif-actions button{padding:6px 7px;font-size:11px}
 .mv52-notif-item{gap:4px;padding:6px}
 .mv52-notif-open{gap:7px}
 .mv52-notif-poster{width:38px;height:54px}
}
@media(prefers-reduced-motion:reduce){html,.mv52-reel-track,#content .mv-scroll-track32,#content .mv45-rank-track{scroll-behavior:auto!important}}
