/**
 * Multimedia Studio Styles
 */

/* Tab Navigation */
.multimedia-tabs {
  display: flex;
  gap: var(--spacing-2);
  padding: var(--spacing-2);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-6);
}

.multimedia-tabs__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
  background-color: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.multimedia-tabs__item:hover:not(:disabled) {
  color: var(--color-gray-900);
  background-color: var(--color-gray-50);
}

.multimedia-tabs__item--active {
  background-color: var(--color-white);
  color: var(--color-gray-900);
  box-shadow: var(--shadow-sm);
}

.multimedia-tabs__item--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.multimedia-tabs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.multimedia-tabs__badge {
  padding: var(--spacing-0) var(--spacing-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-500);
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  margin-left: var(--spacing-1);
}

/* Content Area */
.multimedia-content {
  flex: 1;
  min-height: 0;
}

/* Coming Soon */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-16);
  text-align: center;
}

.coming-soon__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  color: var(--color-gray-400);
  margin-bottom: var(--spacing-4);
}

.coming-soon__icon svg {
  width: 32px;
  height: 32px;
}

.coming-soon__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-2);
}

.coming-soon__description {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 400px;
  margin: 0;
}

/* Image Tab */
.image-tab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-6);
  height: 100%;
}

.image-tab__controls {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  min-width: 0;
  overflow: hidden;
}

.image-tab__preview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

/* Model Selector */
.model-selector {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.model-selector__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.model-selector__select {
  width: 100%;
  padding: var(--spacing-3);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.model-selector__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.model-selector__info {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  margin-top: var(--spacing-1);
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

/* Options Form */
.options-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  padding: var(--spacing-4);
  background-color: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.options-form__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-700);
  margin: 0;
}

.options-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-4);
}

.options-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

.options-form__field--full {
  grid-column: 1 / -1;
}

.options-form__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
}

.options-form__input,
.options-form__select {
  padding: var(--spacing-2);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.options-form__input:focus,
.options-form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.options-form__textarea {
  padding: var(--spacing-2);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  resize: vertical;
  min-height: 60px;
  transition: all var(--transition-fast);
}

.options-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.options-form__radio-group {
  display: flex;
  gap: var(--spacing-3);
}

.options-form__radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  cursor: pointer;
}

.options-form__radio input {
  accent-color: var(--color-primary);
}

.options-form__checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  cursor: pointer;
}

.options-form__checkbox input {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.options-form__slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.options-form__slider input[type="range"] {
  flex: 1;
  accent-color: var(--color-primary);
}

.options-form__slider-value {
  min-width: 40px;
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--color-gray-600);
}

/* Prompt Input */
.prompt-input {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.prompt-input__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prompt-input__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.prompt-input__counter {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.prompt-input__counter--warning {
  color: var(--color-warning);
}

.prompt-input__counter--error {
  color: var(--color-danger);
}

.prompt-input__textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--spacing-3);
  font-size: var(--font-size-sm);
  font-family: inherit;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  resize: vertical;
  transition: all var(--transition-fast);
}

.prompt-input__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Generate Button */
.generate-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--color-gray-200);
}

.generate-section__cost {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.generate-section__cost-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
}

.generate-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.generate-button:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
}

.generate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Image Display */
.image-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  height: 100%;
}

.image-display__container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
}

.image-display__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  color: var(--color-gray-400);
  text-align: center;
  padding: var(--spacing-8);
}

.image-display__empty-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
}

.image-display__empty-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 200px;
}

.image-display__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.image-display__loading-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.image-display__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.image-display__actions {
  display: flex;
  gap: var(--spacing-2);
  justify-content: flex-end;
}

.image-display__action {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.image-display__action:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

/* Multi-image display */
.image-display__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.image-display__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.image-display__nav:hover {
  background-color: var(--color-white);
  border-color: var(--color-gray-400);
  box-shadow: var(--shadow-md);
}

.image-display__nav--prev {
  left: var(--spacing-3);
}

.image-display__nav--next {
  right: var(--spacing-3);
}

.image-display__thumbnails {
  display: flex;
  gap: var(--spacing-2);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--spacing-2) 0;
}

.image-display__thumbnail {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background-color: var(--color-gray-100);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.image-display__thumbnail:hover {
  border-color: var(--color-gray-400);
}

.image-display__thumbnail--selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.image-display__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-display__counter {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  font-weight: var(--font-weight-medium);
}

/* Error Message */
.error-message {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
  background-color: var(--color-danger-light);
  border-radius: var(--radius-lg);
  color: var(--color-danger);
}

.error-message__icon {
  flex-shrink: 0;
}

.error-message__text {
  font-size: var(--font-size-sm);
}

/* No Connectors Warning */
.no-connectors-warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-12);
  text-align: center;
}

.no-connectors-warning__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-warning-light);
  border-radius: var(--radius-full);
  color: var(--color-warning);
  margin-bottom: var(--spacing-4);
}

.no-connectors-warning__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-2);
}

.no-connectors-warning__description {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 400px;
  margin: 0 0 var(--spacing-6);
}

/* Video Tab */
.video-tab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-6);
  height: 100%;
}

.video-tab__controls {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  min-width: 0;
  overflow: hidden;
}

.video-tab__preview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

/* Video Display */
.video-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  height: 100%;
}

.video-display__container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  position: relative;
}

