.media-status .bulk-download-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(0, 230, 118, .24);
    border-radius: 6px;
    background: rgba(0, 230, 118, .07);
    color: #00e676;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 900;
}
.media-status .bulk-download-trigger:hover { background: rgba(0, 230, 118, .14); }
.media-status .bulk-download-trigger:disabled { opacity: .4; cursor: default; }
.bulk-download-toolbar { flex-wrap: wrap; gap: 10px;margin-top: 20px; }
.bulk-download-toolbar .media-status { flex-wrap: wrap; gap: 6px 0; }
.modal-backdrop.bulk-download-modal .popup-unlock { width: min(500px, calc(100vw - 32px)); }
.modal-backdrop.bulk-download-modal .popup-unlock .unlock__body {
    max-height: calc(100vh - 96px); overflow-y: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px; background: #161a22; box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    scrollbar-width: thin; scrollbar-color: #374151 #161a22;
}
.bulk-download { padding: 24px; color: #f3f4f6; font-size: 12px; line-height: 1.7; text-align: right; }
.bulk-download h3, .bulk-download h4, .bulk-download p { margin: 0; }
.bulk-download button, .bulk-download input { font: inherit; }
.bulk-download button { cursor: pointer; transition: background .18s, border-color .18s; }
.bulk-download button:disabled { opacity: .4; cursor: default; }
.bulk-download button:focus-visible, .bulk-download input:focus-visible, .bulk-download-trigger:focus-visible { outline: 2px solid #00e676; outline-offset: 3px; }
.bulk-download__header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bulk-download__icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid rgba(0, 230, 118, .2); border-radius: 14px; background: rgba(0, 230, 118, .1); color: #00e676; font-size: 21px; }
.bulk-download__header h3 { font-size: 17px; font-weight: 700; }
.bulk-download__header p { margin-top: 3px; font-size: 11px; color: #9ca3af; }
.bulk-download__series { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 20px; background: #0f1217; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; }
.bulk-download__series img { width: 38px; height: 50px; border-radius: 7px; object-fit: cover; }
.bulk-download__series > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bulk-download__series strong { overflow-wrap: anywhere; font-size: 12px; text-align: start; }
.bulk-download__series > div > span { font-size: 10px; color: #6b7280; }
.bulk-download__manager { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: #1c222d; color: #9ca3af; font-size: 10px; white-space: nowrap; }
.bulk-download__section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bulk-download__section-heading h4, .bulk-download__quality-heading { font-size: 12px; font-weight: 500; color: #9ca3af; }
.bulk-download__section-heading button { border: 0; padding: 3px 7px; border-radius: 5px; background: rgba(0, 230, 118, .1); color: #00e676; font-size: 10px; }
.bulk-download__range { display: grid; grid-template-columns: 1fr 18px 1fr; gap: 10px; align-items: center; margin-bottom: 18px; }
.bulk-download__range label { padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: #0f1217; color: #9ca3af; font-size: 11px; }
.bulk-download__range label:focus-within { border-color: rgba(0, 230, 118, .45); }
.bulk-download__range input { display: block; width: 100%; height: 34px; margin-top: 3px; padding: 0; border: 0; background: transparent; color: #f3f4f6; text-align: center; direction: ltr; font-size: 21px; font-weight: 700; }
.bulk-download__range-arrow { color: #4b5563; text-align: center; }
.bulk-download__qualities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 9px 0 18px; }
.bulk-download__qualities button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 8px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: #0f1217; color: #9ca3af; }
.bulk-download__qualities strong { direction: ltr; font-size: 15px; }
.bulk-download__qualities span { padding: 1px 7px; border-radius: 4px; background: rgba(255, 255, 255, .05); font-size: 9px; }
.bulk-download__qualities button.is-selected { border-color: #00e676; background: rgba(0, 230, 118, .08); color: #00e676; }
.bulk-download__qualities button:not(:disabled):hover { border-color: rgba(0, 230, 118, .5); }
.bulk-download__qualities i { position: absolute; top: 7px; right: 7px; font-size: 10px; }
.bulk-download__summary { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid rgba(0, 230, 118, .14); border-radius: 12px; background: rgba(0, 230, 118, .05); }
.bulk-download__summary > span { display: flex; align-items: center; gap: 6px; color: #00e676; }
.bulk-download__summary small { color: #9ca3af; font-size: 10px; }
.bulk-download .bulk-download__hint { color: #6b7280; font-size: 10px; margin: 12px 0; }
.bulk-download .bulk-download__error { color: #fca5a5; font-size: 11px; margin: 9px 0; }
.bulk-download__primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: #00e676; color: #0a170f; font-weight: 700; font-size: 13px; }
.bulk-download__primary:not(:disabled):hover { background: #37f998; }
.bulk-download__secondary { display: block; width: 100%; padding: 10px; border: 0; background: transparent; color: #9ca3af; }
.bulk-download__secondary:hover { color: #f3f4f6; }
.bulk-download__sending { padding: 18px 0 0; text-align: center; }
.bulk-download__sending-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; background: rgba(0, 230, 118, .1); color: #00e676; font-size: 25px; }
.bulk-download__sending h4 { margin-bottom: 6px; font-size: 15px; }
.bulk-download__sending p { color: #9ca3af; }
.bulk-download__progress { height: 7px; margin: 20px 0; background: #0f1217; border-radius: 8px; overflow: hidden; }
.bulk-download__progress > span { display: block; height: 100%; background: linear-gradient(270deg, #10b981, #00e676); border-radius: inherit; transition: width .2s; }
@media (max-width: 480px) { .bulk-download { padding: 18px; } .bulk-download__header h3 { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .bulk-download button, .bulk-download__progress > span { transition: none; } }

.bulk-download__idm-status { margin: 0 0 16px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; color: #9ca3af; background: #0f1217; font-size: 11px; }
.bulk-download__idm-status--ready { color: #00e676; border-color: rgba(0, 230, 118, .18); background: rgba(0, 230, 118, .05); }
.bulk-download__idm-status--missing, .bulk-download__idm-status--error { color: #fbbf24; border-color: rgba(251, 191, 36, .2); background: rgba(251, 191, 36, .05); }
.bulk-download__idm-status button { display: block; margin-top: 8px; padding: 4px 9px; border: 1px solid rgba(251, 191, 36, .3); border-radius: 6px; color: #fbbf24; background: transparent; }
