/* Interactive Codec Guide Styles */

/* Center navigation tabs */
.nav-inner {
  justify-content: center;
}

/* Wizard Container */
.wizard-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Step Progress Indicator */
.step-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  gap: 12px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  margin: -8px -12px;
}

.step-indicator:hover {
  background: rgba(255,255,255,0.05);
}

.step-indicator.active {
  color: rgba(255,255,255,0.95);
  cursor: default;
}

.step-indicator.active:hover {
  background: transparent;
}

.step-indicator.completed {
  color: rgba(0,212,170,0.9);
}

.step-indicator.completed:hover {
  color: rgba(0,212,170,1);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.step-indicator.active .step-number {
  background: linear-gradient(135deg, #00d4aa, #00a8ff);
  color: #000;
}

.step-indicator.completed .step-number {
  background: rgba(0,212,170,0.2);
  color: #00d4aa;
}

.step-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 18px;
}

/* Selection Summary */
.selection-summary {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 16px 24px;
  background: rgba(0,212,170,0.05);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 12px;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.selection-item.filled {
  opacity: 1;
}

.selection-label {
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.selection-value {
  font-weight: 700;
  color: #00d4aa;
}

@media (max-width: 640px) {
  .selection-summary {
    flex-direction: column;
    gap: 12px;
  }
}

/* Wizard Step */
.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-align: center;
  margin-bottom: 12px;
}

.step-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 40px;
}

/* Option Cards */
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.option-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.option-card.selected {
  background: rgba(0,212,170,0.1);
  border-color: #00d4aa;
}

.option-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.option-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
  line-height: 1.3;
}

.option-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Navigation Buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.btn-wizard {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.btn-back:hover {
  background: rgba(255,255,255,0.12);
}

.btn-next {
  background: linear-gradient(135deg, #00d4aa, #00a8ff);
  color: #000;
  font-weight: 700;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,212,170,0.3);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Recommendations Panel */
.recommendations-panel {
  display: none;
  margin-top: 40px;
}

.recommendations-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.rec-summary {
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,168,255,0.15));
  border: 2px solid rgba(0,212,170,0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.rec-summary-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}

.rec-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.rec-summary-item {
  font-family: 'DM Sans', sans-serif;
}

.rec-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.rec-summary-value {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

/* Settings Panels */
.settings-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setting-row {
  margin-bottom: 28px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: #00d4aa;
}

.setting-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-top: 8px;
}

/* Preset Selector */
.preset-selector {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.preset-option {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preset-option:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.preset-option.selected {
  background: rgba(0,212,170,0.15);
  border-color: #00d4aa;
}

.preset-option.recommended {
  border-color: #00a8ff;
}

.preset-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
}

.preset-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.preset-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00a8ff;
  margin-top: 4px;
}

/* CRF Slider */
.crf-slider-container {
  margin-top: 12px;
}

.crf-value-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00d4aa;
  text-align: center;
  margin-bottom: 16px;
}

.crf-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  -webkit-appearance: none;
}

.crf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4aa;
  cursor: pointer;
}

.crf-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4aa;
  cursor: pointer;
  border: none;
}

.crf-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.crf-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Inline Notes (replaces Special Considerations) */
.setting-notes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  background: rgba(255,193,7,0.08);
  border-left: 3px solid rgba(255,193,7,0.4);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

/* Collapsible detail inside description text (e.g. deinterlacing section) */
.setting-description .setting-detail {
  margin-top: 12px;
}

/* Collapsible Deep-Dive Notes */
.setting-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  background: rgba(0,168,255,0.06);
  border-left: 3px solid rgba(0,168,255,0.35);
  border-radius: 0 6px 6px 0;
}

.setting-detail summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.setting-detail summary::-webkit-details-marker {
  display: none;
}

.setting-detail summary::before {
  content: '▸';
  font-size: 11px;
  color: rgba(0,168,255,0.7);
  transition: transform 0.15s ease;
  display: inline-block;
}

.setting-detail[open] summary::before {
  transform: rotate(90deg);
}

.setting-detail-body {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(0,168,255,0.12);
  margin-top: -2px;
  padding-top: 10px;
}

.setting-detail-body ul {
  margin: 0;
  padding-left: 18px;
}

