:root {
  --brand-500: #6366f1;
  --highlight-color: #a78bfa;
  --accent-color: #ec4899;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.pulse-ring {
  animation: pulse-ring 2s infinite ease-in-out;
}

.strip-progress-bar-fill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--brand-500), #4f46e5);
}

.strip-progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: strip-progress-shimmer 2.4s ease-in-out infinite;
}

@keyframes strip-progress-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.transcript-view {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #334155;
}

.transcript-section + .transcript-section {
  margin-top: 0;
}

.transcript-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.transcript-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.transcript-line {
  margin: 0;
  padding: 0;
}

.transcript-speaker {
  font-weight: 600;
}

.transcript-speaker.speaker-0 { color: #4f46e5; }
.transcript-speaker.speaker-1 { color: #d97706; }
.transcript-speaker.speaker-2 { color: #059669; }
.transcript-speaker.speaker-3 { color: #7c3aed; }
.transcript-speaker.speaker-4 { color: #dc2626; }
.transcript-speaker.speaker-5 { color: #0284c7; }

.transcript-text {
  color: #475569;
}

.transcript-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}

.transcript-plain {
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.from-brand-500 {
  --tw-gradient-from: var(--brand-500) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-highlight {
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--highlight-color) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-accent {
  --tw-gradient-to: var(--accent-color) var(--tw-gradient-to-position);
}

.hidden {
  display: none !important;
}
