/* MTWAFIQ video slots (7 Oct 2026): lite YouTube embeds. Brand colours only: turquoise #1FB5B2, green #4CAE3F, orange #EC6C25, navy #0B1020.
   Slots stay hidden (the [hidden] attribute, display:none) until assets/js/videos.js finds a YouTube ID for them: an empty ID renders nothing. */
.vid{margin-top:16px;min-width:0}
.vid-k{display:flex;align-items:center;gap:8px;margin:0 0 8px;font:700 13.5px/1.35 var(--f-body);color:var(--heading)}
.vid-k a{color:inherit;text-decoration:underline;text-decoration-color:#1FB5B2;text-underline-offset:3px}
.vid-ic{flex:none;position:relative;width:20px;height:20px;border-radius:50%;background:#1FB5B2}
.vid-ic::after{content:"";position:absolute;top:6px;left:7.5px;border-style:solid;border-width:4px 0 4px 7px;border-color:transparent transparent transparent #0B1020}
.vid-box{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#0B1020;box-shadow:var(--shadow);container-type:inline-size}
.vid-btn{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:#0B1020;cursor:pointer;color:#fff;font:inherit;text-align:start}
.vid-btn img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease,ease),opacity .3s}
.vid-btn::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(11,16,32,0) 42%,rgba(11,16,32,.88) 100%);pointer-events:none}
.vid-play{position:absolute;z-index:1;top:50%;left:50%;width:clamp(44px,15cqi,68px);height:clamp(44px,15cqi,68px);transform:translate(-50%,-50%);border-radius:50%;background:#1FB5B2;display:grid;place-items:center;box-shadow:0 8px 24px -8px rgba(11,16,32,.8);transition:background-color .2s,transform .25s var(--ease,ease)}
.vid-play svg{width:42%;height:42%;fill:#0B1020;margin-left:6%}
.vid-t{position:absolute;z-index:1;inset-inline:14px;bottom:11px;color:#fff;font:600 clamp(12.5px,3.6cqi,17px)/1.32 var(--f-body);letter-spacing:0;word-spacing:.04em;text-shadow:0 1px 2px rgba(11,16,32,.6);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[lang=ar] .vid-t{font-family:var(--f-ar);letter-spacing:0}
.vid-btn:hover .vid-play{background:#4CAE3F;transform:translate(-50%,-50%) scale(1.06)}
.vid-btn:hover img{transform:scale(1.03)}
.vid-btn:focus{outline:none}
.vid-btn:focus-visible::after{box-shadow:inset 0 0 0 3px #EC6C25}
.vid-btn:focus-visible .vid-play{background:#4CAE3F}
.vid-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.vid-box iframe:focus-visible{outline:3px solid #EC6C25;outline-offset:-3px}
.vid-go{margin:8px 0 0;font-size:.9rem;font-weight:600}
.vid-go a{color:var(--link)}
/* layouts */
.vid-one{max-width:760px;margin:26px auto 0}
.vid-sec{padding:clamp(22px,3.4vw,40px) 0 0}
.vid-sec:not([hidden]) + section{padding-top:clamp(40px,6vw,80px)}
.vid-top .vid-one{margin-top:0;max-width:680px}
.vid-home{padding-bottom:clamp(30px,4vw,56px)}
.vid-home .vid-head{margin-bottom:6px}
.vid-head{max-width:780px;margin-bottom:22px}
.vid-head h2{font-size:clamp(1.35rem,2.4vw,1.9rem)}
.vid-head p{font-size:1rem;color:var(--muted)}
.vid-sec .vid-head{margin-inline:auto;text-align:center}
.vid-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px;max-width:1040px;margin:0 auto}
.vid-pair .vid{margin-top:0}
.vid-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:22px 20px}
.vid-grid .vid{margin-top:0}
.vid-group{margin-top:56px}
.vid-list{display:flex;flex-direction:column;gap:clamp(40px,5vw,56px)}
.vid-list .vid-group{margin-top:0}
.vid-list .vid-head{margin-bottom:18px}
.vid-soon{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;padding:18px 20px;border-radius:16px;border:1px solid var(--border);background:var(--surface-2);color:var(--heading);font-weight:600}
.vid-soon a{color:var(--link)}
@media (max-width:640px){.vid-k{font-size:13px}.vid-grid{gap:18px}.vid-one{margin-top:20px}}
@media (prefers-reduced-motion:reduce){.vid-btn img,.vid-play{transition:none}.vid-btn:hover img{transform:none}.vid-btn:hover .vid-play{transform:translate(-50%,-50%)}}
/* v20.37.1 (owner) · "Show me": a small button where the content is, and the video in a pop-up over the page */
.vid-showme{margin-top:12px}
.vid-showme.vid-off{display:none}
.vid-show{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 14px 6px 7px;border-radius:999px;border:1px solid color-mix(in srgb,#1FB5B2 45%,var(--border));background:color-mix(in srgb,#1FB5B2 9%,var(--surface-2,#fff));color:var(--heading);font:600 13.5px/1.3 var(--f-body);cursor:pointer;text-align:start;transition:background-color .2s,border-color .2s,transform .15s}
html[lang=ar] .vid-show{padding:6px 7px 6px 14px;font-family:var(--f-ar)}
.vid-show b{font-weight:750;white-space:nowrap}
.vid-show small{font-weight:500;color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.vid-show:hover{background:color-mix(in srgb,#1FB5B2 18%,var(--surface-2,#fff));border-color:#1FB5B2}
.vid-show:focus{outline:none}.vid-show:focus-visible{outline:3px solid #EC6C25;outline-offset:2px}
.vid-show:active{transform:scale(.98)}
.vid-sec .vid-showme,.vid-one.vid-showme{text-align:center}
.vid-top .vid-showme,.vid-home .vid-showme{margin-top:0}
.vid-dlg{width:min(960px,94vw);max-width:none;padding:0;border:0;border-radius:18px;background:#0B1020;color:#fff;box-shadow:0 30px 80px -20px rgba(0,0,0,.65);overflow:hidden}
.vid-dlg::backdrop{background:rgba(5,8,18,.72);backdrop-filter:blur(3px)}
.vid-dlg-in{display:flex;flex-direction:column}
.vid-dlg-h{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 18px}
html[lang=ar] .vid-dlg-h{padding:10px 18px 10px 10px}
.vid-dlg-t{flex:1;min-width:0;font:650 15px/1.35 var(--f-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[lang=ar] .vid-dlg-t{font-family:var(--f-ar)}
.vid-dlg-x{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:16px;cursor:pointer}
.vid-dlg-x:hover{background:rgba(255,255,255,.22)}.vid-dlg-x:focus-visible{outline:3px solid #EC6C25;outline-offset:2px}
.vid-dlg-box{border-radius:0;box-shadow:none}
html.vid-lock{overflow:hidden}
@media (max-width:640px){.vid-dlg{width:100vw;border-radius:14px}.vid-show small{display:none}}
/* v20.37.1 (owner) · the Videos page: search and filters */
.vid-find{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 6px;padding:14px;border-radius:16px;border:1px solid var(--border);background:var(--surface-2)}
.vid-find label{flex:1 1 260px;display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px;border-radius:12px;border:1px solid var(--border);background:var(--bg)}
.vid-find input{flex:1;min-width:0;height:42px;border:0;background:transparent;color:var(--text);font:500 15px var(--f-body)}
.vid-find input:focus{outline:none}.vid-find label:focus-within{border-color:#1FB5B2;box-shadow:0 0 0 3px color-mix(in srgb,#1FB5B2 25%,transparent)}
.vid-chips{display:flex;flex-wrap:wrap;gap:6px}
.vid-chips button{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--border);background:var(--bg);color:var(--heading);font:600 13px var(--f-body);cursor:pointer}
html[lang=ar] .vid-chips button,html[lang=ar] .vid-find input{font-family:var(--f-ar)}
.vid-chips button b{font-weight:700;color:var(--muted);font-size:12px}
.vid-chips button[aria-pressed="true"]{background:#1FB5B2;border-color:#1FB5B2;color:#0B1020}
.vid-chips button[aria-pressed="true"] b{color:#0B1020}
.vid-chips button:focus-visible{outline:3px solid #EC6C25;outline-offset:2px}
.vid-n{margin-inline-start:auto;color:var(--muted);font-size:13px;font-weight:600}
.vid-none{margin:0;padding:16px 18px;border-radius:14px;border:1px dashed var(--border);color:var(--muted)}
/* v20.40.3 (owner, 14 Oct 2026: "From the website now") · the website's own videos: poster boxes that follow the format, the compact card,
   the portrait player for 9:16, the format, duration and languages on the Videos page. Every box keeps its size while the script fills it in. */
.vid-box[data-fmt="9x16"]{background:#0B1020 radial-gradient(60% 90% at 50% 50%,rgba(31,181,178,.22),rgba(11,16,32,0) 70%)}
.vid-box[data-fmt="9x16"] .vid-btn{background:transparent}
.vid-box[data-fmt="9x16"] .vid-btn img{object-fit:contain}
.vid-meta{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 0;font:600 12px/1.2 var(--f-body);color:var(--muted)}
html[lang=ar] .vid-meta{font-family:var(--f-ar)}
.vid-meta span{padding:3px 8px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2,transparent)}
.vid-meta span:first-child{font-variant-numeric:tabular-nums}
/* the compact poster card: one line, a fixed-size thumbnail */
.vid-cardc{margin-top:14px;min-width:0}
.vid-cc{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;margin:0;padding:6px 14px 6px 6px;border-radius:14px;border:1px solid color-mix(in srgb,#1FB5B2 38%,var(--border));background:color-mix(in srgb,#1FB5B2 5%,var(--surface-2,#fff));color:var(--heading);font:inherit;text-align:start;cursor:pointer;transition:border-color .2s,background-color .2s,transform .15s}
html[lang=ar] .vid-cc{padding:6px 6px 6px 14px}
.vid-cc:hover{border-color:#1FB5B2;background:color-mix(in srgb,#1FB5B2 12%,var(--surface-2,#fff))}
.vid-cc:focus{outline:none}.vid-cc:focus-visible{outline:3px solid #EC6C25;outline-offset:2px}
.vid-cc:active{transform:scale(.99)}
.vid-cc-p{position:relative;flex:none;width:112px;height:63px;border-radius:10px;overflow:hidden;background:#0B1020}
.vid-cc-p img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vid-cc-p[data-fmt="9x16"] img{object-fit:contain}
.vid-cc-p .vid-play{width:30px;height:30px;box-shadow:none}
.vid-cc:hover .vid-play{background:#4CAE3F}
.vid-cc-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.vid-cc-t b{font:700 14px/1.32 var(--f-body);color:var(--heading);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vid-cc-t small{font:500 12.5px/1.3 var(--f-body);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[lang=ar] .vid-cc-t b,html[lang=ar] .vid-cc-t small{font-family:var(--f-ar)}
.vid-hero{max-width:440px;margin-top:20px}
.vid-hero .vid-cc{background:color-mix(in srgb,var(--bg,#fff) 82%,transparent);backdrop-filter:blur(6px)}
.vid-ccgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:12px}
.vid-ccgrid .vid-cardc{margin-top:0}
.vid-uses{margin-top:clamp(22px,3vw,34px)}
.vid-uses-h{display:flex;align-items:center;gap:8px;margin:0 0 12px;font:700 14px/1.35 var(--f-body);color:var(--heading)}
html[lang=ar] .vid-uses-h{font-family:var(--f-ar)}
.vid-prods .vid-head{margin-bottom:16px}
.vid-showme + .vid-showme{margin-top:8px}
/* the pop-up player: the website's own file; 9:16 gets a portrait player (a centred portrait frame on desktop, full height on phones) */
.vid-dlg-box video{position:absolute;inset:0;width:100%;height:100%;display:block;background:#000;object-fit:contain}
.vid-dlg-box video:focus-visible{outline:3px solid #EC6C25;outline-offset:-3px}
.vid-dlg.vid-p{width:min(94vw,calc((100vh - 110px) * 9 / 16))}
.vid-dlg.vid-p .vid-dlg-box{aspect-ratio:9/16}
.vid-err{position:absolute;inset:auto 0 0 0;margin:0;padding:12px 16px;background:rgba(11,16,32,.88);color:#fff;font-size:14px}
@media (max-width:640px){
  .vid-dlg.vid-p{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;border-radius:0}
  .vid-dlg.vid-p .vid-dlg-in{height:100%}
  .vid-dlg.vid-p .vid-dlg-box{flex:1;min-height:0;aspect-ratio:auto}
  .vid-cc-p{width:96px;height:54px}
  .vid-hero{max-width:none}
}
@media (prefers-reduced-motion:reduce){.vid-cc{transition:none}.vid-cc:active{transform:none}}
/* v20.40.3 · a CoE card with two videos: the pair sits at the bottom (cx.css pushes the first one down), the second right under it */
.coe-svc:has(> .vid) > .vid ~ .vid{margin-top:8px;padding-top:0}
/* v20.41 (owner, 14 Oct 2026: "there could be a video window (same like the videos page) once the space in the page is suitable") ·
   the video window: the Videos page's poster card (picture, title, duration, play) where a page has room; Show me stays where space is tight */
.vid-win{margin-top:22px;min-width:0}
.vid-one.vid-win{max-width:640px}
.vid-pair .vid-win{margin-top:0}
.vid-pair:has(> .vid-win){max-width:980px}
.vid-sec .vid-win .vid-meta,.vid-win.vid-one .vid-meta{justify-content:center}
.vid-incard{margin-top:18px;margin-bottom:16px}
.vid-aq{max-width:520px;margin-top:20px}
.vid-p05{margin-top:18px}
.vid-rgwin{margin-top:18px;max-width:560px;margin-inline:auto}
@media (min-width:900px){
  .rg-sec .wrap:has(> .vid-rgwin){display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,400px);column-gap:24px;align-items:center}
  .rg-sec .wrap:has(> .vid-rgwin) > .rg-panel{grid-column:1;grid-row:1}
  .rg-sec .wrap:has(> .vid-rgwin) > .vid-rgwin{grid-column:2;grid-row:1;margin:0;max-width:none}
}
/* in a hero: the free column beside the text on a computer, under the text on a phone */
.vid-hwin{margin-top:24px;max-width:560px}
@media (min-width:960px){
  .page-hero .wrap:has(> .vid-hwin){--hw:clamp(340px,31vw,460px)}
  .page-hero .wrap:has(> .vid-hwin) > :not(.vid-hwin){max-width:calc(100% - var(--hw) - 56px)}
  .page-hero .wrap:has(> .vid-hwin) > .vid-hwin{position:absolute;inset-inline-end:var(--gut);top:50%;transform:translateY(-50%);width:var(--hw);max-width:none;margin:0}
}
.page-hero .vid-meta span,.band .vid-meta span{background:rgba(11,16,32,.45);border-color:rgba(255,255,255,.22);color:#F2F6F8}
.vid .vid-meta{font:600 12px/1.2 var(--f-body)}
html[lang=ar] .vid .vid-meta{font-family:var(--f-ar)}
/* v20.50 (owner, 24 Oct 2026: a screenshot of the Videos page) · 1. the play button sits in the poster's bottom corner, beside the title,
   so it never hides the title printed on the picture (every poster card, every page); 2. on the Videos page each row of cards shares one grid
   (subgrid): kicker, picture, format, Like and Share, then the link, so the pictures and the Like and Share buttons line up across a row */
.vid-btn .vid-play{top:auto;left:auto;inset-inline-start:12px;bottom:12px;width:clamp(38px,11cqi,48px);height:clamp(38px,11cqi,48px);transform:none}
.vid-btn .vid-t{inset-inline-start:calc(clamp(38px,11cqi,48px) + 22px);inset-inline-end:14px;bottom:calc(12px + (clamp(38px,11cqi,48px) - 1.32em) / 2)}
.vid-btn:hover .vid-play{transform:scale(1.06)}
@media (prefers-reduced-motion:reduce){.vid-btn:hover .vid-play{transform:none}}
@supports (grid-template-rows:subgrid){
  .vid-grid > .vid-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0;align-content:start}
  .vid-grid > .vid-card > .vid-k{grid-row:1;align-self:end}
  .vid-grid > .vid-card > .vid-box{grid-row:2}
  .vid-grid > .vid-card > .vid-meta{grid-row:3;align-self:start}
  .vid-grid > .vid-card > .cm-slot{grid-row:4;align-self:start}
  .vid-grid > .vid-card > .vid-go{grid-row:5;align-self:start}
}
/* --- v22.43 Show me containers (build/show_me.py) --- */
.st-show{display:flex;flex-wrap:wrap;gap:8px 10px;margin-top:14px}.ht-show{margin:-8px 0 20px}.st-show .vid-showme{margin:0;min-width:0;max-width:100%}
.st-show[hidden],.sol-show[hidden]{display:none}.sol-show{margin-top:10px}.sol-show .vid-showme{margin:0}
.st-show .vid-show small,.sol-show .vid-show small{display:inline}
.st-vids{padding:34px 0 8px}.st-vids h2{margin:4px 0 6px}.st-vids .st-vids-p{margin:0 0 6px;color:var(--muted)}.st-vids h3{margin:18px 0 0;font-size:1.02rem}
[id^="video-"]{scroll-margin-top:96px}
/* --- end v22.43 Show me --- */
