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

:root {
    /* Light theme colors (default) */
    --bg-color: #f5f3ff;
    --text-color: #1a1a2e;
    --text-secondary: #4a5568;
    --accent-color: #8b5cf6;
    --accent-secondary: #7c3aed;
    --panel-bg: #ffffff;
    --panel-shadow: rgba(139, 92, 246, 0.1);
    --knob-bg: linear-gradient(145deg, #ffffff, #e5e7eb);
    --knob-shadow-1: #d1d5db;
    --knob-shadow-2: #ffffff;
    --cassette-color-1: #8b5cf6;
    --cassette-color-2: #6366f1;
    --marker-color: #9ca3af;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent-color: #f59e0b;
    --accent-secondary: #d97706;
    --panel-bg: #1e293b;
    --panel-shadow: rgba(245, 158, 11, 0.1);
    --knob-bg: linear-gradient(145deg, #334155, #1e293b);
    --knob-shadow-1: #0f172a;
    --knob-shadow-2: #475569;
    --cassette-color-1: #f59e0b;
    --cassette-color-2: #d97706;
    --marker-color: #64748b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Top left icon */
.top-left-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
    z-index: 100;
    cursor: pointer;
}

.top-left-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

.top-left-icon img {
    filter: drop-shadow(0 2px 4px var(--panel-shadow));
}

/* Top right menu */
.top-right-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--panel-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--panel-shadow), 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    overflow: hidden;
    animation: fadeScaleIn 0.2s ease;
    display: none; /* Hidden by default */
}

.dropdown-menu.open {
    display: block; /* Show when open class is added */
}
    position: fixed;
    top: 20px;
    left: 80px;
    background: var(--panel-bg);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--panel-shadow), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    color: var(--text-color);
    z-index: 100;
}

.eq-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px var(--panel-shadow), 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.eq-btn i {
    font-size: 20px;
}

/* Settings button */
.settings-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.settings-btn {
    background: var(--panel-bg);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--panel-shadow), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.settings-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px var(--accent-color), 0 10px 15px var(--panel-shadow);
}

.settings-btn:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-btn i {
    font-size: 20px;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--panel-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--panel-shadow), 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    overflow: hidden;
    animation: fadeScaleIn 0.2s ease;
}

.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 20px;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

.dropdown-item i {
    width: 20px;
}



/* Main container */
.main-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Player Toolbar */
.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    padding: 16px;
    background: var(--panel-bg);
    border-radius: 60px;
    box-shadow: 0 4px 6px var(--panel-shadow), 0 2px 4px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px var(--accent-color), 0 10px 15px var(--panel-shadow);
.toolbar-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.toolbar-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: var(--accent-color);
}

.file-upload-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toolbar-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toolbar-btn[data-repeat="on"] {
    background: var(--accent-color);
    color: white;
}

.toolbar-btn[data-repeat="on"]:hover {
    background: var(--accent-secondary);
}

@media (max-width: 768px) {
    .player-toolbar {
        gap: 6px;
        padding: 10px;
        flex-wrap: nowrap;
    }
    
    .toolbar-btn {
        min-width: 65px;
        padding: 10px 12px;
    }
    
    .toolbar-btn i {
        font-size: 16px;
    }
    
    .toolbar-btn span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .player-toolbar {
        gap: 4px;
        padding: 8px;
        flex-wrap: nowrap;
    }
    
    .toolbar-btn {
        min-width: 55px;
        padding: 8px 10px;
        gap: 3px;
    }
    
    .toolbar-btn i {
        font-size: 14px;
    }
    
    .toolbar-btn span {
        font-size: 9px;
    }
}

/* Control panel */
.control-panel {
    background: var(--panel-bg);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: 0 20px 25px var(--panel-shadow), 0 10px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

/* Side Panel Toggle Button */
.side-panel-toggle {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 20px 12px;
    cursor: pointer;
    box-shadow: -4px 4px 10px var(--panel-shadow);
    transition: all 0.3s ease;
    color: white;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.side-panel-toggle:hover {
    background: var(--accent-secondary);
    right: -18px;
    box-shadow: -6px 6px 15px var(--panel-shadow);
}

.side-panel-toggle i {
    font-size: 20px;
}

.side-panel-toggle.active {
    right: 380px;
}

/* Side Effects Panel */
.side-effects-panel {
    position: fixed;
    right: -420px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    max-height: 85vh;
    background: var(--panel-bg);
    border-radius: 32px 0 0 32px;
    box-shadow: -10px 0 30px var(--panel-shadow), -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.side-effects-panel.open {
    right: 0;
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--bg-color);
}

.side-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
    margin: 0;
}

.side-panel-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.side-panel-close:hover {
    background: var(--bg-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.side-panel-content {
    overflow-y: auto;
    padding: 20px 30px 30px;
    flex: 1;
}

/* Effect Control */
.effect-control {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.effect-control:hover {
    box-shadow: 0 4px 12px var(--panel-shadow);
}

.effect-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.effect-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.effect-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--marker-color);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.effect-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.effect-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.effect-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.effect-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.effect-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 50px;
    text-align: right;
}

.effect-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--marker-color);
}

