/* Ableton-Inspired Color Palette */
:root {
  /* Primary Colors */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #3a3a3a;
  --bg-panel: #222222;
  --bg-surface: #2d2d2d;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --text-disabled: #4a4a4a;
  
  /* Accent Colors */
  --accent-orange: #ff6b35;
  --accent-blue: #2196f3;
  --accent-green: #4caf50;
  --accent-red: #f44336;
  --accent-yellow: #ffeb3b;
  
  /* Interactive States */
  --hover-overlay: rgba(255, 255, 255, 0.1);
  --active-overlay: rgba(255, 255, 255, 0.2);
  --focus-ring: #ff6b35;
  
  /* Borders */
  --border-subtle: #3a3a3a;
  --border-emphasis: #4a4a4a;
  --border-strong: #5a5a5a;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  
  /* Typography */
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 24px;
  --text-3xl: 32px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Header */
header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

header h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  background: var(--bg-panel);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.tab-button {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tab-button:hover {
  background: var(--hover-overlay);
  color: var(--text-primary);
}

.tab-button.active {
  background: var(--accent-orange);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Mixer Interface Grid */
.mixer-interface {
  display: grid;
  grid-template-columns: 320px 1fr 380px;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Panel Base Styles */
.datastream-library,
.active-mixer,
.visualization-panel {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Left Panel - Datastream Library */
.datastream-library {
  padding: var(--space-lg);
}

.datastream-library h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent-orange);
}

.panel-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-orange);
}

.library-list {
  max-height: 500px;
  overflow-y: auto;
  margin-right: -var(--space-sm);
  padding-right: var(--space-sm);
}

.library-list::-webkit-scrollbar {
  width: 6px;
}

.library-list::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.library-list::-webkit-scrollbar-thumb {
  background: var(--border-emphasis);
  border-radius: var(--radius-sm);
}

.library-list::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.datastream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.datastream-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-emphasis);
  transform: translateX(2px);
}

.datastream-item.added {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--accent-green);
  cursor: default;
}

.datastream-item.added:hover {
  transform: none;
}

.datastream-info {
  flex: 1;
  min-width: 0;
}

.datastream-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.datastream-description {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.add-button {
  background: var(--accent-green);
  color: var(--text-primary);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.add-button:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.add-button:disabled {
  background: var(--text-disabled);
  cursor: not-allowed;
  transform: none;
}

/* Center Panel - Active Mixer */
.active-mixer {
  padding: var(--space-lg);
}

.mixer-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--accent-orange);
}

.mixer-header h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.master-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.master-controls button {
  background: var(--accent-orange);
  color: var(--text-primary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.master-controls button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.master-controls button.playing {
  background: var(--accent-blue);
}

.master-controls button.playing:hover {
  background: #1976d2;
}

.master-controls label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
}

.master-controls input[type="range"] {
  width: 100px;
  height: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  outline: none;
  appearance: none;
}

.master-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent-orange);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.master-controls input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent-orange);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
}

.master-controls select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  cursor: pointer;
}

.master-controls select:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.mixer-channels {
  min-height: 400px;
}

.empty-mixer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--text-muted);
  font-size: var(--text-lg);
  font-family: var(--font-mono);
}

.mixer-channel {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.mixer-channel.playing {
  border-color: var(--accent-green);
  background: rgba(76, 175, 80, 0.1);
  box-shadow: var(--shadow-md);
}

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.channel-name {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-base);
}