.setting-detail-body li {
  margin-bottom: 6px;
}

.setting-detail-body li:last-child {
  margin-bottom: 0;
}

.setting-detail-body p {
  margin: 0 0 8px;
}

.setting-detail-body p:last-child {
  margin-bottom: 0;
}

.setting-detail-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: rgba(255,255,255,0.85);
}

/* Important collapsible notes (yellow styling) */
.setting-detail-important {
  background: rgba(255,193,7,0.08);
  border-left: 3px solid rgba(255,193,7,0.4);
}

.setting-detail-important summary::before {
  color: rgba(255,193,7,0.7);
}

.setting-detail-important .setting-detail-body {
  border-top: 1px solid rgba(255,193,7,0.12);
}

/* Special Considerations (deprecated — kept for backward compat) */
.special-considerations {
  margin-top: 32px;
}

.consideration-item {
  background: rgba(255,193,7,0.1);
  border-left: 4px solid #ffc107;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.consideration-item.info {
  background: rgba(0,168,255,0.1);
  border-left-color: #00a8ff;
}

.consideration-item.success {
  background: rgba(0,212,170,0.1);
  border-left-color: #00d4aa;
}

.consideration-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.consideration-icon {
  font-size: 18px;
}

.consideration-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.consideration-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Command Generator */
.command-generator {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.command-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.command-tabs {
  display: flex;
  gap: 8px;
}

.command-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.command-tab:hover {
  background: rgba(255,255,255,0.08);
}

.command-tab.active {
  background: rgba(0,212,170,0.15);
  border-color: #00d4aa;
  color: #00d4aa;
}

.command-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 12px;
}

.btn-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(0,212,170,0.15);
  border: 1px solid #00d4aa;
  color: #00d4aa;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-copy:hover {
  background: rgba(0,212,170,0.25);
}

/* Extra params copyable field */
.extra-params-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 8px 12px;
}

.extra-params-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  flex: 1;
  word-break: break-all;
}

.btn-copy-inline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0,212,170,0.15);
  border: 1px solid rgba(0,212,170,0.5);
  color: #00d4aa;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-inline:hover {
  background: rgba(0,212,170,0.25);
}

