/* Video modal: the video IS the modal. Copied into 10-reskin, nuf-v3 and settings-v1 so all three behave the same. DS-GAP: video modal + player chrome. Motion = DS-GAP: motion (same curves as settings-v1/css/motion.css). */
.ovv { --ovv-in: cubic-bezier(.2, 0, 0, 1); --ovv-out: cubic-bezier(.4, 0, 1, 1); position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ovv-fade 300ms var(--ovv-in) backwards; }
.ovv.is-leaving { animation: ovv-fade-out 200ms var(--ovv-out) forwards; }
.ovv__stage { position: relative; width: min(1100px, 90vw, calc((100vh - 168px) * 16 / 9)); animation: ovv-in 300ms var(--ovv-in) backwards; }
.ovv.is-leaving .ovv__stage { animation: ovv-out 200ms var(--ovv-out) forwards; }
.ovv__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-12, 12px); background: var(--surface-overlay-3, #444648); color: var(--type-on-surface, #fff); box-shadow: 0 24px 64px rgba(0, 0, 0, .4); }
.ovv__x { position: absolute; top: -64px; right: 0; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; transition: background-color 150ms var(--ovv-in); }
.ovv__x:hover { background: rgba(255, 255, 255, .28); }
.ovv :is(.ovv__x, .ovv__b, .ovv__big):focus-visible { outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #FA8831); outline-offset: var(--focus-ring-offset, 2px); }
.ovv__poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px 24px 72px; text-align: center; background: radial-gradient(circle at 50% 40%, #5a5c5f 0%, #444648 60%); cursor: pointer; transition: opacity 200ms var(--ovv-in); }
.ovv__title { font: var(--heading-md, 500 20px/1.4 Rubik, sans-serif); color: #fff; max-width: 70%; }
.ovv__big { transition: opacity 200ms var(--ovv-in), scale 200ms var(--ovv-in); }
.ovv.is-playing .ovv__poster { opacity: .0; pointer-events: none; }
.ovv.is-playing .ovv__frame { background: #2c2d2f; }
.ovv__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.ovv__prog { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin-bottom: 8px; cursor: pointer; }
.ovv__prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: #fff; transition: width 1s linear; }
.ovv__ctl { display: flex; align-items: center; gap: 4px; font: var(--body-sm, 400 13px/1.5 Rubik, sans-serif); color: #fff; }
.ovv__b { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 16px; cursor: pointer; transition: background-color 150ms var(--ovv-in); }
.ovv__b:hover { background: rgba(255, 255, 255, .18); }
.ovv__time { margin-inline: 8px auto; font-variant-numeric: tabular-nums; }
@keyframes ovv-fade { from { opacity: 0; } }
@keyframes ovv-fade-out { to { opacity: 0; } }
@keyframes ovv-in { from { opacity: 0; translate: 0 8px; scale: .98; } }
@keyframes ovv-out { to { opacity: 0; translate: 0 8px; scale: .98; } }
@media (prefers-reduced-motion: reduce) { .ovv, .ovv * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* YouTube play button (DS-GAP: brand mark): red #FF0000 rounded rectangle 68x48, white triangle; hover darkens */
.ovv__yt { display: block; width: 68px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 12px; }
.ovv__yt svg { display: block; } .ovv__ytbg { transition: fill 150ms var(--ovv-in); }
.ovv__yt:hover .ovv__ytbg { fill: #CC0000; }

.ovv.is-fs .ovv__stage { width: 100vw; } .ovv.is-fs .ovv__frame { border-radius: 0; } .ovv.is-fs .ovv__x { top: 12px; right: 12px; z-index: 3; }
.ovv__menu { position: absolute; right: 12px; bottom: 64px; z-index: 4; min-width: 220px; }
.ovv.has-cc .ovv__frame::after { content: "Captions on"; position: absolute; left: 50%; bottom: 76px; translate: -50% 0; padding: 4px 10px; border-radius: var(--radius-4, 4px); background: rgba(0,0,0,.7); color: #fff; font: var(--body-sm); }

.ovv__x { border-radius: var(--radius-4, 4px); }

.ovv__note { font: var(--body-md, 400 14px/1.4 Rubik, sans-serif); color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); padding: 4px 12px; border-radius: var(--radius-full, 100px); }
