.video-filter-controls,
.video-bulk-bar,
.video-bulk-actions,
.video-product-search-row,
.video-product-pager,
.video-schedule-filters,
.video-schedule-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.video-filter-controls { flex: 1; }
.video-filter-controls select { max-width: 250px; }
.video-bulk-bar {
  min-height: 55px;
  flex-wrap: wrap;
  background: #f8faff;
  border-bottom: 1px solid var(--line);
  padding: 9px 23px;
}
.video-bulk-actions { flex-wrap: wrap; margin-left: auto; }
.video-bulk-bar .checkbox { color: #526581; }
.video-library th:first-child,
.video-library td:first-child { width: 72px; }

.video-info-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.video-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 44px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #4167c4;
  font-size: 16px;
}
.video-info-copy { min-width: 0; }
.video-info-copy .cell-secondary,
.video-binding-cell .cell-secondary { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.video-binding-cell { display: grid; justify-items: start; gap: 2px; }
.video-binding-cell .cell-secondary { margin: 0; }
.video-library code,
.video-product-picker code,
.video-schedule-choice code { color: #546d9c; font-size: 13px; overflow-wrap: anywhere; }
.video-row-actions { flex-wrap: wrap; }

.video-preview-field,
.video-binding-target,
.video-product-picker,
.video-upload-progress,
.video-schedule-selection { grid-column: 1 / -1; min-width: 0; }
.video-preview {
  display: block;
  width: 100%;
  height: min(36vh, 340px);
  border-radius: 11px;
  background: #141d2b;
  object-fit: contain;
}
.video-preview-status:not(:empty),
.video-upload-progress:not(:empty) { margin-top: 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.video-binding-target {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 9px;
  background: #f5f8fe;
  padding: 11px 14px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.video-binding-target strong { min-width: 0; color: #3a4e72; }
.video-product-picker,
.video-schedule-selection { display: grid; gap: 10px; }
.video-product-search-row input,
.video-schedule-filters input { flex: 1; }
.video-product-pager { justify-content: flex-end; }
.video-product-status:not(:empty) { font-size: 14px; }
.video-product-status:empty,
.video-products-list:empty,
.video-preview-status:empty,
.video-upload-progress:empty,
.video-product-picker .hint:empty { display: none; }
.video-products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 290px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 9px;
}
.video-product-choice {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  color: #465878;
}
.video-product-choice:hover,
.video-product-choice.selected { border-color: #90abef; background: #f1f6ff; }
.video-product-choice img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; flex: 0 0 36px; }
.video-product-choice-text { min-width: 0; flex: 1; display: grid; text-align: left; }
.video-product-choice-text strong,
.video-product-choice-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-product-choice-text strong { font-size: 14px; font-weight: 600; }
.video-product-choice-text small { font-size: 12px; color: var(--muted); }
.video-product-own { font-size: 11px; padding: 3px 5px; color: #2d6a57; background: #e8f4ee; border-radius: 5px; }
.video-schedule-filters select { max-width: 50%; }
.video-schedule-toolbar { justify-content: space-between; flex-wrap: wrap; }
.video-schedule-list { min-height: 55px; }
.video-schedule-choice span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.video-schedule-choice strong { color: #3e4c66; }
.video-schedule-choice small { margin: 0; color: var(--muted); }
.video-schedule-empty { padding: 8px 0; font-size: 14px; }
.video-schedule-notice .button { margin: 8px 0 0 10px; }

@media (max-width: 730px) {
  .video-filter-controls { flex: 0 0 100%; align-items: stretch; flex-direction: column; }
  .video-filter-controls select { max-width: none; }
  .video-bulk-bar { padding: 10px 16px; }
  .video-bulk-actions { width: 100%; margin: 0; }
  .video-library td:first-child { width: auto; }
  .video-products-list { grid-template-columns: minmax(0, 1fr); }
  .video-schedule-filters { align-items: stretch; flex-direction: column; }
  .video-schedule-filters select { max-width: none; }
  .video-schedule-notice .button { margin-left: 0; display: flex; }
}
