/* Channel-directory additions only. Core MechBunny matrix rules remain intact. */
.dynamic-channels-panel {
  width: 100%;
  margin-bottom: 28px;
  padding: 0 13px 6px;
  border: 1px solid #3f3f3f;
  background: #161616;
}

.dynamic-channels-header {
  display: flex;
  align-items: center;
  margin: 0 -13px 18px;
  padding: 12px 13px;
  border-bottom: 2px solid #ffbd0a;
  background: #202020;
}

.dynamic-channels-header .title-icon {
  margin-right: 10px;
  color: #ffbd0a;
}

.dynamic-channels-header h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.dynamic-channels-header .sub-title {
  color: #9d9d9d;
  font-size: 13px;
  line-height: 18px;
}

.dynamic-channel-info {
  display: block;
  min-width: 0;
  padding: 9px 10px 10px;
  border-top: 1px solid #3f3f3f;
  background: #202020;
}

.dynamic-channel-name,
.dynamic-channel-count {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dynamic-channel-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.dynamic-channel-count {
  margin-top: 2px;
  color: #ffbd0a;
  font-size: 12px;
}

.channel-directory-tools {
  width: 100%;
  margin: 4px 0 22px;
  padding: 0 13px;
}

.channel-directory-grid {
  clear: both;
}

.channel-directory-heading {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3f3f3f;
}

.channel-directory-heading .title-icon {
  margin-right: 10px;
  color: #ffbd0a;
}

.channel-directory-heading h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
}

.channel-directory-search {
  display: block;
  max-width: 560px;
}

.channel-directory-search-label {
  display: block;
  margin-bottom: 6px;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.channel-directory-search-field {
  position: relative;
  display: block;
}

.channel-directory-search-field .svg-inline--fa,
.channel-directory-search-field > i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  color: #ffbd0a;
  transform: translateY(-50%);
  pointer-events: none;
}

#channel-directory-search {
  height: 44px;
  padding: 0 15px 0 43px;
  border: 1px solid #555;
  background: #111;
}

#channel-directory-search:focus {
  border-color: #ffbd0a;
}

.channel-directory-status {
  min-height: 18px;
  margin-top: 6px;
  color: #888;
  font-size: 12px;
}

.channel-directory-card[hidden] {
  display: none !important;
}

.channel-directory-card > a {
  overflow: hidden;
  border: 1px solid #383838;
  background: #171717;
}

.channel-directory-caption {
  display: block !important;
  padding: 9px 10px 10px;
  border-top: 1px solid #383838;
  background: #202020;
}

.channel-directory-title {
  display: block;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.channel-directory-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: #999;
  font-size: 11px;
  line-height: 16px;
}

.channel-directory-card > a:hover .channel-directory-title {
  color: #ffbd0a;
}

@media (max-width: 599px) {
  .dynamic-channels-header .sub-title {
    display: none;
  }

  .channel-directory-meta {
    display: block;
  }

  .channel-directory-meta span {
    display: block;
  }
}
