/* MERYDOM Instagram Reels — full archive pagination, direct playback, navigation and view counts (2.0.14). */
.md-ig-reels{
  padding:66px 0 82px;
  background:#fff;
  border-top:1px solid #edf2f7;
}
.md-ig-reels__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:42px;
  align-items:end;
  width:min(100%,1120px);
  margin:0 auto 34px;
}
.md-ig-reels__head h2{
  max-width:760px;
  margin:0;
  font-family:var(--md-heading);
  font-size:clamp(31px,3.5vw,46px);
  line-height:1.1;
  letter-spacing:-.035em;
  color:var(--md-navy);
}
.md-ig-reels__head p{
  max-width:720px;
  margin:14px 0 0;
  color:var(--md-muted);
  font-size:16px;
  line-height:1.68;
}
.md-ig-reels__proof{
  padding:16px 18px;
  border:1px solid #e4ebf3;
  border-radius:16px;
  background:#f8fafc;
}
.md-ig-reels__proof strong{
  display:block;
  font-family:var(--md-heading);
  font-size:26px;
  line-height:1;
  color:var(--md-navy);
}
.md-ig-reels__proof span{
  display:block;
  margin:7px 0 10px;
  color:var(--md-muted);
  font-size:12px;
  line-height:1.42;
}
.md-ig-reels__proof a{
  font-size:12px;
  font-weight:700;
}
.md-ig-reels__grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:24px;
  width:min(100%,1120px);
  margin:0 auto;
}
.md-ig-reel-card{
  position:relative;
  display:block;
  min-width:0;
  overflow:hidden;
  border:1px solid #dce6ef;
  border-radius:18px;
  background:#071426;
  box-shadow:0 7px 20px rgba(15,23,42,.055);
  color:#fff;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.md-ig-reel-card:hover{
  transform:translateY(-3px);
  border-color:#c3d3e3;
  box-shadow:0 15px 34px rgba(15,23,42,.14);
  color:#fff;
}
.md-ig-reel-card__media{
  position:relative;
  display:block;
  aspect-ratio:9/16;
  overflow:hidden;
  background:radial-gradient(circle at 70% 18%,rgba(18,104,214,.38),transparent 32%),linear-gradient(145deg,#061323,#0b356a);
}
.md-ig-reel-card__image{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .42s ease,filter .42s ease;
}
.md-ig-reel-card:hover .md-ig-reel-card__image{
  transform:scale(1.025);
  filter:saturate(1.04);
}
.md-ig-reel-card__fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--md-heading);
  font-size:58px;
  font-weight:800;
  color:rgba(255,255,255,.16);
}
.md-ig-reel-card__shade{
  position:absolute;
  inset:0;
  z-index:3;
  background:
    linear-gradient(180deg,rgba(4,14,27,.035) 0%,rgba(4,14,27,.015) 48%,rgba(4,14,27,.16) 59%,rgba(4,14,27,.58) 72%,rgba(4,14,27,.96) 100%),
    linear-gradient(90deg,rgba(4,14,27,.09),transparent 46%);
  transition:background .25s ease;
}
.md-ig-reel-card:hover .md-ig-reel-card__shade{
  background:
    linear-gradient(180deg,rgba(4,14,27,.025) 0%,rgba(4,14,27,.012) 47%,rgba(4,14,27,.14) 58%,rgba(4,14,27,.55) 70%,rgba(4,14,27,.97) 100%),
    linear-gradient(90deg,rgba(4,14,27,.075),transparent 48%);
}
.md-ig-reel-card__play{
  position:absolute;
  z-index:5;
  top:12px;
  right:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  padding-left:2px;
  border:1px solid rgba(255,255,255,.44);
  border-radius:999px;
  background:rgba(5,17,32,.58);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  color:#fff;
  font-size:12px;
  box-shadow:0 5px 14px rgba(0,0,0,.18);
}
.md-ig-reel-card__content{
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:18px 16px 16px;
  color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.42);
}
.md-ig-reel-card__date{
  display:inline-flex;
  align-items:center;
  min-height:21px;
  margin:0 0 8px;
  padding:3px 8px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:999px;
  background:rgba(7,20,38,.38);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  color:rgba(255,255,255,.88);
  font-size:9px;
  font-weight:700;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.md-ig-reel-card__content strong{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:6;
  max-width:100%;
  font-family:var(--md-heading);
  font-size:14px;
  font-weight:650;
  line-height:1.34;
  letter-spacing:-.012em;
  color:#fff;
}
.md-ig-reel-card__action{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:10px;
  color:rgba(255,255,255,.78);
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.025em;
}
.md-ig-reel-card__action span{
  font-size:12px;
  transition:transform .2s ease;
}
.md-ig-reel-card:hover .md-ig-reel-card__action span{transform:translate(2px,-2px)}
.md-ig-reel-card.is-image-missing .md-ig-reel-card__image{display:none}
.md-ig-reels--empty{padding:28px 0 60px}

@media(max-width:1180px){
  .md-ig-reels__head,.md-ig-reels__grid{width:min(100%,920px)}
  .md-ig-reels__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
  .md-ig-reel-card__content strong{-webkit-line-clamp:6;font-size:14px}
}
@media(max-width:900px){
  .md-ig-reels__head{
    grid-template-columns:1fr;
    gap:20px;
    width:min(100%,690px);
  }
  .md-ig-reels__proof{max-width:250px}
  .md-ig-reels__grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:min(100%,690px);
    gap:20px;
  }
}
@media(max-width:640px){
  .md-ig-reels{padding:48px 0 62px}
  .md-ig-reels__head{margin-bottom:26px}
  .md-ig-reels__head h2{font-size:clamp(29px,9vw,38px)}
  .md-ig-reels__head p{font-size:15px;line-height:1.62}
  .md-ig-reels__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:14px;
  }
  .md-ig-reel-card{border-radius:16px}
  .md-ig-reel-card__content{padding:15px 13px 13px}
  .md-ig-reel-card__content strong{-webkit-line-clamp:5;font-size:13px;line-height:1.33}
  .md-ig-reel-card__date{margin-bottom:7px;font-size:8px;padding:3px 7px}
  .md-ig-reel-card__action{margin-top:8px;font-size:9px}
  .md-ig-reel-card__play{top:10px;right:10px;width:32px;height:32px}
  .md-ig-reels__proof{max-width:none;padding:14px 16px}
}
@media(max-width:390px){
  .md-ig-reels__grid{gap:10px}
  .md-ig-reel-card__content{padding:13px 11px 11px}
  .md-ig-reel-card__content strong{-webkit-line-clamp:5;font-size:12px}
  .md-ig-reel-card__action{display:none}
}


