.studio-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.studio-tool-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.studio-separator {
  width: 1px;
  height: 24px;
  background: var(--glass-border);
  margin: 0 0.5rem;
}

.studio-btn {
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.studio-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.studio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.studio-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.studio-btn.studio-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.studio-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.studio-preview-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--glass-border);
}

.studio-preview-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-primary);
}

.studio-preview {
  max-width: 100%;
  max-height: 100%;
  background: black;
  border-radius: 8px;
}

.studio-placeholder {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 2px dashed var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  min-width: 400px;
  min-height: 300px;
}

.studio-placeholder.hidden {
  display: none;
}

.studio-placeholder svg {
  opacity: 0.5;
}

.studio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

.studio-control-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.studio-control-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.studio-time-display {
  display: flex;
  gap: 0.5rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.studio-volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.studio-volume-slider {
  width: 80px;
  cursor: pointer;
}

.studio-timeline-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  min-width: 400px;
}

.studio-timeline-header {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--glass-border);
}

.studio-timeline-tools {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--glass-border);
}

.studio-timeline-btn {
  padding: 0.25rem 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.75rem;
}

.studio-timeline-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.studio-timeline-ruler {
  height: 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.studio-timeline-tracks {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.studio-track {
  display: flex;
  margin-bottom: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.studio-track-header {
  width: 80px;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.studio-track-label {
  color: var(--text-secondary);
}

.studio-track-content {
  flex: 1;
  position: relative;
  min-height: 40px;
  padding: 0.5rem;
  overflow-x: auto;
}

.studio-clip {
  position: absolute;
  height: 32px;
  background: var(--accent);
  border-radius: 4px;
  cursor: move;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: white;
  overflow: hidden;
  white-space: nowrap;
}

.studio-clip.selected {
  outline: 2px solid white;
  outline-offset: 2px;
}

.studio-timeline-playhead {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #ef4444;
  z-index: 10;
  pointer-events: none;
}

.studio-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  overflow-y: auto;
  flex-shrink: 0;
}

.studio-sidebar-section {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.studio-sidebar-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.studio-properties {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.studio-property {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.studio-property label {
  color: var(--text-secondary);
}

.studio-property span {
  color: var(--text-primary);
  font-weight: 500;
}

.studio-effects-grid,
.studio-transitions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.studio-effect-btn,
.studio-transition-btn {
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.studio-effect-btn:hover,
.studio-transition-btn:hover {
  border-color: var(--accent);
}

.studio-effect-btn.active,
.studio-transition-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.studio-file-input {
  display: none;
}

@media (max-width: 1024px) {
  .studio-workspace {
    flex-direction: column;
  }

  .studio-preview-wrapper {
    flex: 1;
    max-height: 50vh;
  }

  .studio-timeline-wrapper {
    min-width: 100%;
    max-height: 300px;
  }

  .studio-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .studio-toolbar {
    padding: 0.5rem;
  }

  .studio-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }

  .studio-placeholder {
    min-width: 280px;
    min-height: 200px;
  }

  .studio-effects-grid,
  .studio-transitions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
