/* ==========================================================================
   Video library (Events page section + /videos)
   ========================================================================== */
.vl { min-width: 0; }

/* Featured */
.vl-feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--wa-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,49,97,.12); margin: 0 0 40px; }
.vl-feature__media { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; overflow: hidden; }
.vl-feature__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .6s, opacity .3s; }
.vl-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,45,0) 45%, rgba(0,20,45,.45)); pointer-events: none; }
.vl-feature__media:hover img { transform: scale(1.03); }
.vl-feature__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.vl-feature__play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 86px; height: 86px; border: 0; border-radius: 50%; background: rgba(181,18,27,.95); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 14px 36px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.vl-feature__play svg { margin-left: 4px; }
.vl-feature__media:hover .vl-feature__play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255,255,255,.22), 0 14px 36px rgba(0,0,0,.4); }
.vl-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 38px; border-left: 5px solid var(--wa-red); }
.vl-feature__label { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 12px/1.3 var(--wa-head); letter-spacing: .12em; text-transform: uppercase; color: var(--wa-red); }
.vl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-red); box-shadow: 0 0 0 4px rgba(181,18,27,.15); flex: none; }
.vl-feature__title { margin: 0; font: 800 clamp(22px, 2.2vw, 30px)/1.2 var(--wa-head); color: var(--wa-navy); }
.vl-feature__date { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 600; color: var(--wa-muted); }
.vl-feature__date .wai-i { width: 15px; height: 15px; }
.vl-feature__desc { margin: 0; font-size: 16px; line-height: 1.65; color: var(--wa-body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vl-feature__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.vl-feature__actions .wa-btn { display: inline-flex; align-items: center; gap: 8px; }
.vl-link { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--wa-head); color: var(--wa-navy) !important; text-decoration: none !important; }
.vl-link:hover { color: var(--wa-red) !important; }
.vl-feature.is-playing .vl-feature__play, .vl-feature.is-playing .vl-feature__media img, .vl-feature.is-playing .vl-badge { opacity: 0; pointer-events: none; }

/* Filter chips */
.vl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }
.vl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--wa-line); border-radius: 999px; background: #fff; cursor: pointer;
  font: 700 13.5px/1 var(--wa-head); color: var(--wa-navy); transition: background .15s, color .15s, border-color .15s; }
.vl-chip span { display: inline-block; min-width: 22px; padding: 3px 6px; border-radius: 999px; background: var(--wa-soft); font-size: 11.5px; text-align: center; color: var(--wa-muted); }
.vl-chip:hover { border-color: var(--wa-navy); }
.vl-chip.is-on { background: var(--wa-navy); border-color: var(--wa-navy); color: #fff; }
.vl-chip.is-on span { background: rgba(255,255,255,.18); color: #fff; }

/* Grid */
.vl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.vl-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; font: inherit; }
.vl-card[hidden] { display: none; }
.vl-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--wa-navy); margin-bottom: 8px;
  box-shadow: 0 8px 22px rgba(0,49,97,.12); transition: box-shadow .25s, transform .25s; }
.vl-card:hover .vl-card__thumb { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,49,97,.2); }
.vl-card__thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .5s; }
.vl-card:hover .vl-card__thumb img { transform: scale(1.05); }
.vl-card__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,20,45,0); transition: background .25s; }
.vl-card:hover .vl-card__thumb::after { background: rgba(0,20,45,.18); }
.vl-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.vl-card__ph .wai-i { width: 40px; height: 40px; }
.vl-card__play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(181,18,27,.94); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .2s; }
.vl-card__play svg { margin-left: 3px; }
.vl-card:hover .vl-card__play { transform: scale(1.1); }
.vl-card:focus-visible .vl-card__thumb { outline: 3px solid var(--wa-sky); outline-offset: 3px; }
.vl-card__cat { font: 700 11.5px/1.2 var(--wa-head); letter-spacing: .1em; text-transform: uppercase; color: var(--wa-red); }
.vl-card__title { font: 800 17px/1.32 var(--wa-head); color: var(--wa-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vl-card:hover .vl-card__title { color: var(--wa-red); }
.vl-card__date { font-size: 13px; color: var(--wa-muted); }
.vl-badge { position: absolute; z-index: 2; padding: 4px 8px; border-radius: 6px; font: 700 11.5px/1 var(--wa-head); color: #fff; background: rgba(0,0,0,.78); }
.vl-badge--time { right: 10px; bottom: 10px; }
.vl-badge--short { left: 10px; top: 10px; background: var(--wa-red); letter-spacing: .06em; text-transform: uppercase; }
.vl-empty { text-align: center; color: var(--wa-muted); margin: 10px 0 0; }

/* Footer row */
.vl-foot { display: flex; align-items: center; justify-content: center; gap: 14px 26px; flex-wrap: wrap; margin-top: 40px; }
.vl-foot .wa-btn { display: inline-flex; align-items: center; gap: 8px; }
.vl-yt { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--wa-line);
  font: 700 14px/1 var(--wa-head); color: var(--wa-ink) !important; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0,49,97,.08); transition: transform .15s, box-shadow .15s; }
.vl-yt:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,49,97,.14); }

/* Player popup */
.vl-modal:not([open]) { display: none !important; }
.vl-modal { padding: 0; border: 0; background: transparent; max-width: min(1080px, 94vw); width: 100%; overflow: visible; }
.vl-modal.is-vertical { max-width: min(420px, 92vw); }
.vl-modal::backdrop { background: rgba(0,12,30,.88); backdrop-filter: blur(3px); }
.vl-modal__box { position: relative; }
.vl-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.vl-modal.is-vertical .vl-modal__frame { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; }
.vl-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vl-modal__title { margin: 14px 0 0; font: 700 16px/1.35 var(--wa-head); color: #fff; text-align: center; }
.vl-modal__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vl-modal__close:hover { background: var(--wa-red); }

@media (max-width: 1000px) {
  .vl-feature { grid-template-columns: minmax(0, 1fr); }
  .vl-feature__body { border-left: 0; border-top: 5px solid var(--wa-red); padding: 26px 24px 28px; }
  .vl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .vl-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .vl-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -22px 22px; padding: 0 22px 6px; scrollbar-width: none; }
  .vl-chips::-webkit-scrollbar { display: none; }
  .vl-chip { flex: none; }
  .vl-feature__play { width: 70px; height: 70px; }
  .vl-feature { border-radius: 16px; }
}
