/* Scoped storefront styles. Existing product photos and descriptions stay owned by the theme. */
.mh-creator-section button,.mh-video-dialog button,.mh-video-gallery-thumb button,.mh-gallery-video{font-family:inherit;text-transform:none;letter-spacing:0;min-height:0;margin:0;cursor:pointer;box-sizing:border-box}
.mh-gallery-showing-video>.image-tools{display:none}
.mh-video-gallery-slide{width:100%}
.mh-gallery-video{display:block;position:relative;width:100%;aspect-ratio:1;border:0;padding:0;background:#111;color:#fff;overflow:hidden}
.mh-gallery-video>img{position:absolute;inset:0;height:100%;width:100%;object-fit:contain;display:block}
.mh-gallery-video:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#000c);pointer-events:none}
.mh-gallery-play{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:64px;height:64px;border:1px solid #fffc;background:#1119;border-radius:50%;display:grid;place-items:center;padding:0;color:#fff}
.mh-gallery-caption{position:absolute;bottom:26px;left:26px;right:20px;z-index:1;text-align:left;white-space:normal}
.mh-gallery-caption strong{display:block;font-size:25px;line-height:1.25;font-weight:400;color:#fff}
.mh-gallery-caption>span{display:block;font-size:14px;color:#eee;margin-top:8px}
.mh-video-gallery-thumb button{position:relative;display:block;width:100%;padding:0;border:0;background:#171717;line-height:1;aspect-ratio:1}
.mh-video-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.mh-thumb-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#111b;border:1px solid #fffc;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;color:#fff;padding:0}
.mh-video-fallback-thumbs{display:flex;gap:10px;margin:12px 0}
.mh-video-fallback-thumbs>.mh-video-gallery-thumb{width:78px;flex:none}

/* SVG controls inherit the control color; theme typography cannot turn them into emoji. */
.mh-gallery-play svg,.mh-thumb-play svg,.mh-clip-play svg{display:block;width:14px;height:14px;fill:currentColor;stroke:none;pointer-events:none}
.mh-gallery-play svg{width:28px;height:28px}
.mh-creator-nav svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mh-creator-section img.emoji,.mh-video-dialog img.emoji{display:inline-block;width:1em;height:1em;max-width:none;margin:0 .07em;vertical-align:-.1em}

/* Compact community row; only still images load before a visitor presses play. */
.mh-creator-section{clear:both;width:100%;background:#191919;color:#fff;padding:22px 24px;margin:22px 0 30px;box-sizing:border-box}
.mh-creator-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.mh-creator-section h2{color:#fff;font-size:22px;font-weight:300;line-height:1.45;margin:0;text-transform:none;letter-spacing:0}
.mh-creator-nav{display:flex;gap:8px;flex-shrink:0}
.mh-creator-nav[hidden]{display:none}
.mh-creator-nav button{border:1px solid #777;border-radius:0;background:transparent;color:#fff;width:44px;height:44px;display:grid;place-items:center;line-height:1;padding:0;flex:none}
.mh-creator-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#777 transparent;padding:0 0 4px;overscroll-behavior-x:contain}
.mh-creator-card{position:relative;flex:0 0 calc((100% - 70px)/6);aspect-ratio:9/14;display:block;border:0;padding:0;border-radius:0;overflow:hidden;scroll-snap-align:start;background:#111;color:#fff;text-align:left;isolation:isolate}
.mh-creator-card:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#000e);z-index:0;pointer-events:none}
.mh-creator-card>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.mh-creator-card:hover>img{transform:scale(1.025)}
.mh-clip-duration{position:absolute;top:7px;right:7px;padding:3px 6px;background:#111c;color:#fff;font-size:11px;line-height:1.4}
.mh-clip-duration:empty{display:none}
.mh-clip-play{position:absolute;left:10px;bottom:66px;width:30px;height:30px;border:1px solid #fffc;border-radius:50%;background:#1118;display:grid;place-items:center;padding:0;z-index:1}
.mh-clip-caption{position:absolute;bottom:12px;left:10px;right:10px;z-index:1;line-height:1.4;white-space:normal}
.mh-clip-caption strong{font-size:14px;font-weight:400;color:#fff;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mh-clip-caption>span{font-size:12px;display:block;color:#eee;margin-top:4px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Fixed outer frame keeps Close reachable while captions scroll independently. */
.mh-video-dialog{position:fixed;inset:0;margin:auto;padding:0;border:0;border-radius:0;background:#191919;color:#fff;width:min(900px,94vw);max-width:94vw;max-height:92vh;max-height:92svh;overflow:hidden;box-shadow:0 20px 100px #0008;overscroll-behavior:contain}
.mh-video-dialog:not([open]){display:none}
.mh-video-dialog[open]{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.mh-video-dialog::backdrop{background:#000c}
.mh-video-dialog.mh-dialog-fallback{z-index:100000}.mh-video-fallback-backdrop{position:fixed;inset:0;background:#000c;z-index:99999}.mh-video-viewer-nav[hidden]{display:none}
.mh-video-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;height:48px;padding:2px 8px 2px 16px;box-sizing:border-box;background:#191919;gap:12px}
.mh-video-stage{position:relative;background:#050505;display:flex;flex-direction:column;min-width:0;min-height:0}
.mh-video-canvas{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:0;flex:1;background:#050505}
.mh-video-stage video{display:block;width:100%;height:min(72vh,650px,calc(92vh - 96px));height:min(72svh,650px,calc(92svh - 96px));object-fit:contain;background:#050505}
.mh-video-stage video[hidden],.mh-youtube-player[hidden],.mh-video-error[hidden]{display:none}
.mh-video-details{padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:0;max-height:calc(min(72vh,650px,calc(92vh - 96px)) + 48px);max-height:calc(min(72svh,650px,calc(92svh - 96px)) + 48px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.mh-video-dialog h2{font-size:26px;color:#fff;line-height:1.25;font-weight:400;margin:0;overflow-wrap:anywhere;flex-shrink:0}
.mh-video-details>p{font-size:13px;color:#ccc;margin:0;flex-shrink:0}
.mh-video-details>p[hidden]{display:none}
.mh-video-details #mh-video-product{font-size:12px;color:#ccc;margin:0}
.mh-video-close{position:static;border:1px solid #888;background:#191919;color:#fff;border-radius:0;width:44px;height:44px;display:grid;place-items:center;padding:0;flex:none}
.mh-video-close svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;pointer-events:none}
.mh-video-caption-wrap{width:100%;min-height:0;flex-shrink:0}
.mh-video-caption{font-size:13px;line-height:1.5;color:#eee;white-space:pre-line;overflow-wrap:anywhere;margin:0}
.mh-video-caption.is-collapsed{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.mh-video-dialog .mh-caption-toggle{border:0;border-bottom:1px solid #aaa;padding:2px 0;margin-top:3px;min-height:30px;background:transparent;color:#fff;font-weight:400;font-size:13px;line-height:1.5}
.mh-caption-toggle[hidden]{display:none}
#mh-video-source{font-size:13px;color:#ddd;text-decoration:underline;text-underline-offset:4px;margin:0;line-height:1.5;flex-shrink:0;display:inline-flex;align-items:center;min-height:32px}
#mh-video-source:hover,#mh-video-source:focus{color:#fff}
#mh-video-source[hidden],.mh-video-caption-wrap[hidden]{display:none}
/* Navigation stays on the video while captions and staff controls scroll. */
.mh-video-viewer-nav{position:absolute;inset:0;z-index:2;pointer-events:none}
.mh-video-viewer-nav button{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #fffb;border-radius:50%;background:#111b;color:#fff;pointer-events:auto;touch-action:manipulation}
.mh-video-viewer-nav [data-mh-step="-1"]{left:12px}.mh-video-viewer-nav [data-mh-step="1"]{right:12px}
.mh-video-viewer-nav button:hover,.mh-video-viewer-nav button:focus-visible{background:#191919f2;border-color:#fff}
.mh-video-viewer-nav svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#mh-video-count{color:#ccc;font-size:12px;line-height:1.4}
.mh-playback-controls{display:flex;align-items:center;gap:4px;width:100%;height:48px;padding:2px 4px;background:#191919;color:#fff;box-sizing:border-box;flex:none}
.mh-playback-controls[hidden],.mh-playback-controls [hidden]{display:none}
.mh-playback-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;flex:none;touch-action:manipulation}
.mh-playback-controls button:hover,.mh-playback-controls button:focus-visible{background:#333;color:#fff}
.mh-playback-controls button:disabled{opacity:.45;cursor:default}
.mh-playback-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mh-playback-controls .mh-video-icon-play,.mh-playback-controls .mh-video-icon-pause{fill:currentColor;stroke:none}
.mh-video-dialog .mh-video-seek{display:block;flex:1;min-width:24px;width:0;height:44px;margin:0;padding:0;border:0;box-shadow:none;accent-color:#ed8ebc;cursor:pointer}
.mh-video-seek:focus-visible{outline:2px solid #ee739f;outline-offset:-2px}
.mh-video-time{font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
.mh-video-stage:fullscreen{width:100%;height:100%;background:#050505}
.mh-video-stage:fullscreen .mh-video-canvas{flex:1;min-height:0}
.mh-video-error{position:absolute;background:#191919;padding:18px;text-align:center;font-size:14px}
.mh-video-dialog.mh-video-landscape[open]{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr);width:min(960px,94vw)}
.mh-video-landscape .mh-video-stage video{height:auto;aspect-ratio:16/9;max-height:min(54vh,calc(92vh - 208px));max-height:min(54svh,calc(92svh - 208px))}
.mh-youtube-player{width:100%;aspect-ratio:16/9;min-height:200px;max-height:54vh;max-height:54svh}
.mh-youtube-player iframe{display:block;border:0;width:100%;height:100%;min-height:200px}
.mh-video-landscape .mh-video-details{max-height:26vh;max-height:26svh;padding:16px 22px}
.mh-video-landscape h2{margin:0}
.mh-creator-section button:focus-visible,.mh-video-dialog button:focus-visible,.mh-video-dialog a:focus-visible,.mh-gallery-video:focus-visible,.mh-video-gallery-thumb button:focus-visible{outline:3px solid #ee739f;outline-offset:3px}

/* Staff-only controls, resolved after shopper cache reads. */
.mh-video-dialog .mh-video-edit,.mh-video-dialog .mh-video-edit:visited{font-size:13px;color:#ed8ebc;text-decoration:underline;margin:0}
.mh-video-dialog .mh-video-edit:hover,.mh-video-dialog .mh-video-edit:focus{color:#fff;background:transparent}
.mh-video-edit[hidden],.mh-video-admin[hidden]{display:none}
.mh-video-admin{border-top:1px solid #555;margin-top:8px;padding-top:15px;width:100%;flex-shrink:0}
.mh-video-admin-controls{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.mh-video-dialog .mh-video-admin-controls button{font-size:12px;font-weight:400;line-height:1.4;min-height:36px;padding:7px 9px;border:1px solid #888;border-radius:0;background:transparent;color:#fff}
.mh-video-dialog .mh-video-admin-controls button[aria-pressed=true]{border-color:#ed8ebc;background:#ed8ebc;color:#191919}
.mh-video-dialog .mh-video-admin-controls button:hover{border-color:#fff}
.mh-video-dialog .mh-video-admin-controls button:disabled{opacity:.55;cursor:wait}
.mh-video-admin p{font-size:12px;color:#ccc;line-height:1.5;margin:10px 0 0}
.mh-video-admin-notice:empty{display:none}
@media(max-width:849px){.mh-creator-card{flex-basis:calc((100% - 42px)/4)}}
@media(max-width:549px){
 .mh-creator-section{padding:18px 16px;margin-top:15px}
 .mh-creator-section h2{font-size:18px;line-height:1.5}
 .mh-creator-heading{gap:12px;margin-bottom:14px}
 .mh-creator-nav{display:none}
 .mh-creator-track{gap:10px;margin-right:-16px;padding-right:16px}
 .mh-creator-card{flex-basis:43%}
 .mh-clip-caption strong{font-size:13px}.mh-clip-caption>span{font-size:11px}
 .mh-gallery-caption strong{font-size:23px}.mh-gallery-caption{left:20px;bottom:24px}
 .mh-video-dialog[open],.mh-video-dialog.mh-video-landscape[open]{width:min(440px,94vw);grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}
 .mh-video-stage video{height:min(58vh,calc(92vh - 208px));height:min(58svh,calc(92svh - 208px))}
 .mh-video-details,.mh-video-landscape .mh-video-details{max-height:26vh;max-height:26svh;padding:12px 16px;gap:6px}
 .mh-video-dialog h2{font-size:20px;line-height:1.25;margin:0}
 .mh-video-caption.is-collapsed{-webkit-line-clamp:3}
 .mh-video-viewer-nav button{width:44px;height:44px}
 .mh-video-viewer-nav [data-mh-step="-1"]{left:8px}.mh-video-viewer-nav [data-mh-step="1"]{right:8px}
}
@media(max-height:500px){.mh-video-landscape .mh-video-stage video{height:auto;max-height:calc(92vh - 166px);max-height:calc(92svh - 166px)}}
@media(prefers-reduced-motion:reduce){.mh-creator-card>img{transition:none}}

.mh-creator-card:focus-visible,.mh-gallery-video:focus-visible,.mh-video-gallery-thumb button:focus-visible{outline-offset:-3px}

/* Fullscreen rules follow responsive sizing so landscape clips fill the screen. */
.mh-video-stage:fullscreen video{height:100%;max-height:100%;aspect-ratio:auto}
.mh-video-stage:fullscreen .mh-youtube-player{height:100%;max-height:none;aspect-ratio:auto}
