/* Optional video workspaces retain the live player and hide only navigation. */
.video-hints { position:absolute; top:156px; left:8px; right:8px; z-index:6; display:flex; flex-direction:column; gap:8px; pointer-events:auto; max-height:calc(100% - 190px); overflow:auto; }
.video-hints[hidden] { display:none; }
.video-hints p { margin:0; padding:10px 12px; border:2px solid rgba(127,12,19,.78); border-radius:6px; background:rgba(0,0,0,.72); color:#fff; font-size:clamp(17px,1.7vw,24px); font-weight:600; line-height:1.4; flex:none; white-space:pre-wrap; overflow-wrap:anywhere; }
.videos-page .reel-info[open] { right:auto; width:76px; }
.videos-page .reel-info[open] .reel-info-content { font-size:10px; overflow-wrap:anywhere; }
.video-workspace { position:relative; z-index:35; background:#131313; padding:14px; color:#fff; overflow-y:auto; overscroll-behavior:contain; }
.video-workspace>.editor-head { position:sticky; top:-14px; padding:10px 0; background:#131313; z-index:3; }
.video-workspace h2 { font-size:18px; margin:10px 0; }
.hint-editor p,.hint-editor small { color:#ccc; font-size:12px; line-height:1.45; }
.hint-editor label { display:grid; gap:6px; font-size:12px; color:#ddd; }
.hint-editor form { display:grid; gap:10px; margin:14px 0; }
.hint-editor input:not([type=checkbox]),.hint-editor textarea { box-sizing:border-box; min-width:0; width:100%; padding:10px; border:1px solid #555; border-radius:6px; background:#080808; color:#fff; font:inherit; font-size:16px; }
.hint-editor input[type=checkbox] { width:22px!important; height:22px; }
.hint-editor button,.video-workspace>.editor-head button,.video-download button { min-height:44px; padding:8px 12px; color:#fff; background:#630c1b; border:1px solid #934050; border-radius:6px; font:inherit; font-size:13px; cursor:pointer; }
.hint-editor button:disabled,.video-download button:disabled { opacity:.5; cursor:wait; }
.hint-times { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hint-play-controls { display:flex; flex-wrap:wrap; gap:6px; }
.hint-timeline { padding:12px 0; border-block:1px solid #393939; }
.hint-timeline input[type=range] { accent-color:#d72844; min-height:44px; padding:0; }
.hint-timeline output { font-variant-numeric:tabular-nums; }
[data-hint-markers] { display:grid; gap:4px; margin:0 0 10px; max-height:80px; overflow:auto; }
[data-hint-markers] button { display:block; min-height:8px; height:8px; padding:0; border:0; background:#a42138; border-radius:3px; }
.hint-list article { padding:12px 0; border-top:1px solid #444; }
.hint-list article>button { margin-right:8px; }
.hint-list p { white-space:pre-wrap; overflow-wrap:anywhere; }
.video-metadata { margin-top:16px; border-top:1px solid #444; padding-top:14px; }
.video-metadata summary { cursor:pointer; font-size:14px; }
.video-metadata .video-editor { position:static; width:auto; margin:12px 0; transform:none; box-shadow:none; }
.video-metadata .portrait-crop-preview { max-height:200px; }
.mention-suggestions { display:flex; flex-wrap:wrap; gap:5px; max-height:125px; overflow:auto; }
.mention-suggestions[hidden],[data-pause-duration][hidden] { display:none; }
.mention-suggestions button { min-height:40px; padding:8px; font-size:13px; background:#3e101a; color:white; border:1px solid #a1374a; border-radius:6px; }
.video-focus .bottom-nav,.video-focus .video-section-tabs,.video-focus .feed-tabs,.video-focus .video-manage-menu,.video-focus .video-context,.video-focus .profile-highlight-link { display:none!important; }
.video-focus .videos-page { position:fixed; top:var(--video-viewport-top,0px); left:50%; width:min(100%,var(--app-width,480px)); height:var(--video-viewport-height,100dvh); min-height:0; padding-top:90px; display:flex; flex-direction:column; transform:translateX(-50%); }
.video-focus .reels { position:relative; inset:auto; order:0; flex:0 0 auto; width:100%; height:clamp(120px,28vh,300px); max-height:40%; min-height:0; overflow:hidden; scroll-snap-type:none; }
.video-focus .reel { display:none; }
.video-focus .reel.video-focused { display:block; height:100%; min-height:0; width:100%; }
.video-focus .reel-media { height:100%; min-height:0; width:100%; }
.video-focus .reel-media video { width:100%; height:100%; object-fit:contain!important; }
.video-focus .reel-media>.video-embed-frame { width:100%; height:auto; max-width:100%; max-height:100%; aspect-ratio:16/9; left:50%; transform:translate(-50%,-50%); }
.video-focus .reel-actions,.video-focus .reel-info { display:none; }
.video-focus .video-hints { top:8px; left:8px; right:8px; max-height:75%; }
.video-focus .video-hints p { font-size:17px; padding:8px 10px; }
.video-focus .video-workspace { order:1; flex:1 1 auto; min-height:0; padding-bottom:max(16px,env(safe-area-inset-bottom)); }
.video-comments-open .videos-page { pointer-events:none; }
.video-comments-open .reels { pointer-events:auto; }
.video-comments-open .comments-overlay { position:fixed; top:calc(var(--video-viewport-top,0px) + 90px + min(clamp(120px,28vh,300px),calc((var(--video-viewport-height,100dvh) - 90px)*.4))); bottom:auto; left:50%; transform:translateX(-50%); width:min(100%,var(--app-width,480px)); height:calc(var(--video-viewport-height,100dvh) - 90px - min(clamp(120px,28vh,300px),calc((var(--video-viewport-height,100dvh) - 90px)*.4))); z-index:40; background:#131313; }
.video-comments-open .comments-sheet { width:100%; max-width:none; height:100%; max-height:100%; padding:12px 16px max(12px,env(safe-area-inset-bottom)); border-radius:0; overflow:auto; }
.video-comments-open .comments-sheet .sheet-handle,.video-comments-open .comments-sheet>p { display:none; }
.video-comments-open .comment-list { flex:1 1 auto; min-height:0; }
.video-comments-open .comments-sheet form { flex:0 0 auto; }
.video-comments-open .comments-sheet textarea { resize:none; min-height:45px; max-height:90px; }
.video-comments-open .comments-sheet small { font-size:11px; color:#bbb; }
.video-comments-open .comments-sheet form .dictation-button { margin:0; }
.video-comments-open .comments-sheet h2 { font-size:17px; }
.video-focus .topbar { z-index:42; pointer-events:none; }
.video-focus .topbar button { pointer-events:auto; }
.reel-media:fullscreen,.reel-media.video-expanded { position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important; max-width:none; z-index:100; background:#000; }
.reel-media:fullscreen .video-hints,.reel-media.video-expanded .video-hints { top:5%; left:8px; right:8px; max-height:75%; }
.reel-media:fullscreen .reel-actions,.reel-media.video-expanded .reel-actions { display:grid; bottom:16px; }
.reel-media:fullscreen .video-embed-frame,.reel-media.video-expanded .video-embed-frame { width:min(100vw,177.7778dvh); max-width:none; }
.video-download { width:min(92vw,480px); border:1px solid #742335; border-radius:12px; background:#171214; color:#fff; padding:22px; }
.video-download::backdrop { background:#000a; }
.video-download h2 { font-size:20px; }
.video-download p { line-height:1.5; font-size:14px; }
.video-download .download-options { display:grid; gap:12px; }
.video-download .download-close { float:right; }
.video-download progress { width:100%; }
@media(min-width:768px) {
  :root { --app-width:1100px; }
  .app-shell { max-width:var(--app-width); }
  .topbar,.bottom-nav,.video-section-tabs,.feed-tabs { max-width:var(--app-width); }
  .hero,.profile-content,.subpage,.calendar-section,.resources-section { padding-left:32px; padding-right:32px; }
  .home-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .video-embed-frame { width:100%; }
  .videos-page .reel-actions { right:24px; }
  .videos-page .reel-actions button { width:48px; height:48px; }
  .video-hints { left:12px; right:12px; }
  .video-focus .videos-page { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr); grid-template-rows:minmax(0,1fr); gap:16px; padding:104px 20px 20px; }
  .video-focus .reels { align-self:center; width:100%; height:auto; aspect-ratio:16/9; max-height:100%; }
  .video-focus .video-workspace { height:100%; }
  .video-comments-open .videos-page { grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr); }
  .video-comments-open .comments-overlay { left:calc(50% + min(50vw,550px) - 20px); transform:translateX(-100%); top:calc(var(--video-viewport-top,0px) + 104px); width:max(320px,calc((min(100vw,1100px) - 56px)/2.4)); height:calc(var(--video-viewport-height,100dvh) - 124px); }
  .video-focus .video-hints p { font-size:clamp(17px,1.7vw,24px); }
}
@media(orientation:landscape) and (max-height:600px) {
  .video-hints { top:12px; }
  .video-focus .videos-page { padding-top:0; display:grid; grid-template-columns:1fr minmax(260px,40%); gap:8px; }
  .video-focus .reels { width:100%; height:100%; max-height:100%; }
  .video-focus .topbar { display:none; }
  .video-focus .video-workspace { height:100%; }
  .video-comments-open .comments-overlay { top:var(--video-viewport-top,0); left:auto; right:0; transform:none; width:40%; height:var(--video-viewport-height,100dvh); }
}

.video-workspace>.editor-head button { display:grid; place-items:center; width:44px; height:44px; min-width:44px; padding:0; line-height:1; font-size:24px; }
.hint-editor [data-hint-selection] { font-size:13px; color:#ddd; }
.hint-editor [hidden] { display:none!important; }

@media(min-width:768px) {
  .app-shell>main:not(.videos-page) { width:100%; max-width:760px; margin-inline:auto; }
  .home-actions>.home-action-card:only-child { grid-column:1 / -1; width:min(100%,520px); justify-self:center; }
}
.video-upload-notice { position:fixed; top:calc(104px + env(safe-area-inset-top)); left:50%; z-index:90; width:min(calc(100vw - 24px),520px); padding:12px; display:grid; gap:7px; color:#fff; background:#141414f5; border:1px solid #9b2634; border-radius:8px; box-shadow:0 14px 40px #000b; transform:translateX(-50%); }
.video-upload-notice strong { font-size:14px; }
.video-upload-notice span { font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
.video-upload-notice progress { width:100%; accent-color:#b5121b; }
.video-upload-notice button { min-height:40px; padding:7px 10px; color:#fff; background:#630c1b; border:1px solid #934050; border-radius:5px; cursor:pointer; }
.video-library-page .library-bulk { max-height:min(60svh,560px); }
.video-library-page .library-bulk .video-library-new-match[hidden] { display:none; }
.video-library-page .library-bulk input[name="new_collection_name"] { min-height:40px; padding:0 8px; color:#fff; background:#080808; border:1px solid var(--line); border-radius:5px; }

.video-section-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
.video-section-tabs:has(>button:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.video-manage-menu { width:44px; }
.video-manage-menu>summary { width:44px; height:44px; padding:0; border:0; box-shadow:none; background:transparent; }
.video-manage-menu[open]>summary svg { transform:none; }
.video-manage-actions { position:absolute; right:0; width:190px; }
.upload-ready-dot { position:absolute; top:6px; right:6px; width:7px; height:7px; border-radius:50%; background:#d72c43; }
.profile-video-notices { padding:16px; display:grid; gap:10px; }
.profile-video-notices h2 { margin:0 0 4px; font-size:20px; }
.profile-video-notices button { display:grid; gap:7px; width:100%; padding:14px; text-align:left; border:1px solid #8b1425; border-radius:8px; background:#181113; color:white; cursor:pointer; }
.profile-video-notices button strong { font-size:16px; }
.profile-video-notices button span { font-size:14px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.profile-video-notices button small { display:flex; align-items:center; gap:8px; color:#ddd; }
.mentioned-comment { border:2px solid #8b1425; border-radius:6px; padding:10px; }
@media(orientation:landscape) and (max-height:600px) {
  .videos-page .video-section-tabs { display:none!important; }
}
.profile-page>.profile-video-notices,.dp-profile>.profile-video-notices { padding-top:calc(120px + env(safe-area-inset-top)); }
.profile-video-notices+.profile-visual,.profile-video-notices+.dp-portrait { padding-top:24px; }
/* Keep the black letterbox available for the complete hint text. */
.videos-page .video-manage-menu { top:calc(25px + env(safe-area-inset-top)); left:12px; right:auto; }
.video-manage-actions { left:0; right:auto; }
.videos-page .reel-info { top:auto; bottom:128px; left:12px; right:auto; width:max-content; }
.videos-page .reel-info[open] { width:min(260px,calc(100% - 88px)); }
.video-hints { overflow:hidden; gap:4px; }
.video-hints p { min-height:0; }
@media(orientation:landscape) and (max-height:600px){
  .videos-page .video-manage-menu { top:4px; }
  .videos-page .reel-info { bottom:12px; }
}

.reel-actions [data-action="comments"]{position:relative}
.reel-actions .comment-count{position:absolute;top:-3px;right:-3px;min-width:14px;height:14px;padding:0 3px;border-radius:8px;background:#8b1425;color:#fff;font-size:9px;font-weight:600;line-height:14px;text-align:center;pointer-events:none}
.match-push-option{margin:16px 0;scroll-margin-top:20px}
.match-push-option>summary{cursor:pointer;padding:16px;border:1px solid #ddd;border-radius:12px;font-weight:600}

.comment-list .delete-comment{float:right;min-height:32px;padding:4px 10px;color:#ddd;background:transparent;border:1px solid #555;border-radius:6px;font-size:11px;cursor:pointer}
.comment-list .delete-comment:disabled{opacity:.5;cursor:wait}

/* Keep filters reachable without covering hint text or the picture. */
.video-goal-filter{position:absolute;z-index:20;left:12px;bottom:160px;max-width:190px;font-size:11px}
.video-goal-filter summary,.video-goal-filter button{padding:9px 12px;color:#fff;background:#151515ed;border:1px solid #555;border-radius:8px;cursor:pointer}
.video-goal-filter>div{display:grid;gap:4px;margin-top:4px}
.video-goal-filter button[aria-pressed=true]{border-color:#b5121b;background:#720b18}
.video-match-list .match-goal-links{display:flex;gap:6px;margin:-4px 0 18px;flex-wrap:wrap}
.video-match-list .match-goal-links button{width:auto;min-height:36px;padding:7px 10px;font-size:11px}
.engagement-metrics{flex-wrap:wrap}
.engagement-match-stats{margin:12px 0;overflow-x:auto}
.engagement-match-stats summary{cursor:pointer;padding:8px 0}
.engagement-match-stats table{width:100%;border-collapse:collapse;font-size:12px}
.engagement-match-stats th,.engagement-match-stats td{padding:10px 6px;text-align:left;border-bottom:1px solid #333}
.reel-player-surface{touch-action:pan-y}
@media(orientation:landscape) and (max-height:600px){.video-goal-filter{bottom:56px;font-size:10px}}

.video-focus .video-goal-filter{display:none}

/* Provider readiness must never obscure an already decoded video frame. */
.bunny-video-frame::after{display:none}
.video-match-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;margin-top:9px;padding:12px;border:1px solid #5d3038;border-radius:8px;background:#1b1416}
.video-match-row .match-open{min-width:0;min-height:38px;padding:0;display:block;border:0;border-radius:0;background:transparent;color:#fff;text-align:left}
.video-match-row .match-open strong{font-size:13px;overflow-wrap:anywhere}
.video-match-row .match-scenes-link{display:flex;align-items:center;gap:4px;min-height:38px;padding:0;background:transparent;border:0;border-radius:0;color:#d9a9b0;font-size:10px;white-space:nowrap;cursor:pointer}
.video-match-row .match-goals-link{min-height:38px;padding:3px 0;background:transparent;border:0;border-radius:0;color:#d9a9b0;font-size:11px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.video-match-row .match-goals-link:focus-visible{outline:2px solid #b5121b;outline-offset:3px}

