/* ==========================================================================
   SafeAudioKit Online Audio Equalizer Styles
   Theme-friendly (clean light design matching SafeAudioKit standards)
   Width adjusted for left and right sidebar display ads
   ========================================================================== */

:root {
  --eq-brand-blue: #2563eb;
  --eq-brand-blue-hover: #1d4ed8;
  --eq-brand-blue-subtle: #eff6ff;
  --eq-accent-cyan: #06b6d4;
  --eq-accent-green: #10b981;
  --eq-card-bg: #ffffff;
  --eq-card-border: #e2e8f0;
  --eq-subtle-bg: #f8fafc;
  --eq-text-dark: #0f172a;
  --eq-text-body: #334155;
  --eq-text-secondary: #475569;
  --eq-text-muted: #64748b;
  --eq-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   1. Container & Width Constraints (Leaves room for left and right 200px side ads)
   ========================================================================== */
.eq-feature-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 30px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

.eq-feature-wrapper * {
  box-sizing: border-box;
}

.eq-feature-wrapper button {
  opacity: 1;
}

/* Safe width on desktop with active left and right sidebar ads */
@media (min-width: 1025px) {
  .eq-feature-wrapper,
  .eq-studio-card {
    max-width: min(860px, calc(100vw - 480px)) !important;
  }
}

/* ==========================================================================
   2. Main Studio Workspace Card (Theme-Friendly White Card)
   ========================================================================== */
.eq-studio-card {
  width: 100%;
  max-width: 860px;
  margin: 15px auto 24px auto;
  background: var(--eq-card-bg);
  border: 1px solid var(--eq-card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--eq-shadow-card);
  position: relative;
}

/* Studio Header with Track Name and Format Badge */
.eq-studio-top-header {
  background: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--eq-card-border);
}

.eq-track-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.eq-track-icon {
  color: var(--eq-brand-blue);
  font-size: 16px;
}

.eq-track-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--eq-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

.eq-track-badge {
  background: var(--eq-brand-blue-subtle);
  color: var(--eq-brand-blue);
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.eq-btn-new-file {
  background: var(--eq-subtle-bg);
  border: 1px solid #cbd5e1;
  color: var(--eq-text-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eq-btn-new-file:hover {
  background: #f1f5f9;
  color: var(--eq-text-dark);
  border-color: #94a3b8;
}

/* ==========================================================================
   3. Waveform Display Section (Theme-Friendly Waveform)
   ========================================================================== */
.eq-waveform-section {
  background: #ffffff;
  padding: 16px 20px 14px 20px;
  position: relative;
  user-select: none;
  border-bottom: 1px solid var(--eq-card-border);
}

.eq-waveform-container {
  position: relative;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#eq-waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* Scrub Playhead Line & Time Bubble */
.eq-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--eq-brand-blue);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
  transition: transform 0.05s linear;
}

.eq-playhead-bubble {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--eq-text-dark);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Trim boundary handles (Cutter mode) */
.eq-boundary-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: var(--eq-brand-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  z-index: 8;
  cursor: ew-resize !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Generous touch target for mobile (40px hit area) */
.eq-boundary-handle::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -13px;
  right: -13px;
  cursor: ew-resize;
  z-index: 10;
}

.eq-boundary-handle.dragging {
  background: var(--eq-brand-blue-hover);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.7);
  transform: scaleY(1.04);
}

.eq-boundary-left {
  left: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.eq-boundary-right {
  right: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.eq-handle-dot {
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
}

.eq-waveform-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eq-text-muted);
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
}

#eq-time-current {
  color: var(--eq-brand-blue);
  font-weight: 700;
}

.eq-waveform-center-time {
  color: #94a3b8;
}

/* ==========================================================================
   4. Multi-Tool Category Toolbar (Cut Audio, Speed, Pitch, Volume, Bass, EQ)
   ========================================================================== */
.eq-category-navbar-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--eq-card-border);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.eq-category-navbar-wrap::-webkit-scrollbar {
  display: none;
}

.eq-category-bar {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--eq-card-border);
  gap: 4px;
  flex-wrap: nowrap;
}

