.private-space-nav button[data-private-training-route="videos"] { --private-nav-icon: url("/assets/nav-icon-videos.svg"); }
.video-sr-only, #training-videos-view .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
#training-videos-view, #admin-videos { container-type: inline-size; min-width: 0; }
.video-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--accent) 6%, var(--surface))); }
.video-library-heading h3 { margin: 5px 0 10px; color: var(--text); font-size: 28px; letter-spacing: -.025em; }
.video-library-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.video-library-heading .eyebrow { color: var(--accent); font-size: 11px; }
.video-library-symbol { display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; color: var(--accent); border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); background: var(--surface); }
.video-library-symbol svg { width: 34px; height: 34px; }
.video-library-tools, .video-admin-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.video-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; min-width: 0; }
.video-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.video-search input, .video-library-tools select, .video-admin-tools select { width: 100%; min-height: 44px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; padding: 10px 14px; }
.video-search:has(svg) input { padding-left: 42px; }
.video-category-label { flex: 0 1 220px; }
.video-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
.video-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.video-card { min-width: 0; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 25px color-mix(in srgb, var(--text) 3%, transparent); transition: border-color 160ms, box-shadow 160ms; }
.video-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, var(--text) 7%, transparent); }
.video-card-open { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; border: 0; background: none; padding: 0; color: var(--text); text-align: left; cursor: pointer; }
.video-artwork { display: grid; position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; place-items: center; background: linear-gradient(135deg, #243457, #586fa4); color: #fff; isolation: isolate; }
.video-artwork img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.video-artwork::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10,18,37,.55)); z-index: -1; }
.video-artwork-lines { position: absolute; inset: -30%; display: grid; place-items: center; border: 1px solid #ffffff20; border-radius: 50%; transform: rotate(-20deg); }
.video-artwork-lines::before, .video-artwork-lines::after { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; border: 1px solid #ffffff20; }
.video-artwork-lines::after { width: 48%; height: 48%; }
.video-artwork-lines > svg { width: 150px; height: 150px; opacity: .06; transform: rotate(20deg); }
.video-play { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff80; border-radius: 50%; background: #ffffffed; color: #33476f; box-shadow: 0 4px 15px #0002; }
.video-play svg { width: 22px; height: 22px; margin-left: -2px; fill: currentColor; stroke-width: 1; }
.video-provider { position: absolute; bottom: 12px; left: 14px; font-size: 10px; letter-spacing: .025em; font-weight: 600; }
.video-card-copy { display: flex; flex: 1; flex-direction: column; gap: 10px; width: 100%; padding: 20px; }
.video-card-category { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.video-card-title { color: var(--text); font-size: 18px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.video-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.6; }
.video-card-cta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; color: var(--accent); font-size: 12px; }
.video-empty { grid-column: 1/-1; display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 290px; padding: 42px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.video-empty h4 { margin: 4px 0 0; font-size: 21px; color: var(--text); }
.video-empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.video-empty-symbol { display: grid; place-items: center; width: 60px; height: 60px; color: var(--accent); background: var(--accent-soft); border-radius: 18px; }
.video-empty-symbol svg { width: 28px; height: 28px; }
.video-empty button { padding: 10px 18px; margin-top: 8px; }
.video-loading { grid-column: 1/-1; padding: 32px; text-align: center; color: var(--muted); }
.video-admin-heading { align-items: center; }
.video-admin-heading h3 { font-size: 24px; margin: 4px 0 8px; }
.video-admin-heading p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.video-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; white-space: nowrap; }
.video-with-icon svg, .video-icon-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.video-icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border-radius: 9px; border: 1px solid transparent; color: var(--muted); background: transparent; cursor: pointer; }
.video-icon-button:hover { background: var(--surface-soft); color: var(--text); border-color: var(--line); }
.video-admin-summary { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 18px 0 24px; color: var(--muted); font-size: 13px; }
.video-admin-summary strong { color: var(--text); font-size: 18px; margin-right: 4px; }
.video-admin-tools { margin-bottom: 18px; }
.video-admin-list { display: grid; gap: 12px; }
.video-admin-row { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.video-admin-preview { flex: 0 0 130px; width: 130px; border: 0; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; }
.video-admin-preview .video-play { width: 32px; height: 32px; }
.video-admin-preview .video-play svg { width: 15px; height: 15px; }
.video-admin-preview .video-provider { display: none; }
.video-admin-copy { flex: 1; min-width: 0; }
.video-admin-copy h4 { margin: 7px 0; font-size: 16px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.video-admin-copy p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; }
.video-admin-row-actions { display: flex; align-items: center; gap: 6px; }
.video-status { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 6px; font-size: 10px; font-weight: 600; background: var(--surface-soft); color: var(--muted); }
.video-status-published { background: color-mix(in srgb, #238153 12%, var(--surface)); color: color-mix(in srgb, #238153 85%, var(--text)); }
.video-status-draft { background: color-mix(in srgb, #b77718 10%, var(--surface)); color: color-mix(in srgb, #a56410 85%, var(--text)); }
.video-player-dialog, .video-editor-dialog { color: var(--text); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 90px #0b142a44; max-height: calc(100dvh - 40px); }
.video-player-dialog::backdrop, .video-editor-dialog::backdrop { background: #111c35a6; backdrop-filter: blur(5px); }
.video-player-dialog { width: min(960px, calc(100vw - 40px)); }
.video-player-header, .video-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px; }
.video-player-header h2, .video-editor-header h2 { margin: 5px 0 0; font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.video-player-header .eyebrow, .video-editor-header .eyebrow { margin: 0; }
.video-player-stage { aspect-ratio: 16/9; display: grid; place-items: center; background: #0e1420; color: #fff; }
.video-player-stage video, .video-player-stage iframe { display: block; width: 100%; height: 100%; border: 0; aspect-ratio: 16/9; }
.video-player-stage p { padding: 24px; text-align: center; }
.video-player-description { padding: 22px 28px; font-size: 14px; line-height: 1.75; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.video-player-description:empty { display: none; }
.video-editor-dialog { width: min(660px, calc(100vw - 32px)); }
.video-editor-dialog form { display: block; margin: 0; }
.video-editor-header { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.video-editor-body { display: grid; gap: 20px; padding: 24px 28px; }
.video-source-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.video-source-options legend { margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.video-source-options label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; cursor: pointer; background: var(--surface); font-size: 13px; }
.video-source-options label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--accent); }
.video-source-options input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.video-source-options svg { width: 20px; height: 20px; flex-shrink: 0; }
.video-source-options small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 3px; }
.video-field { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); }
.video-field input, .video-field textarea, .video-field select { width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; font: inherit; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); }
.video-field textarea { resize: vertical; line-height: 1.6; }
.video-optional { display: contents; color: var(--muted); font-size: 11px; font-weight: 400; }
.video-field-help { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 0; overflow-wrap: anywhere; }
.video-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 16px; }
.video-upload-zone { display: grid; justify-items: center; gap: 10px; padding: 24px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 12px; background: var(--surface-soft); text-align: center; cursor: pointer; }
.video-upload-zone svg { width: 28px; height: 28px; color: var(--accent); }
.video-upload-zone strong { font-size: 14px; }
.video-upload-zone span { color: var(--muted); font-size: 12px; }
.video-upload-zone input { width: 100%; max-width: 320px; font-size: 12px; color: var(--muted); }
.video-upload-zone input::file-selector-button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: 8px 10px; margin-right: 8px; cursor: pointer; }
.video-upload-progress { padding: 16px; border-radius: 10px; background: var(--accent-soft); }
.video-upload-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-size: 12px; }
.video-upload-progress progress { width: 100%; height: 8px; display: block; margin-top: 12px; accent-color: var(--accent); }
.video-upload-progress button { border: 0; padding: 5px; color: var(--accent); background: none; cursor: pointer; text-decoration: underline; }
.video-editor-footer { display: flex; gap: 12px; justify-content: flex-end; position: sticky; bottom: 0; padding: 18px 28px; border-top: 1px solid var(--line); background: var(--surface); z-index: 2; }
.video-editor-footer button { padding: 10px 18px; }
#video-editor-message:empty, #video-admin-message:empty { display: none; }
.video-editor-dialog [hidden] { display: none !important; }
.video-external-choice { padding: clamp(20px, 4vw, 40px); width: 100%; max-width: 640px; margin: auto; color: var(--text); background: var(--surface); text-align: center; }
.video-external-choice h3 { margin: 0 0 14px; }
.video-external-choice p { line-height: 1.6; margin: 0 0 16px; }
.video-external-choice > a, .video-external-choice > button { display: block; margin: 12px auto; color: var(--accent); font-size: 13px; }
.video-external-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.video-external-actions button { flex: 1 1 160px; padding: 12px 18px; }
.video-editor-dialog :disabled { opacity: .65; cursor: wait; }
:is(.video-card-open, .video-icon-button, .video-admin-preview, .video-search input, .video-field input, .video-field select, .video-field textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@container (max-width: 950px) { .video-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 600px) {
  .video-library-heading { padding: 24px; } .video-library-heading h3 { font-size: 25px; }
  .video-library-symbol { display: none; } .video-category-label { flex: 1 1 200px; }
  .video-admin-row { flex-wrap: wrap; gap: 12px; } .video-admin-preview { flex-basis: 100px; width: 100px; }
  .video-admin-row-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
  .video-admin-heading { flex-wrap: wrap; gap: 16px; }
}
@container (max-width: 440px) { .video-library-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .video-editor-dialog, .video-player-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 13px; }
  .video-editor-header, .video-player-header, .video-player-description { padding: 20px; }
  .video-editor-body { padding: 20px; gap: 18px; } .video-editor-footer { padding: 16px 20px; }
  .video-source-options { grid-template-columns: 1fr; gap: 8px; } .video-source-options label { padding: 12px; }
  .video-editor-footer button { flex: 1; } .video-player-header h2 { font-size: 20px; }
}
