/* Radford Mathematics video library styles */
.video-library-page .page-hero {
  padding: clamp(2rem, 5vw, 4rem) 1rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.video-library-page .eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f766e;
}

.video-library-page .page-hero h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.video-library-page .section-sub {
  max-width: 860px;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.6;
}

.video-db-tools,
.video-db-note,
.video-db-grid,
.video-db-empty {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.video-db-tools {
  padding: 0 1rem;
}

.video-db-panel {
  border: 1px solid rgba(15, 118, 110, .16);
  background: linear-gradient(180deg, rgba(240, 253, 250, .92), rgba(255, 255, 255, .95));
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  border-radius: 1.25rem;
  padding: 1rem;
}

.video-db-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(130px, 1fr)) auto;
  gap: .85rem;
  align-items: end;
}

.video-db-field label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .35rem;
  color: #334155;
}

.video-db-field input,
.video-db-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: .85rem;
  padding: .65rem .75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.video-db-clear,
.video-db-button {
  min-height: 42px;
  border: 0;
  border-radius: .85rem;
  padding: .68rem .95rem;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-db-button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.video-db-clear:hover,
.video-db-button:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.video-db-count {
  margin: .8rem 0 0;
  color: #475569;
  font-weight: 700;
}

.video-db-note {
  padding: 1rem;
  color: #64748b;
  font-size: .95rem;
}

.video-db-grid {
  padding: .5rem 1rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.video-db-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
  display: flex;
  flex-direction: column;
}

.video-db-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-db-thumb iframe,
.video-db-thumb img,
.video-db-play {
  width: 100%;
  height: 100%;
}

.video-db-thumb iframe {
  border: 0;
}

.video-db-play {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #0f172a;
  position: relative;
  display: block;
}

.video-db-play img {
  display: block;
  object-fit: cover;
  opacity: .88;
  transition: transform .18s ease, opacity .18s ease;
}

.video-db-play:hover img {
  transform: scale(1.025);
  opacity: .75;
}

.video-db-play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0f766e;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.video-db-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
}

.video-db-card h2 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
  color: #0f172a;
}

.video-db-card p {
  margin: 0;
  color: #475569;
  font-size: .91rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-db-meta,
.video-db-tags,
.video-db-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.video-db-actions {
  margin-top: auto;
  padding-top: .3rem;
}

.video-db-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .22rem .52rem;
  background: #f1f5f9;
  color: #334155;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.2;
}

.video-db-badge.syllabus {
  background: #ecfeff;
  color: #155e75;
}

.video-db-badge.level,
.video-db-badge.course {
  background: #eef2ff;
  color: #3730a3;
}

.video-db-badge.calculator {
  background: #fff7ed;
  color: #9a3412;
}

.video-db-badge.tag {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.video-db-badge.muted {
  color: #64748b;
}

.video-db-empty {
  padding: 2rem 1rem 4rem;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1100px) {
  .video-db-search-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .video-db-field:first-child {
    grid-column: 1 / -1;
  }
  .video-db-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .video-db-search-row,
  .video-db-grid {
    grid-template-columns: 1fr;
  }
}