.param-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.param-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 70px;
}

.param-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--marker-color);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.param-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.param-group span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 55px;
    text-align: right;
}

/* Control group */
.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* Knob container */
.knob-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Knob markers */
.knob-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    font-size: 13px;
    font-weight: 600;
    color: var(--marker-color);
}

.marker-min {
    top: 15%;
    left: 5%;
}

.marker-mid {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.marker-max {
    top: 15%;
    right: 5%;
}

/* Knob wrapper */
.knob-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--knob-bg);
    box-shadow: 
        12px 12px 24px var(--knob-shadow-1),
        -12px -12px 24px var(--knob-shadow-2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: grab;
}

.knob-wrapper:hover {
    box-shadow: 
        0 0 0 4px var(--accent-color),
        12px 12px 24px var(--knob-shadow-1),
        -12px -12px 24px var(--knob-shadow-2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.knob-wrapper:active,
.knob-wrapper.dragging {
    cursor: grabbing;
    box-shadow: 
        inset 6px 6px 12px var(--knob-shadow-1),
        inset -6px -6px 12px var(--knob-shadow-2);
}

.knob-wrapper::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
    pointer-events: none;
}

.knob-wrapper::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Knob indicator */
.knob-indicator {
    position: absolute;
    width: 5px;
    height: 65px;
    background: var(--accent-color);
    border-radius: 3px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center calc(100% + 25px);
    z-index: 10;
    transition: transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Hide the actual input */
.input-knob {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: grab;
    z-index: 20;
}

.input-knob:active {
    cursor: grabbing;
}

/* Control labels */
.control-label {
    text-align: center;
}

.label-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.label-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

/* Center logo */
.center-logo {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px var(--panel-shadow));
}

.center-logo:hover {
    transform: scale(1.05);
}

.center-logo:active {
    animation: logoSpin 0.6s ease-in-out;
}

.center-logo img {
    display: block;
}

/* Tagline section */
.tagline {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

.halfscrew-text {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.main-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.accent-word {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: clamp(10px, 2vw, 13px);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.low-end {
    color: var(--accent-color);
}

.controls-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 16px;
}

.controls-link:hover {
    color: var(--accent-color);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.visible {
    display: flex; /* Show as flex when visible class is added */
}

@media (prefers-reduced-motion: reduce) {
    .modal-overlay {
        animation: none;
    }
}

.modal-content {
    background: var(--panel-bg);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeScaleIn 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .modal-content {
        animation: none;
    }
}

/* EQ Modal specific styles */
.eq-modal-content {
    max-width: 600px;
}

.eq-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 40px;
    margin: 40px 0;
    padding: 30px 20px;
    background: var(--bg-color);
    border-radius: 16px;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.eq-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 200px;
}

.db-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    min-height: 20px;
}

.visualizer-bar {
    width: 40px;
    height: 150px;
    background: var(--bg-color);
    border: 2px solid var(--marker-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.visualizer-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--after-height, 0%);
    transition: height 0.15s ease-out, background-color 0.3s ease;
    border-radius: 6px;
}

#low-visualizer::after {
    background: linear-gradient(to top, #3b82f6, #60a5fa);
}

#mid-visualizer::after {
    background: linear-gradient(to top, #10b981, #34d399);
}

#high-visualizer::after {
    background: linear-gradient(to top, #f59e0b, #fbbf24);
}

.visualizer-bar.clipping::after {
    background: linear-gradient(to top, #ef4444, #f87171) !important;
}

.vertical-slider {
    writing-mode: vertical-rl;
    width: 8px;
    height: 150px;
    padding: 0;
    background: var(--marker-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vertical-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.eq-band label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bypass-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.bypass-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.bypass-btn.active {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 2px solid var(--accent-color);
}

.bypass-btn.active .bypass-text::after {
    content: ' (Bypassed)';
    color: var(--accent-color);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Settings content */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.setting-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-color);
    outline: none;
    -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.setting-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.setting-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.eq-controls {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eq-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eq-control label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-buttons button:hover:not(:disabled) {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.modal-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* EQ Bypass */
.eq-bypass-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.bypass-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bypass-btn:hover:not(:disabled) {
    background: var(--accent-secondary);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.bypass-btn:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.bypass-btn.bypassed {
    background: var(--text-secondary);
}

/* Marketing Modal */
.marketing-modal {
    max-width: 600px;
}

.modal-logo {
    text-align: center;
    margin-bottom: 20px;
}

.marketing-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-section {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.promo-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.beta-notice {
    border-left-color: var(--accent-secondary);
}

.cta-button {
    margin-top: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.cta-button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

/* About Modal */
.about-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.about-content ul {
    margin-left: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-content a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Interactive element cursor styles */
button,
.file-upload-btn,
.knob-wrapper,
.input-knob,
.center-logo,
.top-left-icon,
.controls-link,
input[type="range"],
input[type="checkbox"] {
    cursor: pointer;
}

/* Accent glow on interactive elements */
button:not(:disabled):hover,
.setting-group input[type="range"]:hover,
input[type="checkbox"]:hover {
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }

    .knob-container {
        width: 220px;
        height: 220px;
    }

    .knob-wrapper {
        width: 150px;
        height: 150px;
    }

    .knob-indicator {
        height: 50px;
    }

    .center-logo img {
        width: 110px;
        height: 73px;
        width: 144px;
        height: 144px;
    }

    .knob-wrapper {
        width: 112px;
        height: 112px;
    }

    .knob-indicator {
        height: 36px;
    }
    
    .marker {
        font-size: 11px;
    }

    .cassette-icon svg {
        width: 96px;
        height: 64px;
    }

    .main-title {
        font-size: 32px;
    }

    .settings-btn,
    .top-left-icon {
        top: 15px;
    }

    .top-left-icon img {
        width: 40px;
        height: 40px;
    }

    /* Stack EQ controls on mobile */
    .eq-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .dropdown-menu {
        right: -10px;
    }

    /* Side panel responsive */
    .side-effects-panel {
        width: 85vw;
        right: -90vw;
        border-radius: 32px 0 0 32px;
    }

    .side-panel-toggle.active {
        right: calc(85vw + 20px);
    }

    .side-panel-content {
        padding: 15px 20px 20px;
    }

    .effect-control {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 10px;
    }

    .control-panel {
        padding: 25px 12px;
        gap: 30px;
    }

    .knob-container {
        width: 200px;
        height: 200px;
    }

    .knob-wrapper {
        width: 130px;
        height: 130px;
    }

    .knob-indicator {
        height: 45px;
        width: 4px;
        width: 128px;
        height: 128px;
    }

    .knob-wrapper {
        width: 90px;
        height: 90px;
    }

    .knob-indicator {
        height: 30px;
        width: 3px;
    }

    .label-value {
        font-size: 22px;
    }
    
    .label-name {
        font-size: 14px;
    }
    
    .marker {
        font-size: 10px;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .top-left-icon img {
        width: 36px;
        height: 36px;
    }

    .settings-btn {
        width: 42px;
        height: 42px;
    }

    .center-logo img {
        width: 100px;
        height: 67px;
    }
}

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

@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

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

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
/* Chop Effect Section */
.chop-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--panel-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--panel-shadow);
    max-width: 800px;
    width: 100%;
}

.chop-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.houston-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.chop-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* Crossfader */
.crossfader-container {
    width: 100%;
    max-width: 500px;
}

.crossfader-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.label-center {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.crossfader {
    width: 100%;
    height: 50px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, 
        var(--bg-color) 0%, 
        var(--accent-color) 50%, 
        var(--accent-secondary) 100%);
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.crossfader::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--panel-bg), var(--knob-shadow-1));
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.crossfader::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.crossfader::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.crossfader::-moz-range-thumb {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--panel-bg), var(--knob-shadow-1));
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.crossfader::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.crossfader::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.crossfader-value {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Chop Rate Control */
.chop-rate-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.chop-rate-control label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.chop-rate-control input[type="range"] {
    width: 250px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--accent-color);
    border-radius: 4px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chop-rate-control input[type="range"]:hover {
    opacity: 1;
}

.chop-rate-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--panel-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chop-rate-control input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--panel-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chop-rate-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Turntable */
.turntable-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.turntable {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.1s ease-out;
}

.turntable.spinning {
    animation: turntableSpin 2s linear infinite;
}

.turntable.chopping {
    animation: chopAnimation 0.5s ease-in-out infinite;
}

.turntable-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 16px;
    background: var(--bg-color);
    border-radius: 12px;
    letter-spacing: 1px;
}

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

@keyframes chopAnimation {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

/* Responsive adjustments for chop section */
@media (max-width: 768px) {
    .chop-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .chop-title {
        font-size: 1.2rem;
    }
    
    .houston-badge {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
    
    .crossfader-container {
        max-width: 100%;
    }
    
    .crossfader {
        height: 40px;
    }
    
    .crossfader::-webkit-slider-thumb,
    .crossfader::-moz-range-thumb {
        width: 50px;
        height: 50px;
    }
    
    .turntable {
        width: 150px;
        height: 150px;
    }
}
