* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a0f;
}

#stringCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: ew-resize;
}

.timescale-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timescale-container input[type="range"] {
    width: 180px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
}

.timescale-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4da8da;
    border-radius: 50%;
    cursor: pointer;
}

.timescale-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4da8da;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.timescale-label {
    font-family: monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.slider-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 40px;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

.harmonic-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 20px;
    background: #e94560;
    border-radius: 2px;
}

.harmonic-marker span {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #e94560;
}

input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4da8da;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(77, 168, 218, 0.5);
    transition: transform 0.1s, box-shadow 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(77, 168, 218, 0.8);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4da8da;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(77, 168, 218, 0.5);
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    background: transparent;
}

.freq-label {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-family: sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}