.eq-cat-item {
  background: transparent;
  border: none;
  color: var(--eq-text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

@media (hover: hover) {
  .eq-cat-item:not(.active):hover {
    color: var(--eq-text-dark);
    background: #ffffff;
  }
}

.eq-cat-item.active,
.eq-cat-item.active:hover,
.eq-cat-item.active:focus,
.eq-cat-item.active:active {
  background: var(--eq-brand-blue) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

.eq-cat-item.active .eq-cat-icon,
.eq-cat-item.active .eq-cat-text,
.eq-cat-item.active:hover .eq-cat-icon,
.eq-cat-item.active:hover .eq-cat-text,
.eq-cat-item.active:focus .eq-cat-icon,
.eq-cat-item.active:focus .eq-cat-text,
.eq-cat-item.active:active .eq-cat-icon,
.eq-cat-item.active:active .eq-cat-text {
  color: #ffffff !important;
}

.eq-cat-icon {
  font-size: 13px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   5. Presets Bar Section
   ========================================================================== */
.eq-presets-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--eq-card-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}

.eq-presets-bar::-webkit-scrollbar {
  display: none;
}

.eq-presets-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.eq-preset-btn {
  background: transparent;
  border: none;
  color: var(--eq-text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  position: relative;
  outline: none;
}

.eq-preset-btn:hover {
  color: var(--eq-text-dark);
  background: #f1f5f9;
}

.eq-preset-btn.active {
  color: var(--eq-brand-blue);
  font-weight: 700;
}

.eq-preset-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--eq-brand-blue);
  border-radius: 2px;
}

/* "More ▼" Dropdown */
.eq-more-dropdown {
  position: relative;
  margin-left: 6px;
  flex-shrink: 0;
}

.eq-more-btn {
  background: var(--eq-subtle-bg);
  border: 1px solid #cbd5e1;
  color: var(--eq-text-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.eq-more-btn:hover,
.eq-more-dropdown.open .eq-more-btn {
  background: #f1f5f9;
  color: var(--eq-text-dark);
  border-color: #94a3b8;
}

.eq-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--eq-card-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  min-width: 170px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px 0;
  display: none;
}

.eq-more-dropdown.open .eq-dropdown-menu {
  display: block;
}

.eq-dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--eq-text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.eq-dropdown-item:hover {
  background: var(--eq-brand-blue-subtle);
  color: var(--eq-brand-blue);
}

.eq-dropdown-item.active {
  color: var(--eq-brand-blue);
  font-weight: 700;
  background: #f0f7ff;
}

/* ==========================================================================
   6. 11-Band Graphic Equalizer Section
   ========================================================================== */
.eq-sliders-board {
  background: #ffffff;
  padding: 34px 20px 24px 20px;
  position: relative;
}

/* Horizontal 0 dB Center Reference Line */
.eq-center-guideline {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 114px;
  height: 1px;
  background: var(--eq-card-border);
  pointer-events: none;
  z-index: 1;
}

.eq-sliders-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eq-slider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 68px;
}

/* Vertical Track & Thumb */
.eq-slider-track-wrap {
  position: relative;
  width: 32px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.eq-slider-line {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  pointer-events: none;
}

.eq-zero-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 1px;
  background: #94a3b8;
  pointer-events: none;
}

/* Thumb */
.eq-slider-thumb {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--eq-brand-blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  z-index: 4;
}

.eq-slider-col:hover .eq-slider-thumb,
.eq-slider-thumb.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.7);
  background: var(--eq-brand-blue-hover);
}

/* Live dB Tooltip */
.eq-slider-db-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--eq-text-dark);
  border: 1px solid #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

.eq-slider-col:hover .eq-slider-db-tooltip,
.eq-slider-thumb.dragging + .eq-slider-db-tooltip,
.eq-slider-track-wrap.active .eq-slider-db-tooltip {
  opacity: 1;
}

.eq-freq-label {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eq-text-secondary);
  text-align: center;
  user-select: none;
}

.eq-slider-col.preamp .eq-freq-label {
  color: var(--eq-text-dark);
  font-weight: 700;
}

/* ==========================================================================
   7. Subtool Panels (Bass, Cutter, Speed, Pitch, Gain)
   ========================================================================== */
.eq-tool-panel {
  display: none;
  animation: eqFadeIn 0.2s ease forwards;
}

.eq-tool-panel.active {
  display: block;
}

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

.eq-subpanel-content {
  padding: 24px 28px;
  background: #ffffff;
}

.eq-panel-intro h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--eq-text-dark);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-panel-intro p {
  font-size: 13px;
  color: var(--eq-text-muted);
  margin: 0 0 20px 0;
}

.eq-panel-hint {
  font-size: 12px;
  color: var(--eq-text-muted);
}

/* 3-Column Tool Cards (Bass Booster) */
.eq-sliders-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0;
}