/* Reset Button */
.btn-reset {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 32px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn-reset:hover {
  background: rgba(255,255,255,0.12);
}

/* Compatibility Matrix */
.compatibility-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.compat-icon {
  font-size: 16px;
}

.compat-icon.yes {
  color: #00d4aa;
}

.compat-icon.no {
  color: #ff5252;
}

.compat-icon.maybe {
  color: #ffc107;
}

/* Stacked Wizard Styles */
.wizard-step {
  display: block !important; /* Override the default display:none */
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wizard-step.active {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.wizard-step.completed {
  background: rgba(0,212,170,0.05);
  border-color: rgba(0,212,170,0.2);
  cursor: pointer;
}

.wizard-step.completed:hover {
  background: rgba(0,212,170,0.1);
}

.wizard-step-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
}

.wizard-step.completed .wizard-step-header {
  cursor: pointer;
}

.step-header-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.wizard-step.active .step-number-badge {
  background: linear-gradient(135deg, #00d4aa, #00a8ff);
  color: #000;
}

.wizard-step.completed .step-number-badge {
  background: rgba(0,212,170,0.2);
  color: #00d4aa;
}

.step-selection-preview {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #00d4aa;
  display: none;
}

.wizard-step.completed .step-selection-preview {
  display: block;
}

.wizard-step-content {
  padding: 0 24px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}

.wizard-step.active .wizard-step-content {
  max-height: 500px; /* Large enough to fit content */
  opacity: 1;
  padding-bottom: 24px;
}

/* Hide original titles inside content since we have headers now */
.wizard-step-content .step-title,
.wizard-step-content .step-subtitle {
  display: none;
}

/* Adjust option grid for inside the stack */
.wizard-step-content .option-grid {
  margin-bottom: 0;
}

/* ── HandBrake GUI Mockup ────────────────────────────────── */

.hb-gui {
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #d4d4d4;
}

.hb-titlebar {
  background: #2d2d2d;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3a3a3a;
  user-select: none;
}

.hb-dots {
  display: flex;
  gap: 7px;
}

.hb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hb-dot-close { background: #ff5f56; }
.hb-dot-minimize { background: #ffbd2e; }
.hb-dot-maximize { background: #27c93f; }

.hb-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  margin-right: 55px;
}

.hb-toolbar {
  background: #2a2a2a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3a3a3a;
}

.hb-toolbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 2px solid transparent;
  border-radius: 4px;
}

.hb-toolbar-item.hb-changed {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.06);
}

.hb-toolbar-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.hb-tabbar {
  background: #252526;
  display: flex;
  border-bottom: 1px solid #3a3a3a;
}

.hb-tab {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #808080;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.hb-tab:hover {
  color: #bbb;
  background: rgba(255,255,255,0.04);
}

.hb-tab.active {
  color: #e0e0e0;
  border-bottom-color: #0078d4;
  background: rgba(0,120,212,0.08);
}

.hb-body {
  padding: 20px;
  min-height: 180px;
}

.hb-panel {
  display: none;
}

.hb-panel.active {
  display: block;
  animation: hbFadeIn 0.15s ease;
}

@keyframes hbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fields */
.hb-field {
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s, background-color 0.2s;
}

.hb-field:last-child {
  margin-bottom: 0;
}

.hb-field.hb-changed {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.06);
}

.hb-field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.hb-field-row:last-child {
  margin-bottom: 0;
}

.hb-field-row > .hb-field {
  flex: 1;
  margin-bottom: 0;
}

.hb-label {
  display: block;
  font-size: 11px;
  color: #808080;
  margin-bottom: 5px;
  font-weight: 500;
}

.hb-select {
  background: #333;
  padding: 5px 24px 5px 8px;
  border-radius: 3px;
  border: 1px solid #555;
  display: inline-block;
  position: relative;
  font-size: 13px;
  color: #e0e0e0;
}

.hb-select::after {
  content: ' \25BE';
  color: #666;
  font-size: 10px;
}

.hb-text-input {
  background: #333;
  padding: 5px 8px;
  border-radius: 3px;
  border: 1px solid #555;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  color: #e0e0e0;
  word-break: break-all;
  display: block;
}

.hb-radio-pill {
  background: #333;
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid #555;
  font-size: 12px;
  color: #e0e0e0;
  display: inline-block;
}

.hb-quality-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hb-radio-selected {
  color: #0078d4;
  font-weight: 600;
  font-size: 12px;
}

.hb-quality-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #0078d4;
}

.hb-checkbox {
  color: #808080;
  font-size: 13px;
}

/* Preset slider */
.hb-preset-slider {
  margin-top: 4px;
}

.hb-preset-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 4px 0 0;
}

.hb-preset-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: #444;
  border-radius: 2px;
}

.hb-tick {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hb-tick-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  transition: all 0.15s ease;
}

.hb-tick.active .hb-tick-dot {
  width: 16px;
  height: 16px;
  background: #0078d4;
  box-shadow: 0 0 8px rgba(0, 120, 212, 0.5);
  margin-top: -4px;
}

.hb-tick-label {
  font-size: 9px;
  color: #666;
  margin-top: 6px;
  white-space: nowrap;
}

.hb-tick.active .hb-tick-label {
  color: #0078d4;
  font-weight: 700;
  font-size: 10px;
}

.hb-tick-spacer {
  height: 15px;
}

.hb-preset-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #555;
  margin-top: 8px;
  padding: 0 4px;
}

/* Summary panel */
.hb-summary-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #333;
}

