/* A single video content model, art-directed separately by each theme. */
.storefront-media { min-width:0; display:grid; gap:12px; }
.storefront-media-heading { margin:0!important; }
.storefront-video-list { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; min-width:0; }
.storefront-video-card { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(180px,.75fr); align-items:center; gap:16px; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--card-radius,20px); background:var(--surface); box-shadow:var(--product-shadow,none); }
.storefront-video-player { display:block; width:100%; min-width:0; max-height:520px; aspect-ratio:16/9; object-fit:cover; background:#100d10; }
.storefront-video-copy { display:grid; gap:8px; min-width:0; padding:16px; }
.storefront-video-copy h3 { margin:0; color:var(--text); font-size:1.08rem; }
.storefront-video-copy p { margin:0; color:var(--text-secondary); line-height:1.8; }
.storefront-video-link { justify-self:start; display:inline-flex; align-items:center; min-height:40px; padding:8px 15px; border-radius:var(--btn-radius,999px); background:var(--primary); color:#fff; font-weight:700; }
.storefront-video-card.is-ad-slot::before { content:"مساحة ترويجية"; position:absolute; z-index:2; inset-block-start:10px; inset-inline-start:10px; padding:4px 8px; border-radius:99px; background:rgba(20,15,20,.72); color:#fff; font-size:11px; }
.storefront-video-card.is-ad-slot { position:relative; }

/* French Editorial: a quiet film strip embedded in the magazine flow. */
:root[data-design-template="french_editorial"] .editorial-video-story .storefront-video-card { border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; box-shadow:none; }
:root[data-design-template="french_editorial"] .editorial-video-story .storefront-video-player { aspect-ratio:16/8; }

/* Luxury Boutique: cinematic wide film, framed in champagne gold. */
:root[data-design-template="luxury_boutique"] .boutique-video-feature .storefront-video-card { grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr); border:1px solid color-mix(in srgb,var(--gold) 55%,var(--border)); border-radius:5px; }
:root[data-design-template="luxury_boutique"] .boutique-video-feature .storefront-video-player { aspect-ratio:16/9; }
:root[data-design-template="luxury_boutique"] .boutique-video-feature .storefront-video-link { border-radius:4px; }

/* Beauty Gallery: video becomes an image-led editorial tile. */
:root[data-design-template="beauty_gallery"] .gallery-video-wall .storefront-video-card { grid-template-columns:minmax(0,1fr); border:0; border-radius:20px; background:transparent; box-shadow:none; }
:root[data-design-template="beauty_gallery"] .gallery-video-wall .storefront-video-player { aspect-ratio:16/10; border-radius:20px; }
:root[data-design-template="beauty_gallery"] .gallery-video-wall .storefront-video-copy { padding:8px 2px; }

/* Beauty Lab: functional demonstration with information beside the player. */
:root[data-design-template="beauty_lab"] .lab-video-feature .storefront-video-card { border-radius:10px; }
:root[data-design-template="beauty_lab"] .lab-video-feature .storefront-video-copy { border-inline-start:3px solid var(--primary); }

/* Blush Romance: soft editorial film moment with floral color accents. */
:root[data-design-template="blush_romance"] .romance-video-moment .storefront-video-card { border-color:color-mix(in srgb,#d98aa8 35%,var(--border)); border-radius:28px 28px 12px 28px; box-shadow:0 12px 30px rgba(183,95,125,.10); }
:root[data-design-template="blush_romance"] .romance-video-moment .storefront-video-player { border-radius:22px 22px 8px 22px; }

/* Velvet Night: campaign film with a fine gold edge and dramatic contrast. */
:root[data-design-template="velvet_night"] .velvet-video-campaign .storefront-video-card { border-color:color-mix(in srgb,var(--gold) 58%,var(--border)); border-radius:3px; background:linear-gradient(140deg,var(--surface),#17111d); }
:root[data-design-template="velvet_night"] .velvet-video-campaign .storefront-video-link { border:1px solid var(--gold); border-radius:3px; }

/* Smart Catalog: restrained advertising slot, compact and clearly labelled. */
:root[data-design-template="smart_catalog"] .catalog-ad-slot .storefront-video-card { grid-template-columns:minmax(0,1fr) minmax(160px,.55fr); border-radius:10px; box-shadow:none; }
:root[data-design-template="smart_catalog"] .catalog-ad-slot .storefront-video-player { aspect-ratio:16/7; }
:root[data-design-template="smart_catalog"] .catalog-ad-slot .storefront-video-copy { padding:12px; }

@media(max-width:680px) {
    .storefront-video-card,
    :root[data-design-template="luxury_boutique"] .boutique-video-feature .storefront-video-card,
    :root[data-design-template="smart_catalog"] .catalog-ad-slot .storefront-video-card { grid-template-columns:minmax(0,1fr); gap:0; }
    .storefront-video-player { aspect-ratio:16/9; }
    .storefront-video-copy { padding:12px; }
    .storefront-video-link { min-height:42px; }
}
@media(prefers-reduced-motion:reduce) {
    .storefront-video-card { scroll-behavior:auto; }
}


/* A hero-placement video becomes a visual feature, not an ordinary ad card. */
.storefront-video-card[data-placement="hero"] {
    grid-template-columns:minmax(0,1fr);
    border:0;
    background:transparent;
    box-shadow:none;
}
.storefront-video-card[data-placement="hero"] .storefront-video-player {
    aspect-ratio:16/7;
    max-height:620px;
    border-radius:var(--card-radius,20px);
}
.storefront-video-card[data-placement="hero"] .storefront-video-copy { padding:12px 4px; }
:root[data-design-template="french_editorial"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border-radius:0; aspect-ratio:16/6; }
:root[data-design-template="luxury_boutique"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border:1px solid color-mix(in srgb,var(--gold) 58%,var(--border)); border-radius:4px; }
:root[data-design-template="beauty_gallery"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border-radius:24px; aspect-ratio:16/8; }
:root[data-design-template="beauty_lab"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border-radius:10px; aspect-ratio:16/8; }
:root[data-design-template="blush_romance"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border-radius:30px 30px 12px 30px; aspect-ratio:16/8; }
:root[data-design-template="velvet_night"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border:1px solid color-mix(in srgb,var(--gold) 65%,var(--border)); border-radius:3px; aspect-ratio:16/7; }
:root[data-design-template="smart_catalog"] .storefront-video-card[data-placement="hero"] .storefront-video-player { border-radius:10px; aspect-ratio:16/6; }


/* Intrinsic media dimensions win over theme defaults, including vertical 9:16 clips. */
.storefront-video-player[data-video-ready="true"],
.product-detail-video[data-video-ready="true"] {
    aspect-ratio: auto !important;
    width:100%;
    height:auto;
    max-height: min(78vh, 760px);
    object-fit:contain;
    background:#100d10;
}
.storefront-video-card:has(.storefront-video-player[data-video-ready="true"]) {
    align-items:start;
}
@media(max-width:680px) {
    .storefront-video-player[data-video-ready="true"],
    .product-detail-video[data-video-ready="true"] {
        max-height:78vh;
        object-fit:contain;
    }
}
