body {
    margin: 0;
    overflow: hidden;
    font-family: 'Lars', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 1000;
}

@media (prefers-color-scheme: dark) {
    #controls {
        background: rgba(18, 24, 20, 0.95);
    }
}

button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000000;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
}

@media (prefers-color-scheme: dark) {
    button {
        background: rgba(42, 74, 56, 0.6);
        color: #88dd88;
        border: 1px solid rgba(136, 221, 136, 0.3);
    }
}

button:hover {
    background: rgb(255, 208, 208);
    color: rgba(0, 0, 0, 0.86);
}

@media (prefers-color-scheme: dark) {
    button:hover {
        background: rgba(42, 74, 56, 0.8);
        border-color: rgba(136, 221, 136, 0.5);
    }
}

button:active {
    transform: scale(0.98);
}

button svg {
    flex-shrink: 0;
}

#brightnessControl {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    #brightnessControl {
        border-left-color: rgba(136, 221, 136, 0.2);
        border-right-color: rgba(136, 221, 136, 0.2);
    }
}

#brightnessControl label {
    color: #000000;
    font-size: 11px;
    white-space: nowrap;
    font-weight: bold;
}

@media (prefers-color-scheme: dark) {
    #brightnessControl label {
        color: #88dd88;
    }
}

#brightnessSlider {
    width: 100px;
    height: 4px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    #brightnessSlider {
        background: rgba(136, 221, 136, 0.2);
    }
}

#brightnessSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(179, 91, 72);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    #brightnessSlider::-webkit-slider-thumb {
        background: #88dd88;
    }
}

#brightnessSlider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#brightnessSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(179, 91, 72);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    #brightnessSlider::-moz-range-thumb {
        background: #88dd88;
    }
}

#brightnessSlider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

#brightnessValue {
    color: #000000;
    font-size: 11px;
    min-width: 30px;
    font-weight: bold;
}

@media (prefers-color-scheme: dark) {
    #brightnessValue {
        color: #aaffaa;
    }
}

#captureButtons {
    display: flex;
    gap: 8px;
    align-items: center;
}

#recordVideo.recording {
    background: rgb(255, 208, 208);
    border-color: rgb(179, 91, 72);
    color: rgba(0, 0, 0, 0.86);
    animation: pulse 1.5s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
    #recordVideo.recording {
        background: rgba(221, 88, 88, 0.3);
        border-color: rgba(221, 88, 88, 0.6);
        color: #dd8888;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#recordingTime {
    color: rgb(179, 91, 72);
    font-size: 11px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

@media (prefers-color-scheme: dark) {
    #recordingTime {
        color: #dd8888;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #controls {
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px;
        width: calc(100% - 40px);
        max-width: 360px;
    }
    
    #brightnessControl {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 6px 0;
        width: 100%;
        justify-content: center;
    }
    
    @media (prefers-color-scheme: dark) {
        #brightnessControl {
            border-top-color: rgba(136, 221, 136, 0.2);
            border-bottom-color: rgba(136, 221, 136, 0.2);
        }
    }
    
    #brightnessSlider {
        width: 120px;
    }
    
    #captureButtons {
        width: 100%;
        justify-content: center;
    }
    
    button {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #controls {
        bottom: 10px;
    }
    
    button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    button svg {
        width: 16px;
        height: 16px;
    }
}