.eq-subtool-card {
  background: var(--eq-subtle-bg);
  border: 1px solid var(--eq-card-border);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) and (min-width: 601px) {
  .eq-sliders-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .eq-subtool-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .eq-sliders-3col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.eq-subtool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.eq-subtool-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--eq-text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.eq-val-badge {
  background: var(--eq-brand-blue-subtle);
  color: var(--eq-brand-blue);
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

/* Horizontal Range Sliders */
.eq-horiz-slider-wrap {
  width: 100%;
  padding: 6px 0;
}

.eq-horiz-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.eq-horiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--eq-brand-blue);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s, box-shadow 0.15s;
}

.eq-horiz-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--eq-brand-blue);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.eq-horiz-slider:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  background: var(--eq-brand-blue-hover);
}

/* Subtool Chips */
.eq-subtool-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.eq-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--eq-text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.eq-chip:hover {
  color: var(--eq-text-dark);
  border-color: #94a3b8;
  background: #f1f5f9;
}

.eq-chip.active {
  background: var(--eq-brand-blue);
  color: #ffffff;
  border-color: var(--eq-brand-blue);
  font-weight: 700;
}

/* ==========================================================================
   8. Audio Cutter Specific Styles
   ========================================================================== */
.eq-trim-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 5;
}

.eq-trim-shade-left { left: 0; }
.eq-trim-shade-right { right: 0; }

.eq-cutter-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--eq-subtle-bg);
  border: 1px solid var(--eq-card-border);
  border-radius: 12px;
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.eq-cutter-times-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eq-time-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--eq-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.eq-time-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
  color: var(--eq-brand-blue);
}

.eq-time-input {
  background: transparent;
  border: none;
  color: var(--eq-text-dark);
  font-size: 14px;
  font-weight: 700;
  width: 78px;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.eq-cutter-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--eq-text-muted);
  gap: 2px;
  padding-top: 14px;
}

.badge-cut-length {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.eq-cutter-actions-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.eq-cutter-btn-group {
  display: flex;
  gap: 8px;
}

.eq-action-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--eq-text-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.eq-action-btn:hover {
  background: #f1f5f9;
  color: var(--eq-text-dark);
  border-color: #94a3b8;
}

.eq-action-btn.active {
  background: var(--eq-brand-blue);
  color: #ffffff;
  border-color: var(--eq-brand-blue);
  font-weight: 700;
}

.eq-fade-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eq-fade-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eq-text-secondary);
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.eq-fade-toggle-label input {
  accent-color: var(--eq-brand-blue);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* ==========================================================================
   9. Single Large Tool Cards (Speed, Pitch, Volume)
   ========================================================================== */
.eq-single-tool-card {
  max-width: 580px;
  background: var(--eq-subtle-bg);
  border: 1px solid var(--eq-card-border);
  border-radius: 14px;
  padding: 24px 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.eq-speed-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eq-big-speed-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--eq-brand-blue);
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.eq-speed-status-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--eq-text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   10. Bottom Control Bar Section (Theme-Friendly White/Light Bar)
   ========================================================================== */
.eq-bottom-bar {
  background: var(--eq-subtle-bg);
  border-top: 1px solid var(--eq-card-border);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.eq-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Play/Pause Button */
.eq-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--eq-brand-blue) !important;
  border: none !important;
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .eq-play-btn:hover {
    background: var(--eq-brand-blue-hover) !important;
    transform: scale(1.04);
    opacity: 1 !important;
  }
}

.eq-play-btn:focus,
.eq-play-btn:focus-visible {
  outline: none !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.eq-play-btn:active {
  transform: scale(0.96);
  opacity: 1 !important;
}

.eq-play-btn.is-playing {
  background: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 4px 14px rgba(37, 99, 235, 0.45);
  opacity: 1 !important;
}

.eq-play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 1 !important;
}

