/* Video library uses the existing white / #00a2c3 visual system. */
.video-library > .container { max-width: 1480px; }
.video-library-heading { margin-bottom: 30px; }
.video-library-heading .eyebrow { margin-bottom: 12px; }
.video-library-heading .section-title { margin-bottom: 0; }
.video-library-heading > .text-link { font-size: 13px; }
.video-information-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 26px; padding: 14px 18px; border: 1px solid var(--brand-border); border-radius: 12px; background: var(--brand-section); color: var(--text); font-size: 13px; line-height: 1.7; }
.video-information-note > i { flex-shrink: 0; margin-top: 4px; color: var(--brand); font-size: 15px; }
.video-results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; scroll-margin-top: 130px; }
.video-results-toolbar .video-pagination { margin-top: 0; margin-left: auto; }
.video-result-count { margin: 0; color: var(--text); font-size: 13px; }
.video-result-count > span { color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.video-card:hover, .video-card:focus-within { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.video-card-link { display: flex; flex-direction: column; height: 100%; }
.video-card-link:focus-visible { outline-offset: -4px; }
.video-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-section) url("../img/video-placeholder.svg") center / cover no-repeat; }
.video-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card-media img[hidden] { display: none; }
.video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--white); border-radius: 50%; background: var(--brand); color: var(--white); transform: translate(-50%, -50%); box-shadow: 0 4px 18px rgba(0,0,0,.16); transition: transform .2s ease; }
.video-play i { margin-left: 3px; font-size: 17px; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-card-copy { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 22px; }
.video-card-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.video-card-label i { color: var(--brand); font-size: 16px; }
.video-card h3 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.video-card-more { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.video-card-more i { color: var(--brand); }
.video-featured { margin-bottom: 24px; }
.video-featured .video-card { border-color: var(--brand-border); background: var(--brand-section); }
.video-featured .video-card-link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.video-featured .video-card-media { aspect-ratio: 16 / 9; max-height: 360px; }
.video-featured .video-card-copy { justify-content: center; padding: clamp(24px, 3vw, 44px); gap: 20px; }
.video-featured .video-card h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.4; }
.video-featured .video-card-more { margin-top: 8px; max-width: 200px; border-color: var(--brand-border); }
.video-pagination { position: relative; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 100%; margin-top: 32px; }
.video-results > .video-pagination { width: fit-content; margin-left: auto; margin-right: 0; }
.video-pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); font-size: 14px; }
.video-pagination a:hover { border-color: var(--brand); background: var(--brand-soft); }
.video-pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--white); font-weight: 600; }
.video-pagination .pagination-gap { color: var(--muted); }
.video-pagination-progress { position: absolute; inset: auto 0 -8px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--brand-medium); opacity: 0; }
.video-pagination-progress > span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--brand); }
[data-video-browser][aria-busy="true"] .video-pagination-progress { opacity: 1; }
[data-video-browser][aria-busy="true"] .video-pagination-progress > span { animation: video-loading-track 1.1s ease-in-out infinite; }
[data-video-browser][aria-busy="true"] .video-grid, [data-video-browser][aria-busy="true"] .video-featured { opacity: .5; }
@keyframes video-loading-track { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@keyframes video-loading-spin { to { transform: rotate(360deg); } }
.video-load-status { min-height: 24px; margin: 14px 0 0; text-align: right; color: var(--muted); font-size: 13px; }
.video-load-status.is-error { color: var(--ink); }
.video-load-status.is-loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 9px; border: 2px solid var(--brand-medium); border-top-color: var(--brand); border-radius: 50%; vertical-align: -2px; animation: video-loading-spin .8s linear infinite; }
.video-empty { max-width: 720px; margin-inline: auto; padding: 45px 26px; text-align: center; border-radius: var(--radius-md); background: var(--brand-section); }
.video-empty > i { color: var(--brand); font-size: 32px; margin-bottom: 20px; }
.video-empty h2 { font-size: 25px; }
.video-empty p { color: var(--muted); font-size: 16px; }
.video-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
.video-modal .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.video-modal .modal-title { flex: 1; min-width: 0; margin: 7px 0 0; font-size: 20px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.video-modal-close { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; flex-shrink: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.video-modal-close:hover { background: var(--brand-soft); border-color: var(--brand-border); }
.video-modal .modal-body { padding: 0; }
.video-player-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: var(--surface); }
.video-player-frame iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.video-modal .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; }
.video-modal .modal-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.video-modal .modal-footer a { font-size: 12px; }
.video-modal-notes { flex: 1 1 420px; min-width: 0; margin: 0; }
.video-modal .modal-footer .video-information-note { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.video-modal .modal-footer .video-playback-help { margin-top: 6px; padding-left: 25px; }
.video-modal .modal-footer > .text-link { flex-shrink: 0; margin-left: auto; }
@media (max-width: 991.98px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .video-card-copy { padding: 20px; }
    .video-featured .video-card-link { grid-template-columns: 1fr; }
    .video-featured .video-card-media { max-height: none; }
    .video-featured .video-card-copy { padding: 24px; }
}
@media (max-width: 575.98px) {
    .video-grid { grid-template-columns: 1fr; }
    .video-results-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
    .video-pagination { gap: 6px; margin-top: 28px; }
    .video-pagination a { min-width: 38px; padding-inline: 10px; }
    .video-modal .modal-header, .video-modal .modal-footer { padding: 16px; }
    .video-modal .modal-title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .video-card, .video-play { transition: none; }
    [data-video-browser][aria-busy="true"] .video-pagination-progress > span, .video-load-status.is-loading::before { animation: none; }
}
@media print {
    .video-pagination, .video-load-status, .video-modal { display: none; }
    .video-card { break-inside: avoid; }
}
