.options-container {
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    color: #ddd;
}

.options-section {
    margin-bottom: 20px;
}

.options-section h3 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.option-label {
    flex: 1;
    font-weight: 500;
}

.option-control {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sliders drawn like the audio player's progress bar: thin translucent track, white handle */
.option-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.option-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.option-control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #fff;
}

.option-control input[type="range"]::-moz-range-progress {
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.option-control small {
    color: #aaa;
    min-width: 3em;
    text-align: right;
}

select.option-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 0.9em;
}

select.option-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(230,0,18,0.1);
}

.option-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

@media (prefers-color-scheme: dark) {
    .options-container {
        color: #ddd;
    }

    .option-row {
        background-color: #333;
    }

    select.option-select {
        background-color: #333;
        border-color: #444;
        color: #ddd;
    }
}