.year-slider-widget {
    max-width: 480px;
    margin: 1.5rem auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
}

.slider-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.active-bubble {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0b5394;
    background: #e9f2fa;
    padding: 4px 14px;
    border-radius: 6px;
    border: 1px solid #b4d2ee;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-step {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.btn-step:hover {
    background: #eef2f5;
}

/* Range input bar */
.year-range-input {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

/* Custom thumb/handle */
.year-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0b5394;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.year-range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0b5394;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}