
.video-tool {
  max-width: 960px;
  margin: 0 auto;
  color: #2c2c2c;
}
.video-tool__controls {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3.5vw, 2.2rem);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}
.video-tool__dropzones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.video-tool__drop-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.video-tool__dropzone {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  min-height: 180px;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed #4db6ac;
  border-radius: 12px;
  color: #31514d;
  background: #fafcfb;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.video-tool__dropzone:hover,
.video-tool__dropzone.is-dragging {
  background: #e9f7f5;
  border-color: #2c9890;
}
.video-tool__drop-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.video-tool__dropzone strong {
  font-size: 1.05rem;
}
.video-tool__dropzone span {
  font-size: 0.85rem;
  color: #556966;
}
.video-tool__dropzone small {
  font-size: 0.75rem;
  color: #7b8e8b;
}
.video-tool__file-preview {
  min-height: 2.5rem;
}
.video-tool__preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: #eef7f5;
  border: 1px solid #c2e5df;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1f7469;
}
.video-tool__preview-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-tool__remove-item {
  border: 0;
  background: transparent;
  color: #8fa6a2;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0.2rem;
}
.video-tool__remove-item:hover {
  color: #d32f2f;
}
.video-tool__notices {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #f5f8f7;
  border-radius: 8px;
  border-left: 4px solid #4db6ac;
}
.video-tool__privacy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #31514d;
  font-size: 0.88rem;
  font-weight: 500;
}
.video-tool__privacy-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #2c9890;
  color: #ffffff;
  font-size: 0.72rem;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.video-tool__notice {
  margin: 0;
  color: #6e817e;
  font-size: 0.8rem;
  line-height: 1.5;
}
.video-tool__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.video-tool__automation {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: #31514d;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.video-tool__automation-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.video-tool__btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.video-tool__add-btn,
.video-tool__submit {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.video-tool__add-btn {
  background: #e0f2f1;
  color: #1f7469;
}
.video-tool__add-btn:hover:not(:disabled) {
  background: #b2dfdb;
}
.video-tool__submit {
  background: #2c2c2c;
  color: #ffffff;
}
.video-tool__submit:hover:not(:disabled) {
  background: #404040;
}
.video-tool__add-btn:disabled,
.video-tool__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.video-tool__status {
  min-height: 2rem;
  margin: 1.25rem 0;
  color: #ffffff;
  font-size: 0.95rem;
}
.video-tool__queue-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0 1rem;
}
.video-tool__queue-title-wrap h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 600;
}
.video-tool__clear-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #c7d0cf;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}
.video-tool__clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.video-tool__queue {
  display: grid;
  gap: 1.2rem;
}

/* ジョブカードのスタイル */
.video-card {
  padding: 1.25rem;
  background: #ffffff;
  border-left: 6px solid #4db6ac;
  border-radius: 12px;
  color: #2c2c2c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0.9rem;
}
.video-card--waiting {
  border-left-color: #aebbb9;
}
.video-card--running {
  border-left-color: #2c9890;
}
.video-card--done {
  border-left-color: #43a047;
}
.video-card--failed {
  border-left-color: #e53935;
}
.video-card--stopped,
.video-card--excluded {
  border-left-color: #78909c;
  opacity: 0.75;
}
.video-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.video-card__titles h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.video-card__status-text {
  margin: 0;
  font-size: 0.85rem;
  color: #5b6b69;
}
.video-card__badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.video-card__badge--waiting {
  background: #eceff1;
  color: #546e7a;
}
.video-card__badge--running {
  background: #e0f2f1;
  color: #00796b;
}
.video-card__badge--done {
  background: #e8f5e9;
  color: #2e7d32;
}
.video-card__badge--failed {
  background: #ffebee;
  color: #c62828;
}
.video-card__badge--stopped,
.video-card__badge--excluded {
  background: #eceff1;
  color: #78909c;
}

/* プログレスバー */
.video-card__progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.video-card__progress-bar {
  flex: 1;
  height: 0.55rem;
  background: #edf1f0;
  border-radius: 999px;
  overflow: hidden;
}
.video-card__progress-inner {
  height: 100%;
  background: #2c9890;
  transition: width 0.2s ease;
}
.video-card__progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2c9890;
  min-width: 2.5rem;
  text-align: right;
}
.video-card__error {
  margin: 0;
  padding: 0.6rem 0.85rem;
  background: #ffebee;
  border-radius: 6px;
  color: #c62828;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* メタ情報 */
.video-card__meta {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: #f7faf9;
  border-radius: 8px;
  font-size: 0.85rem;
}
.video-card__meta div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.video-card__meta dt {
  color: #6e817e;
}
.video-card__meta dd {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.video-card__color-chip {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 動画プレビュー */
.video-card__preview {
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
}
.video-card__preview video {
  display: block;
  width: 100%;
  max-height: 280px;
}

/* アクションボタン */
.video-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.video-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: #2c2c2c;
  color: #ffffff !important;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.video-card__download:hover {
  background: #3b3b3b;
}
.video-card__btn-sub {
  border: 1px solid #d8e2df;
  background: #ffffff;
  color: #556966;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.video-card__btn-sub:hover {
  background: #f0f4f3;
  color: #2c2c2c;
}
.video-card__btn-sub--danger {
  border-color: #ef9a9a;
  color: #c62828;
}
.video-card__btn-sub--danger:hover {
  background: #ffebee;
}

@media (max-width: 768px) {
  .video-tool__dropzones {
    grid-template-columns: 1fr;
  }
  .video-tool__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .video-tool__automation {
    justify-content: center;
  }
  .video-tool__btn-group {
    flex-direction: column;
  }
  .video-tool__add-btn,
  .video-tool__submit {
    width: 100%;
  }
  .video-card__header {
    flex-direction: column;
  }
  .video-card__meta div {
    flex-direction: column;
    align-items: flex-start;
  }
}