.video-display__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  color: var(--color-gray-400);
  text-align: center;
  padding: var(--spacing-8);
}

.video-display__empty-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
}

.video-display__empty-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 200px;
}

.video-display__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-8);
  width: 100%;
  max-width: 300px;
}

.video-display__loading-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.video-display__loading-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.video-display__loading-hint {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  text-align: center;
}

.video-display__progress {
  width: 100%;
}

.video-display__progress .progress {
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-200);
}

.video-display__progress .progress-bar {
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.video-display__player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-display__video {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
}

.video-display__play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-display__play-overlay:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-display__actions {
  display: flex;
  gap: var(--spacing-2);
  justify-content: flex-end;
}

.video-display__action {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-display__action:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

/* Image Dropzone */
.image-dropzone-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.image-dropzone__label {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.image-dropzone__hint {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  color: var(--color-gray-500);
}

.image-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--spacing-4);
  background-color: var(--color-gray-50);
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.image-dropzone:hover:not(.image-dropzone--disabled) {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.image-dropzone--dragging {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.image-dropzone--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.image-dropzone--has-image {
  border-style: solid;
  background-color: var(--color-white);
}

.image-dropzone__input {
  display: none;
}

.image-dropzone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  text-align: center;
}

.image-dropzone__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  color: var(--color-gray-500);
}

.image-dropzone__text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.image-dropzone__formats {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.image-dropzone__preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  width: 100%;
  overflow: hidden;
}

.image-dropzone__preview-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
}

.image-dropzone__preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
  min-width: 0;
}

.image-dropzone__preview-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-dropzone__clear {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  padding: var(--spacing-1) var(--spacing-2);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.image-dropzone__clear:hover {
  text-decoration: underline;
}

/* Generate button cancel variant */
.generate-button--cancel {
  background-color: var(--color-gray-600);
}

.generate-button--cancel:hover:not(:disabled) {
  background-color: var(--color-gray-700);
}

/* TTS Tab */
.tts-tab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-6);
  height: 100%;
}

.tts-tab__controls {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  min-width: 0;
  overflow: hidden;
}

.tts-tab__preview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

/* Voice Selector */
.voice-selector {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.voice-selector__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-selector__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.voice-selector__count {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.voice-selector__search {
  position: relative;
  display: flex;
  align-items: center;
}

.voice-selector__search-icon {
  position: absolute;
  left: var(--spacing-3);
  color: var(--color-gray-400);
  pointer-events: none;
}

.voice-selector__search-input {
  width: 100%;
  padding: var(--spacing-2) var(--spacing-3) var(--spacing-2) var(--spacing-8);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.voice-selector__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.voice-selector__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2);
  max-height: 200px;
  overflow-y: auto;
  padding: var(--spacing-1);
}

.voice-selector__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-1);
  padding: var(--spacing-2) var(--spacing-3);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.voice-selector__item:hover:not(:disabled) {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-300);
}

.voice-selector__item--selected {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.voice-selector__item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.voice-selector__item-icon {
  font-size: var(--font-size-lg);
  line-height: 1;
}

.voice-selector__item-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.voice-selector__item-badge {
  font-size: 9px;
  padding: 1px 4px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.voice-selector__item-accent {
  font-size: 9px;
  color: var(--color-gray-500);
}

.voice-selector__empty {
  padding: var(--spacing-4);
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
}

.voice-selector__no-results {
  padding: var(--spacing-4);
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
}

/* Audio Player */
.audio-player {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  height: 100%;
}

.audio-player__container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  min-height: 300px;
}

.audio-player__container--loading,
.audio-player__container--empty,
.audio-player__container--error {
  background-color: var(--color-gray-100);
}

.audio-player__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.audio-player__loading-spinner {
  color: var(--color-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-player__loading-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.audio-player__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  text-align: center;
}

.audio-player__empty-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  color: var(--color-gray-500);
}

.audio-player__empty-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 200px;
}

.audio-player__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  text-align: center;
  color: var(--color-danger);
}

.audio-player__error-text {
  font-size: var(--font-size-sm);
}

.audio-player__controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  width: 100%;
  max-width: 400px;
}

.audio-player__play-button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.audio-player__play-button:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

.audio-player__progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

.audio-player__progress {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  appearance: none;
  cursor: pointer;
}

.audio-player__progress::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.audio-player__progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
}

.audio-player__time {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.audio-player__download-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-200);
  color: var(--color-gray-700);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.audio-player__download-button:hover {
  background-color: var(--color-gray-300);
}

.audio-player__actions {
  display: flex;
  gap: var(--spacing-2);
  justify-content: flex-end;
}

.audio-player__action {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-player__action:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

/* Options form hint text */
.options-form__hint {
  font-weight: var(--font-weight-normal);
  color: var(--color-gray-500);
}

/* Responsive */
@media (max-width: 992px) {
  .image-tab {
    grid-template-columns: 1fr;
  }

  .image-tab__preview {
    order: -1;
  }

  .image-display__container {
    min-height: 300px;
  }

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

  .video-tab__preview {
    order: -1;
  }

  .video-display__container {
    min-height: 300px;
  }

  .tts-tab {
    grid-template-columns: 1fr;
  }

  .tts-tab__preview {
    order: -1;
  }

  .audio-player__container {
    min-height: 200px;
  }

  .voice-selector__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
