/* ==========================================================================
   GOROPLAY AutoCut Pro — Text-Scrubbing & Timeline Controls
   ========================================================================== */

/* Statistics Ribbon */
.stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.stat-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-value.highlight {
  color: var(--accent-cyan);
}

.stat-value.saved {
  color: var(--accent-emerald);
}

/* Text-Scrubbing Card */
.text-scrubber-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  overflow-y: auto;
  line-height: 2.2;
}

/* Custom Scrollbar */
.text-scrubber-card::-webkit-scrollbar {
  width: 6px;
}
.text-scrubber-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.scrub-token {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  margin: 3px 3px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

/* Normal Active Word */
.scrub-token.word {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.scrub-token.word:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Cut Token (Strikethrough Red) */
.scrub-token.cut {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  text-decoration: line-through;
  border-color: rgba(239, 68, 68, 0.3) !important;
  opacity: 0.6;
}

/* Silence Token */
.scrub-token.silence {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.35);
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  padding: 1px 8px;
}

/* Filler Token */
.scrub-token.filler {
  border-color: rgba(239, 68, 68, 0.4);
}

/* Active Karaoke Glow Token */
.scrub-token.playing {
  background: var(--accent-cyan) !important;
  color: #000 !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  transform: scale(1.05);
}

/* Multi-track Timeline Area (Fixed Height 76px) */
.timeline-track-area {
  height: 76px;
  min-height: 76px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-ctrl:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-play-master {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-play-master:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
}

.time-display {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 8px;
}

.volume-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-ctrl input[type="range"] {
  width: 60px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Waveform Strip */
.waveform-strip {
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.waveform-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: rgba(0, 242, 254, 0.2);
  border-right: 2px solid var(--accent-cyan);
  pointer-events: none;
  z-index: 3;
}

.timeline-cut-region {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(239, 68, 68, 0.4);
  pointer-events: none;
  z-index: 2;
}
