.dl-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, 0.55);
    align-items: flex-end;
    justify-content: center;
}

.dl-sheet {
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.dl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
}

.dl-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-close {
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.dl-body {
    padding: 14px 16px 22px;
    overflow-y: auto;
}

.dl-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 10px;
    text-align: center;
}

.dl-state-icon {
    font-size: 34px;
}

.dl-state-text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
    white-space: pre-line;
}

.dl-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: dl-spin 0.9s linear infinite;
}

@keyframes dl-spin {
    to { transform: rotate(360deg); }
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-row {
    width: 100%;
    text-align: left;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.dl-row:active {
    background: var(--bg-elevated);
}

.dl-row-release {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.dl-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dl-quality {
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.dl-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.dl-row-main {
    font-weight: 600;
}

.dl-row-note {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dl-row-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
    word-break: break-word;
}

.dl-queue-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-white);
}

.dl-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.dl-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.dl-cancel {
    align-self: flex-start;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.header-queue-btn {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-message {
    white-space: pre-line;
}
