.videos-page {
  padding-block: clamp(2rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #fff 15%, #eef6fe 100%);
  color: #192d35;
}

.videos-page > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.videos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28%);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.videos-feature,
.videos-library {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce8f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(25, 45, 53, 0.06);
}

.videos-player {
  background: #edf6ff;
}

.videos-caption {
  background: linear-gradient(180deg, #f7fbff, #fff);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid #e2edf6;
}

.videos-caption h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.4;
}

.videos-kicker {
  color: #155b9f;
  font-size: 0.8rem;
  font-weight: 700;
}

.videos-library {
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

.videos-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dce8f3;
}

.videos-library-header h2 {
  margin: 0.25rem 0 0;
}

.videos-count {
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #e8f4ff;
  color: #155b9f;
  font-weight: 700;
  text-align: center;
}

.videos-thumbs {
  display: grid;
  gap: 0.5rem;
}

.videos-thumb {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #e2edf6;
  border-radius: 12px;
  background: #fff;
  color: #344e60;
  text-align: start;
  cursor: pointer;
}

.videos-thumb[aria-pressed="true"],
.videos-thumb:hover {
  border-color: #1e90ff;
  background: #edf6ff;
  box-shadow: inset 0 0 0 1px rgba(30, 144, 255, 0.1);
}

.videos-thumb:focus-visible {
  outline: 2px solid #155b9f;
  outline-offset: -2px;
}

.videos-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dceeff;
}

.videos-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.videos-preview::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(25, 45, 53, 0.8);
  color: #fff;
  content: '\25B6';
  font-size: 0.65rem;
  line-height: 1.5rem;
  text-align: center;
  transform: translate(-50%, -50%);
}

.videos-thumb-title {
  padding-inline-end: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  .videos-library {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .videos-library-header {
    flex-shrink: 0;
  }

  .videos-thumbs {
    flex: 1;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    contain: size;
  }
}

@media (max-width: 991.98px) {
  .videos-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .videos-feature,
  .videos-library {
    animation: videos-enter 420ms ease-out both;
  }

  .videos-library {
    animation-delay: 100ms;
  }

  .videos-thumb {
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }
}

@keyframes videos-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.videos-category-tabs { display:flex;gap:12px;max-width:680px;margin:0 auto 20px;padding:6px;border:1px solid #dce8f3;border-radius:16px;background:#fff; }
.videos-category-tabs button { flex:1;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:11px;padding:14px 18px;background:transparent;color:#36556c;font:inherit;font-weight:700;cursor:pointer; }
.videos-category-tabs button[aria-selected="true"] { background:#e8f4ff;color:#126dc1;box-shadow:inset 0 0 0 1px #c4e2fb; }
.videos-category-tabs button:focus-visible { outline:2px solid #126dc1;outline-offset:2px; }
.videos-category-intro { text-align:center;color:#526b7e;margin-bottom:28px; }
.videos-empty { display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:clamp(260px,30vw,440px);padding:32px 20px;background:linear-gradient(145deg,#f2f9ff,#fff); }
.videos-empty > svg { width:56px;height:56px;color:#2789d7;margin-bottom:20px; }
.videos-empty h2 { font-size:clamp(1.2rem,3vw,1.7rem); }
.videos-empty p,.videos-list-empty { color:#607488;line-height:1.8; }
.videos-source-note { margin:12px 0 0;font-size:.85rem;color:#526b7e; }
.videos-facebook-preview { display:grid;place-items:center;height:50px;color:#1679d2; }
.videos-facebook-preview + * { min-width:0; }
@media(max-width:575px) { .videos-category-tabs { gap:4px; }.videos-category-tabs button { padding:12px 6px;gap:6px;font-size:.85rem; }.videos-category-tabs svg { width:23px;height:23px; } }
.videos-category-tabs button:focus:not(:focus-visible) { outline:none;box-shadow:none; }
