#settings-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
}

#settings-screen.hidden {
    display: none;
}

.settings-box {
    background: #111;
    border: 2px solid #555;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    text-align: center;
}

.settings-tabs {
    margin-bottom: 20px;
}

.tab-btn {
    background: #333;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px 20px;
    cursor: pointer;
}

.tab-btn.active {
    background: #555;
    color: #fff;
}

.tab-btn:disabled {
    cursor: not-allowed;
    color: #666;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.controls-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.controls-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.controls-list li span:first-child {
    color: #ff6666;
    font-weight: bold;
}

#close-settings-btn {
    margin-top: 30px;
}

.video-setting {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 15px auto;
}

.video-setting label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
}

.setting-label {
    font-weight: bold;
}

.video-setting select {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-description {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #aaa;
}

.checkbox-label ~ .setting-description {
    margin-left: 30px;
}

.audio-setting {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 15px auto;
}

.volume-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.volume-control label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.volume-value {
    color: #ff6666;
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6666;
    cursor: pointer;
    transition: all 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #ff8888;
    box-shadow: 0 0 8px rgba(255, 102, 102, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6666;
    cursor: pointer;
    border: none;
    transition: all 0.1s;
}

.volume-slider::-moz-range-thumb:hover {
    background: #ff8888;
    box-shadow: 0 0 8px rgba(255, 102, 102, 0.5);
}

.volume-slider::-moz-range-track {
    background: none;
    border: none;
}