/* 2.0.5 — compact Reels section after the merged Factory hero. */
.md-ig-reels{
  padding:42px 0 56px;
  border-top:0;
}
.md-ig-reels__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  width:min(100%,1120px);
  margin:0 auto 24px;
}
.md-ig-reels__head h2{
  margin:0;
  font-size:clamp(24px,2.5vw,32px);
  line-height:1.12;
  letter-spacing:-.03em;
}
.md-ig-reels__head .md-eyebrow{margin-bottom:8px}
.md-ig-reels__head p{display:none}
.md-ig-reels__all{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  margin-bottom:3px;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
@media(max-width:640px){
  .md-ig-reels{padding:34px 0 58px}
  .md-ig-reels__head{align-items:flex-start;margin-bottom:20px}
  .md-ig-reels__head h2{font-size:25px}
  .md-ig-reels__all{margin-top:24px;font-size:12px}
}

.md-ig-reels + .md-cs-gallery-section--factory-environment{padding-top:64px}
@media(max-width:640px){.md-ig-reels + .md-cs-gallery-section--factory-environment{padding-top:48px}}


/* 2.0.9 — direct HTML5 video playback from the official Instagram API media_url. */
body.md-ig-player-open{overflow:hidden}
.md-ig-player[hidden]{display:none!important}
.md-ig-player{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(3,10,22,.82);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.md-ig-player__backdrop{position:absolute;inset:0;border:0;background:transparent;cursor:zoom-out}
.md-ig-player__dialog{
  position:relative;
  z-index:2;
  width:min(590px,96vw);
  max-height:94vh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  background:#071426;
  box-shadow:0 32px 90px rgba(0,0,0,.48);
}
.md-ig-player__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.11);
}
.md-ig-player__top span{display:block;margin-bottom:3px;color:#7abaff;font-size:10px;font-weight:800;letter-spacing:.13em}
.md-ig-player__top strong{display:block;max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-family:var(--md-heading);font-size:16px}
.md-ig-player__close{flex:0 0 38px;width:38px;height:38px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.md-ig-player__body{position:relative;min-height:520px;overflow-y:auto;padding:16px;background:#eef2f6}
.md-ig-player__embed{position:relative;z-index:2;display:flex;justify-content:center;min-height:500px}
.md-ig-player__embed .instagram-media{width:100%!important;min-width:0!important;margin:0 auto!important}
.md-ig-player__loading{position:absolute;inset:16px;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#64748b;font-size:13px;text-align:center}
.md-ig-player__loading[hidden]{display:none!important}
.md-ig-player__loading span{width:30px;height:30px;border:3px solid #d5deea;border-top-color:#1268d6;border-radius:999px;animation:mdIgSpin .8s linear infinite}
.md-ig-player__loading em{font-style:normal}
@keyframes mdIgSpin{to{transform:rotate(360deg)}}
.md-ig-player__footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 16px;border-top:1px solid rgba(255,255,255,.11);color:#9fb4cb;font-size:11px}
.md-ig-player__footer a{flex:0 0 auto;color:#fff;font-weight:700}
@media(max-width:640px){
  .md-ig-player{padding:8px}
  .md-ig-player__dialog{width:100%;max-height:96vh;border-radius:17px}
  .md-ig-player__body{min-height:430px;padding:10px}
  .md-ig-player__embed{min-height:420px}
  .md-ig-player__loading{inset:10px}
  .md-ig-player__footer span{display:none}
  .md-ig-player__footer{justify-content:flex-end}
}


/* 2.0.9 — direct API video player and expanded overlay copy. */
.md-ig-player__embed{align-items:flex-start;width:100%}
.md-ig-player__frame{
  display:block;
  width:min(100%,540px);
  height:min(760px,calc(94vh - 154px));
  min-height:520px;
  margin:0 auto;
  border:0;
  border-radius:10px;
  background:#fff;
}
.md-ig-player__loading.is-error{z-index:3;padding:28px;background:#eef2f6;color:#475569}
.md-ig-player__loading.is-error em{max-width:360px;line-height:1.55}
@media(max-width:640px){
  .md-ig-player__frame{height:calc(96vh - 128px);min-height:430px;border-radius:8px}
}


/* 2.0.9 — native video stage; no Instagram iframe or embed script. */
.md-ig-player__body{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;padding:0;background:#020711}
.md-ig-player__embed{display:flex;align-items:center;justify-content:center;width:100%;min-height:0;height:min(760px,calc(94vh - 154px));background:#020711}
.md-ig-player__video{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;background:#000;outline:0}
.md-ig-player__loading{inset:0;background:#020711;color:#c5d4e6}
.md-ig-player__loading.is-error{inset:0;background:#071426;color:#d7e4f3}
.md-ig-player__frame{display:none!important}
@media(max-width:640px){
  .md-ig-player__embed{height:calc(96vh - 128px)}
}


/* 2.0.10 — view-count badge and previous/next Reel navigation. */
.md-ig-reel-card__views{
  position:absolute;
  z-index:5;
  top:12px;
  left:12px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  background:rgba(5,17,32,.62);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  color:#fff;
  font-size:10px;
  font-weight:750;
  line-height:1;
  letter-spacing:.01em;
  text-shadow:0 1px 3px rgba(0,0,0,.42);
  box-shadow:0 5px 14px rgba(0,0,0,.16);
}
.md-ig-reel-card__views>span{font-size:8px;color:#9bc9ff}
.md-ig-player__top span b{color:#d8e9fb;font-weight:700;letter-spacing:.04em}
.md-ig-player__nav{
  position:relative;
  z-index:3;
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.27);
  border-radius:999px;
  background:rgba(7,20,38,.74);
  color:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.25);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,opacity .18s ease;
}
.md-ig-player__nav span{display:block;margin-top:-4px;font-size:42px;font-weight:300;line-height:1}
.md-ig-player__nav--prev{margin-right:22px}
.md-ig-player__nav--next{margin-left:22px}
.md-ig-player__nav:hover:not(:disabled){transform:scale(1.06);background:rgba(18,104,214,.88)}
.md-ig-player__nav:focus-visible{outline:3px solid rgba(122,186,255,.8);outline-offset:3px}
.md-ig-player__nav:disabled{opacity:.22;cursor:default;box-shadow:none}
@media(max-width:820px){
  .md-ig-player{padding:8px 52px}
  .md-ig-player__nav{position:absolute;top:50%;width:42px;height:56px;border-radius:13px;transform:translateY(-50%)}
  .md-ig-player__nav:hover:not(:disabled){transform:translateY(-50%) scale(1.03)}
  .md-ig-player__nav--prev{left:6px;margin:0}
  .md-ig-player__nav--next{right:6px;margin:0}
  .md-ig-player__nav span{font-size:36px}
}
@media(max-width:640px){
  .md-ig-reel-card__views{top:10px;left:10px;min-height:25px;padding:4px 7px;font-size:9px}
  .md-ig-player{padding:6px 42px}
  .md-ig-player__nav{width:34px;height:48px;border-radius:11px;background:rgba(7,20,38,.84)}
  .md-ig-player__nav--prev{left:3px}
  .md-ig-player__nav--next{right:3px}
  .md-ig-player__nav span{font-size:31px}
}


/* 2.0.14 — compact in-site pagination for the locally cached Reel archive. */
.md-ig-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:min(100%,1120px);
  margin:26px auto 0;
  padding-top:20px;
  border-top:1px solid #e6edf4;
}
.md-ig-pagination__summary{
  color:var(--md-muted);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}
.md-ig-pagination__links{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.md-ig-pagination__page,.md-ig-pagination__arrow,.md-ig-pagination__ellipsis{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 9px;
  border:1px solid #dbe5ef;
  border-radius:9px;
  background:#fff;
  color:var(--md-navy);
  font-size:12px;
  font-weight:750;
  line-height:1;
  text-decoration:none;
}
.md-ig-pagination__page:hover,.md-ig-pagination__arrow:hover{border-color:#1268d6;background:#f1f7ff;color:#1268d6}
.md-ig-pagination__page.is-current{border-color:#1268d6;background:#1268d6;color:#fff;box-shadow:0 5px 14px rgba(18,104,214,.16)}
.md-ig-pagination__ellipsis{min-width:20px;padding:0;border-color:transparent;background:transparent;color:#94a3b8}
@media(max-width:1180px){.md-ig-pagination{width:min(100%,920px)}}
@media(max-width:900px){.md-ig-pagination{width:min(100%,690px)}}
@media(max-width:640px){
  .md-ig-pagination{align-items:flex-start;flex-direction:column;gap:12px;margin-top:20px;padding-top:16px}
  .md-ig-pagination__links{width:100%;justify-content:flex-start;gap:6px}
  .md-ig-pagination__page,.md-ig-pagination__arrow{min-width:32px;height:32px;padding:0 8px;border-radius:8px;font-size:11px}
}

#factory-reels{scroll-margin-top:110px}


/* 2.5.19 — unified, viewport-centered in-site video Lightbox. */
html.md-ig-player-open,body.md-ig-player-open{overflow:hidden!important;overscroll-behavior:none}
.md-ig-player{
  z-index:2147483000;
  width:100vw;
  height:100vh;
  height:100dvh;
  min-height:100vh;
  padding:0;
  overflow:hidden;
  background:rgba(1,7,16,.94);
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease,visibility .18s ease;
}
.md-ig-player.is-open{opacity:1;visibility:visible}
.md-ig-player.is-closing{opacity:0;visibility:visible}
.md-ig-player__backdrop{z-index:0;background:radial-gradient(circle at 50% 45%,rgba(21,55,91,.34),rgba(1,7,16,.97) 72%)}
.md-ig-player__dialog{
  position:absolute;
  inset:0;
  z-index:2;
  width:100vw;
  height:100vh;
  height:100dvh;
  max-height:none;
  display:block;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.md-ig-player__body{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:
    calc(env(safe-area-inset-top,0px) + 12px)
    calc(env(safe-area-inset-right,0px) + 12px)
    calc(env(safe-area-inset-bottom,0px) + 12px)
    calc(env(safe-area-inset-left,0px) + 12px);
  background:transparent;
  overscroll-behavior:none;
  touch-action:pan-y pinch-zoom;
}
.md-ig-player__embed{
  position:absolute;
  inset:
    calc(env(safe-area-inset-top,0px) + 8px)
    calc(env(safe-area-inset-right,0px) + 8px)
    calc(env(safe-area-inset-bottom,0px) + 8px)
    calc(env(safe-area-inset-left,0px) + 8px);
  z-index:2;
  width:auto;
  height:auto;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  opacity:1;
  transition:opacity .15s ease;
}
.md-ig-player__embed.is-switching{opacity:0}
.md-ig-player__video{
  display:block;
  flex:0 0 auto;
  width:auto;
  height:auto;
  max-width:min(92vw,1600px);
  max-height:calc(100vh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);
  object-fit:contain;
  object-position:center center;
  border-radius:12px;
  background:#000;
  box-shadow:0 30px 90px rgba(0,0,0,.48);
  outline:0;
  opacity:0;
  transform:scale(.985);
  transition:opacity .22s ease,transform .22s ease;
  touch-action:manipulation;
}
.md-ig-player__embed.is-ready .md-ig-player__video{opacity:1;transform:scale(1)}
.md-ig-player__embed.is-portrait .md-ig-player__video{
  width:auto;
  height:auto;
  max-width:92vw;
  max-height:min(90vh,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px));
}
.md-ig-player__embed.is-landscape .md-ig-player__video{
  width:auto;
  height:auto;
  max-width:min(92vw,1600px);
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);
}
.md-ig-player__embed.is-square .md-ig-player__video{
  width:auto;
  height:auto;
  max-width:min(88vw,1000px);
  max-height:calc(88dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
}
.md-ig-player__top{
  position:absolute;
  z-index:8;
  top:calc(env(safe-area-inset-top,0px) + 24px);
  left:calc(env(safe-area-inset-left,0px) + 24px);
  right:calc(env(safe-area-inset-right,0px) + 24px);
  min-height:52px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:0;
  border:0;
  pointer-events:none;
}
.md-ig-player__top>div{
  max-width:min(62vw,760px);
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  background:rgba(4,15,30,.58);
  box-shadow:0 8px 28px rgba(0,0,0,.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.md-ig-player__top strong{max-width:100%;font-size:14px}
.md-ig-player__close{
  position:absolute;
  top:0;
  right:0;
  z-index:10;
  flex:0 0 48px;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(4,15,30,.72);
  box-shadow:0 10px 30px rgba(0,0,0,.26);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  font-size:32px;
  pointer-events:auto;
  transition:background .18s ease,transform .18s ease;
}
.md-ig-player__close:hover{background:rgba(18,104,214,.9);transform:scale(1.04)}
.md-ig-player__close:focus-visible{outline:3px solid rgba(122,186,255,.9);outline-offset:3px}
.md-ig-player__nav{
  position:absolute;
  z-index:9;
  top:50%;
  width:52px;
  height:72px;
  margin:0;
  border-radius:16px;
  background:rgba(4,15,30,.66);
  transform:translateY(-50%);
  pointer-events:auto;
}
.md-ig-player__nav--prev{left:calc(env(safe-area-inset-left,0px) + clamp(8px,2vw,28px));margin:0}
.md-ig-player__nav--next{right:calc(env(safe-area-inset-right,0px) + clamp(8px,2vw,28px));margin:0}
.md-ig-player__nav:hover:not(:disabled){transform:translateY(-50%) scale(1.06);background:rgba(18,104,214,.9)}
.md-ig-player__nav:disabled{opacity:.18;visibility:hidden}
.md-ig-player__loading{
  position:absolute;
  inset:0;
  z-index:7;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:transparent;
  color:#d7e4f3;
  pointer-events:none;
}
.md-ig-player__loading span{
  width:40px;
  height:40px;
  border:3px solid rgba(255,255,255,.22);
  border-top-color:#62a9ff;
  box-shadow:0 0 28px rgba(18,104,214,.28);
}
.md-ig-player__loading em{max-width:420px;padding:8px 12px;border-radius:10px;background:rgba(4,15,30,.62);line-height:1.5}
.md-ig-player__loading.is-error{inset:0;background:transparent;color:#eef6ff}
.md-ig-player__footer{
  position:absolute;
  z-index:8;
  left:50%;
  bottom:calc(env(safe-area-inset-bottom,0px) + 16px);
  transform:translateX(-50%);
  width:auto;
  max-width:calc(100vw - 32px);
  justify-content:center;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(4,15,30,.56);
  color:#c5d4e6;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  pointer-events:none;
  white-space:nowrap;
}
.md-ig-player__gesture{display:none}

@media(max-width:820px){
  .md-ig-player{padding:0}
  .md-ig-player__dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}
  .md-ig-player__body{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
  .md-ig-player__embed{height:auto}
  .md-ig-player__top{
    top:calc(env(safe-area-inset-top,0px) + 24px);
    left:calc(env(safe-area-inset-left,0px) + 14px);
    right:calc(env(safe-area-inset-right,0px) + 24px);
  }
  .md-ig-player__top>div{max-width:calc(100vw - 86px);padding:8px 11px}
  .md-ig-player__top strong{font-size:12px}
  .md-ig-player__close{top:0;right:0;width:46px;height:46px}
  .md-ig-player__nav{width:42px;height:58px;border-radius:14px;transform:translateY(-50%)}
  .md-ig-player__nav:hover:not(:disabled){transform:translateY(-50%) scale(1.03)}
  .md-ig-player__nav--prev{left:calc(env(safe-area-inset-left,0px) + 8px)}
  .md-ig-player__nav--next{right:calc(env(safe-area-inset-right,0px) + 8px)}
  .md-ig-player__nav span{font-size:34px}
  .md-ig-player__embed.is-portrait .md-ig-player__video{
    width:auto;
    height:auto;
    max-width:92vw;
    max-height:min(90vh,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px));
    border-radius:0;
  }
  .md-ig-player__embed.is-landscape .md-ig-player__video{width:auto;height:auto;max-width:92vw;max-height:82dvh}
  .md-ig-player__footer{bottom:calc(env(safe-area-inset-bottom,0px) + 10px);font-size:10px}
  .md-ig-player__gesture{display:block;position:absolute;z-index:8;bottom:calc(env(safe-area-inset-bottom,0px) + 48px);left:50%;transform:translateX(-50%);color:rgba(255,255,255,.72);font-size:10px;pointer-events:none;white-space:nowrap}
}

@media(max-width:560px){
  .md-ig-player__top>div{max-width:calc(100vw - 92px)}
  .md-ig-player__top span{font-size:9px}
  .md-ig-player__top strong{font-size:11px}
  .md-ig-player__nav{width:38px;height:54px;background:rgba(4,15,30,.72)}
  .md-ig-player__nav--prev{left:calc(env(safe-area-inset-left,0px) + 5px)}
  .md-ig-player__nav--next{right:calc(env(safe-area-inset-right,0px) + 5px)}
  .md-ig-player__footer{display:none}
  .md-ig-player__gesture{bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
}

@media(prefers-reduced-motion:reduce){
  .md-ig-player,.md-ig-player__embed,.md-ig-player__video,.md-ig-player__close,.md-ig-player__nav{transition:none!important;animation-duration:.01ms!important}
}
