.ap-video-library { color: #2b2b2b; }
.ap-video-hero { max-width: 46rem; margin: 0 auto 1.5rem; }
.ap-video-hero-title { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 800; line-height: 1.7; margin-bottom: .75rem; }
.ap-video-hero-lead { color: #4a4a4a; line-height: 2; margin-bottom: .85rem; }
.ap-video-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .7rem; color: #666; font-size: .92rem; }
.ap-video-hero-meta a { color: #c45c1a; text-decoration: none; }
.ap-video-hero-meta a:hover { text-decoration: underline; }
.ap-video-toolbar { display: grid; grid-template-columns: 1fr; gap: .85rem; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
@media (min-width: 768px) {
    .ap-video-toolbar { grid-template-columns: 1.6fr .8fr .8fr auto; align-items: end; }
}
.ap-video-label { display: block; font-size: .82rem; color: #666; margin-bottom: .3rem; }
.ap-video-toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ap-video-clear { color: #c45c1a; font-size: .9rem; }
.ap-video-result-count, .ap-video-empty { text-align: center; margin-top: 1.25rem; color: #666; }
.ap-video-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: .85rem; height: 100%; box-shadow: 0 1px 8px rgba(0,0,0,.05); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.ap-video-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.ap-video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #1a1a1a; border-radius: 8px; overflow: hidden; cursor: pointer; }
.ap-video-thumb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ap-video-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; color: #bbb; background: #2a2a2a; }
.ap-video-play { position: absolute; inset-inline-start: 50%; inset-block-start: 50%; transform: translate(-50%, -50%); width: 3rem; height: 3rem; border-radius: 50%; background: rgba(196, 32, 37, .92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; pointer-events: none; }
.ap-video-thumb:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }
.ap-video-dur { position: absolute; inset-inline-start: .5rem; inset-block-end: .5rem; background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; padding: .15rem .4rem; border-radius: 4px; }
.ap-video-title { font-size: 1rem; margin: .8rem 0 .4rem; line-height: 1.7; min-height: 3.4em; }
.ap-video-meta { font-size: .85rem; color: #666; display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin-bottom: .4rem; }
.ap-video-origin { font-size: .85rem; color: #c45c1a; margin-top: auto; }
.ap-home-videos .ap-video-title { min-height: 0; }
.ap-vlb { position: fixed; inset: 0; z-index: 3600; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ap-vlb[hidden] { display: none !important; }
.ap-vlb-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 12, .72); }
.ap-vlb-dialog { position: relative; z-index: 1; width: min(920px, 100%); background: #141414; color: #f4f4f4; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.45); }
.ap-vlb-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; background: #1d1d1d; border-bottom: 1px solid #333; }
.ap-vlb-title { font-size: 1.05rem; line-height: 1.7; margin: 0; color: #fff; flex: 1; }
.ap-vlb-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 8px; background: #c42025; color: #fff; font-size: 1.8rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ap-vlb-close:hover, .ap-vlb-close:focus { background: #a3181c; outline: 2px solid #fff; outline-offset: 2px; }
.ap-vlb-stage { background: #000; }
.ap-vlb-stage { position: relative; }
.ap-vlb-end { position: absolute; inset: 0; background: #161616; color: #f4f4f4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.25rem; gap: .75rem; z-index: 2; }
.ap-vlb-end[hidden] { display: none !important; }
.ap-vlb-end h3 { margin: 0; font-size: 1.15rem; }
.ap-vlb-end p { margin: 0; max-width: 28rem; line-height: 1.8; color: #ddd; }
.ap-vlb-end-note { font-size: .8rem; color: #aaa; }
.ap-vlb-end-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.ap-vlb-end-close, .ap-vlb-finish { background: transparent; border: 1px solid #888; color: #fff; border-radius: 8px; padding: .45rem .9rem; cursor: pointer; }
.ap-vlb-end-close:hover, .ap-vlb-finish:hover, .ap-vlb-end-close:focus, .ap-vlb-finish:focus { border-color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.ap-vlb-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 1rem 1rem; font-size: .85rem; color: #cfcfcf; background: #1d1d1d; }
.ap-vlb-footer a { color: #ffb070; }
.ap-vlb-footer-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
body.ap-vlb-open { overflow: hidden; }
@media (max-width: 575.98px) {
    .ap-vlb { align-items: flex-start; padding: .5rem; }
    .ap-vlb-title { font-size: .95rem; }
}
