.nsb-video-section,.nsb-video-library-page{--nsb-magenta:#8d155d;--nsb-gold:#c89a3d;--nsb-ink:#291f28;--nsb-soft:#fbf7fa;direction:rtl;position:relative}.nsb-video-shell{width:min(1240px,calc(100% - 32px));margin-inline:auto}.nsb-video-section{padding:72px 0;background:linear-gradient(180deg,#fff 0%,#fff9fc 100%)}.nsb-video-section__header{text-align:center;margin-bottom:34px}.nsb-video-section__header h2,.nsb-video-library-page__title{margin:0;color:var(--nsb-ink);font-size:clamp(2rem,4vw,3.4rem);line-height:1.45;font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif}.nsb-video-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.nsb-video-category-card{background:#fff;border:1px solid rgba(141,21,93,.11);border-radius:24px;padding:20px;box-shadow:0 14px 40px rgba(69,30,55,.08);min-width:0}.nsb-video-category-card__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.nsb-video-category-card__header h3{margin:0;font-size:1.65rem;color:var(--nsb-magenta);font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;line-height:1.7}.nsb-video-more-link{color:var(--nsb-gold);font-weight:700;text-decoration:none;white-space:nowrap}.nsb-video-more-link:hover{text-decoration:underline}.nsb-video-carousel-wrap{position:relative}.nsb-video-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 8px}.nsb-video-carousel::-webkit-scrollbar{display:none}.nsb-video-item{appearance:none;border:0;background:transparent;text-align:right;padding:0;color:inherit;cursor:pointer;display:block;min-width:0}.nsb-video-carousel .nsb-video-item{flex:0 0 calc(50% - 7px);scroll-snap-align:start}.nsb-video-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#241c22}.nsb-video-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.nsb-video-item:hover .nsb-video-thumb img{transform:scale(1.045)}.nsb-video-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(141,21,93,.92);color:#fff;font-size:18px;padding-left:3px;box-shadow:0 8px 24px rgba(0,0,0,.24)}.nsb-video-duration{position:absolute;left:10px;bottom:10px;background:rgba(0,0,0,.76);color:#fff;border-radius:7px;padding:4px 7px;font-size:.78rem;line-height:1}.nsb-video-item__body{display:block;padding:12px 2px 0}.nsb-video-item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:1rem;line-height:1.7;color:var(--nsb-ink);min-height:3.4em}.nsb-video-item__meta{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:.82rem;color:#786b75}.nsb-video-arrow{position:absolute;top:35%;z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:var(--nsb-magenta);box-shadow:0 6px 20px rgba(0,0,0,.16);cursor:pointer;font-size:1.6rem;line-height:1}.nsb-video-arrow--prev{right:-12px}.nsb-video-arrow--next{left:-12px}.nsb-video-empty{margin:20px 0;color:#766a73}.nsb-video-submit-cta{margin-top:34px;border-radius:24px;padding:28px 30px;background:linear-gradient(135deg,#7c124f,#a32a70);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:28px;box-shadow:0 18px 40px rgba(124,18,79,.2)}.nsb-video-submit-cta h3{margin:0 0 8px;font-size:1.65rem;font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif}.nsb-video-submit-cta p{margin:0;line-height:1.9;max-width:850px}.nsb-video-submit-open,.nsb-video-submit-button{border:0;border-radius:999px;background:var(--nsb-gold);color:#24180a;padding:13px 24px;font-weight:800;cursor:pointer;white-space:nowrap}.nsb-video-modal,.nsb-submission-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:20px}.nsb-video-modal[hidden],.nsb-submission-modal[hidden]{display:none}.nsb-video-modal__backdrop,.nsb-submission-modal__backdrop{position:absolute;inset:0;background:rgba(20,13,18,.8);backdrop-filter:blur(5px)}.nsb-video-modal__dialog,.nsb-submission-modal__dialog{position:relative;z-index:1;width:min(980px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.35)}.nsb-video-modal__close,.nsb-submission-modal__close{position:absolute;top:12px;left:12px;z-index:3;border:0;border-radius:50%;width:42px;height:42px;background:#fff;color:#222;font-size:1.8rem;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.2)}.nsb-video-modal__player{aspect-ratio:16/9;background:#000;border-radius:22px 22px 0 0;overflow:hidden}.nsb-video-modal__player iframe{width:100%;height:100%;border:0;display:block}.nsb-video-modal__details{padding:24px 28px 30px}.nsb-video-modal__category{color:var(--nsb-magenta);font-weight:800}.nsb-video-modal__details h3{font-size:1.8rem;line-height:1.55;margin:8px 0;color:var(--nsb-ink)}.nsb-video-modal__meta{display:flex;gap:18px;color:#786b75}.nsb-video-modal__details p{line-height:1.9;color:#4e434b}.nsb-video-modal__details a{color:var(--nsb-magenta);font-weight:800}.nsb-submission-modal__dialog{width:min(920px,100%);padding:30px}.nsb-submission-modal__dialog h3{margin:0 0 16px;font-size:2rem;color:var(--nsb-magenta);font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif}.nsb-submission-guidance{background:#fff7eb;border-right:4px solid var(--nsb-gold);padding:14px 18px;border-radius:12px;margin-bottom:20px;line-height:1.8}.nsb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.nsb-video-submission-form label{display:grid;gap:7px;font-weight:700;color:#40363d}.nsb-video-submission-form label span{color:#b32151}.nsb-video-submission-form input,.nsb-video-submission-form select,.nsb-video-submission-form textarea{width:100%;box-sizing:border-box;border:1px solid #d8cdd4;border-radius:10px;padding:11px 12px;background:#fff;color:#272027;font:inherit}.nsb-form-full{margin-top:16px}.nsb-consent{grid-template-columns:auto 1fr!important;align-items:start!important;margin-top:16px;font-weight:500!important;line-height:1.8}.nsb-consent input{width:auto!important;margin-top:6px}.nsb-consent span{color:#40363d!important}.nsb-form-status{min-height:26px;margin:15px 0;font-weight:700;color:var(--nsb-magenta)}.nsb-video-submit-button:disabled{opacity:.6;cursor:wait}.nsb-modal-open{overflow:hidden!important}.nsb-video-library-page{padding:60px 0}.nsb-video-library-page__title{text-align:center;margin-bottom:45px}.nsb-video-library-group{scroll-margin-top:110px;margin-bottom:60px;outline:none}.nsb-video-library-group h2{font-size:2rem;color:var(--nsb-magenta);margin:0 0 22px;font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif}.nsb-video-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.nsb-video-library-grid .nsb-video-item{background:#fff;border-radius:18px;padding:10px;box-shadow:0 10px 30px rgba(69,30,55,.08)}
@media(max-width:980px){.nsb-video-category-grid{grid-template-columns:1fr}.nsb-video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.nsb-video-section{padding:48px 0}.nsb-video-shell{width:min(100% - 20px,1240px)}.nsb-video-category-card{padding:14px;border-radius:18px}.nsb-video-category-card__header{align-items:flex-start}.nsb-video-category-card__header h3{font-size:1.35rem}.nsb-video-more-link{font-size:.86rem}.nsb-video-carousel .nsb-video-item{flex-basis:84%}.nsb-video-arrow{display:none}.nsb-video-submit-cta{align-items:stretch;flex-direction:column;padding:22px}.nsb-video-submit-open{align-self:flex-start}.nsb-video-modal,.nsb-submission-modal{padding:8px}.nsb-video-modal__dialog,.nsb-submission-modal__dialog{border-radius:16px;max-height:96vh}.nsb-video-modal__player{border-radius:16px 16px 0 0}.nsb-video-modal__details{padding:20px}.nsb-submission-modal__dialog{padding:22px 16px}.nsb-form-grid{grid-template-columns:1fr}.nsb-video-library-grid{grid-template-columns:1fr}.nsb-video-modal__details h3{font-size:1.35rem}}@media(prefers-reduced-motion:reduce){.nsb-video-thumb img{transition:none}.nsb-video-carousel{scroll-behavior:auto}}
.nsb-video-home-mount{visibility:hidden}.nsb-video-home-mount.is-placed{visibility:visible}

/* v0.1.2 polished placement, glow and form alignment */
.nsb-video-section{overflow:hidden;background:
radial-gradient(circle at 12% 12%,rgba(255,196,59,.34),transparent 29%),
radial-gradient(circle at 88% 18%,rgba(215,24,139,.30),transparent 34%),
linear-gradient(135deg,#fff8dc 0%,#fff 38%,#fff0fa 72%,#fff8dc 100%)}
.nsb-video-section:before,.nsb-video-section:after{content:"";position:absolute;pointer-events:none;border-radius:50%;filter:blur(42px);opacity:.72}
.nsb-video-section:before{width:260px;height:260px;background:rgba(218,29,142,.30);right:-90px;top:80px}
.nsb-video-section:after{width:300px;height:300px;background:rgba(247,190,45,.30);left:-100px;bottom:80px}
.nsb-video-shell{position:relative;z-index:1}
.nsb-video-category-card{background:rgba(255,255,255,.90);border-color:rgba(196,154,61,.28);box-shadow:0 16px 44px rgba(141,21,93,.10),0 0 28px rgba(200,154,61,.11)}
.nsb-video-submit-cta{transition:transform .28s ease,box-shadow .28s ease,filter .28s ease;background:linear-gradient(125deg,#7b104d 0%,#b51f7b 58%,#d5a23d 130%)}
.nsb-video-submit-cta:hover{transform:translateY(-4px);box-shadow:0 24px 56px rgba(141,21,93,.30),0 0 30px rgba(222,171,47,.25);filter:saturate(1.08)}
.nsb-video-submit-open,.nsb-video-submit-button{transition:transform .22s ease,box-shadow .22s ease,filter .22s ease}
.nsb-video-submit-open:hover,.nsb-video-submit-button:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 10px 24px rgba(60,34,5,.24);filter:brightness(1.05)}
.nsb-video-submission-form label{display:flex;flex-direction:column;gap:8px;min-width:0}
.nsb-field-label{display:inline-flex!important;align-items:center;justify-content:flex-start;gap:5px;width:max-content;max-width:100%;color:#40363d!important;font-weight:700;line-height:1.55}
.nsb-field-label b{color:#b32151;font-weight:800;line-height:1}
.nsb-form-grid{align-items:start;grid-auto-flow:row}
.nsb-video-submission-form input,.nsb-video-submission-form select,.nsb-video-submission-form textarea{min-height:48px;direction:rtl;text-align:right}
.nsb-video-submission-form input[type="email"],.nsb-video-submission-form input[type="date"]{direction:ltr;text-align:left}
.nsb-video-submission-form select{padding-inline:12px 38px}
.nsb-consent{display:grid!important}
.nsb-consent a{color:var(--nsb-magenta);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.nsb-submission-guidance strong[dir="ltr"]{display:inline-block;color:var(--nsb-magenta)}
.nsb-video-home-mount{visibility:visible}
@media(max-width:640px){.nsb-video-submit-cta:hover{transform:none}.nsb-form-grid{gap:14px}}


/* v0.1.3 compact category tabs, dark-magenta/gold design, and mobile fixes */
.nsb-video-section{
  padding:58px 0 64px;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 12% 16%,rgba(255,207,84,.34),transparent 25%),
    radial-gradient(circle at 88% 72%,rgba(255,190,55,.24),transparent 28%),
    linear-gradient(135deg,#3b0829 0%,#681044 42%,#8d155d 70%,#43082f 100%);
}
.nsb-video-section:before,.nsb-video-section:after{filter:blur(58px);opacity:.88}
.nsb-video-section:before{background:rgba(255,190,48,.34);width:300px;height:300px;right:-110px;top:35px}
.nsb-video-section:after{background:rgba(255,210,92,.26);width:340px;height:340px;left:-130px;bottom:15px}
.nsb-video-section__header{margin-bottom:24px;padding-inline:12px}
.nsb-video-section__header h2{
  color:#fff7df;
  font-size:clamp(1.85rem,3.25vw,2.85rem);
  line-height:1.55;
  text-shadow:0 0 18px rgba(255,202,74,.35);
}
.nsb-video-tabs{max-width:1080px;margin-inline:auto}
.nsb-video-tablist{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
  padding:8px;
  border:1px solid rgba(255,213,104,.25);
  border-radius:999px;
  background:rgba(35,3,24,.32);
  box-shadow:inset 0 0 24px rgba(255,197,62,.08),0 12px 34px rgba(20,0,13,.22);
}
.nsb-video-tab{
  appearance:none;
  border:1px solid transparent;
  border-radius:999px;
  padding:10px 22px 12px;
  background:transparent;
  color:#fff4dc;
  font:700 1.1rem/1.6 "Noto Nastaliq Urdu","Noto Naskh Arabic",serif;
  cursor:pointer;
  transition:background .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.nsb-video-tab:hover,.nsb-video-tab:focus-visible{background:rgba(255,211,94,.13);transform:translateY(-1px);outline:none}
.nsb-video-tab.is-active{color:#4a082f;background:linear-gradient(135deg,#ffe7a2,#d5a23d);box-shadow:0 6px 22px rgba(255,195,55,.32)}
.nsb-video-tabpanel{
  position:relative;
  max-width:920px;
  margin-inline:auto;
  padding:22px 72px 16px;
  border:1px solid rgba(255,217,112,.38);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(255,248,232,.94));
  box-shadow:0 22px 62px rgba(20,0,13,.38),0 0 36px rgba(255,196,53,.14);
}
.nsb-video-tabpanel[hidden]{display:none!important}
.nsb-video-stage{position:relative;min-height:290px;display:grid;align-items:center}
.nsb-video-slides{width:min(100%,720px);margin-inline:auto;min-width:0}
.nsb-video-slide[hidden]{display:none!important}
.nsb-video-slide.is-active{animation:nsbVideoFade .28s ease}
@keyframes nsbVideoFade{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
.nsb-video-tabpanel .nsb-video-item{width:100%;display:grid;grid-template-columns:minmax(280px,1.45fr) minmax(210px,.85fr);gap:22px;align-items:center;text-align:right}
.nsb-video-tabpanel .nsb-video-thumb{width:100%;border-radius:18px;box-shadow:0 12px 30px rgba(50,5,31,.18)}
.nsb-video-tabpanel .nsb-video-item__body{padding:0;align-self:center}
.nsb-video-tabpanel .nsb-video-item__title{font-size:1.35rem;line-height:1.85;color:#3b2031;min-height:auto;-webkit-line-clamp:3}
.nsb-video-tabpanel .nsb-video-item__meta{justify-content:flex-start;color:#8d155d;font-weight:800;font-size:.92rem}
.nsb-video-arrow{
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  padding:0 0 4px;
  background:linear-gradient(145deg,#fff8df,#e3b64d);
  color:#681044;
  border:1px solid rgba(114,21,73,.15);
  box-shadow:0 8px 24px rgba(54,3,34,.22);
  font-size:1.8rem;
  line-height:1;
}
.nsb-video-arrow--prev{right:14px}
.nsb-video-arrow--next{left:14px}
.nsb-video-arrow:disabled{opacity:.36;cursor:default;box-shadow:none}
.nsb-video-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(141,21,93,.10)}
.nsb-video-counter{color:#88727f;font-size:.86rem;direction:ltr}
.nsb-video-more-link{color:#9b6e0d;font-weight:800}
.nsb-video-submit-cta{max-width:1080px;margin:24px auto 0;border:1px solid rgba(255,216,104,.32);background:linear-gradient(125deg,rgba(88,9,58,.96),rgba(151,18,94,.96),rgba(201,145,36,.92));box-shadow:0 18px 50px rgba(19,0,12,.35),0 0 30px rgba(255,196,53,.16)}
.nsb-video-submit-cta:hover{box-shadow:0 25px 64px rgba(19,0,12,.42),0 0 38px rgba(255,196,53,.28)}
.nsb-video-modal__meta [data-nsb-modal-date]{display:none!important}
html.nsb-modal-open,body.nsb-modal-open{overflow:hidden!important}
body.nsb-modal-open-fixed{position:fixed!important;width:100%!important;left:0!important;right:0!important}

@media(max-width:760px){
  .nsb-video-section{padding:42px 0 48px}
  .nsb-video-section__header{margin-bottom:18px}
  .nsb-video-section__header h2{font-size:clamp(1.55rem,7.2vw,2.05rem);line-height:1.8;max-width:100%;overflow-wrap:anywhere}
  .nsb-video-tablist{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;border-radius:18px;padding:7px}
  .nsb-video-tablist::-webkit-scrollbar{display:none}
  .nsb-video-tab{flex:0 0 auto;padding:8px 16px 10px;font-size:1rem}
  .nsb-video-tabpanel{padding:16px 52px 14px;border-radius:20px}
  .nsb-video-stage{min-height:0}
  .nsb-video-tabpanel .nsb-video-item{display:block}
  .nsb-video-tabpanel .nsb-video-item__body{padding:12px 2px 0}
  .nsb-video-tabpanel .nsb-video-item__title{font-size:1.08rem;line-height:1.75;-webkit-line-clamp:2}
  .nsb-video-tabpanel .nsb-video-thumb{border-radius:14px}
  .nsb-video-arrow{display:grid;width:38px;height:38px;font-size:1.5rem}
  .nsb-video-arrow--prev{right:7px}
  .nsb-video-arrow--next{left:7px}
  .nsb-video-panel-footer{margin-top:8px}
}
@media(max-width:430px){
  .nsb-video-shell{width:min(100% - 18px,1240px)}
  .nsb-video-section__header h2{font-size:1.48rem;line-height:1.95;padding-inline:4px}
  .nsb-video-tabpanel{padding:14px 44px 12px}
  .nsb-video-arrow{width:34px;height:34px}
  .nsb-video-arrow--prev{right:5px}.nsb-video-arrow--next{left:5px}
  .nsb-video-submit-cta{padding:20px}
}

/* v0.1.4 verified layout, root-level modals, and mobile form corrections */
.nsb-video-tabpanel{
  padding:24px 28px 16px;
}
.nsb-video-stage{
  display:grid;
  grid-template-columns:52px minmax(0,720px) 52px;
  align-items:center;
  justify-content:center;
  column-gap:18px;
  min-height:0;
}
.nsb-video-slides{
  width:100%;
  max-width:720px;
  margin-inline:auto;
  min-width:0;
  grid-column:2;
  grid-row:1;
}
.nsb-video-arrow{
  position:static;
  inset:auto;
  transform:none;
  align-self:center;
  justify-self:center;
  margin:0;
  flex:none;
}
.nsb-video-arrow--prev{
  grid-column:1;
  grid-row:1;
}
.nsb-video-arrow--next{
  grid-column:3;
  grid-row:1;
}
.nsb-video-tabpanel .nsb-video-item{
  display:block;
  width:100%;
  max-width:720px;
  margin-inline:auto;
  text-align:center;
}
.nsb-video-tabpanel .nsb-video-thumb{
  width:100%;
  max-width:680px;
  margin-inline:auto;
}
.nsb-video-tabpanel .nsb-video-item__body{
  display:block;
  width:100%;
  max-width:680px;
  margin:0 auto;
  padding:14px 8px 0;
  text-align:center;
}
.nsb-video-tabpanel .nsb-video-item__title{
  display:block;
  min-height:0;
  margin:0;
  text-align:center;
  font-size:1.28rem;
  line-height:1.75;
  -webkit-line-clamp:unset;
  overflow:visible;
}
.nsb-video-tabpanel .nsb-video-item__meta{
  display:none;
}

/* Modal containers are rendered at the body root so transformed homepage
   sections and sticky headers cannot change their fixed positioning. */
.nsb-video-modal,.nsb-submission-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  overflow-y:auto;
  overscroll-behavior:contain;
  direction:rtl;
  color:#40363d;
}
.nsb-video-modal[hidden],.nsb-submission-modal[hidden]{display:none!important}
.nsb-video-modal__backdrop,.nsb-submission-modal__backdrop{
  position:fixed!important;
  inset:0!important;
}
.nsb-video-modal__dialog,.nsb-submission-modal__dialog{
  position:relative;
  z-index:1;
  box-sizing:border-box;
  width:min(980px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  margin:auto;
  overflow-y:auto;
  overscroll-behavior:contain;
  color:#40363d;
  background:#fff;
}
.nsb-submission-modal__dialog{
  width:min(920px,calc(100vw - 32px));
  padding:30px;
}
.nsb-submission-modal__dialog h3{
  padding-inline:52px;
  text-align:center;
  line-height:1.65;
}
.nsb-submission-guidance{
  color:#40363d!important;
}
.nsb-submission-guidance p{
  color:#40363d!important;
}
.nsb-form-actions{
  position:sticky;
  bottom:-30px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:18px -30px -30px;
  padding:14px 30px calc(14px + env(safe-area-inset-bottom));
  border-top:1px solid #eadfe5;
  background:rgba(255,255,255,.97);
  box-shadow:0 -10px 24px rgba(45,20,35,.08);
  backdrop-filter:blur(10px);
}
.nsb-form-actions .nsb-form-status{
  flex:1;
  min-width:0;
  min-height:24px;
  margin:0;
}
.nsb-form-actions .nsb-video-submit-button{
  flex:0 0 auto;
  min-width:160px;
}
html.nsb-modal-open,body.nsb-modal-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.nsb-modal-open-fixed{
  position:fixed!important;
  width:100%!important;
  left:0!important;
  right:0!important;
}

@media(max-width:760px){
  .nsb-video-tabpanel{
    padding:16px 10px 14px;
  }
  .nsb-video-stage{
    grid-template-columns:40px minmax(0,1fr) 40px;
    column-gap:5px;
  }
  .nsb-video-slides{
    width:100%;
    max-width:none;
  }
  .nsb-video-tabpanel .nsb-video-item,
  .nsb-video-tabpanel .nsb-video-thumb,
  .nsb-video-tabpanel .nsb-video-item__body{
    width:100%;
    max-width:none;
    margin-inline:auto;
  }
  .nsb-video-tabpanel .nsb-video-item__title{
    font-size:1.08rem;
    line-height:1.75;
    padding-inline:4px;
  }
  .nsb-video-arrow{
    width:36px;
    height:36px;
    font-size:1.45rem;
  }
  .nsb-video-modal,.nsb-submission-modal{
    align-items:center;
    padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  }
  .nsb-video-modal__dialog,.nsb-submission-modal__dialog{
    width:calc(100vw - 16px);
    max-height:calc(100dvh - 16px);
    margin:auto;
    border-radius:18px;
  }
  .nsb-submission-modal__dialog{
    padding:20px 16px 0;
  }
  .nsb-submission-modal__dialog h3{
    margin:4px 0 14px;
    padding-inline:38px;
    font-size:clamp(1.55rem,7vw,2rem);
    line-height:1.75;
    text-align:center;
  }
  .nsb-submission-guidance{
    margin-bottom:16px;
    padding:13px 14px;
    font-size:.96rem;
    line-height:1.9;
  }
  .nsb-form-actions{
    bottom:0;
    flex-direction:column;
    align-items:stretch;
    margin:16px -16px 0;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .nsb-form-actions .nsb-video-submit-button{
    width:100%;
    min-width:0;
    min-height:48px;
  }
  .nsb-form-actions .nsb-form-status:empty{
    display:none;
  }
}

@media(max-width:430px){
  .nsb-video-tabpanel{
    padding:14px 7px 12px;
  }
  .nsb-video-stage{
    grid-template-columns:36px minmax(0,1fr) 36px;
    column-gap:3px;
  }
  .nsb-video-arrow{
    width:33px;
    height:33px;
    font-size:1.35rem;
  }
}


/* v0.1.5 single-line titles and mobile modal overflow containment */
.nsb-video-item__title,
.nsb-video-tabpanel .nsb-video-item__title,
.nsb-video-library-grid .nsb-video-item__title{
  display:block!important;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:0;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
}
html.nsb-modal-open,
body.nsb-modal-open{
  max-width:100%!important;
  overflow-x:hidden!important;
}
.nsb-submission-modal,
.nsb-submission-modal__dialog,
.nsb-video-submission-form,
.nsb-form-grid,
.nsb-video-submission-form label,
.nsb-video-submission-form input,
.nsb-video-submission-form select,
.nsb-video-submission-form textarea,
.nsb-consent,
.nsb-consent span{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
}
.nsb-submission-modal{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  touch-action:pan-y;
}
.nsb-submission-modal__dialog{
  width:min(920px,100%)!important;
  overflow-x:hidden!important;
  touch-action:pan-y;
}
.nsb-video-submission-form{
  width:100%;
  overflow-x:hidden;
}
.nsb-video-submission-form input[type="file"]{
  display:block;
  overflow:hidden;
  padding:9px;
}
.nsb-video-submission-form textarea{resize:vertical}
.nsb-consent{
  width:100%;
  grid-template-columns:28px minmax(0,1fr)!important;
}
.nsb-consent input{
  max-width:22px!important;
}
@media(max-width:760px){
  .nsb-submission-modal{
    padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
  }
  .nsb-submission-modal__dialog{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }
  .nsb-video-submission-form input,
  .nsb-video-submission-form select,
  .nsb-video-submission-form textarea{
    font-size:16px!important;
  }
}
.nsb-form-actions{
  margin:18px 0 0!important;
  padding:14px 0 calc(14px + env(safe-area-inset-bottom))!important;
  bottom:0!important;
}
@media(max-width:760px){
  .nsb-form-actions{
    margin:16px 0 0!important;
    padding:12px 0 calc(12px + env(safe-area-inset-bottom))!important;
  }
}
