.performance-video-enrichment {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.performance-video-enrichment__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.performance-video-enrichment__header h2 {
  margin: 6px 0 8px;
}

.performance-video-enrichment__header p {
  margin: 0;
}

.performance-video-enrichment__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.performance-video-enrichment__notice {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.performance-video-enrichment__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.performance-video-enrichment__queue {
  display: grid;
  gap: 16px;
}

.performance-video-enrichment__queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.performance-video-enrichment__queue-card h3 {
  margin: 10px 0 6px;
}

.performance-video-enrichment__queue-card p {
  margin: 0;
  opacity: 0.78;
}

.performance-video-enrichment__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.performance-video-enrichment__badges span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
}

.performance-video-enrichment__badges .is-missing {
  opacity: 0.75;
}

.performance-video-enrichment__exercise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.performance-video-enrichment__exercise > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.performance-video-enrichment__exercise span {
  opacity: 0.75;
}

.performance-video-enrichment__search {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.performance-video-enrichment__search label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.performance-video-enrichment__search input {
  width: 100%;
  box-sizing: border-box;
}

.performance-video-enrichment__results {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  );
  gap: 20px;
}

.performance-video-enrichment__candidate {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.performance-video-enrichment__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.performance-video-enrichment__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.performance-video-enrichment__candidate-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.performance-video-enrichment__candidate-body h3,
.performance-video-enrichment__candidate-body p {
  margin: 0;
}

.performance-video-enrichment__channel {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.7;
}

.performance-video-enrichment__candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.performance-video-enrichment__pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.performance-video-enrichment__loading,
.performance-video-enrichment__empty,
.performance-video-enrichment__error,
.performance-video-enrichment__message,
.performance-video-enrichment__saved {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.performance-video-enrichment__message.is-error,
.performance-video-enrichment__error {
  border-color: rgba(255, 100, 100, 0.35);
}

.performance-video-enrichment__saved {
  font-weight: 700;
}

.performance-video-enrichment .btn-secondary:hover {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.22);
}

.performance-video-enrichment .btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Video Enrichment buttons */

.performance-video-enrichment button.btn-primary,
.performance-video-enrichment a.btn-primary,
.performance-video-enrichment button.btn-secondary,
.performance-video-enrichment a.btn-secondary {
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(124, 58, 237, 0.16);
  color: #f5f3ff;
  box-shadow: none;
}

.performance-video-enrichment button.btn-primary:hover,
.performance-video-enrichment a.btn-primary:hover,
.performance-video-enrichment button.btn-secondary:hover,
.performance-video-enrichment a.btn-secondary:hover {
  border-color: rgba(167, 139, 250, 0.8);
  background: rgba(124, 58, 237, 0.3);
  color: #ffffff;
}

.performance-video-enrichment button.btn-primary {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(167, 139, 250, 0.65);
}

.performance-video-enrichment button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .performance-video-enrichment__header,
  .performance-video-enrichment__queue-card,
  .performance-video-enrichment__search {
    align-items: stretch;
    flex-direction: column;
  }

  .performance-video-enrichment__exercise {
    grid-template-columns: 1fr;
  }

  .performance-video-enrichment__results {
    grid-template-columns: 1fr;
  }
}
.performance-video-enrichment__progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.performance-video-enrichment__progress > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.performance-video-enrichment__progress strong {
  font-size: 1.25rem;
}

.performance-video-enrichment__progress span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.performance-video-enrichment__workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.performance-video-enrichment__quota-note {
  margin: -12px 0 0;
  font-size: 0.78rem;
  opacity: 0.65;
}