.mfgx-video-channel__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mfgx-video-stat {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(236, 242, 248, 0.12);
  border-radius: 8px;
  background: rgba(236, 242, 248, 0.055);
  color: rgba(236, 242, 248, 0.72);
  text-decoration: none;
}

.mfgx-video-stat strong {
  color: #f8fafc;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.mfgx-video-stat span {
  font-size: 0.83rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

a.mfgx-video-stat:hover,
a.mfgx-video-stat:focus-visible {
  border-color: rgba(59, 208, 179, 0.38);
  background: rgba(59, 208, 179, 0.1);
  color: #fff;
}

.mfgx-video-stat--action strong {
  color: #3bd0b3;
  font-size: 1.25rem;
}

.mfgx-video-filters {
  gap: 16px;
}

.mfgx-video-feature .mfgx-video-thumb--feature {
  width: 100%;
  height: auto;
  min-height: 360px;
}

.mfgx-video-search {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
}

.mfgx-video-sourcebar,
.mfgx-video-topicbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.mfgx-video-sourcebar {
  flex-wrap: nowrap;
}

.mfgx-video-topicbar {
  flex-wrap: wrap;
}

.mfgx-video-source,
.mfgx-video-topic {
  flex: 0 0 auto;
}

.mfgx-video-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(236, 242, 248, 0.13);
  border-radius: 999px;
  color: rgba(236, 242, 248, 0.86);
  background: rgba(236, 242, 248, 0.045);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
}

.mfgx-video-source small {
  color: rgba(236, 242, 248, 0.58);
  font-size: 0.76rem;
}

.mfgx-video-source:hover,
.mfgx-video-source:focus-visible,
.mfgx-video-source.is-active {
  color: #101820;
  border-color: rgba(59, 208, 179, 0.42);
  background: #3bd0b3;
}

.mfgx-video-source:hover small,
.mfgx-video-source:focus-visible small,
.mfgx-video-source.is-active small {
  color: rgba(16, 24, 32, 0.72);
}

.mfgx-video-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2px;
}

.mfgx-video-sort label {
  color: rgba(236, 242, 248, 0.68);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mfgx-video-sort select {
  min-height: 42px;
  min-width: 150px;
  border: 1px solid rgba(236, 242, 248, 0.14);
  border-radius: 8px;
  padding: 0 38px 0 12px;
  color: #f8fafc;
  background: #101820;
  font: inherit;
  font-weight: 800;
}

.mfgx-video-sort .mfgx-button {
  min-height: 42px;
}

.mfgx-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.mfgx-video-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.mfgx-video-card:hover,
.mfgx-video-card:focus-within {
  border-color: rgba(59, 208, 179, 0.3);
  background: rgba(12, 23, 32, 0.94);
  transform: translateY(-2px);
}

.mfgx-video-card .mfgx-video-meta {
  gap: 5px;
}

.mfgx-video-card .mfgx-video-meta span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.mfgx-video-card h2 {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mfgx-video-card p {
  min-height: 2.96em;
}

.mfgx-video-card .mfgx-community-card__actions {
  min-height: 28px;
}

.mfgx-video-archive__toolbar {
  border-radius: 8px;
}

@media (max-width: 900px) {
  .mfgx-video-channel__proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mfgx-video-feature .mfgx-video-thumb--feature {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .mfgx-video-channel__proof,
  .mfgx-video-search {
    grid-template-columns: 1fr;
  }

  .mfgx-video-stat {
    min-height: 72px;
  }

  .mfgx-video-sort {
    justify-content: stretch;
  }

  .mfgx-video-sort label,
  .mfgx-video-sort select,
  .mfgx-video-sort .mfgx-button {
    width: 100%;
  }
}
