.zc-tool {
  display: grid;
  gap: 18px;
}

.zc-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.zc-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--zc-line, #dedbd2);
  background: var(--zc-canvas, #f7f6f2);
  color: var(--zc-ink, #14171f);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.zc-tab.is-active {
  background: var(--zc-panel, #ffffff);
  border-color: var(--zc-brand, #d93817);
  box-shadow: inset 0 0 0 1px var(--zc-brand, #d93817);
}

.zc-tab-pill {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--zc-ok, #157347);
  background: var(--zc-ok-soft, #eaf7f0);
  white-space: nowrap;
}

.zc-tab-pill-muted {
  color: var(--zc-brand-hover, #b52c10);
  background: var(--zc-brand-soft, #fff0ec);
}

.zc-dropzone {
  border: 2px dashed var(--zc-line, #dedbd2);
  border-radius: 14px;
  padding: 28px 20px;
  background: var(--zc-canvas, #f7f6f2);
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.zc-dropzone:hover,
.zc-dropzone.is-dragover {
  border-color: var(--zc-brand, #d93817);
  background: var(--zc-brand-soft, #fff0ec);
}

.zc-drop-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--zc-brand, #d93817);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.zc-drop-copy strong {
  display: block;
  color: var(--zc-ink, #14171f);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.zc-drop-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--zc-ink-muted, #4b5262);
}

.zc-file-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.zc-meta-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--zc-line, #dedbd2);
  color: var(--zc-ink, #14171f);
}

.zc-controls,
.zc-yt-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.zc-yt-row {
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 0;
}

.zc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zc-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--zc-ink, #14171f);
}

.zc-field select,
.zc-field input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--zc-line, #dedbd2);
  background: #ffffff;
  color: var(--zc-ink, #14171f);
  font-family: inherit;
  font-size: 0.94rem;
}

.zc-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.zc-submit {
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--zc-brand, #d93817);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.zc-submit:hover:not(:disabled) {
  background: var(--zc-brand-hover, #b52c10);
}

.zc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.zc-sample-link {
  background: none;
  border: 1px solid var(--zc-line, #dedbd2);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--zc-ink, #14171f);
  cursor: pointer;
}

.zc-sample-link:hover {
  background: var(--zc-tint, #efede6);
}

.zc-quota-hint {
  font-size: 0.9rem;
  color: var(--zc-ink-muted, #4b5262);
}

.zc-status-box {
  background: var(--zc-tint, #efede6);
  border: 1px solid var(--zc-line, #dedbd2);
  border-radius: 12px;
  padding: 14px 16px;
}

.zc-status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.94rem;
  color: var(--zc-ink, #14171f);
}

.zc-status-pct {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.zc-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid var(--zc-line, #dedbd2);
}

.zc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--zc-brand, #d93817);
  transition: width 250ms ease;
}

.zc-alert {
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff0ec;
  border: 1px solid #d93817;
  color: #14171f;
  font-size: 0.94rem;
}

.zc-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.zc-results {
  border-top: 1px solid var(--zc-line, #dedbd2);
  padding-top: 18px;
}

.zc-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.zc-clip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.zc-clip-card {
  background: var(--zc-stage, #12151b);
  color: #f6f6f3;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zc-clip-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: #000000;
}

.zc-clip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zc-clip-card h3 {
  color: #ffffff;
  font-size: 1.02rem;
  margin: 0;
}

.zc-clip-hook {
  color: #f6f6f3;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.zc-clip-reason {
  color: rgba(246, 246, 243, 0.78);
  font-size: 0.86rem;
  margin: 0;
}

.zc-clip-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.zc-yt-stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}

.zc-yt-embed-wrap {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #12151b;
}

.zc-yt-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.zc-yt-list {
  display: grid;
  gap: 12px;
}

.zc-yt-item {
  border: 1px solid var(--zc-line, #dedbd2);
  background: var(--zc-canvas, #f7f6f2);
  border-radius: 12px;
  padding: 14px;
}

.zc-yt-item.is-playing {
  border-color: var(--zc-brand, #d93817);
  background: #ffffff;
}

.zc-yt-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.zc-yt-item h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.zc-yt-item p {
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.zc-yt-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--zc-tint, #efede6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .zc-controls,
  .zc-yt-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zc-clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zc-yt-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .zc-tabs,
  .zc-controls,
  .zc-yt-row,
  .zc-clip-grid {
    grid-template-columns: 1fr;
  }
  .zc-submit {
    width: 100%;
  }
}