.channel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.channel-controls button {
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.channel-controls button:hover {
  background: #1976d2;
  transform: translateY(-1px);
}

.channel-controls button.playing {
  background: var(--accent-green);
}

.channel-controls button.playing:hover {
  background: #45a049;
}

.remove-button {
  background: var(--accent-red) !important;
  padding: var(--space-xs) var(--space-sm) !important;
  font-size: var(--text-xs) !important;
}

.remove-button:hover {
  background: #d32f2f !important;
}

.channel-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.setting-group label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.setting-group select,
.setting-group input {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

.setting-group select:focus,
.setting-group input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.current-value {
  font-size: var(--text-xs);
  color: var(--accent-green);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Right Panel - Visualization */
.visualization-panel {
  padding: var(--space-lg);
}

.visualization-panel h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent-orange);
}

.chart-container {
  height: 300px;
  margin-bottom: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

#main-chart {
  width: 100%;
  height: 100%;
  background: transparent;
}

.audio-info {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.info-item span:first-child {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.info-item span:last-child {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Help Section */
.help-section {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.help-section h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-mono);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.help-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.help-item:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.help-item strong {
  display: block;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-family: var(--font-mono);
}

.help-item p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Beat Maker Styles */
.beat-maker-interface {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.beat-maker-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--accent-orange);
}

.beat-maker-header h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.beat-maker-header p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
}

.beat-maker-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.control-btn {
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  min-width: 80px;
  box-shadow: var(--shadow-sm);
}

.control-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.control-btn:disabled {
  background: var(--text-disabled);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.control-btn.play-btn {
  background: var(--accent-green);
}

.control-btn.play-btn:hover {
  background: #45a049;
}

.control-btn.pause-btn {
  background: var(--accent-blue);
}

.control-btn.pause-btn:hover {
  background: #1976d2;
}

.control-btn.stop-btn {
  background: var(--accent-red);
}

.control-btn.stop-btn:hover {
  background: #d32f2f;
}

.control-btn.clear-btn {
  background: var(--text-disabled);
}

.control-btn.clear-btn:hover {
  background: #757575;
}

.tempo-sync-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

.tempo-sync-control label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tempo-sync-control input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-orange);
}

/* Sequencer Styles */
.sequencer-container {
  margin-bottom: var(--space-xl);
}

.sequencer-grid {
  display: grid;
  grid-template-columns: 120px repeat(8, 1fr);
  gap: var(--space-sm);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
}

.step-numbers {
  display: contents;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
}

.step-number.current {
  background: var(--accent-orange);
  color: var(--text-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.sequencer-row {
  display: contents;
}

.sound-label {
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  border: 1px solid var(--border-subtle);
}

.step-btn {
  width: 100%;
  height: 60px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.step-btn:hover {
  border-color: var(--accent-orange);
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

.step-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.step-btn.current-step {
  border-width: 2px;
  transform: scale(1.05);
}

.step-btn.active.current-step {
  box-shadow: var(--shadow-lg);
}

/* Preset Styles */
.preset-section {
  margin-top: var(--space-xl);
}

.preset-section h4 {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: 600;
  font-family: var(--font-mono);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.preset-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.preset-card:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.preset-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-mono);
}

.preset-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.preset-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.preset-load-btn {
  background: var(--accent-green);
  color: var(--text-primary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.preset-load-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.preset-load-btn:disabled {
  background: var(--text-disabled);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Status Colors */
.error-status {
  color: var(--accent-red);
  font-weight: 500;
  font-family: var(--font-mono);
}

.simulation-status {
  color: var(--accent-yellow);
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  text-align: center;
}

.footer-content h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-mono);
}

.resource-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.resource-links a {
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-surface);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.resource-links a:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .mixer-interface {
    grid-template-columns: 300px 1fr 350px;
  }
}

@media (max-width: 1200px) {
  .mixer-interface {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .container {
    padding: var(--space-md);
  }
  
  header h1 {
    font-size: var(--text-2xl);
  }
  
  .sequencer-grid {
    grid-template-columns: 100px repeat(8, 1fr);
  }
  
  .sound-label {
    padding: 0 var(--space-md);
    font-size: var(--text-xs);
  }
}

@media (max-width: 768px) {
  .tab-navigation {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .tab-button {
    width: 100%;
    max-width: 200px;
  }
  
  .mixer-header {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .master-controls {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .beat-maker-controls {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .tempo-sync-control {
    margin-left: 0;
  }
  
  .channel-settings {
    grid-template-columns: 1fr;
  }
  
  .help-grid {
    grid-template-columns: 1fr;
  }
  
  .sequencer-grid {
    grid-template-columns: 80px repeat(4, 1fr);
    gap: var(--space-xs);
  }
  
  .step-btn {
    height: 50px;
  }
  
  .step-number {
    height: 50px;
  }
  
  .sound-label {
    font-size: var(--text-xs);
    padding: 0 var(--space-sm);
  }
  
  .resource-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  
  .resource-links a {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--space-sm);
  }
  
  header {
    padding: var(--space-lg);
  }
  
  .datastream-library,
  .active-mixer,
  .visualization-panel,
  .beat-maker-interface {
    padding: var(--space-md);
  }
  
  .sequencer-grid {
    grid-template-columns: 60px repeat(4, 1fr);
  }
  
  .step-btn {
    height: 40px;
  }
  
  .step-number {
    height: 40px;
  }
}