.work-section { background:#faf8fc; overflow:hidden; }
.work-section .section-heading { display:block; text-align:center; margin-bottom:48px; }
.work-section .section-aside { max-width:510px; margin:22px auto 0; }
.work-section .section-aside p { font-size:16px; line-height:1.65; }
.video-rows { display:grid; gap:8px; }
.video-carousel { width:100%; max-width:none; margin-inline:auto; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; scroll-behavior:auto; padding:8px 0 14px; }
.video-carousel::-webkit-scrollbar { display:none; }
.video-carousel:focus-visible { outline:2px solid var(--brand); outline-offset:-3px; }
.video-track,.video-group { display:flex; width:max-content; align-items:stretch; gap:14px; }
.video-track { gap:0; }
.video-group { padding-right:14px; }
.reel-card { position:relative; width:clamp(180px,18vw,216px); aspect-ratio:9/16; flex-shrink:0; overflow:hidden; isolation:isolate; border-radius:14px; background:#e7deee; text-align:left; color:white; }
.reel-card:focus-visible { outline:3px solid #7138b4; outline-offset:4px; }
.reel-card { cursor:zoom-in; }
.reel-poster,.reel-card video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.reel-card video { opacity:0; transition:opacity .18s; }
.reel-card.is-playing video { opacity:1; }
.reel-shade { position:absolute; inset:0; background:linear-gradient(#0008,transparent 28%,transparent 70%,#0009); pointer-events:none; }
.reel-brand { position:absolute; inset:13px 12px auto; display:flex; align-items:center; gap:7px; text-shadow:0 1px 5px #0007; }
.reel-brand>img { width:27px; height:27px; border:1px solid #ffffffad; border-radius:50%; object-fit:cover; flex-shrink:0; }
.reel-brand>img.logo-contain { object-fit:contain; padding:3px; background:#fff; }
.reel-brand>span { min-width:0; }
.reel-brand strong { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:11px; font-weight:600; line-height:1.3; }
.reel-brand small { display:block; font-size:8px; opacity:.8; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reel-views { position:absolute; bottom:14px; left:13px; display:flex; align-items:center; gap:6px; text-shadow:0 1px 5px #0008; }
.reel-views svg { width:17px; height:17px; stroke-width:1.8; }
.reel-views strong { font-size:15px; font-weight:600; letter-spacing:-.025em; }
.video-player { --player-height:min(90dvh,1100px,calc((100vw - 48px) * 16 / 9)); width:calc(var(--player-height) * 9 / 16 + 16px); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); margin:auto; padding:8px; overflow:hidden; border:0; border-radius:18px; color:#fff; background:#fff; box-shadow:0 28px 100px #13072166; }
.video-player::backdrop { background:#100c16b8; backdrop-filter:none; }
.video-player:focus { outline:none; }
.video-player[open] { animation:video-player-in .2s ease-out; }
.video-player-close { position:absolute; z-index:2; top:22px; right:22px; display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; color:#211f24; background:#fff; box-shadow:0 2px 12px #0002; }
.video-player-close:hover { background:#f0e9fa; }
.video-player-close:focus-visible,.video-player-retry:focus-visible { outline:3px solid #6d28d9; outline-offset:3px; }
.video-player-close svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; }
.video-player-screen { position:relative; width:100%; height:var(--player-height); overflow:hidden; border-radius:11px; background:#0d0c0f; }
.video-player-screen video { display:block; width:100%; height:100%; object-fit:contain; }
.video-player-feedback { position:absolute; inset:40% 16px auto; display:grid; justify-items:center; gap:16px; text-align:center; pointer-events:none; font-size:14px; line-height:1.5; text-shadow:0 1px 8px #000; }
.video-player-retry { pointer-events:auto; padding:12px 20px; border-radius:30px; background:#fff; color:#3c096c; font-size:14px; font-weight:600; text-shadow:none; }
body:has(.video-player[open]) .profile-track { animation-play-state:paused; }
@keyframes video-player-in { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media(max-width:700px) {
 .work-section .section-heading { margin-bottom:30px; }
 .work-section .section-aside { margin-top:20px; }
 .work-section .section-aside p { font-size:14px; }
 .video-group { gap:10px; padding-right:10px; }
 .reel-card { width:clamp(160px,44vw,180px); border-radius:12px; }
 .reel-brand { inset:11px 10px auto; gap:6px; }
 .reel-brand>img { width:24px; height:24px; }
 .reel-brand strong { font-size:11px; }
 .reel-brand small { font-size:8px; }
 .reel-views { bottom:12px; left:11px; }
}
@media(prefers-reduced-motion:reduce) {
 .video-player[open] { animation:none; }
 .reel-card video { transition:none; }
 .video-group[aria-hidden="true"] { display:none; }
}
