.settings-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 600;
    animation: pause-fadein 0.2s ease-out;
}

.settings-box {
    padding: 40px 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0C0C0C 100%);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    min-width: 380px;
}

.settings-title {
    font-size: 36px; font-weight: 700; letter-spacing: 4px;
    color: #fff; text-align: center; margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.settings-description {
    font-size: 13px; color: rgba(255,255,255,0.45);
    text-align: center; margin-bottom: 28px;
    line-height: 1.5;
}

.settings-quality-row {
    display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}

.settings-quality-btn {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,255,255,0.12);
    padding: 12px 28px; font-size: 16px; font-weight: 600;
    cursor: pointer; letter-spacing: 2px;
    transition: all 0.2s; font-family: inherit;
}

.settings-quality-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.settings-quality-btn.selected {
    background: linear-gradient(180deg, #CF4B3C 0%, #a33a2e 100%);
    border-color: #CF4B3C;
    color: #fff;
}

.settings-details {
    margin-bottom: 24px;
}

.settings-detail-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
}

.settings-detail-row span:first-child {
    color: rgba(255,255,255,0.5);
}

.settings-detail-row span:last-child {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.settings-close-btn {
    display: block; margin: 0 auto;
    background: linear-gradient(180deg, #CF4B3C 0%, #a33a2e 100%);
    color: #fff; border: 2px solid #CF4B3C;
    padding: 12px 40px; font-size: 16px; font-weight: 600;
    cursor: pointer; letter-spacing: 2px;
    transition: all 0.2s; font-family: inherit;
}

.settings-close-btn:hover {
    background: linear-gradient(180deg, #d95d4f 0%, #CF4B3C 100%);
    transform: scale(1.05); border-color: #d95d4f;
}

.settings-close-btn:active { transform: scale(0.98); }

/* Focus ring for keyboard navigation across all menus */
.kb-focus {
    outline: 2px solid #CF4B3C !important;
    outline-offset: 3px;
    box-shadow: 0 0 12px rgba(207, 75, 60, 0.5);
}