.hb-summary-heading {
  font-size: 11px;
  font-weight: 700;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.hb-summary-row {
  padding: 3px 0;
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.hb-summary-type {
  color: #808080;
  min-width: 70px;
  flex-shrink: 0;
}

.hb-summary-detail {
  color: #d4d4d4;
}

/* Audio table */
.hb-audio-table-wrapper {
  overflow-x: auto;
}

.hb-audio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hb-audio-table th {
  text-align: left;
  padding: 8px 10px;
  background: #252526;
  color: #808080;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #3a3a3a;
}

.hb-audio-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #2a2a2a;
  color: #d4d4d4;
}

.hb-audio-table tr:last-child td {
  border-bottom: none;
}

.hb-changed-cell {
  color: #ef4444 !important;
  font-weight: 600;
}

.hb-changed-row td {
  background: rgba(239, 68, 68, 0.04);
}

/* Responsive: command tabs */
@media (max-width: 640px) {
  .command-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .command-tabs {
    flex-wrap: wrap;
  }

  .command-tab {
    font-size: 12px;
    padding: 5px 10px;
  }

  .hb-field-row {
    flex-direction: column;
    gap: 0;
  }

  .hb-body {
    padding: 12px;
  }

  .hb-tab {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hb-tick-label {
    font-size: 8px;
  }

  .hb-quality-value {
    font-size: 16px;
  }
}

/* ── New Styles for Updated Mockup ── */

/* Summary Layout */
.hb-summary-layout {
  display: flex;
  gap: 20px;
}

.hb-summary-left {
  flex: 1;
}

.hb-summary-right {
  width: 300px;
  flex-shrink: 0;
}

.hb-preview-box {
  background: #000;
  border: 1px solid #333;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.hb-preview-content {
  color: #333;
}

@media (max-width: 768px) {
  .hb-summary-layout {
    flex-direction: column;
  }
  .hb-summary-right {
    width: 100%;
  }
}

/* Dimensions Grid */
.hb-dim-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hb-dim-section {
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.hb-dim-section:last-child {
  border-bottom: none;
}

.hb-dim-title {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  margin-bottom: 10px;
}

.hb-dim-row {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #ccc;
}

.hb-dim-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  .hb-dim-columns {
    grid-template-columns: 1fr;
  }
}

.hb-dim-col {
  /* Column styles */
}

.hb-crop-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
}

.hb-crop-mid {
  display: flex;
  gap: 40px;
}

.hb-input-sm {
  background: #333;
  border: 1px solid #555;
  color: #eee;
  padding: 2px 5px;
  border-radius: 3px;
  width: 40px;
  text-align: center;
}

.hb-input-md {
  background: #333;
  border: 1px solid #555;
  color: #eee;
  padding: 2px 5px;
  border-radius: 3px;
  width: 60px;
  text-align: center;
}

.hb-input-group {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #888;
  font-size: 12px;
}

/* Video Tab Updates */
.hb-video-grid {
  display: flex;
  gap: 30px;
}

.hb-video-left {
  flex: 1;
}

.hb-video-right {
  flex: 1;
}

.hb-radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hb-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ccc;
  cursor: default;
}

.hb-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #666;
  background: #333;
  position: relative;
}

.hb-radio-dot.checked {
  border-color: #0078d4;
  background: #0078d4;
}

.hb-radio-dot.checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.hb-slider-container {
  position: relative;
  height: 20px;
  margin-top: 5px;
}

.hb-slider-track {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: #444;
  border-radius: 2px;
}

.hb-slider-thumb {
  position: absolute;
  top: 0;
  width: 10px;
  height: 20px;
  background: #ccc;
  border: 1px solid #999;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hb-separator {
  height: 1px;
  background: #333;
  margin: 20px 0;
}

.hb-video-options {
  /* Options container */
}

/* Audio Tab Updates */
.hb-audio-toolbar {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
  margin-bottom: 10px;
}

.hb-select-sm {
  background: #333;
  border: 1px solid #555;
  color: #eee;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.hb-select-sm::after {
  content: ' \25BE';
  font-size: 9px;
  margin-left: 5px;
  color: #888;
}

.hb-btn-sm {
  background: linear-gradient(#444, #333);
  border: 1px solid #555;
  color: #eee;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: default;
}

.hb-select-table {
  background: #222;
  border: 1px solid #444;
  color: #eee;
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hb-select-table.disabled {
  color: #666;
  background: #1a1a1a;
  border-color: #333;
}

.hb-select-table::after {
  content: '\25BE';
  font-size: 8px;
  color: #666;
}

.hb-knob-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hb-knob-control.disabled {
  opacity: 0.3;
}

.hb-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #444;
  border: 1px solid #666;
  position: relative;
}

.hb-knob::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 7px;
  width: 2px;
  height: 6px;
  background: #ccc;
}

.hb-icon-btn {
  width: 20px;
  height: 20px;
  border: 1px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 10px;
  cursor: pointer;
}
