.video-library-panel .panel-head { align-items: center; }

.video-toolbar {
  grid-template-columns: minmax(360px, 1fr) 180px auto;
}

.video-sync-account { color: var(--cyan); }

.video-sync-state {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.video-library-table { min-width: 980px; table-layout: fixed; }
.video-library-table th.selection-cell { width: 42px; }
.video-library-table th:nth-child(2) { width: auto; }
.video-library-table th:nth-child(3) { width: 16%; }
.video-library-table th:nth-child(4) { width: 12%; }
.video-library-table th:nth-child(5) { width: 12%; }
.video-library-table th:nth-child(6) { width: 12%; }
.video-library-table th:last-child { width: 110px; }
.video-library-table td:last-child .button { min-width: 82px; white-space: nowrap; }
.video-library-table .selection-checkbox:disabled { cursor: not-allowed; opacity: 0.4; }
.video-selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 8px; }
.video-selection-toolbar .selection-summary { font-size: 12px; }
.video-publish-modes { display: flex; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.video-publish-modes label, .video-platform-option { display: flex; align-items: center; gap: 8px; }
.video-publish-modes input, .video-platform-option input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--green); }
.video-platform-options { border: 0; padding: 0; margin: 0; }
.video-platform-options legend { margin-bottom: 10px; font-size: 12px; }
#videoPublishPlatforms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.video-platform-option { min-height: 48px; font-size: 12px; }
.video-platform-option small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.video-platform-option:has(input:disabled) { opacity: 0.5; }
.video-publish-preview { max-height: 280px; overflow: auto; }
.video-publish-preview table { min-width: 0; table-layout: fixed; }
.video-publish-preview th:first-child { width: 40%; }
.video-publish-preview td { overflow-wrap: anywhere; }
.video-publish-error { color: var(--red); }
#videoPublishProgress { min-height: 16px; margin: 0; color: var(--muted); font-size: 12px; }
.video-used-platforms { color: var(--amber) !important; }
.video-title-cell .video-tags, .video-publish-preview .video-tags {
  display: block;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  max-width: none;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.6;
}

.video-title-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.video-title-cell > div { min-width: 0; }

.video-title-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-title-cell small {
  display: block;
  overflow: hidden;
  max-width: 540px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-title-cell small.video-error { color: var(--red); }

.video-file-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(87, 212, 208, 0.45);
  border-radius: 7px;
  background: rgba(87, 212, 208, 0.08);
  color: var(--cyan);
  font-size: 12px;
}

.video-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 128px;
  flex: 0 0 72px;
  overflow: hidden;
  border: 1px solid rgba(87, 212, 208, 0.45);
  border-radius: 7px;
  background: #10181d;
  color: var(--cyan);
  font-size: 15px;
}

.video-thumbnail.unavailable {
  border-color: var(--line);
  color: #59636c;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.video-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.video-status.done { color: var(--green); }
.video-status.done > span { background: var(--green); }
.video-status.error { color: var(--red); }
.video-status.error > span { background: var(--red); }

.selected-video {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 7px 5px 11px;
  border: 1px solid rgba(87, 212, 208, 0.45);
  border-radius: 7px;
  background: rgba(87, 212, 208, 0.07);
  color: var(--cyan);
}

.selected-video[hidden] { display: none; }

.selected-video strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-video .icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