/* Current Playback Time */
.eq-time-display {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--eq-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Center Reset & Loop Buttons */
.eq-bottom-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eq-loop-btn,
.eq-reset-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--eq-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eq-loop-btn:hover,
.eq-reset-btn:hover {
  background: #f1f5f9;
  color: var(--eq-text-dark);
  border-color: #94a3b8;
}

.eq-loop-btn.active {
  background: #eef2ff;
  color: var(--eq-primary);
  border-color: var(--eq-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.eq-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Format Selector */
.eq-format-wrap {
  position: relative;
}

.eq-format-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--eq-text-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.eq-format-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.eq-format-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--eq-card-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  z-index: 100;
}

.eq-format-wrap.open .eq-format-menu {
  display: block;
}

.eq-format-opt {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 18px;
  text-align: left;
  font-size: 13px;
  color: var(--eq-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.eq-format-opt:hover,
.eq-format-opt.active {
  background: var(--eq-brand-blue-subtle);
  color: var(--eq-brand-blue);
  font-weight: 600;
}

/* Save / Export Button */
.eq-save-btn {
  background: var(--eq-brand-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eq-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: var(--eq-brand-blue-hover);
}

.eq-save-btn:active {
  transform: translateY(0);
}

.eq-save-btn.busy {
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   11. Overlays & Success Card
   ========================================================================== */
.eq-overlay-spinner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 500;
  border-radius: 16px;
}

.eq-spin-circle {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--eq-brand-blue);
  border-radius: 50%;
  animation: eqSpin 0.8s linear infinite;
  margin-bottom: 14px;
}

@keyframes eqSpin {
  to { transform: rotate(360deg); }
}

.eq-overlay-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--eq-text-dark);
}

/* Success Download Toast / Card */
.eq-success-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 18px 24px;
  margin: 15px auto 20px auto;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 16px;
}

@media (min-width: 1025px) {
  .eq-success-card {
    max-width: min(860px, calc(100vw - 480px)) !important;
  }
}

.eq-success-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eq-success-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--eq-accent-green);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.eq-success-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--eq-text-dark);
  margin: 0 0 2px 0;
}

.eq-success-text p {
  font-size: 12.5px;
  color: var(--eq-text-muted);
  margin: 0;
}

.eq-success-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.eq-btn-download-again {
  background: var(--eq-accent-green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.eq-btn-download-again:hover {
  background: #059669;
  transform: translateY(-1px);
}

.eq-btn-edit-more {
  background: var(--eq-subtle-bg);
  border: 1px solid #cbd5e1;
  color: var(--eq-text-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eq-btn-edit-more:hover {
  background: #f1f5f9;
  color: var(--eq-text-dark);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .eq-studio-top-header {
    padding: 8px 14px;
  }
  .eq-track-meta {
    font-size: 13px;
    gap: 6px;
  }
  .eq-track-header {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .eq-waveform-section {
    padding: 8px 12px 6px 12px;
  }
  .eq-waveform-container {
    height: 72px;
  }
  .eq-waveform-times {
    font-size: 11px;
    margin-top: 4px;
  }
  .eq-category-bar {
    padding: 6px 10px;
  }
  .eq-cat-item {
    font-size: 12px;
    padding: 6px 12px;
    gap: 5px;
  }
  .eq-subpanel-content {
    padding: 16px 12px;
  }
  .eq-panel-intro h5 {
    font-size: 15px;
    margin-bottom: 2px;
  }
  .eq-panel-intro p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .eq-sliders-board {
    padding: 24px 10px 18px 10px;
    overflow-x: auto;
  }
  .eq-sliders-row {
    min-width: 580px;
  }
  .eq-slider-col {
    max-width: 52px;
  }
  .eq-slider-track-wrap {
    height: 140px;
  }
  .eq-center-guideline {
    top: 98px;
  }
  .eq-presets-bar {
    padding: 6px 8px;
  }
  .eq-preset-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .eq-category-navbar-wrap {
    justify-content: flex-start;
  }
  .eq-sliders-3col {
    gap: 14px;
  }
  .eq-cutter-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 12px;
  }
  .eq-cutter-times-box {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .eq-cutter-actions-box {
    align-items: stretch;
    width: 100%;
  }
  .eq-cutter-btn-group {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  .eq-cutter-btn-group .eq-action-btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
  }
  .eq-fade-toggles {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .eq-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    column-gap: 8px;
    padding: 10px 12px;
    align-items: center;
  }
  .eq-bottom-left {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eq-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 1 !important;
    filter: none !important;
  }
  .eq-time-display {
    font-size: 12px;
  }
  .eq-bottom-center {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }
  .eq-loop-btn,
  .eq-reset-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .eq-bottom-right {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .eq-format-wrap {
    flex-shrink: 0;
  }
  .eq-format-btn {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .eq-save-btn {
    flex: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 18px;
    font-size: 14px;
  }
}

@media (max-width: 440px) {
  .eq-cutter-times-box {
    gap: 4px;
  }
  .eq-time-input-group {
    flex: 1;
    min-width: 0;
  }
  .eq-time-input-wrap {
    padding: 5px 6px;
    gap: 4px;
  }
  .eq-time-input {
    width: 100%;
    font-size: 11.5px;
    min-width: 48px;
  }
  .eq-cutter-divider {
    font-size: 10px;
    padding: 0 2px;
  }
  .badge-cut-length {
    font-size: 10px;
    padding: 2px 4px;
  }
}
