/* Voice Player v4.1.3 - Timeline centered controls */

.voice-player-wrapper {
  margin: 2rem auto;
  max-width: 500px;
}

.voice-player-container {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Main Player Layout */
.voice-player {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Header: Play button + Status */
.voice-player-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.voice-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #6038FB;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.voice-play-btn:hover {
  transform: scale(1.05);
  background: #7B5CFF;
  box-shadow: 0 4px 20px rgba(96, 56, 251, 0.4);
}

.voice-play-btn:active {
  transform: scale(0.95);
}

.voice-play-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.voice-status {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  font-weight: 500;
}

/* Progress Bar */
.voice-progress-container {
  padding: 0.5rem 0;
}

.voice-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.voice-progress-bar:hover {
  height: 6px;
  border-radius: 3px;
}

.voice-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6038FB, #00FF88);
  border-radius: inherit;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.voice-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #00FF88;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.voice-progress-bar:hover .voice-progress-fill::after {
  transform: translateY(-50%) scale(1);
}

/* Controls - Always horizontal, never stack */
.voice-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: nowrap;
}

.voice-controls .voice-skip-btn {
  flex-shrink: 0;
}

.voice-controls .voice-time-display {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Decklar Skip Buttons - Clean Circular */
.voice-skip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(96, 56, 251, 0.3);
  background: linear-gradient(135deg, rgba(96, 56, 251, 0.15), rgba(96, 56, 251, 0.05));
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.voice-skip-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 56, 251, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.voice-skip-btn:hover {
  border-color: rgba(96, 56, 251, 0.6);
  background: linear-gradient(135deg, rgba(96, 56, 251, 0.25), rgba(96, 56, 251, 0.1));
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(96, 56, 251, 0.3);
}

.voice-skip-btn:hover::before {
  opacity: 1;
}

.voice-skip-btn:active {
  transform: scale(0.95);
}

.voice-skip-btn svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Time display in center */
.voice-time-display {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  flex: 1;
  letter-spacing: 0.02em;
}

/* Summarize button */
.voice-summarize-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(96, 56, 251, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  margin-top: 0.5rem;
}

.voice-summarize-btn:hover {
  background: rgba(96, 56, 251, 0.2);
  border-color: rgba(96, 56, 251, 0.3);
  color: white;
}

.voice-summarize-btn.active {
  background: rgba(96, 56, 251, 0.3);
  border-color: #6038FB;
  color: white;
}

/* Caption */
.voice-caption {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* Loading spinner */
.voice-play-btn .voice-spinner {
  animation: voice-spin 1s linear infinite;
}

@keyframes voice-spin {
  to { transform: rotate(360deg); }
}

/* Playing state */
.voice-player-container.is-playing .voice-progress-fill {
  background: linear-gradient(90deg, #6038FB, #00FF88);
}

.voice-player-container.is-loading .voice-status {
  color: #00FF88;
}

/* Responsive */
@media (max-width: 480px) {
  .voice-player-container {
    padding: 1.25rem;
    margin: 1rem;
  }
  
  .voice-play-btn {
    width: 52px;
    height: 52px;
  }
  
  .voice-skip-btn {
    width: 40px;
    height: 40px;
  }
}
