/* "Download all" save sheet (js/save-photos.js): the same smoked glass as
   the album's download modal (css/download-album-modal.css). */

.sp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
}

.sp-card {
    width: 100%;
    max-width: 480px;
    margin: auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.85);
    animation: modalSlideIn 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.sp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sp-title {
    margin: 0;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.sp-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.2s ease;
}
.sp-close:hover { background: rgba(255, 255, 255, 0.2); }

.sp-body {
    padding: 20px 24px 24px;
    font-family: var(--font-secondary, 'Inter', sans-serif);
}

.sp-option {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sp-option-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.sp-option-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.sp-progress { margin: 0 0 14px; }
.sp-progress[hidden] { display: none; }

.sp-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.sp-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.sp-status {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.8);
}

.sp-go {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #1D1B20;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.sp-go:active { transform: scale(0.98); }
.sp-go:disabled { opacity: 0.6; cursor: default; }

.sp-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.sp-alt-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    flex: 1 1 180px;
}

.sp-zip {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sp-zip:hover { background: rgba(255, 255, 255, 0.2); }
.sp-zip:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
    .sp-head { padding: 16px 12px 14px 20px; }
    .sp-body { padding: 16px 16px 20px; }
    .sp-option { padding: 16px; }
    .sp-zip { width: 100%; }
}
